OpenMediaVault 5 Advanced Configuration (six) Configuration LVM Logical Volume Manager

Foreword

If based on a hard disk (or a RAID disk array) established file system storage space that will be used up, we are unable to expansion in the file system. Once to expansion, it is necessary to migrate all data, a waste of time and likely to cause data loss.

For more convenient and safe expansion to a file system or volume reduction (not just add or remove the hard disk), we need to use NAS provides LVM logical volumes this function.

LVM logical volumes to establish the basis for a virtual hard disk, it can easily achieve capacity expansion or contraction, instead of the original data transfer heavily.

LVM plug-in installation

OMV 5 to configuration management of LVM through official plug-ins.

More plug-in installation methods, see: Raspberry Pi configuration OMV to build a NAS (two) Configuration 5 OMV "optimized U disk / TF card system disk" plugin download section.

  • Click the sidebar "System -> plug-in" to enter the plugin admin page and search for "lvm".

  • Select openmediavault-lvm plugin, click "Install" and secondary confirmation.

  • Wait until the installation is complete, click "Close" to refresh the page.

  • The next time you search for "lvm", you can see the plug-in is enabled.

Understand LVM

  • After installing the plug-in and enable LVM, click on the sidebar "Memory -> Logical Volume Management (LVM)", enter the logical volume management page.

  • Interpretation of the term.

    • "Physical volumes": physical volume.

      Here the physical volume is added manually, the hard disk to be used in the LVM.

    • "Volume groups": the volume group.

      A plurality of physical volumes volume group corresponds to a volume group or a storage pool is a large hard drive.

    • "Logical volumes": logical volume.

      Carved out from the storage pool storage space as a virtual hard disk, each virtual disk will be used as a real hard disk.

      Similar to a real hard disk partitions, each partition is treated as a hard disk. It is not the same for each of the logical volume can be changed.

Configuring LVM

initialization

  • LVM initialized to be added to the hard disk Physical volumes (physical volumes) was added.

    Pay attention to back up important files.

    • Click the sidebar "Memory -> Disk" to enter the disk management page.

    • Select the hard disk to be initialized, so that it is highlighted, click on the "erased" and secondary confirmation.

    • Select "fast", wait for completion. It can be.

Adding Physical volumes Logical Volume

  • Click the sidebar "Memory -> Logical Volume Management (LVM)", enter the logical volume management page.

  • Adding hard to Physical volumes (physical volumes)

    • Click on "Physical volumes -> Add."

    • Select the hard drive you want to add, click "Save" and secondary confirmation.

    After the addition, you can see:

Add Volume groups Volume Group

  • Add Physical volumes (physical volumes) to Volume groups (volume group).

    • Click on "Volume groups -> Add."

    • Add a volume group.

      • "Name": English Self.

      • "Device": select the physical volumes added to volume group.

        We added a physical volume, leaving an LVM physical volume for subsequent expansion presentations.

    • Click "Save" and secondary confirmation.

    After the addition, you can see:

Add Logical volumes Logical Volume

  • Creating Logical volumes (logical volume (virtual hard disk)).

    • Click on "Logical volumes -> Add."

    • Adding logical volumes.

      • "Name": English Self.
      • "Device": Select this to add to the volume group logical volume.
      • "Size": the slider, set the logical volume size.

    • Note: A volume group can create multiple logical volumes.

    • Click "Save" and secondary confirmation.

    After the addition, you can see:

  • Now, we have created a virtual hard disk capacity of 1G.

    For this virtual hard disk should be treated as a separate hard drive to use, but also for formatting, file system is created and other steps.

RAID disk arrays and LVM

As a direct added to LVM physical hard disk does not implement the security of data protection, we can combine OpenMediaVault 5 Advanced Configuration (five) RAID disk arrays and LVM logical volume manager combination to improve data security and convenience.

When used herein the combination of both, the RAID disk array as a physical hard disk is added to the physical volumes, other steps can supra.

Next: LVM volume reduction and expansion

If the LVM configuration of a logical volume capacity will run out of space, how expansion?

If a logical configuration of space LVM configuration too, wanted for other purposes, how volume reduction?

See: OpenMediaVault 5 Advanced Configuration (seven) LVM volume expansion or contraction .

Guess you like

Origin www.cnblogs.com/Yogile/p/12631543.html