I've made a big mistake and I need some help undoing it.
I had two 1TB NVME drives ("nvme0n1" and "nvme1n1") in a BTRFS pool ("nvme"). I wanted to separate those two drives into their own individual pools and did it without consulting the docs (big mistake). The steps I took:
1. Stop array
2. Create new pool called "nvmecache"
3. Unassign "nvmen0n1" from "nvme"
4. Assign "nvme0n1" to "nvmecache"
5. Start array
After starting the array I started getting warnings about the "nvme" pool missing a device "nvme0n1" and realized I had done this all wrong. So then I took the following steps:
1. Stop array
2. Unassign "nvme0n1" from "nvmecache"
3. Delete "nvmecache" pool
4. Reassign "nvme0n1" to "nvme" pool
But now I'm not able to start the array due to the warning in the title: Wrong Pool State - "nvme" - too many wrong or missing devices.
How do I get "nvme0n1" back into the "nvme" pool?
Output of "btrfs fi show":
warning, device 2 is missing
Label: none uuid: 22c8d4c7-5b45-4a53-935c-4a3de560b69d
Total devices 1 FS bytes used 180.03MiB
devid 1 size 232.89GiB used 4.03GiB path /dev/sdf1
Label: none uuid: 65338527-9b1d-46b4-bede-49416cdc67c5
Total devices 2 FS bytes used 477.48GiB
devid 1 size 931.51GiB used 521.03GiB path /dev/nvme1n1p1
*** Some devices missing
Label: none uuid: 651ae8a2-a9c4-4d74-a2f1-b6813c030b32
Total devices 1 FS bytes used 144.00KiB
devid 1 size 931.51GiB used 2.02GiB path /dev/nvme0n1p1