Is there a way that I can, on a running system, mark a btrfs disk as having failed, so that it will now be “missing” and the array will be in a degraded state?
I can obviously do it by using fdisk to delete the partition, then rebooting and mounting with the degraded option, but I want to do it without a reboot, and without having to tinker with the boot process remotely.
I can also delete the device (move all the data off the device), then delete it, then add the new device, then rebalance to move all the data back, and that would be safer, but would be terribly slow. Also I’m not sure I have enough free
space to allow this (maybe I do, but it would be tight enough that I can’t be sure there wouldn’t be some overhead I haven’t taken into account)
Thanks
James