|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Resize a VM disk image
Hi guys,
I have Xen 3.0.3 installed with yum on Centos 5.1.
I'am facing an issue trying to resize the disk image of a centos 4.5 VM.
The VM disk size is 50Go and i need to add 150Go.
I tried two methods so far :
-------------1st method-----------------------
dd if=/dev/zero of=<image file> bs=1M conv=notrunc count=1 seek=2500
*
losetup /dev/loop0 <image file>
*
e2fsck -f /dev/loop0
*
resize2fs /dev/loop0
*
e2fsck -f /dev/loop0
*
losetup -d /dev/loop0
------------- End 1st method-----------------------
-------------2nd method-----------------------
dd if=/dev/zero of=/tmp/temp_expand bs=1024k count=1000
cp -a /xen-images/youki.img /xen-images/youki.img.back
cat /tmp/temp_expand >> /xen-images/youki.img
resize2fs -f /xen-images/youki.img
-------------End 2nd method-----------------------
None of these are actually working. Is there a simplest way or just
another way to extend a vm disk or i have to reinstall a new os from
scratch?
Thanks in advance for the help :)
Kin
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] Resize a VM disk image,
kieran JOYEUX <=
|
|
|
|
|