Results 1 to 1 of 1
Hi all-
I have a server running Fedora Core 8 with a xen-ified kernel (2.6.21.7-5.fc8xen). That hosts a CentOS VM that runs off a 40GB disk file as defined in ...
- 12-02-2010 #1Just Joined!
- Join Date
- Jul 2010
- Location
- Burlington, VT
- Posts
- 7
Adding a Disk to a Xen Guest
Hi all-
I have a server running Fedora Core 8 with a xen-ified kernel (2.6.21.7-5.fc8xen). That hosts a CentOS VM that runs off a 40GB disk file as defined in the xml file. This 40GB disk is just about full, and I'd like to add another disk for additional storage.
On my dom0 host, I created a 10GB file via
I edited the XML file that defines my Xen VM and added the the device section for my new drive...Code:dd if=/dev/zero of=/vm/centos5-web/centos.downloads bs=1M count=10k
Then I restarted my VM. However upon it coming back online, the new disk isn't being detectedCode:<disk type='file' device='disk'> <driver name='tap' type='aio'/> <source file='/vm/centos5-web/centos.5-1.64.img'/> <target dev='sda1'/> </disk> <disk type='file' device='disk'> <driver name='tap' type='aio'/> <source file='/vm/centos5-web/centos.swap'/> <target dev='sda2'/> </disk> <disk type='file' device='disk'> <driver name='tap' type='aio'/> <source file='/vm/centos5-web/centos.downloads'/> <target dev='xvda'/> </disk>
I'm pretty sure there must be something I have to do on actual VM (modprobe?) in addition to the changes to the config file on the host, but I'm not sure and my searches haven't really given me a solid answer. It's a live production server so I'm kinda cautious to make any changes without having a good idea about what's going to happen.
Any assistance here would be most definitely appreciated! Thanks so much!
-- John


Reply With Quote