[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Wrong size on a domU partition
Hi. I need more space on my domU server, so i create a file image to attach it to the domU. But when i load that image in the domU, show a size very different to the create. I create the file with this command
dd if=/dev/zero of=/xen/domains/SRV03/opt-disk.img bs=1024k seek=30720 count=30720 (The idea is create an image disk with 30GB, but when i check the disk on the domU show 64GB.)
attach the image to the domU xm block-attach SRV03 tap:aio:/xen/domains/SRV03/opt-disk.img sdb1 w so i access to domU and create the filesystem.
mkfs.ext3 /dev/sdb1 but when search the domU disk display a diferent size Disk /dev/sdb1: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders
Units = cilinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 If i mount the file image on the dom0, shows 60GB. CONTANIER:/xen/domains/SRV03# mount -o loop opt-disk.img /mnt
df -h /xen/domains/SRV03/opt-disk.img 60G 180M 56G 1% /mnt But if i check the disk file size with du, show the expected size CONTANIER:/xen/domains/SRV03# du -sh opt-disk.img
31G opt-disk.img Why display that size? is that a bug? or some bad parameter when create the image disk.
Im using xen 3.2 on debian Lenny Thanks and regards.
_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |