Skip to content

Instantly share code, notes, and snippets.

@shearluck
Last active April 19, 2019 17:09
Show Gist options
  • Save shearluck/8a476c2662f5c1def83ad63377745fe0 to your computer and use it in GitHub Desktop.
Save shearluck/8a476c2662f5c1def83ad63377745fe0 to your computer and use it in GitHub Desktop.
Make LVM
# Wipe existing partition
sudo wipefs -a /dev/sdX
# Create PV
sudo pvcreate /dev/sdX
# Create VG
sudo vgcreate VolGroup00 /dev/sdX
# Create LV
sudo lvcreate -L 100G VolGroup00 /dev/sdX
# Add/extend VG
sudo vgextend VolGroup00 /dev/sdN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment