Created
September 24, 2018 16:55
-
-
Save luohao-brian/b051edcbd0e9c7aec52168a2462c2d87 to your computer and use it in GitHub Desktop.
LVM examples
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
# create a pv | |
pvcreate /dev/sdb | |
# create a data vg | |
vgcreate data /dev/sdb | |
# create a thin pool | |
lvcreate -L 200G --type thin-pool data/thinpool | |
# extend thin pool to 300G | |
lvextend -L +100G data/thinpool | |
# Create a thin lv | |
lvcreate -V 20G -T thinpool data/thinpool -n lv001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment