 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] DomU partition resize problem
 
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 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |