pvs -v # physical volumes list
vgs -v # volume groups list
lvs -v # logical volumes list
https://unix.stackexchange.com/questions/306157/resize-root-lvm-partition https://blog.shadypixel.com/how-to-shrink-an-lvm-volume-safely/
mkpart ESP fat32 1MiB 513MiB parted /dev/sdX set 1 boot on
# check the file system
e2fsck -f /dev/s93079-vg/root
# resize the volume
resize2fs /dev/s93079-vg/root 90G
# reduce the logical volume
lvreduce -L 100G /dev/s93079-vg/root
The disk has to be partitioned at least to two partitions - UEFI and OS. The UEFI must be outside of the LVM partition.
Once partitioning is done, create the
pvcreate /dev/sdx2
vgcreate ubuntu-vg /dev/sdx2
lvcreate -L 2G -n new_logical_volume new_vol_group
lvremove /dev/ubuntu-vg/homevol
vgremove ubuntu-vg
pvremove /dev/sdx2
lvcreate -s -L 20M -n volume1_snapshot /dev/volume_group/volume1
lvconvert –merge /dev/volume_group/volume1_snapshot
https://computingforgeeks.com/install-arch-linux-with-lvm-on-uefi-system/