<div dir="ltr"><div>I cloned the github repository and found docs/database.md</div><div><br></div><div>There's a patch.global.sql that did the trick :-)</div><br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 21, 2020 at 8:30 PM Norberto Bensa <<a href="mailto:nbensa@gmail.com">nbensa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>$ snap list<br>lxd 4.8 18324 latest/stable canonical✓ -<br><div></div><div><br></div><div>I moved my zfs pool to a new disk and then renamed the pool. <br></div><div>Old name was zroot, new name: rz1-venkman-nvme. <br></div><div>The pool was migrated using zfs send|zfs receive. <br></div><div>While doing the migration, both pools were on the same machine. <br></div><div>The procedure was done with all the services down.</div><div></div><div><br></div><div>lxc shows:</div><br>$ lxc list<br>Error: Get "<a href="http://unix.socket/1.0" target="_blank">http://unix.socket/1.0</a>": EOF<br><br>$ lxd<br>Error: This must be run as root<br><br>$ sudo lxd<br>[sudo] password for zoolook:<br>WARN[11-21|19:23:17] - Couldn't find the CGroup blkio.weight, disk priority will be ignored<br>EROR[11-21|19:23:26] Failed to start the daemon: Failed initializing storage pool "default": Failed to run: zpool import zroot: cannot import 'zroot': no such pool available<br>Error: Failed initializing storage pool "default": Failed to run: zpool import zroot: cannot import 'zroot': no such pool available<br><br>I figured I could run snap stop lxd, update the database at /var/snap/lxd/common/lxd/database/global/db.bin<br><br>I updated the value of the table storage_pools_config to the correct volume, but the problem persist, but it is different<br><br>$ lxc list<br>Error: Get "<a href="http://unix.socket/1.0" target="_blank">http://unix.socket/1.0</a>": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused<br><br>$ sudo lxd<br>[sudo] password for zoolook: <br>WARN[11-21|20:18:14] - Couldn't find the CGroup blkio.weight, disk priority will be ignored <br>EROR[11-21|20:18:15] Failed to start the daemon: Failed to start dqlite server: raft_start(): io: load closed segment 0000000000078237-0000000000078237: entries batch 2 starting at byte 48: entries count in preamb<br>le is zero <br>Error: Failed to start dqlite server: raft_start(): io: load closed segment 0000000000078237-0000000000078237: entries batch 2 starting at byte 48: entries count in preamble is zero<br><br>Also. I don't know if this is related but there's at least two files I cannot read:<br><br># cd /var/snap/lxd/common/ns<br># ls -l<br>total 0<br>-r--r--r-- 1 root root 0 nov 21 19:48 mntns<br>-r--r--r-- 1 root root 0 nov 21 19:48 shmounts<br><br># cat mntns <br>cat: mntns: Invalid argument<br><br># cat shmounts <br>cat: shmounts: Invalid argument<br><div><br></div><div><br></div><div>Thanks for any help</div><div>Norberto</div><div><br></div><div><br></div></div>
</blockquote></div>