Linux/LVM: Difference between revisions
< Linux
Line 39: | Line 39: | ||
* /dev/$vg/$lv | * /dev/$vg/$lv | ||
* snapshots | |||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
lvcreate --size 100M --snapshot --name <name> /dev/<group>/<volume> (size = max changed size) | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
Revision as of 19:56, 1 November 2012
Installation
apt-get install lvm2 apt-get install system-config-lvm
Volumes
- physical volume - pv
pvs pvdisplay pvcreate /dev/<Partition>
- volume group - vg
vgs vgdisplay vgcreate <group> /dev/<Partition1> /dev/<Partition2>
- logical volume - lv
lvs lvdisplay lvcreate -L 2G -n <volume> <group> lvextend -L 5G /dev/<group>/<volume>
- /dev/$vg/$lv
- snapshots
lvcreate --size 100M --snapshot --name <name> /dev/<group>/<volume> (size = max changed size)