physical_volumes
Quick Command Reference
The following command displayes in GiB
pvdisplayTo display in GB use the following command:
pvdisplay --units GThe following commands put a marker on the device which allows them to be used for volume groups
pvcreate /dev/device1 pvcreate /dev/device2Now create the volume
vgcreate vg1 /dev/device1 /dev/device2
LVCREATE
lvcreate -L 10G nameCreating 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
physical_volumes.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1