Re: [linux-lvm] Reducing ext3 LV

From: Bryn M. Reeves (breeves_at_redhat.com)
Date: 10/20/05

  • Next message: Rudolf Kastl: "Re: Patching a fedora stock kernel howto!"
    Date: Thu, 20 Oct 2005 10:38:04 +0100
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Mark Sargent wrote:
    > Hi All,
    >
    > I'm using ext3 LVM and want to resize a 75GB LV to 20GB. How is this
    > done.? Current data = 5GB. LVMHOWTO only cobers ext2. Cheers.
    >
    > http://tldp.org/HOWTO/LVM-HOWTO/reducelv.html
    >
    > Mark Sargent.
    >

    Well, umm, the answer's right there in the link you posted:

    # umount /home
    # resize2fs /dev/myvg/homevol 524288
    # lvreduce -L-1G /dev/myvg/homevol
    # mount /home

    resize2fs handles both ext2 & ext3 (most of the tools are like this -
    mke2fs & e2fsck got their names before ext3 existed, but both handle
    ext3 as well).

    The only thing is the comment about having to know block sizes is bogus.
    This will work fine:

    umount /mount
    e2fsck -f /dev/myvg/myvol
    resize2fs /dev/myvg/myvol 20G
    lvreduce -L 20G /dev/myvg/myvol
    mount /mount

    Obviously, you need to replace /mount and /dev/myvg/myvol with the
    appropriate mount point & device name for your system. The e2fsck is a
    good idea before doing something like this. iirc, e2fsadm used to do it
    automatically.

    Kind regards,

    Bryn.
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.1 (GNU/Linux)
    Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

    iD8DBQFDV2V86YSQoMYUY94RAiYzAJ0aA6gUqeP0RKRMhW4QfzSqlsGwvQCeK8QT
    WeYGRFXJxe3idjBYs22EFvU=
    =tQQi
    -----END PGP SIGNATURE-----

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Rudolf Kastl: "Re: Patching a fedora stock kernel howto!"

    Relevant Pages

    • Re: Mounting SCSI External CDRW Problem
      ... >>got an SCSI external CDRW that is seen in the hardware browser as ... >>mount with CDs that contain data and that work with the internal cdrom. ... >>Mark Sargent. ...
      (Fedora)
    • Re: NFS Doesnt Exist Error
      ... Mark Sargent wrote: ... > when trying to mount a share on FC3from CentOS, ... apprich@elmstreet apprich $ ll -d /mnt/ ... Share definitely exists on the server and I'm confident I ...
      (Fedora)
    • Re: Floppy written in CentOS wont mount in FC3
      ... On Thu, 2005-07-14 at 16:37 +0900, Mark Sargent wrote: ... A floppy is not vfat. ... try a simple "mount /media/floppy". ... filesystem type and mount it. ...
      (Fedora)
    • Re: [linux-lvm] Reducing ext3 LV
      ... Regards ... Mark Sargent a écrit: ...
      (Fedora)