How to Extend/Reduce LVM’s (Logical Volume Management) in Linux – Part II

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

65 Responses

  1. krishna says:


    I have 2 questions any one please give me a answer:

    1. what is the difference between L and l (small) ?
    2. what is the difference between LVresize and LV extend ?

    • Bobin Lonston says:


      1. what is the difference between L and l (small)?

      L = Can be used while MB, GB or TB in size
      l = Can be used while resizing or reducing with Physical extent in size (PE), (The default extent size of a single PE is 4 MB).

      2. what is the difference between LVresize and LV extent?

      lvresize = Take an example resizing from 10 GB to 20 GB using existing PEs from the Volume group.
      lvextend = Only used while adding a new device (/dev/sdc or /dev/sdd or whatever ) to existing volume group.

      Thanks & Regards,
      Bobin Lonston

  2. Hans Linkels says:

    I tried reducing the LV on a test system. Worked like breeze. To calculate the PE’s to remove I converted everything to real bytes. That is, PE size of 4MiB = 4 * 1024 * 1024. And the number of GB to remove was 1Gib = 1024 * 1024 * 2014 bytes.

    After resizefs, the space needed by the file system is specified in 4kiB blocks, so 4096 bytes each. If you want to calculate accurately without losing a GB here and there AND you want to be sure not to reduce the LV beyond the size of the file system, I’d recommend this.

  3. Spas says:

    I think the command `resize2fs /dev/vg_tecmint_extra/tecmint_reduce_test 10GB` should be `resize2fs /dev/vg_tecmint_extra/tecmint_reduce_test 10G` –> 10GB produces: invalid new size.

  4. Pratik says:

    We can use lvextend and resize2fs same time with lvextend -r command.

    From the man page:

    -r|–resizefs – Resize underlying filesystem together with the LV using fsadm(8).

  5. sagar says:

    Thanks for sharing the article…Really helpful.

  6. Amiya says:

    Awesome article! Straight to the point.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.