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] resize xen disk file

To: "Brian Stempin" <brian.stempin@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] resize xen disk file
From: "Martin Fernandez" <martingfernandez@xxxxxxxxx>
Date: Thu, 6 Mar 2008 16:18:43 -0200
Delivery-date: Thu, 06 Mar 2008 10:19:18 -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:to:subject:in-reply-to:mime-version:content-type:references; bh=fEtLUcKASzzLNwi9dEf+8HxpHE0432iHdikmK73HhLI=; b=QXFv6DGJOqR0aH6DXsp5rshZwF7P30Jh1882ROgY7nWqmkpWnUWkrA8sw91THu9qLYUTHY1coPttLNAkP6xlsxSD2cUmvBdi38gaFUQMtIlAHvOlRBT4sgpQqwkTlBCdDrtkVGDHu753o5EdfOZU7VTSOc+7FB2T406SAjUpm/E=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <351785350803061011s1f89f392vd66b8eeff02ce1c6@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: <d35cd2560803060807u58b132dfo9e003b4783ff479@xxxxxxxxxxxxxx> <351785350803061011s1f89f392vd66b8eeff02ce1c6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>