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=/dev/xvdc1 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?
Regards
Ralf
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|