physical_volumes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
physical_volumes [2015/04/07 13:50] – created luke7858 | physical_volumes [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Quick Command Reference ==== | ||
The following command displayes in GiB | The following command displayes in GiB | ||
<sxh bash> | <sxh bash> | ||
Line 7: | Line 7: | ||
<sxh bash> | <sxh bash> | ||
pvdisplay --units G | pvdisplay --units G | ||
+ | </ | ||
+ | The following commands put a marker on the device which allows them to be used for volume groups | ||
+ | <sxh bash> | ||
+ | pvcreate / | ||
+ | pvcreate / | ||
+ | </ | ||
+ | Now create the volume | ||
+ | <sxh bash> | ||
+ | vgcreate vg1 / | ||
+ | </ | ||
+ | \\ | ||
+ | === LVCREATE === | ||
+ | <sxh bash> | ||
+ | lvcreate -L 10G name | ||
+ | </ | ||
+ | Creating a logical volume from a specific volume group | ||
+ | <sxh bash> | ||
+ | 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 | ||
+ | <sxh bash> | ||
+ | lvcreate -l 100%FREE -n lvname vg1 | ||
</ | </ |
physical_volumes.1428414631.txt.gz · Last modified: 2024/05/23 07:26 (external edit)