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

    • OMV 3.x
    • core
    • [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: 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: OMV Erasmus :thumbsup:
      Server 2: Ubuntu 16.04 with webmin
      Server 3: Synology DS211
      Server 4: Synology DS115
      ...and some client devices to justify the servers 8o
    • 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 4.0.14 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.1
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      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: OMV Erasmus :thumbsup:
      Server 2: Ubuntu 16.04 with webmin
      Server 3: Synology DS211
      Server 4: Synology DS115
      ...and some client devices to justify the servers 8o