I moved my lxc container OpenHAB from one host to another.
Host 1: Running Ubuntu, ZFS formatted
Host 2: Running Ubuntu, Not ZFS formatted, but using ZFS for lxd.
After migrating as described here under #method 2, I am getting this error:
Error: Failed preparing container for start: Failed to run: zfs mount rpool/lxd/containers/OpenHAB: cannot mount ‘rpool/lxd/containers/OpenHAB’: no mountpoint set
zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bpool 1,88G 1,05G 840M - - 5% 56% 1.00x DEGRADED -
rpool 920G 662G 258G - - 12% 71% 1.00x DEGRADED -
sudo lxc profile show default
[sudo] Passwort für simon:
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
- /1.0/instances/iobroker
- /1.0/instances/iobroker2
- /1.0/instances/asterisk
- /1.0/instances/reverse-proxy
- /1.0/instances/nextcloud
- /1.0/instances/OpenHAB
In any case, you can likely use zfs list -o name,mountpoint to spot the issue with that dataset and then fix it with zfs set DATASET mountpoint=NEW-VALUE updating it to match the pattern for your other instances.