Hi
I’m manually migrating my containers to snap after a bungled migrate.
I’ve just imported a container but forgot to mount its “custom” storage volume in the new and proper snap location before importing so it didn’t auto import it.
I’ve now remounted the custom storage volume in what I think is the correct location:
/var/snap/lxd/common/lxd/storage-pools/default/custom/netconfigs
I’ve run the import again
/snap/bin/lxc import oxidized
but the custom volume still isn’t imported so the container won’t start
Any ideas if I can salvage it? Possibly remove the container without deleting it and re-import?
+-----------+--------------------------------------------+-------------+---------+
| TYPE | NAME | DESCRIPTION | USED BY |
+-----------+--------------------------------------------+-------------+---------+
| container | gitlab | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | gitlab/fresh-install-working | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | gitlab/fresh-installed-backup | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | gitlab/unicorn-changed-4-performance | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog/finally-working-graylog-behind-nat | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog/fresh-working-graylog | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog/fully-working-graylog | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog/fully-working-graylog2 | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | graylog/input-and-iptables-setup | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | oxidized | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | oxidized/fresh-install | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | oxidized/git-repo-crontab-working | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | oxidized/working-and-for-backup | | 1 |
+-----------+--------------------------------------------+-------------+---------+
| container | saltstack | | 1 |
+-----------+--------------------------------------------+-------------+---------+
zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 25.6G 455G 24K /tank
tank/lxd 25.6G 455G 24K none
tank/lxd/containers 24.4G 455G 24K none
tank/lxd/containers/gitlab 2.47G 455G 2.70G /var/snap/lxd/common/lxd/storage-pools/default/containers/gitlab
tank/lxd/containers/graylog 20.3G 455G 20.0G /var/snap/lxd/common/lxd/storage-pools/default/containers/graylog
tank/lxd/containers/oxidized 1.40G 455G 1.73G /var/snap/lxd/common/lxd/storage-pools/default/containers/oxidized
tank/lxd/containers/saltstack 227M 455G 837M /var/snap/lxd/common/lxd/storage-pools/default/containers/saltstack
tank/lxd/custom 17.1M 455G 24K none
tank/lxd/custom/netconfigs 17.1M 455G 17.1M /var/snap/lxd/common/lxd/storage-pools/default/custom/netconfigs
tank/lxd/deleted 776557081c4d0333618 633M 455G 633M none
tank/lxd/images 634M 455G 24K none
tank/lxd/images/db24c55f847e24dbe60fd665cf8f894ca1ace2d6419ba742f274966b94d4ca30 634M 455G 634M none
tank/lxd/snapshots 96K 455G 24K none
tank/lxd/snapshots/gitlab 24K 455G 24K none
tank/lxd/snapshots/graylog 24K 455G 24K none
tank/lxd/snapshots/oxidized 24K 455G 24K none 633M 455G 24K none
tank/lxd/deleted/images 633M 455G 24K none
tank/lxd/deleted/images/b36ec647e374da4816104a98807633a2cc387488083d3776557081c4d0333618 633M 455G 633M none
tank/lxd/images 634M 455G 24K none
tank/lxd/images/db24c55f847e24dbe60fd665cf8f894ca1ace2d6419ba742f274966b94d4ca30 634M 455G 634M none
tank/lxd/snapshots 96K 455G 24K none
tank/lxd/snapshots/gitlab 24K 455G 24K none
tank/lxd/snapshots/graylog 24K 455G 24K none
tank/lxd/snapshots/oxidized 24K 455G 24K none