I’ve tested this with Ubuntu 22.04.2(I even did a separate installation of it in case by cloned version was bad somehow) and Debian 12, both fails to mount /dev/gluster/smb01 as a THIN volume. It’s a-oh-key with it being a volume but not a thin volume. It mounts just fine after boot so I’ve done this:
ramfs ramfs 0 0 0 - /run/credentials/systemd-tmpfiles-setup.service
/dev/mapper/gluster-smb01 ext4 4.9G 24K 4.6G 1% /mnt
tmpfs tmpfs 392M 0 392M 0% /run/user/0
root@deb12:~# systemctl status domount.service
● domount.service
Loaded: loaded (/etc/systemd/system/domount.service; enabled; preset: enabled)
Active: active (exited) since Thu 2023-08-03 13:44:16 EDT; 23s ago
Process: 453 ExecStart=/etc/mountdrives.sh (code=exited, status=0/SUCCESS)
Main PID: 453 (code=exited, status=0/SUCCESS)
CPU: 24ms
Aug 03 13:44:16 deb12 systemd[1]: Starting domount.service...
Aug 03 13:44:16 deb12 systemd[1]: Finished domount.service.
root@deb12:~# cat /etc/systemd/system/domount.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/etc/mountdrives.sh
[Install]
WantedBy=multi-user.target
root@deb12:~# cat /etc/mountdrives.sh
#!/bin/bash
mount -a
If you don’t follow along, it’s basically rc.locale but as a systemd script that simply runs “mount -a” after boot and everything is fine. I guess I should include fstab. Nah, I’ll just include the LVM stuff:
/dev/mapper/gluster-test /srv/storage ext4 defaults 0 0 /dev/mapper/gluster-smb01 /mnt ext4 defaults,nofail 0 0
And LVM stuff:
root@deb12:~# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert smb01 gluster twi-aotz-- 5.00g 0.00 10.64 test gluster -wi-ao---- 5.00g root@deb12:~# vgs VG #PV #LV #SN Attr VSize VFree gluster 1 2 0 wz--n- <50.00g 39.98g root@deb12:~# pvs PV VG Fmt Attr PSize PFree /dev/sdb gluster lvm2 a-- <50.00g 39.98g
I’ve tried modifying initramfs, udev and so on but no luck. I’m busy writing Ansible stuff so I’m not going to hunt down this further but it seems like a pretty big oversight not to be able to mount thin volumes on boot.