Hello Going,
My main objective is to go beyond the standard file system limitations and be able to resize, move, and mirror logical volumes if necessary, as LVM allows. My Armbian systems are Odroid-M1's, 2 will be used as infrastructure services (Free IPA, etc...) and the 3rd one as a router/firewall between different VLANs (users, apps, system, storage, backup, security, DMZ, external). I am using 2 Startech USB32000SPT dual usb to Gb/s ethernet adapters. I will use KVM for virtualization as well as iSCSI volumes provided by a QNAP NAS on the storage VLAN.
The Armbian installer does not handle LVM at all, it would be nice to enhance it manually. I have tried something similar to:
pvcreate /dev/nvme0n1p2
vgcreate ROOTVG /dev/nvme0n1p2
lvcreate -n ROOTLV -L 40g ROOTVG
lvcreate -n SWAP01LV -L 10g ROOTVG
mkswap /dev/ROOTVG/SWAP01LV
sudo swapon /dev/ROOTVG/SWAP01LV
swapon --show
echo '/dev/ROOTVG/SWAP01LV none swap sw 0 0' | sudo tee -a /etc/fstab
Limitation: these commands are operating on a partition (p2) of my nvme volume rather than the full volume as the system is already installed on partition p1 and copying the system is not yet implemented (next step).
Only swap is working.
What I need: Get assistance on the way to modify armbian-install to get LVM natively from the first step and manage the entire volume rather than a partition.