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: Thu, 6 Mar 2008 17:29:13 -0200
Cc: Brian Stempin <brian.stempin@xxxxxxxxx>, xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 06 Mar 2008 11:29:45 -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=Bs2tz1Ehgph4jTwYVa9Y6zOik/KEqKQia72G8bzp9y4=; b=Dk4ni8SROct1a02aYLy8jqv3H0SBZG1Pgy7GJrqqNIC9aCXlk2AKoM12uUwu1zG92BTjTlTRF+3JWOoEJEMAEWTPqqKS7ItevGQjS0bdcSpkMIp/VWUUMqgm9VtCHmEWxZ8Ph3rOSPKH3pmJbhs/piqyCRiB/FITGNrX09ZrkkE=
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=c80B+m7VmBitZgNbQda6CVZ9xHi02FxZ+0WXN2ibBZSt2RN7biuK3qZG7ML6GAVf6afgmoFWML5qHoo5zKPUfZVJGoot1RdFSdYJXir7uY1UdyJb3JCBXL5BAay+MVvtja32laRnGL7DdBuI8FsOsHd0RtnhA0SGxuX9FYWp2uw=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <90eb1dc70803061028g633c58d0q6226d9aac7d6147f@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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>