Last active
August 19, 2018 15:42
-
-
Save alvarow/547bd972584d6caad646 to your computer and use it in GitHub Desktop.
Linux LVM Cheat sheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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