Skip to content

Instantly share code, notes, and snippets.

@hihellobolke
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save hihellobolke/1e36434ff2cd08c4c80f to your computer and use it in GitHub Desktop.

Select an option

Save hihellobolke/1e36434ff2cd08c4c80f to your computer and use it in GitHub Desktop.
# : Creating two VGs
# lvm
lvm> vgcreate rootvg /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1
Volume group "rootvg" successfully created
lvm> vgcreate datavg /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sde2
Volume group "datavg" successfully created
# : Create root volume in thin pool 'rootpool'
# lvm
lvm> lvcreate -T rootvg/rootpool -l 100%VG -V10G -n rootvol
Logical volume “rootpool” created
Logical volume "rootvol” created
lvm> lvcreate -T rootvg/rootpool -V10G -n varvol
Logical volume "varvol” created
lvm> lvs
LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
rootpool rootvg twi-a-tz-- 19.95g 0.00
rootvol rootvg Vwi-a-tz-- 10.00g rootpool 0.00
varvol rootvg Vwi-a-tz-- 10.00g rootpool 0.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment