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

RE: [Xen-users] Resize DomU partition

  • To: "KC LO" <kclo2000@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Tobin" <itobin@xxxxxxxxxxxxx>
  • Date: Mon, 1 Mar 2010 22:25:43 -0000
  • Cc:
  • Delivery-date: Mon, 01 Mar 2010 14:28:46 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: Acq5jQXZJ9HPgXInRwmZnFrNikjxXgAAH75g
  • Thread-topic: [Xen-users] Resize DomU partition


Shutdown DomU

e2fsck -f /dev/VolGroup00/vm1
resize2fs /dev/VolGroup00/vm1
fsck -n /dev/VolGroup00/vm1

boot DomU and that should do it.  Resize2fs should automatically use all
available space, if not you will need to add the parameter.


-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of KC LO
Sent: 01 March 2010 22:17
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Resize DomU partition

Hi all,

I have created a DomU guest based on the following method :-
1) I create a LV with size 6GB : lvcreate -L 6G
2) I setup a new guest DomU with /dev/VolGroup00/vm1 as disk device
3) In DomU, I use /dev/hda as device to create partition for /boot, /,
and swap without using LVM
 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          13      104391   83  Linux
/dev/hda2              14         521     4080510   83  Linux
/dev/hda3             522         782     2096482+  82  Linux swap /

4) I am now resize the /dev/VolGroup00/vm1 device to 10G in Dom0
lvextend -L 10g dev/VolGroup00/vm1

How can DomU to recongnize the new disk space?


Xen-users mailing list

Xen-users mailing list



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