metal-stack / metal-hammer

metal-hammer is used to boot bare metal servers with ipxe and the metal-stack kernel
GNU Affero General Public License v3.0
41 stars 6 forks source link

Allow expanding LV to rest of available space in file system layout #60

Closed Gerrit91 closed 3 years ago

majst01 commented 3 years ago

This must be supported in the metal-hammer

majst01 commented 3 years ago

From the lvcreate manpage:

      -l|--extents Number[PERCENT]
              Specifies the size of the new LV in logical extents.  The --size and --extents options are alternate methods of specifying size.  The total number of physical extents used will be greater when redundant data is needed for RAID levels.  An alternate
              syntax allows the size to be determined indirectly as a percentage of the size of a related VG, LV, or set of PVs. The suffix %VG denotes the total size of the VG, the suffix %FREE the remaining free space in the VG, and the suffix %PVS the free space
              in the specified PVs.  For a snapshot, the size can be expressed as a percentage of the total size of the origin LV with the suffix %ORIGIN (100%ORIGIN provides space for the whole origin).  When expressed as a percentage, the size defines an upper
              limit for the number of logical extents in the new LV. The precise number of logical extents in the new LV is not determined until the command has completed.