Last active
October 14, 2015 14:29
-
-
Save jonathanelbailey/426d210744588aa81613 to your computer and use it in GitHub Desktop.
A script that creates an LVM and mounts it.
This file contains hidden or 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
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