Hi,
I’m a complete newbie to LXD/LXC, so please be nice.
I set up a whole partition on an extra SSD (/dev/sde1) as a storage with lxd init, did some stuff with containers and now did some updates so my home server and rebooted it. And what had to come, came to pass: This partition is now /dev/sdb1 while /dev/sde1 is the EFI boot partition and of course nothing works anymore.
lxd --debug says
Failed to start the daemon: Failed initializing storage pool "default": Failed to mount "/dev/sde1" on "/var/snap/lxd/common/lxd/storage-pools/default" using "btrfs": device or resource busy
which isn’t surprising.
As I set up lxd I tried to use /dev/disk/by-id but that didn’t work so I went for /dev/sdX. I did some research and really didn’t find any advice on how to not use /dev/sdX for this.
How can I solve my issue and make the storage available again? Running lxd init returns:
Error: Failed to connect to local LXD: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory
And furthermore how can I use a block device a storage without using the /dev/sdX?