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

Re: [Xen-users] resize xen disk file


  • To: "Brian Stempin" <brian.stempin@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Martin Fernandez" <martingfernandez@xxxxxxxxx>
  • Date: Thu, 6 Mar 2008 16:18:43 -0200
  • Delivery-date: Thu, 06 Mar 2008 10:19:18 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kxiYYTS4FovxeK5KE+fVwR4Qn0ORxrq1d9RpsC+btzlm3U/LrNfM3K/4v3lmYP/Q4CddJzi2q4AYyI2XKoRIx/v1zkOBbnOpj9t5G1YW8Qhfb+zZ1jIp0LxPzqc4Bn+6kxvBNOjHgjb+Zseiz3GHzDHg+/BSZpPlfQLC71BjYlk=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I resized the file disk using:
dd if=/dev/zero of=image bs=1M conv=notrunc count=1 seek=10240
But when I boot up my VM I can't see the new space

[root@boldtsamqa ~]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               4.88 GB
  PE Size               32.00 MB
  Total PE              156
  Alloc PE / Size       156 / 4.88 GB
  Free  PE / Size       0 / 0
  VG UUID               cMZekR-zsPG-lZGc-dO2J-aZdh-RO7d-8WdZUi


On Thu, Mar 6, 2008 at 4:11 PM, Brian Stempin <brian.stempin@xxxxxxxxx> wrote:
I don't know the syntax off of the top of my head, but I'd imagine that you could use the dd command to tack on empty space to the end of your file.  Once that's done, you can boot up the domU and expand your LVM partition.

On Thu, Mar 6, 2008 at 11:07 AM, Martin Fernandez <martingfernandez@xxxxxxxxx> wrote:
Hi All,
I need to resize the xen disk file. This file have a LVM partition inside . Do you have any ideas how to do it?


Thanks

_______________________________________________
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

 


Rackspace

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