Ok, so I have an existing Btrfs filesystem on /dev/sdb
, mounted at /media/adrian/btr-store
.
I start by installing lxd:
sudo apt install lxd
Then I run (answers written explicitly):
$ lxd init
#1
Would you like to use LXD clustering? (yes/no) [default=no]: no
#2
Do you want to configure a new storage pool? (yes/no) [default=yes]: yes
I presume this asks about LXD storage pools (the concept), not about setting up filesystems on my host, correct?
#3
Name of the new storage pool [default=default]: default
So is this the name as written to my filesystem, i.e. a Btrfs subvolume name? Or is it still internal to LXD?
#4
Name of the storage backend to use (btrfs, dir) [default=btrfs]: btrfs
#5
Create a new BTRFS pool? (yes/no) [default=yes]: yes
So this probably creates a Btrfs subvolume under the root (top-level) I give it. So yes.
#6
Would you like to use an existing block device? (yes/no) [default=no]: yes
My Btrfs root would be a block device, so yes. If I answered no, it would use a loopback solution.
#7
Path to the existing block device: /media/adrian/btr-store
Invalid input: '/media/adrian/btr-store' is not a block device
Ok, so it doesn’t want the filesystem itself. Does it want /dev/sdb
where fs is located?
Path to the existing block device: /dev/sdb
Error: Failed to create storage pool 'default': Failed to create the BTRFS pool: /dev/sdb appears to contain an existing filesystem (btrfs)
So what do I now?