Ok, so I have an existing Btrfs filesystem on
/dev/sdb, mounted at
I start by installing lxd:
sudo apt install lxd
Then I run (answers written explicitly):
$ lxd init
Would you like to use LXD clustering? (yes/no) [default=no]: no
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?
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?
Name of the storage backend to use (btrfs, dir) [default=btrfs]: btrfs
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.
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.
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?