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: "Javier Guerra" <javier@xxxxxxxxxxx>
Subject: Re: [Xen-users] resize xen disk file
From: "Martin Fernandez" <martingfernandez@xxxxxxxxx>
Date: Fri, 7 Mar 2008 10:32:21 -0200
Cc: Brian Stempin <brian.stempin@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 07 Mar 2008 04:32:55 -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:cc:in-reply-to:mime-version:content-type:references; bh=/M/RYuPbtVJrWRw2WXBCx9jtEa1jyuJfzjde6M3M8u0=; b=VGc9PjW8tMD+u/TOIU1wr8aGppFY+CeXSZuJVOPCpHZcy+IDN/s/Rpro0a10leLI9CQsZuQJMUdzNEKgpL5SoGG9i+F3qgIiw50It+1xLxlTAXs+e8RSW1SfPiy3920wttm2Iw5kWzE9PERSSJyXr2b+O1VCpRSWnd5Sv4oa9A8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=yA8kKc5m4Pz5G5lG8KmsAHG/jjST53Nf3zMifBZWWTzHkzGm0dS859gNJ+zlwHrXyOtHrkHOAv7BsLdNGeSGJClCD+qCqg45BdqBa1IQNFd0Uqy2/USlNeRsjT5zEmmRGn/uUwC8BU0mGdplavMtbkXNle7GFEfJ7ZX7EERCzbo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <d35cd2560803061129j2a83d6fby1490d62f94648a72@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> <d35cd2560803061018y595154d6hb583e64b15cf577b@xxxxxxxxxxxxxx> <90eb1dc70803061028g633c58d0q6226d9aac7d6147f@xxxxxxxxxxxxxx> <d35cd2560803061129j2a83d6fby1490d62f94648a72@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Anyone know about this error?
Thanks

On Thu, Mar 6, 2008 at 5:29 PM, Martin Fernandez <martingfernandez@xxxxxxxxx> wrote:
Now I can see the free space, but I cant extend the LV

[root@boldtsamqa ~]# pvresize --setphysicalvolumesize 8GB /dev/xvda2
  WARNING: /dev/xvda2: Overriding real size. You could lose data.
  Physical volume "/dev/xvda2" changed
  1 physical volume(s) resized / 0 physical volume(s) not resized

[root@boldtsamqa ~]# lvextend  -L+3G /dev/VolGroup00/LogVol00
  Extending logical volume LogVol00 to 6.84 GB
device-mapper: table: device 202:2 too small for target
device-mapper: table: 253:0: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table
  device-mapper: reload ioctl failed: Invalid argument
  Failed to suspend LogVol00

Any ideas?

Thanks all for your help


On Thu, Mar 6, 2008 at 4:28 PM, Javier Guerra <javier@xxxxxxxxxxx> wrote:
On Thu, Mar 6, 2008 at 1:18 PM, Martin Fernandez
<martingfernandez@xxxxxxxxx> wrote:
> 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

what does /proc/partitions say?  the old size?

if it's the new size, then you need to do a pvresize so that the LVM
system gets it.

if it's the old size, something's fishy...

--
Javier


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>