Linux/LVM: Difference between revisions
< Linux
Line 14: | Line 14: | ||
pvs | pvs | ||
pvdisplay | pvdisplay | ||
pvcreate /dev/<Partition> | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
Line 22: | Line 23: | ||
vgs | vgs | ||
vgdisplay | vgdisplay | ||
vgcreate <group> /dev/<Partition1> /dev/<Partition2> | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
Line 30: | Line 32: | ||
lvs | lvs | ||
lvdisplay | lvdisplay | ||
lvcreate -L 2G -n <volume> <group> | |||
lvextend -L 5G /dev/<group>/<volume> | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> |
Revision as of 19:53, 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