Lxd recover fails "pool name mismatch in its backup"

Hi,

I re-installed my operating system but didn’t properly backup lxd. I’m trying to run lxd recover after snapshot and zfs sending but I get this error:

Error: Failed validation request: Failed checking volumes on pool “default”: Instance “mycontainer” in project “default” has pool name mismatch in its backup file (“containers” doesn’t match’s pool’s “default”)

Reviewing https://discuss.linuxcontainers.org/t/lxd-recover-not-working-on-migrated-zpool/13056 talks about updating the backup.yaml file however I don’t have one. Is there a way I could recreate one or how can I resolve this issue?

Steps taken:
snapshot -r cpool/containers/mycontainer@migrate
zfs send cpool/containers/mycontainer@migrate | zfs receive -F cpool/lxd/containers/mycontainer
zfs destroy cpool/lxd/containers/mycontainer@migrate
lxd recover

Error: Failed validation request: Failed checking volumes on pool “default”: Instance “mycontainer” in project “default” has pool name mismatch in its backup file (“containers” doesn’t match’s pool’s “default”)

Thank you,

Craig

You will need to mount each instance’s ZFS dataset manually, and then modify the backup.yaml inside it to reflect the change of pool name from “containers” to “default”.

1 Like