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

Re: [xen-users] Resize lvm disk


  • To: ko0nz <yesiko0nz@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Marconi Rivello" <marconirivello@xxxxxxxxx>
  • Date: Mon, 13 Aug 2007 13:32:18 -0300
  • Delivery-date: Mon, 13 Aug 2007 09:32:46 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=aeifgNDVLMo4hX2SLU5jhaJLashWhMcmbiHK1dEZJyMEkcu9QwezrHi2mPej8RKBfavUM+O3lMFjB+jlZ0m6PqZlLh6ig8OsBpqvtU2lPhD8yEIpnZruPe5dihx9irchUnqurCaLZOS558Ut7lIbYYydNcziMKzynvbRvGUO2b8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I'm just replying to the list because I forgot to "reply to all", and it might help someone else with the same question.

On 8/13/07, Marconi Rivello <marconirivello@xxxxxxxxx> wrote:
Hey,
 
There are a few problems with your commands:
1: you did lvresize on one lv and resized the filesystem of another;
2: you FIRST fsck -f the filesystem you want to resize, THEN you resize2fs it.
 
Beware: that works to INCREASE a filesystem. If you want to reduce it like that, you will lose data. You need to first decrease the filesystem, then the LV.
 
But back to increasing it:
 
# lvresize -L 10g /dev/srv/toto-disk
# e2fsck -f /dev/srv/toto-disk
# resize2fs /dev/srv/toto-disk
 
That should do it. The first increases the "physical" space (since it's lvm), the second checks the filesystem for errors so resize2fs can extend it without the risk of changing a damaged filesystem, which would result (probably) in more damage.
 
Hope that helps.
 
On 8/12/07, ko0nz <yesiko0nz@xxxxxxxxx> wrote:
> Make sure you use the tools for whatever filesystem is on the lvm volume
> to resize the filesystem to take up all of the new space. As an example,
> resize2fs is what you'd use for ext2 filesystems.

i did but nothing happened...

how i did on my Dom0 :
# lvresize -L 10g /dev/srv/apollon-disk
# resize2fs /dev/srv/toto-disk
# e2fsck -f /dev/srv/toto-disk

when i did
# lvs

it does show my news size.

when i run my DomU toto
# xm create toto.cfg
# xm console toto
# df -h

it does show the old size of guest DomU toto.

what do think about this?

_______________________________________________
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

 


Rackspace

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