All of lore.kernel.org
 help / color / mirror / Atom feed
From: malahal@us.ibm.com
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Resizing an ext3 file system after extending a logical volume group
Date: Tue, 18 Sep 2007 14:07:23 -0700	[thread overview]
Message-ID: <20070918210723.GA8224@us.ibm.com> (raw)
In-Reply-To: <78B3687E-533C-4AEF-BD23-7DA4E3308C40@uiuc.edu>

Depending on your kernel, you may be able to resize a mounted ext3. Just
run resize2fs. It worked fine on my gentoo distro on a plain partition.

Thanks, Malahal.

Richard Kollmar [rkollmar@uiuc.edu] wrote:
>    Dear All:
>    I apologize if this has been asked before, but I can't find a way to
>    search the list archives:
>    How do you safely resize an ext3 filesystem after extending a logical
>    volume?
>    I am adding a new hard drive to increase the size of my logical volume
>    "home1" in logical volume group "home" with LVM2 under Ubuntu 6.10.1 LTS.*
>    The instructions*in the LVM Howto are pretty straightforward; the only
>    part that spooks me is the resizing of the ext3 filesystem.* This is what
>    I have done so far:
>            (installed new hardware & partitioned with fdisk; shows up as
>    /dev/sdb1)
>            (backed up the existing logical volume in case something bad
>    happens)
>            # pvcreate /dev/sdb1
>                    * Physical volume "/dev/sdb1" successfully created
>            # vgextend home /dev/sdb1
>                    * Volume group "home" successfully extended
>            # lvextend -l 357700 /dev/home/home1
>                    * Extending logical volume home1 to 1.36 TB
>                    * Logical volume home1 successfully resized
>    From what I googled, the next steps are a bit more involved for LVM2 than
>    the Howto lets on.* Does the following look o.k. to the experts:
>            ' use a root login, not su or sudo, because /home will be
>    unmounted
>            # umount*/dev/home/home1        ' the next steps should be done
>    off-line
>            # e2fsck -C 0 -v*dev/home/home1                 ' make sure the
>    file system is ok
>            #*tune2fs -O ^has_journal*/dev/home/home1       'disable
>    journaling on the logical volume
>            # resize2fs /dev/home/home1             'do the resizing
>            # e2fsck -C 0 -v*dev/home/home1                 ' make sure the
>    file system is still ok
>            #*tune2fs -O has_journal*/dev/home/home1                're-enable
>    journaling
>            # e2fsck -C 0 -v*dev/home/home1                 ' yes, I am a
>    first-timer and somewhat paranoid
>            # mount*/dev/home/home1 /home   ' back on-line
>    Thanks in advance for any help,
>    microscope

> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2007-09-18 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-18 20:58 [linux-lvm] Resizing an ext3 file system after extending a logical volume group Richard Kollmar
2007-09-18 21:07 ` malahal [this message]
2007-09-28  4:33 ` Drew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070918210723.GA8224@us.ibm.com \
    --to=malahal@us.ibm.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.