User Tools

Site Tools


logical_volumes

This is an old revision of the document!



Warning: Undefined variable $state in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 130

Warning: Undefined variable $html in /usr/share/nginx/html/lib/plugins/tabinclude/helper.php on line 240

LVMs

  • Quick Command Reference

Quick Command Reference

The following command displayes in GiB

pvdisplay
To display in GB use the following command:
pvdisplay --units G
The following commands put a marker on the device which allows them to be used for volume groups
pvcreate /dev/device1
pvcreate /dev/device2
Now create the volume
vgcreate vg1 /dev/device1 /dev/device2

LVCREATE

lvcreate -L 10G name
Creating a logical volume from a specific volume group
lvcreate -L 1500 -n lvname vg1

You can also use the -l argument of the lvcreate command to specify the percentage of the remaining free space in a volume group as the size of the logical volume
lvcreate -l 100%FREE -n lvname vg1

logical_volumes.1428414737.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki