Skip to content

Instantly share code, notes, and snippets.

@alvarow
Last active August 19, 2018 15:42
Show Gist options
  • Save alvarow/547bd972584d6caad646 to your computer and use it in GitHub Desktop.
Save alvarow/547bd972584d6caad646 to your computer and use it in GitHub Desktop.
Linux LVM Cheat sheet
# creates an LVM under a single device
dd if=/dev/zero of=/dev/sdb bs=512 count=64
pvcreate /dev/sdb
pvs
vgcreate timeline /dev/sdb
lvcreate -n app -l 100%FREE timeline
mkfs.xfs -L APP /dev/timeline/app
echo '/dev/timeline/app /app xfs noatime 1 2' >> /etc/fstab
mkdir -p /app && mount /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment