WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Wrong size on a domU partition

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Wrong size on a domU partition
From: kazabe <kazabe@xxxxxxxxx>
Date: Sat, 19 Mar 2011 15:26:29 -0500
Delivery-date: Sat, 19 Mar 2011 13:28:11 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=ePFfh6uULVYghuKGGiZWeYOXHBExi0Gt3PCO7sy32+U=; b=TQShlTWOpDXGGUY+7enCXIEIpM6cT2uvmU2vfXFS+D8FsXYE6Nf8O5gJ+SF1yhGIdr ri4ZagIB6edkAj8VGzGdVPgsNNvmiDqkXENIf5IR/2nZD2Qvlie/HGMdJthp22ive+jf 99AzooJ/MwpMm7wjYU7ll1Hxqo0ginUgZ2CX4=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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