I'm giving a try to btrfs. I did some mistakes, which are good for learning!
I created several btrfs filesystems upon different devices (sdX, loop, lvm, etc). During these tests, I removed (abruptly) some or all devices which were part of a btrfs filesystem (fs were unmounted first).
But now, command
btrfs show still shows filesystems UUID and list of devices.
I understand that I should have done a
btfrs device del BEFORE removing devices...
But where does btrfs stores its list of handled filesystems? Is there a conf file somewhere? A special command in btrfs-tools?
I didn't come with a comprehensive answer reading wiki and tutos... It is said that we can recover a dead filesystem and mounting it with
mount -o recovery /dev/yourBTFSvolume /mount/point but that implies metadata/data and related devices still exist, which isn't the case here.
Here I do not attempt to recover data, I just want to clean btrfs management.