[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: 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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®.