LVM

From Geitenpad
Revision as of 18:07, 24 September 2024 by Rijk (talk | contribs) (Show unused space)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Show unused space

root@paardenpad:~# pvdisplay -m
 --- Physical volume ---
 PV Name               /dev/sda1
 VG Name               paardenpad
 PV Size               <489.05 GiB / not usable <1.51 MiB
 Allocatable           yes 
 PE Size               4.00 MiB
 Total PE              125196
 Free PE               23449
 Allocated PE          101747
 PV UUID               1KpgB7-5V5O-RSNw-MRjO-RLc2-ux55-gH9tw2
  
 --- Physical Segments ---
 Physical extent 0 to 7679:
   Logical volume	/dev/paardenpad/root
   Logical extents	0 to 7679
 Physical extent 7680 to 46079:
   Logical volume	/dev/paardenpad/rijk
   Logical extents	0 to 38399
 Physical extent 46080 to 58879:
   FREE
 Physical extent 58880 to 71679:
   Logical volume	/dev/paardenpad/var
   Logical extents	0 to 12799
 Physical extent 71680 to 73586:
   Logical volume	/dev/paardenpad/swap
   Logical extents	0 to 1906
 Physical extent 73587 to 86386:
   Logical volume	/dev/paardenpad/virtual_machines
   Logical extents	0 to 12799
 Physical extent 86387 to 94066:
   Logical volume	/dev/paardenpad/var
   Logical extents	12800 to 20479
 Physical extent 94067 to 114546:
   Logical volume	/dev/paardenpad/miel-yoga
   Logical extents	0 to 20479
 Physical extent 114547 to 125195:
   FREE

Increase volume

Increase with 50% of available free space

lvextend -r -l +50%FREE /dev/mapper/paardenpad-var