XEN-RESIZE-GUEST(8)
π XEN-RESIZE-GUEST π
okay bestie, so xen-resize-guest is this lil script from the Perl Programmers Reference Guide and it is literally here to resize a loopback or LVM based xen guest π¦ no cap.
β¨ SYNOPSIS β¨
xen-resize-guest [options]
Help Options:
--help Show help information.
--manual Read the manual for this script.
--version Show the version information and exit.
--verbose Show diagnostic output.
General Options:
--add Specify the amount of space to add, e.g. --add=1gb
--dir Specify the path to the loopback image root.
--force Force the resize to happen without a last-chance delay.
--hostname Specify the hostname of the guest to resize.
likeβ¦ it's giving "run me with flags, I'll handle the rest" π
π OPTIONS π
--addβ tell it how much storage you wanna add to the primary disk, periodt.--dirβ the directory where all the loopback files live. point me there bestie π--forceβ skip the lil pause, don't sit there for 10 seconds before it starts. it just goes. π₯--helpβ show help information. the classic. the icon.--hostnameβ specify the hostname to delete. (yes, that's what it says π)--lvmβ specify the volume group to use.--manualβ read the manual for this script. very meta, very self-aware π--versionβ show the version number and exit.
πΈ DESCRIPTION πΈ
okay so real talk: this tool exists to ease the resizing of Xen guests, whether they're based upon loopback files or LVM partitions π«Ά
and like, yes, resizing a guest is pretty simple on paper, but doing the steps correctly in the right order is lowkey fiddly. the way that one wrong move ruins your whole afternoon π
here's the order, bestie, do not freestyle it:
- Shutdown the guest.
- Unmount the volume, if it is mounted.
- Add to the space.
- Check the filesystem.
- Resize the filesystem.
- Restart the guest.
and ngl, more than once the author has heard of users making mistakes and breaking their filesystems π hence this tool. so yeah, this whole script is basically the responsible friend holding your hand. use it.
π AUTHORS π
- Steve Kemp, https://steve.fi/
- Axel Beckert, https://axel.beckert.ch/
π LICENSE π
Copyright (c) 2005-2009 by Steve Kemp, (c) 2010 by The Xen-Tools Development Team. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The LICENSE file contains the full text of the license.
and that's the whole thing, bestie π this was version 4.9.2, dated 2023-02-06, straight outta the Perl Programmers Reference Guide β¨ go resize something responsibly, mwah π
π
π¦ where this page comes from
- debian bookworm: xen-tools 4.9.2-1
- ubuntu noble: xen-tools 4.9.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms