LVM: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
...gonna take a shortcut on this and as a foundation, just paste in ChatGPT generated text instead of retyping it, then add stuff in and modify it. | ...gonna take a shortcut on this and as a foundation, just paste in ChatGPT generated text instead of retyping it, then add stuff in and modify it. | ||
=== 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. | ||
=== Command Alternative === | ===Command Alternative=== | ||
<pre> | <pre> | ||
| Line 17: | Line 17: | ||
</pre> | </pre> | ||
<br /> | |||
== 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>==== | ||
<pre> | <pre> | ||
pvcreate /dev/sdb | pvcreate /dev/sdb | ||
</pre> | </pre> | ||
=== 2. Create a Volume Group (VG) named <code>my_vg</code> === | ===2. Create a Volume Group (VG) named <code>my_vg</code>=== | ||
<pre> | <pre> | ||
vgcreate my_vg /dev/sdb | vgcreate my_vg /dev/sdb | ||
</pre> | </pre> | ||
=== 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)=== | ||
<pre> | <pre> | ||
lvcreate -L 10G -n my_lv my_vg | lvcreate -L 10G -n my_lv my_vg | ||
</pre> | </pre> | ||
<br /> | |||
== Show the Created LVM Components == | ==Show the Created LVM Components== | ||
<pre> | <pre> | ||
pvs # Show Physical Volumes | pvs # Show Physical Volumes | ||