# Btrfs can become unmountable if a drive dies during a replace operation even though it should still be mountable

- From: Matthew Warren \<hidden\>
- Date: 2021-07-24 20:33:23 
- List: linux-btrfs
- Page: https://ratatoskr.run/linux-btrfs/2021/07/7544045
- Thread: https://ratatoskr.run/linux-btrfs/2021/07/7544045/t.md

```text
One of my drives in a raid1 array died the other day, so I ran a
replace on it with a spare drive I had. The process froze during the
replace from some issue which I assume is possibly caused by my
automated backup running during the replace, but regardless I rebooted
without the replacement drive plugged in and the fs failed to mount
because a replace was in progress but the replacement drive was not
attached. I was able to plug the drive back in to let it successfully
mount but had that drive died during the replace, the fs would have
been unmountable.

Matthew Warren
```
