physical_volumes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
physical_volumes [2015/11/23 12:31] – luke7858 | physical_volumes [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
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 / | ||
</ | </ | ||
\\ | \\ | ||
Line 15: | Line 24: | ||
Creating a logical volume from a specific volume group | Creating a logical volume from a specific volume group | ||
<sxh bash> | <sxh bash> | ||
- | lvcreate -L 1500 -n testlv testvg | + | 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 | 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> | <sxh bash> | ||
- | lvcreate -l 100%FREE -n yourlv testvg | + | lvcreate -l 100%FREE -n lvname vg1 |
</ | </ |
physical_volumes.1448281897.txt.gz · Last modified: 2024/05/23 07:26 (external edit)