LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 11-03-2009, 09:33 AM   #1
jtworley82
LQ Newbie
 
Registered: May 2009
Posts: 17

Rep: Reputation: 0
Expanding Xen disk


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.
 
Old 11-03-2009, 11:14 AM   #2
jtworley82
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
resize2fs

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?
 
Old 11-03-2009, 11:45 AM   #3
jtworley82
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
next problem

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.
 
Old 11-03-2009, 01:57 PM   #4
jtworley82
LQ Newbie
 
Registered: May 2009
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trouble expanding 4+TB GPT partition after expanding hardware RAID-5 volume muad'dib Linux - Enterprise 6 09-26-2009 05:01 PM
Disk space after expanding volume Corrado Linux - General 1 05-07-2007 02:16 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 11-05-2006 12:21 PM
LXer: Managing Xen With Xen-Tools, Xen-Shell, And Argo LXer Syndicated Linux News 0 10-21-2006 11:33 PM
expanding file systems and disk space jmickens Linux - Enterprise 4 10-13-2005 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration