Skip to content

Instantly share code, notes, and snippets.

@jonathanelbailey
Last active October 14, 2015 14:29
Show Gist options
  • Save jonathanelbailey/426d210744588aa81613 to your computer and use it in GitHub Desktop.
Save jonathanelbailey/426d210744588aa81613 to your computer and use it in GitHub Desktop.
A script that creates an LVM and mounts it.
PhysVol = "$1"
VolSize = "$2"
MountDir = "$3"
pvcreate $PhysVol
pvdisplay $PhysVol
vgcreate volgrp1 $PhysVol
lvcreate -L $VolSize -n LogVol1
lvdisplay /dev/VolGrp1/LogVol1
mount /dev/VolGrp1/LogVol1 $MountDir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment