I have just upgraded one machine from Focal to Jammy and installed some faster storage. The old ZFS storage is still installed, but I can’t get lxd recover to find anything on it. Can anyone advise on how it should work, as I’m just guessing my way through the questions. I would like to recover the container and move it to the new storage.
I upgraded by clean install rather than in place upgrade.
This LXD server currently has the following storage pools:
- black (backend="lvm", source="black")
Would you like to recover another storage pool? (yes/no) [default=no]: yes
Name of the storage pool: bigdisk
Name of the storage backend (ceph, btrfs, cephfs, dir, lvm, zfs): zfs
Source of the storage pool (block device, volume group, dataset, path, ... as applicable): bigdisk/lxd
Additional storage pool configuration property (KEY=VALUE, empty when done): zfs.pool_name=bigdisk
Additional storage pool configuration property (KEY=VALUE, empty when done):
Would you like to recover another storage pool? (yes/no) [default=no]:
The recovery process will be scanning the following storage pools:
- EXISTING: "black" (backend="lvm", source="black")
- NEW: "bigdisk" (backend="zfs", source="bigdisk/lxd")
Would you like to continue with scanning for lost volumes? (yes/no) [default=yes]:
Scanning for unknown volumes...
No unknown volumes found. Nothing to do.
lxc is only aware of the new lvm storage (Black) it doesn’t seem to know anything about the zfs storage, bigdisk. lxc storage list:
+-------+--------+--------+-------------+---------+---------+
| NAME | DRIVER | SOURCE | DESCRIPTION | USED BY | STATE |
+-------+--------+--------+-------------+---------+---------+
| black | lvm | black | | 2 | CREATED |
+-------+--------+--------+-------------+---------+---------+
Yes thats right because it has not recovered anything from the ZFS pool yet.
Its rather odd that we can see a container volume in zfs list on the host, and yet lxd-recover isn’t finding it, but also isn’t erroring with a mount error (suggesting it has successfully accessed the ZFS pool).
Please can you try reboot the machine and re-running lxd-recover to rule out any issues with the snap mount namespace becoming separated from the host’s mount table? Thanks
Same result after a reboot. So I don’t know what’s going on. I’ll keep the storage for a while and come back to this in a few months when I can downgrade the machines back to 5.0 LTS. I wonder if it’ll find anything then.