Skip to content

Instantly share code, notes, and snippets.

@afriza
Created February 3, 2024 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afriza/aef35e8846dded3b2cd5cab7508498a9 to your computer and use it in GitHub Desktop.
Save afriza/aef35e8846dded3b2cd5cab7508498a9 to your computer and use it in GitHub Desktop.
Extend LVM Logical Volume / Volume Group
  1. Check status
    vgdisplay
    lvdisplay
    
  2. Extend Logical Volume
    lvextend -l +100%FREE /dev/VG_NAME/LV_NAME
    
  3. Resize Filesystem
    resize2fs /dev/VG_NAME/LV_NAME
    
  4. Check status
    lvdisplay
    df -h
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment