Difference between revisions of "LVM"
From Alessandro's Wiki
(Created page with ' = fast command line = pvdisplay lvremove lvdisplay') |
|||
Line 3: | Line 3: | ||
= | = from command line = | ||
pvdisplay | pvdisplay | ||
Line 10: | Line 10: | ||
lvdisplay | lvdisplay | ||
== see PV == | |||
pvs | |||
PV VG Fmt Attr PSize PFree | |||
/dev/sda vg_1 lvm2 a-- 930.82g 0 | |||
/dev/sdb vg_1 lvm2 a-- 931.31g 931.31g | |||
== add a disk to a PV == | |||
vgextend vg_1 /dev/sdb | |||
Volume group "vg_1" successfully extended | |||
== delete a PV == | |||
vgremove vg_1 | |||
Volume group "vg_1" successfully removed | |||
== create a mirror == | |||
lvcreate -L 931g vg_1 -m 1 vg_1 |
Revision as of 17:06, 8 July 2013
from command line
pvdisplay
lvremove
lvdisplay
see PV
pvs PV VG Fmt Attr PSize PFree /dev/sda vg_1 lvm2 a-- 930.82g 0 /dev/sdb vg_1 lvm2 a-- 931.31g 931.31g
add a disk to a PV
vgextend vg_1 /dev/sdb Volume group "vg_1" successfully extended
delete a PV
vgremove vg_1 Volume group "vg_1" successfully removed
create a mirror
lvcreate -L 931g vg_1 -m 1 vg_1