User Tools

Site Tools


physical_volumes

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
physical_volumes [2015/11/23 12:31] luke7858physical_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
 +</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> </sxh>
 \\ \\
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
 </sxh> </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 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
 </sxh> </sxh>
physical_volumes.1448281897.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