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 lvm disk

To: ko0nz <yesiko0nz@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [xen-users] Resize lvm disk
From: "Marconi Rivello" <marconirivello@xxxxxxxxx>
Date: Mon, 13 Aug 2007 13:32:18 -0300
Delivery-date: Mon, 13 Aug 2007 09:32:46 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=nEZKit1DXXtv64nJLFYMN/7ASTV+64BXnNcnRLjhIhOrluN1wGnMXqHfjHmCKCcn+madmFhWSLzsF0DslCq5m6VNagg/qqZaDsS6uER9bkARG4vVgYsHSeB8Qv4S9zFNNfHmr28zbuqbd47Lg4dyPha5+1p1DJUoJ4uGBdtyjy0=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <bd15b9d50708130441q1876341avd201da36e98275c6@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: <1f7e0c110708120753w27446359hdd979dca5de40bd@xxxxxxxxxxxxxx> <1186931213.9995.13.camel@bcoop-desktop> <1f7e0c110708121241p4ebcf008t7821261240da4c0f@xxxxxxxxxxxxxx> <bd15b9d50708130441q1876341avd201da36e98275c6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>