LVM: Difference between revisions
Created page with "...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 === 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 ===" |
mNo edit summary |
||
| Line 5: | Line 5: | ||
=== Command Alternative === | === Command Alternative === | ||
<pre> | |||
# List Physical Volumes (PVs) | |||
pvs | |||
# List Volume Groups (VGs) | |||
vgs | |||
# List Logical Volumes (LVs) | |||
lvs | |||
</pre> | |||
--- | |||
== Create a New LVM Structure == | |||
=== 1. Create a Physical Volume (PV) on <code>/dev/sdb</code> === | |||
<pre> | |||
pvcreate /dev/sdb | |||
</pre> | |||
=== 2. Create a Volume Group (VG) named <code>my_vg</code> === | |||
<pre> | |||
vgcreate my_vg /dev/sdb | |||
</pre> | |||
=== 3. Create a Logical Volume (LV) named <code>my_lv</code> (10GB size) === | |||
<pre> | |||
lvcreate -L 10G -n my_lv my_vg | |||
</pre> | |||
--- | |||
== Show the Created LVM Components == | |||
<pre> | |||
pvs # Show Physical Volumes | |||
vgs # Show Volume Groups | |||
lvs # Show Logical Volumes | |||
</pre> | |||