LVM: Difference between revisions
mNo edit summary |
m →Blivet |
||
| Line 3: | Line 3: | ||
===Blivet=== | ===Blivet=== | ||
A great GUI tool for managing and creating LVs. But sadly, doesn't exist or work past Rocky 8. When creating a Volume Group BLIVET creates the Partition, Physical Volume, and Volume Group in one swift move. | A great GUI tool for managing and creating LVs. But sadly, doesn't exist or work past Rocky 8. When creating a Volume Group BLIVET creates the Partition, Physical Volume, and Volume Group in one swift move. | ||
After creating a Volume Group, move on down to the LVM section (left column under physical drives) and create the Logical Volume and format it (create Labels too). | |||
===Command Alternative=== | ===Command Alternative=== | ||
==== Show Existing LVM Setup ==== | ====Show Existing LVM Setup==== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# List Physical Volumes (PVs) | # List Physical Volumes (PVs) | ||
| Line 18: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====== Create a New LVM Structure ====== | ======Create a New LVM Structure====== | ||
====== 1. Create a Physical Volume (PV) on <code>/dev/sdb</code> ====== | ======1. Create a Physical Volume (PV) on <code>/dev/sdb</code>====== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pvcreate /dev/sdb | pvcreate /dev/sdb | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====== 2. Create a Volume Group (VG) named <code>my_vg</code> ====== | ======2. Create a Volume Group (VG) named <code>my_vg</code>====== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
vgcreate my_vg /dev/sdb | vgcreate my_vg /dev/sdb | ||
</syntaxhighlight> | </syntaxhighlight> | ||
====== 3. Create a Logical Volume (LV) named <code>my_lv</code> (10GB size) ====== | ======3. Create a Logical Volume (LV) named <code>my_lv</code> (10GB size)====== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
lvcreate -L 10G -n my_lv my_vg | lvcreate -L 10G -n my_lv my_vg | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===== Show the Created LVM Components ===== | =====Show the Created LVM Components===== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
pvs # Show Physical Volumes | pvs # Show Physical Volumes | ||