Hello,
Thank you for your tutorial. I managed to get my 2 disks to appear in OMV and I can mount them individually.
However, I have two problems:
1- when I restart OMV, they don't automount
2- when I try to create a Union Filesystem in OMV, I have this error:
Code:
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v '/srv/834990ca-b113-42b7-9f48-3bda5714862d' 2>&1' with exit code '1': fuse: device not found, try 'modprobe fuse' first
Here are my config files.
/etc/pve/lxc/100.conf:
Code:
arch: amd64
cores: 4
hostname: omv.2566335.lan
memory: 2048
net0: name=eth0,bridge=vmbr0,hwaddr=A6:78:A6:00:4D:94,ip=dhcp,ip6=dhcp,type=veth
ostype: debian
rootfs: local-lvm:vm-100-disk-1,size=8G
swap: 2048
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: b 8:16 rwm
lxc.cgroup.devices.allow: b 8:17 rwm
lxc.cgroup.devices.allow: b 8:32 rwm
lxc.cgroup.devices.allow: b 8:33 rwm
lxc.autodev: 1
lxc.hook.autodev: /var/lib/lxc/100/mount-hook.sh
/var/lib/lxc/100/mount-hook.sh:
Code:
#!/bin/sh
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sdb b 8 16
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sdb1 b 8 17
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sdc b 8 32
mknod -m 777 ${LXC_ROOTFS_MOUNT}/dev/sdc1 b 8 33
Could you tell me what I did wrong or missed? Thank you.
I tried adding
Code:
lxc.mount.entry: /diskmedia1 srv/dev-sdb1 none bind,create=dir,optional 0 0
lxc.mount.entry: /diskmedia2 srv/dev-sdc1 none bind,create=dir,optional 0 0
to /etc/pve/lxc/100.conf but it didn't change anything. I don't understand this part so I probably got it wrong.