I'm very new to lvm, and have simultaneously understood how Mac OS container disks work.
I'm very happy with Mac OS container disk semantics - I don't have to think how much space to allocate. I just create whatever volumes I want, and space gets magically allocated if I add files to a particular volume.
I assumed lvm would be the same but after creating a volume group vg1 that fills 100% of my disk, and creating a logical volume /dev/vg1/photos that is permitted to use 100% of the volume group, I cannot create a second disk /dev/vg1/videos that similarly has the potential to use the entire physical volume for its own contents (if I don't put anything in the /dev/vg1/photos logical volume).
sudo vgcreate vg1 /dev/sdf1
sudo lvcreate -n photos -l 2.73T vg1
sudo lvcreate -l 100%FREE -n photos vg1
mkdir /mnt/photos
sudo mkfs.ext4 /dev/vg1/photos
sudo mount /dev/vg1/photos /mnt/photos
Error - no unused space in volume group vg1
sudo lvcreate -l 100%FREE -n videos vg1
Am I correct in saying lvm's semantics are not identical to Mac OS volumes in this respect? In LVM, two logical volumes cannot automatically grab space from the same volume group without explicit, exclusive pre-allocation?