Skip to content

Instantly share code, notes, and snippets.

@nixmaniack
Created December 16, 2014 11:08
Show Gist options
  • Save nixmaniack/04aa262de1a8bb433d2d to your computer and use it in GitHub Desktop.
Save nixmaniack/04aa262de1a8bb433d2d to your computer and use it in GitHub Desktop.
Extend LVM Volume

Extending Logical Volume in LVM

  1. Add volume
  2. fdisk /dev/volume
  3. Make primary partition with type 8e(lvm)
    • # echo -e “n\np\n1\n\n\nt\n8e\nw\n” | fdisk /dev/volume
  4. pvcreate /dev/volume1
  5. vgextend volumegroupname /dev/volume1
  6. lvextend -l +100%FREE /full/vg/lv/path
  7. resize2fs /full/vg/lv/path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment