Skip to content

Instantly share code, notes, and snippets.

@nu11secur1ty
Last active April 12, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nu11secur1ty/f4acf39bff2a7250d1250de9f5336ab8 to your computer and use it in GitHub Desktop.
Save nu11secur1ty/f4acf39bff2a7250d1250de9f5336ab8 to your computer and use it in GitHub Desktop.

#To create the logical volume, we will use:

lvcreate -L 3G -n lvstuff vgpool

The -L command designates the size of the logical volume, in this case 3 GB, and the -n command names the volume. Vgpool is referenced so that the lvcreate command knows what volume to get the space from.

#Format and Mount the Logical Volume One final step is to format the new logical volume with a file system. If you want help choosing a Linux file system, read our how to that can help you choose the best file system for your needs.

mkfs -t ext3 /dev/vgpool/lvstuff

#Create a mount point and then mount the volume somewhere you can use it.

mkdir /mnt/stuff
mount -t ext3 /dev/vgpool/lvstuff /mnt/stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment