lvm-story Source: https://foxhop.net/f3d70a5f-2f95-11f1-8b49-e86a64d24d78/lvm-story Snapshot: 2026-10-16T05:19:04Z Generator: Remarkbox d747782 This is a thread snapshot. The living document lives at the source URI above — it may have been edited, extended, or replied-to since. [Scan for living source] once upon a time we randomly needed to add two new separate lvm logical volumes to a server 1. verify which devices we will work with sudo disk -l We need to create physical volumes on both of these buggers: - /dev/sdb - /dev/sdc 2. create a physical volume on the 20G and 400G LUNs sudo lvm pvcreate /dev/sdb sudo lvm pvcreate /dev/sdc 3. create a volume group on the 20G and 400G physical volumes sudo lvm vgcreate vg1 /dev/sdb sudo lvm vgcreate vg2 /dev/sdc 4. create a logical volume on the new volume groups sudo lvm lvcreate vg1 -l 100%VG --name app sudo lvm lvcreate vg2 -l 100%VG --name data 5. format each logical volume with ext4 filesystem sudo mkfs --type=ext4 /dev/mapper/vg1-app sudo mkfs --type=ext4 /dev/mapper/vg2-data 6. create mount points sudo mkdir /app sudo mkdir /data 7. configure mount points in /etc/fstab /dev/mapper/vg1-app /app ext4 errors=remount-ro 0 1 /dev/mapper/vg2-data /data ext4 errors=remount-ro 0 1 8. verify fstab sudo mount -a 9. verify new filesystems df -hal ------------------------------------------------------------------------ Source: https://foxhop.net/f3d70a5f-2f95-11f1-8b49-e86a64d24d78/lvm-story Snapshot: 2026-10-16T05:19:04Z Generator: Remarkbox d747782