I have a setup with a logical volume lvvm within a volume group vgsata. The lvvm was created with the thin -T option:
sudo lvcreate -L 925G -T vgsata/lvvm
lsblk
...
sdc 8:32 0 931,5G 0 disk
└─sdc1 8:33 0 931,5G 0 part
├─vgsata-lvvm_tmeta 252:0 0 116M 0 lvm
│ └─vgsata-lvvm 252:2 0 925G 0 lvm
└─vgsata-lvvm_tdata 252:1 0 925G 0 lvm
└─vgsata-lvvm 252:2 0 925G 0 lvm
When the system is started, I can mount the volume from the terminal with no problem:
sudo mount /dev/vgsata/lvvm /VM
But when I try to accomplish this with fstab, by adding the line
/dev/mapper/vgsata-lvvm /VM ext4 defaults 0 2
The boot process now takes 1-2 minutes longer without mounting the volume. In boot.log I find some time-out related issues:
[ TIME ] Timed out waiting for device dev-m…m.device - /dev/mapper/vgsata-lvvm.
[DEPEND] Dependency failed for systemd-fsck…m Check on /dev/mapper/vgsata-lvvm.
[DEPEND] Dependency failed for VM.mount - /VM.
[DEPEND] Dependency failed for local-fs.target - Local File Systems.
I also tried using UUIDs, but the fact aside that this doesn't seem to be the recommended way for LVM, it did not solve the problem.
So what would be the best way to mount a logical volume during boot time? Or did I make a mistake creating the thin volume?
/dev/vgsata/lvvmin /etc/fstab ? 2) Does itfsckcleanly?dev/mapper/vgsata-lvvmis just a typo (please correct that). It seems that LVM activated the LV too late. I am not aware of any possible reason for that. Are you using other LVM LVs during the boot process?