Skip to content

Instantly share code, notes, and snippets.

@zytek
Created February 29, 2016 13:27
Show Gist options
  • Save zytek/9d2892776f1f6084ec90 to your computer and use it in GitHub Desktop.
Save zytek/9d2892776f1f6084ec90 to your computer and use it in GitHub Desktop.
Create LVM PV+VG+LV volume
DISK=/dev/xvdd
VGNAME=vgjava
LVNAME=lvjava
pvcreate $DISK
vgcreate $VGNAME $DISK
lvcreate -l 100%free $VGNAME -n$LVNAME
mkfs.ext4 /dev/$VGNAME/$LVNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment