After a disk failure on a RAID10 array, I discovered I had an empty 1GB single volume, which blocked both delete missing and replace functions, as well as blocking the ability to mount in degraded.
sudo btrfs fi df /srv
Data, single: total=1.00GiB, used=0.00B
Data, RAID10: total=3.49TiB, used=3.34TiB
System, single: total=32.00MiB, used=0.00B
System, RAID10: total=64.00MiB, used=400.00KiB
Metadata, single: total=1.00GiB, used=0.00B
Metadata, RAID10: total=6.00GiB, used=3.54GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'
WARNING: Data: single, raid10
WARNING: Metadata: single, raid10
WARNING: System: single, raid10
sudo btrfs device delete missing /srv
ERROR: error removing device 'missing': Read-only file system
WARNING: Multiple block group profiles detected, see 'man btrfs(5)'
WARNING: Data: single, raid10
WARNING: Metadata: single, raid10
WARNING: System: single, raid10
I would expect a path to recover from this scenario, either fsck should be able to resolve this, or mounting degraded should have a flag to allow for mounting empty single volumes rw.
After a disk failure on a RAID10 array, I discovered I had an empty 1GB single volume, which blocked both delete missing and replace functions, as well as blocking the ability to mount in degraded.
I would expect a path to recover from this scenario, either fsck should be able to resolve this, or mounting degraded should have a flag to allow for mounting empty single volumes rw.