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

Re: [Xen-users] Reg Disk space in guest domain with fedora img

To: "Rajiv Rajaian" <rajiv.grid@xxxxxxxxx>
Subject: Re: [Xen-users] Reg Disk space in guest domain with fedora img
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Tue, 12 Feb 2008 13:50:38 -0500
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 12 Feb 2008 10:51:14 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=t1B0YElQzwsfRjzbB3ajjV86smN6ZaJQqEWzTxmuEow=; b=J/FUtwEzjnpHEtlGALorSYopsB87fVlZ07zEQPyto6FR4jS4I1/q8EpEKNfqzfjiOTYffKh7zdEjHCBBfwtvHXr88iXWE1SqL8c4zDJlKTE6Nn+hGhvl++TsLuINcP0cciLxrXB8ZnLD/EJ9wx2VpNQz8J/dTgPO05X33M2YRDA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=khmhPyZbn7gDMnf6K0OmSAR00CbDsQyqckq/G4zAr0G0x8gdbOLuTRJRoRyFZ2fAvfPsNL4CCT3NCZViB6iuJRuehFqf96KL7U4bHo5zARdhfJR7AeHxImV38oMDPU4HW50cv4jEMRbxdAv0IeBbD9WuxWI0GTo11dX7ucSqx3c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <cd5be5dd0802120847r4f39416dm2e43b20d0402bee@xxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <cd5be5dd0802120847r4f39416dm2e43b20d0402bee@xxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

On Feb 12, 2008 11:47 AM, Rajiv Rajaian <rajiv.grid@xxxxxxxxx> wrote:
> Hi
> I had installed Xen-3.0.4 in Scientific linux 4 (kernel version 2.6.16.33)
> by following the instructions given in following link
>
> project-xen.web.cern.ch/project-xen/xen/howto_slcXen.html
>
> I ve created the guest Domain with fedora image of size 2.2GB , disk space
> as 10GB  and the domain started successfully . when i logged into the xm
> console and checked the disk space its showing only 2.2GB .. is there any
> thing worng with my configuration ??
>
> Here's my configruation file which i ve used to create domain
>
>
> cat /usr/local/vm_creator/workspace/images/fedora
>
> #This Configuration file is Automatically Generated on Tue Feb 12 19:33:17
> IST 2008
> kernel = "/boot/vmlinuz-2.6.16.33-xen"
> memory = 256
> extra = "fastboot"
> ramdisk = "/boot/initrd-2.6.16.33-xen.img"
>  disk = ['phy:vg/fedora,sda6,w','phy:vg/compswap,sda7,w',
> 'phy:vg/modules,sda5,r']
> name = "fedora.compnode.grid"
> root = "/dev/sda6 ro"
> vif=['bridge=xenbr0']
>
> The logical volumes look like
>
> [root@g40 ~]# lvs
>   LV       VG   Attr   LSize   Origin Snap%  Move Copy%
>   compswap vg   -wi-ao   1.00G
>   fedora   vg   -wi-ao  10.00G
>   modules  vg   -wi-ao 100.00M
>
> In the guest domain when i checked the following commands i got the output
> as
>
> [root@fedora ~]# df -H
> Filesystem             Size   Used  Avail Use% Mounted on
> /dev/sda6              2.2G   904M   1.2G  46% /
> none                   135M      0   135M   0% /dev/shm
> /dev/sda5              102M    90M   7.2M  93% /lib/modules
>
>
> [root@fedora ~]# fdisk -l
>
> Disk /dev/sda7: 1073 MB, 1073741824 bytes
> 255 heads, 63 sectors/track, 130 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk /dev/sda7 doesn't contain a valid partition table
>
> Disk /dev/sda6: 10.7 GB, 10737418240 bytes
> 255 heads, 63 sectors/track, 1305 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk /dev/sda6 doesn't contain a valid partition table
>
> Disk /dev/sda5: 104 MB, 104857600 bytes
> 255 heads, 63 sectors/track, 12 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk /dev/sda5 doesn't contain a valid partition table
>
>

This output is the one that seems strange to me. fdisk things that the
partitions are hard drives for some reason.

My guess is that there is something wrong with the logical volume.

I would suggest to stop the guest and mount the fedora logical volume
manually. See if the right size then. If not then it is a problem with
how Xen is recognizing it.

Regards,
Todd




>
> [root@fedora ~]# cat /etc/fstab
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> /dev/sda6               /                       ext3    defaults 1 1
> none                    /dev/pts                devpts  gid=5,mode=620 0 0
>  none                    /dev/shm                tmpfs   defaults 0 0
> none                    /proc                   proc    defaults 0 0
> none                    /sys                    sysfs   defaults 0 0
> /dev/sda7       swap    swap    defaults        0 0
>  /dev/sda5       /lib/modules    ext2    defaults        0 1
>
>
> Is there any thing to be configured to get the full disk space as 10GB or
> any thing wrong with my configuration ??
>
> Please help me
>
> Thanks in advance
>
> Rajiv
>
> Project Associate ,
>
> CARE,MIT,Annauniversity ,Chennai
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>