[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Wrong size on a domU partition


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: kazabe <kazabe@xxxxxxxxx>
  • Date: Sat, 19 Mar 2011 15:26:29 -0500
  • Delivery-date: Sat, 19 Mar 2011 13:28:11 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=LMi9MmLAW2OVjUQF/5OFMBiYTc22waOSum8peeMBd+0RjSyS5FXkjpKqg0RBsIKqpU 2uqa+D6fLYFxXx/EZLGY2Fez1rVTCaFA4rW8isaK8gAFIwfIUeuCl4AkfydwWRS6/UWB FYPrVhqGy/kK1qt/oWLrPOtshHq3G9Oijmv/Q=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.