[GUIDE] How to reduce or grow your Logical Volumes (LVM management)

  • I made some bad choices when defining the sizes of my Logical Volumes while installing OMV. After backing up about 3.5 TB of data I found I had to increase one LV and decrease another.


    I found this how-to that explains how to do it: http://www.tecmint.com/extend-and-reduce-lvms-in-linux/


    I did not quite follow the steps but used this how-to as a guide to resize. Worked like a charm :D


    I must admit I used the OMV web interface to remount my resized shares :rolleyes:


    If your a noob (like me) this guide will surely help you.


    HTH


    Greetz


    Sjonnie

    Server 1: Tranquil SQA-5H modded - Ubuntu 20.04.03 with webmin
    Server 2: Ugreen DXP2800 with OMV (and Ugos)
    Server 3: Synology DS215+
    Server 4: Synology DS211

    Server 5: Synology DS115


    ...and some client devices to justify the servers 8o

    • Official Post

    Just a couple of notes...


    1 - When using lvextend, use the -r flag to automatically resize your filesystem.


    2 - Reducing an LV works fine but be very careful when shrinking a filesystem. I have seen it go wrong many times.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.6 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • You are absolutely right about shrinking the filesystem. Thanks for the warning!


    I did not know about the -r option in lvextend. Good to know when I have to resize again in the future :thumbup:


    Greetz,


    Sjonnie

    Server 1: Tranquil SQA-5H modded - Ubuntu 20.04.03 with webmin
    Server 2: Ugreen DXP2800 with OMV (and Ugos)
    Server 3: Synology DS215+
    Server 4: Synology DS211

    Server 5: Synology DS115


    ...and some client devices to justify the servers 8o

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!