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

Re: [Xen-users] resize xen disk file


  • To: "Javier Guerra" <javier@xxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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