xen-users
Re: [Xen-users] Resize domU block device?
On Nov 19, 2007 12:42 PM, Ralf Müller < ralf@xxxxxxxx> wrote:
Am 19.11.2007 um 17:54 schrieb Errol Neal:
> Quoting Ralf Müller < ralf@xxxxxxxx>: > >> Is there a way for a domU to discover size changes of block
>> devices modified by dom0? > The domU will be aware of the additional space.
Ok - I did it again :)
dom0 > rpm -q xen xen-3.1.0_15042-51 dom0 > lvdisplay /dev/data0/test-xx
--- Logical volume --- LV Name /dev/data0/test-xx VG Name data0 LV UUID U8e3ZH-xMFZ-TwUf-qpi1-r5Ee-y07c-PtskZe LV Write Access read/write
LV Status available # open 0 LV Size 1.00 GB Current LE 256 Segments 1 Allocation inherit Read ahead sectors 0
Block device 253:47
give it to test domU: disk=[ 'phy:/dev/data0/test-hda,xvda,w', 'phy:/dev/data0/test-swap,xvdb2,w', 'phy:/dev/data0/test-xx,xvdc1,w',
]
test > mkfs.xfs /dev/xvdc1 test > mount /dev/xvdc1 /mnt/ test > df /mnt/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvdc1 1038336 288 1038048 1% /mnt
dom0 > lvresize -L+1G /dev/data0/test-xx Extending logical volume test-xx to 2.00 GB Logical volume test-xx successfully resized
test > xfs_growfs /mnt/ meta-data="" isize=256 agcount=8, agsize=32768
blks = sectsz=512 attr=0 data = bsize=4096 blocks=262144, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096 log =internal bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks, lazy- count=0 realtime =none extsz=4096 blocks=0, rtextents=0
test > df /mnt/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvdc1 1038336 288 1038048 1% /mnt
The filesystem is still 1GB. What am I doing wrong?
I am not sure if the feature is available in the version of Xen you are using or not, but the fact that it has been done, see the thread below, means that there is hope, you may just need to upgrade the version and/or apply patches.
http://forums.xensource.com/message.jspa?messageID=8404Also online resizing is also available in ext3, at least that is true for growing of partitions.
I hope to look into these type of issues soon and I will report more if I find out more. If you reply back and have questions or comments for me, make sure I am in the CC, as I don't always have time to follow the list completely.
Best Regards, Todd
Regards
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|