How long does it usually take to rebuild the extent tree?
Hey, r/btrfs
Recently ran into some trouble, being unable to mount my btrfs drives. (2 4TB in I think it was single mode, the one where data is split across the drives in 1 gigabyte chunks)
Read on a forum that running `btrfs check --init-extent-tree` should do the trick to fix it.
(It seems like my drive was powered off before a transaction completed)
Anyways, I was just wondering how long it normally takes to rebuild the extent tree -- currently I'm on day 4 of the command running...
Surely, there must have been a better command to run, but I guess I didn't read the wiki enough..
As for the data on there, I'm luckily not too concerned about it,
just more interested in learning the proper way to deal with failure should something like this happen again in the future
Thanks
Posted Aug 18, 2020, 4:33 AM UTC
Some excerpts from the man page of btrfs check:
...
...
Why are you doing this without seeking advice beforehand? Your fs is probably toast. (to be fair, I also had to learn this lesson the hard way by blasting a btrfs from read only mountable to completely gone with btrfs check --repair)
Not really, rebuilding the extent tree shouldn't cause data loss, and he didn't mention running --repair anywhere.