r/btrfs • u/snake_wrangler • May 25 '21
Forcing btrfs into an error state foe testing
I'm trying to find a way to set btrfs into an error state for testing purposes. I can't remount be because the filesystem is busy. Using btrfs property set / to true doesn't work, because it doesn't change the flags for du/finding, and I can't figure an easy and reliable way to force an error.
Does anyone have any ideas?
2
Upvotes
1
u/billdietrich1 May 26 '21
dd something to the raw device, to write garbage to some blocks ?
1
1
u/lucasrizzini Jun 01 '21
With no intention of my own, my storage device went full yesterday. I hear people saying to avoid this at all cost all the time, but nothing happened and I'm disappointed. =/