koverstreet / bcachefs-tools

http://bcachefs.org
GNU General Public License v2.0
120 stars 89 forks source link

directories disappear after upgrade to FS version version 1.2: deleted_inodes #157

Closed bhzhu203 closed 1 year ago

bhzhu203 commented 1 year ago

all of the directories disappeared , only left one directory. I have do the fsck two times using tools (f3976e3733e97a0e96f5fc6349d1e82b25116043) .

The FS dump link is sent to you via IRC.

I am doing the third fsck , waiting too long here

  stripe_redundancy 0
  io_time[READ]     7735907848
  io_time[WRITE]    9699863048
  fragmentation     0
  bp_start          7
, fixing
 done
check_btree_backpointers... done
check_backpointers_to_extents... done
check_extents_to_backpointers... done
check_alloc_to_lru_refs... done
check_snapshot_trees... done
check_snapshots... done
check_subvols... done
koverstreet commented 1 year ago

So, the filesystem you sent me has journal_transaction_names turned off, and you didn't save the fsck logs - so I won't be able to root cause this.

The most I'm going to be able to do is figure out why fsck isn't reattaching lost inodes/directories, since they're clearly still there.

koverstreet commented 1 year ago

Also, if you're going to be communicating via IRC, please don't do the link and run, it's rather rude - work with me a bit here.

bhzhu203 commented 1 year ago

0814.txt

here is the fsck log

bhzhu203 commented 1 year ago

Hello , is there any possible to recover my FS?

koverstreet commented 1 year ago

We're working on it

koverstreet commented 1 year ago

This should be fixed now - is_ancestor had multiple bugs