LVM
| Creating LVM | |
|---|---|
- create pvs
- check if the physical volumes are successfully created
- create vg
- check if the volume group got created successfully
- create a thin pool LV (this might show a warning regarding the maximum size, which is fine)
- verify whether everything worked correctly
Removing LVM (e.g. before OS reinstall)
If the installer refuses to proceed because it detects existing LVM on the disks, boot from a live ISO and run:
# 1. Deactivate all logical volumes
sudo vgchange -an
# 2. Remove all LV, VG, PV
sudo lvremove -f $(sudo lvs --noheadings -o lv_path)
sudo vgremove -f $(sudo vgs --noheadings -o vg_name)
sudo pvremove -f $(sudo pvs --noheadings -o pv_name)
# 3. Wipe leftover metadata from disks (substitute your disks)
sudo wipefs -a /dev/sdX
!!! warning
Before wipefs, run lsblk to make sure you don't wipe the live USB. After this, restart the installer.