Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to expand the size of a xen disk. I found instructions on a google search, but they don't seem to be complete. I first logged into the physical server, and expanded the .img file that the virtual server is using. I then log into the virtual server and use fdisk to resize the partition, using all of the available space. The instructions then tell me to "add this disk to another xen guest so that you have a non mounted filesystem disk available. You cannot execute these commands from within the xen guest you are trying to expand." Once I have done this, it tells me to fdisk -l to locate the disk, and use resize2fs to resize the disk. There are no instructions on how to add the disk to another xen guest, and I am not quite sure what I am trying to do there.
If I try to resize2fs it gives me a disk in use error. I think I need to access the partition from another xen OS and then run the resize2fs command. Any idea how I would do that?
I figured out that I need to go into the physical server and add the disk to a different xen server, and select the correct .img file as the new disk. At that point, I can see the "partition" with fdisk, but when I try to resize2fs, I get a "bad magic number in superblock" error.
I discovered that the filesystem was linux LVM, so I changed it to that, but I am still getting a bad superblock error, I also tried alternate superblocks 8193, 16..., etc and no dice.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.