LVM and OSMC (PI 2)

Hello.

I’d a LVM Volume connected to my Raspberry Pi 2 with the OSMC Version of June. For my Media I’ve created a LVM with 4 harddrives which are connected over the USB Ports of the Rasperry. The LVM get startet with a script
`#!/bin/bash
sleep 20
sudo vgchange -a y
sudo mkdir /media/harddrive
sleep 20
sudo mount -t ext4 /dev/volg1/logv1 /media/harddrive

exit 0
`

and the script will start with the sudo crontab @reboot.

So my problem is, that sometimes the lvm don’t get startet and the harddrives are not connectet to my osmc. the most of the time it works but sometimes it don’t works. And I don’t know why :frowning:
When I take a look at the journalctl i can see, that osmc starts the script but the harddrives are not connected to osmc.

Is there any way to start the LVM automaticlly at the boot process without an additional script?
Or does somebody have an idea, why my harddrves are sometimes not connected to my osmc?

Thanks for your help :slight_smile:

An entry in /etc/fstab doesn’t work ?