creating_lvms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
creating_lvms [2015/11/23 12:16] – luke7858 | creating_lvms [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Physical Volume Create ==== | ||
+ | First we need to put markers on the devices that will be used to create the volume groups: | ||
+ | <sxh bash> | ||
+ | pvcreate / | ||
+ | </ | ||
+ | \\ | ||
==== Creating Volume Groups ==== | ==== Creating Volume Groups ==== | ||
- | Below is the command used to create a volume group from one or more physical volumes. | + | Now we need to create a volume group: |
<sxh bash> | <sxh bash> | ||
- | vgcreate vg1 / | + | vgcreate vg1 / |
</ | </ | ||
When physical volumes are used to create volume group, the disk space is divided into 4mb extents. This means that the logical volumes are increased and decreased by this size. | When physical volumes are used to create volume group, the disk space is divided into 4mb extents. This means that the logical volumes are increased and decreased by this size. | ||
Line 72: | Line 78: | ||
<sxh bash> | <sxh bash> | ||
vgrename vg02 my_volume_group | vgrename vg02 my_volume_group | ||
+ | </ | ||
+ | \\ | ||
+ | ==== Creating a Logical Volume ==== | ||
+ | <sxh bash> | ||
+ | lvcreate -L 20M lvnew vg1 | ||
</ | </ |
creating_lvms.1448280972.txt.gz · Last modified: 2024/05/23 07:26 (external edit)