was interested in containers a long time ago, have a zfs pool setup “/var/lib/lxd/storage-pools/tank/containers”
has all all the relevant containers
but “lxc list” comes up empty
is there any way to get them back up and running?
was interested in containers a long time ago, have a zfs pool setup “/var/lib/lxd/storage-pools/tank/containers”
has all all the relevant containers
but “lxc list” comes up empty
is there any way to get them back up and running?
Can you show:
Maybe you have both installed and need to run migration.
saibal@cs40Docker:~$ dpkg -l | grep lxd
ii lxd 3.0.3-0ubuntu1~18.04.1 amd64 Container hypervisor based on LXC - daemon
ii lxd-client 3.0.3-0ubuntu1~18.04.1 amd64 Container hypervisor based on LXC - client
saibal@cs40Docker:~$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.46.1 9993 latest/stable canonical✓ core
core18 20200724 1885 latest/stable canonical✓ base
lxd 4.6 17320 latest/stable canonical✓ -
root@cs40Docker:/var/lib/lxd/storage-pools/tank/containers# ls
cs41Samba cs42Gateway cs47VPN cs48DNS cs49Scrapy cs50Etherium
The below is a new pool, but still wondering how to get the old ones (above) up and running
root@cs40Docker:/var/lib/lxd/storage-pools/tankmk2/containers# ls
bionic
saibal@cs40Docker:/var/lib/lxd$ lxc list
±-------±--------±-----±-----±-----------±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±-------±--------±-----±-----±-----------±----------+
| bionic | STOPPED | | | PERSISTENT | 0 |
±-------±--------±-----±-----±-----------±----------+
Ok, cool, so you do have both.
Can you show:
So we can see which side the data is at and then move it if needed.
saibal@cs40Docker:~$ /usr/bin/lxc list
±-------±--------±-----±-----±-----------±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±-------±--------±-----±-----±-----------±----------+
| bionic | STOPPED | | | PERSISTENT | 0 |
±-------±--------±-----±-----±-----------±----------+
saibal@cs40Docker:~$ /snap/bin/lxc list
±-----±------±-----±-----±-----±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±-----±------±-----±-----±-----±----------+
Thankyou for your persistence its extremely kind
Ok, cool, so you need to run lxd.migrate
which will move things over to the snap and clean up that previous install for you.