Skip to content

Instantly share code, notes, and snippets.

@johnwalley
Last active March 6, 2019 10:32
Show Gist options
  • Save johnwalley/ab3d6b52fbfe7475e31c358a03e5babb to your computer and use it in GitHub Desktop.
Save johnwalley/ab3d6b52fbfe7475e31c358a03e5babb to your computer and use it in GitHub Desktop.
How to set up LVM partitions

Based on: https://unix.stackexchange.com/questions/339011/how-do-i-mount-an-lvm-partition

sudo apt-get install lvm2 #This step may or may not be required. 
sudo pvscan #Use this to verify your LVM partition(s) is/are detected. 
sudo vgscan #Scans for LVM Volume Group(s)
sudo vgchange -ay #Activates LVM Volume Group(s)
sudo lvscan #Scans for available Logical Volumes
sudo mount /dev/YourVolGroup00/YourLogVol00 /YourMountPoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment