User Tools

Site Tools


physical_volumes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
physical_volumes [2015/04/07 13:50] – created luke7858physical_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
 +</sxh>
 +The following commands put a marker on the device which allows them to be used for volume groups
 +<sxh bash>
 +pvcreate /dev/device1
 +pvcreate /dev/device2
 +</sxh>
 +Now create the volume
 +<sxh bash>
 +vgcreate vg1 /dev/device1 /dev/device2
 +</sxh>
 +\\
 +=== LVCREATE ===
 +<sxh bash>
 +lvcreate -L 10G name
 +</sxh>
 +Creating a logical volume from a specific volume group
 +<sxh bash>
 +lvcreate -L 1500 -n lvname vg1
 +</sxh>
 +\\
 +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
 </sxh> </sxh>
physical_volumes.1428414631.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