fkeles

add-physical-volumes-to-logical-volume

Dec 31st, 2025
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.47 KB | Software | 0 0
  1. # list block devices and check sda7
  2. lsblk
  3. # Display information about physical volumes
  4. pvs
  5. # Initialize physical volume for use by LVM
  6. pvcreate /dev/sda7
  7. # Add physical volumes to a volume group
  8. vgextend storerhel /dev/sda7
  9. # Display information about volume groups
  10. vgs
  11. # Add space to logical volume
  12. lvextend -l +100%FREE -r /dev/mapper/storerhel-store
  13. # Display information about logical volumes
  14. lvs
  15. # report file system space usage
  16. df -h
  17. # reboot
  18. reboot
Advertisement
Add Comment
Please, Sign In to add comment