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] DomU partition resize problem

To: Xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] DomU partition resize problem
From: Jean Baptiste FAVRE <jean.baptiste.favre@xxxxxxxxx>
Date: Sun, 09 Nov 2008 15:10:41 +0100
Cc:
Delivery-date: Sun, 09 Nov 2008 06:11:20 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:reply-to :user-agent:mime-version:to:subject:content-type :content-transfer-encoding:from; bh=wTeyjr95cEqC1bXO3mJiFHdW8S8Ee0d7/mS4ORSSmX4=; b=VxKPgloRJcp7QLKUBtqMWFXcHx+LA2eMW8n0BWq2+wOiKvTOLH9cwtEOBIDB/pqmii fjLnTfsYBLAmyxzIWUwH1uYwZzkcqCJY5bqYJV7wtGxc8fT3eWlpzSHCd0CLXpxvpJ64 EPZlA0jk7m8JPW4S5tOhzfkOKKsHsJKW0GDb8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:from; b=YI37TJ1TSSeu5IwBlritjJTtaPSaqoEaD88ABM3M3OG+NDqxzilfF/FHo0snB8cS4L CYl7WticbDzYVjxpfIBBcWORBMWgG3KIRRfpJORfWgzGdfwlQF+O+ylnNVm7hO6KOYZQ EiaUE2jqF6fFebdmzHkLTqVSmxgdtlQCFVZOE=
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>
Reply-to: jean-baptiste.favre@xxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8pre) Gecko/20071022 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0
Hello everybody,
I'm playing with Xen and trying to extend DomU disk space.

My Configuration:
Dom0: all Xen machine are HVM. They're installed on LVM.
I've one VG (XEN) on Dom0 and created a LV (here, xps.101.disk) per DomU.

disk configuration in xen conf is as follow:
disk         = [
                'phy:/dev/XEN/xps.%d.disk,ioemu:hda,w' % (vmid)
               ]
Where vmid is a parameter given to xm create.
All work pretty well but resize2fs.

Increasing DomU disk size consists in lvextend. That has been done.
Rebooting DomU gives me additionnal free space on virtual disk.

Here's currently what I have:
From Dom0:
## lvdisplay /dev/XEN/xps.101.disk
#  --- Logical volume ---
#  LV Name                /dev/XEN/xps.101.disk
#  VG Name                XEN
#  LV UUID                CKJ6N0-Hf7r-eMiP-GLxb-MNqp-4fB2-ac3VsF
#  LV Write Access        read/write
#  LV Status              available
#  # open                 2
#  LV Size                10,00 GB
#  Current LE             2560
#  Segments               1
#  Allocation             inherit
#  Read ahead sectors     auto
#  - currently set to     256
#  Block device           254:0

From DomU
## fdisk -l /dev/hda
#
#Disk /dev/hda: 10.7 GB, 10737418240 bytes
#255 heads, 63 sectors/track, 1305 cylinders
#Units = cylinders of 16065 * 512 = 8225280 bytes
#
#   Device Boot      Start         End      Blocks   Id  System
#/dev/hda1   *           1         336     2698888+  83  Linux
#/dev/hda2             337        1174     6731235    5  Extended
#/dev/hda5 337 381 361431 82 Linux swap / #Solaris
#/dev/hda6             382        1174     6369741   83  Linux

So I can see additionnal space, but resize2fs /dev/hda6 7G failed:

## resize2fs /dev/hda6 7G
#resize2fs 1.40-WIP (14-Nov-2006)
#La partition (ou le périphérique) n'a seulement que 1592435 (4k) blocs.
#Vous avez demandé une nouvelle taille de 1835008 blocs.

In english, partition (or device) only have 1592435 (4k) blocks.
You requested new size of 1835008 blocks.


Any idea to get it working ?

Thanks,
JB

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

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