Advertisement
ticpu

fsck has fixed an old FS

Aug 9th, 2021
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 KB | None | 0 0
  1. #bcachefs fsck `ls -1 /dev/vgP4/corruptbcfs?`
  2. <complains about old filesystem to use compat branch>
  3.  
  4. ├ sudo ./bcachefs fsck `ls -1 /dev/vgP4/corruptbcfs?`
  5. [sudo] password for jerome:
  6. alloc_v2 feature bit not set, fsck required
  7. journal read done, 111 keys in 13 entries, seq 21840
  8. starting mark and sweep
  9. dev 4 has wrong buckets_unavailable: got 0, should be 40702, fixing
  10. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  11. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  12. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  13. dev 2 has wrong journal buckets: got 0, should be 160, fixing
  14. dev 2 has wrong journal sectors: got 0, should be 81920, fixing
  15. dev 3 has wrong btree buckets: got 0, should be 20, fixing
  16. dev 3 has wrong btree sectors: got 0, should be 10240, fixing
  17. dev 4 has wrong user buckets: got 0, should be 40521, fixing
  18. dev 4 has wrong user sectors: got 0, should be 17191742, fixing
  19. dev 4 has wrong user fragmented: got 0, should be 1384, fixing
  20. dev 5 has wrong cached sectors: got 0, should be 3555768, fixing
  21. dev 7 has wrong buckets_unavailable: got 0, should be 40675, fixing
  22. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  23. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  24. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  25. dev 2 has wrong journal buckets: got 0, should be 160, fixing
  26. dev 2 has wrong journal sectors: got 0, should be 81920, fixing
  27. dev 3 has wrong btree buckets: got 0, should be 20, fixing
  28. dev 3 has wrong btree sectors: got 0, should be 10240, fixing
  29. dev 4 has wrong user buckets: got 0, should be 40494, fixing
  30. dev 4 has wrong user sectors: got 0, should be 18264699, fixing
  31. dev 4 has wrong user fragmented: got 0, should be 16053, fixing
  32. dev 5 has wrong cached sectors: got 0, should be 2453514, fixing
  33. dev 7 has wrong buckets_unavailable: got 0, should be 40648, fixing
  34. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  35. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  36. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  37. dev 2 has wrong journal buckets: got 0, should be 160, fixing
  38. dev 2 has wrong journal sectors: got 0, should be 81920, fixing
  39. dev 3 has wrong btree buckets: got 0, should be 2, fixing
  40. dev 3 has wrong btree sectors: got 0, should be 1024, fixing
  41. dev 4 has wrong user buckets: got 0, should be 40485, fixing
  42. dev 4 has wrong user sectors: got 0, should be 18303380, fixing
  43. dev 4 has wrong user fragmented: got 0, should be 18830, fixing
  44. dev 5 has wrong cached sectors: got 0, should be 2407366, fixing
  45. dev 7 has wrong buckets_unavailable: got 0, should be 40637, fixing
  46. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  47. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  48. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  49. dev 2 has wrong journal buckets: got 0, should be 160, fixing
  50. dev 2 has wrong journal sectors: got 0, should be 81920, fixing
  51. dev 3 has wrong btree buckets: got 0, should be 2, fixing
  52. dev 3 has wrong btree sectors: got 0, should be 1024, fixing
  53. dev 4 has wrong user buckets: got 0, should be 40474, fixing
  54. dev 4 has wrong user sectors: got 0, should be 18283357, fixing
  55. dev 4 has wrong user fragmented: got 0, should be 20886, fixing
  56. dev 5 has wrong cached sectors: got 0, should be 2419755, fixing
  57. dev 7 has wrong buckets_unavailable: got 0, should be 8092, fixing
  58. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  59. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  60. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  61. dev 2 has wrong journal buckets: got 0, should be 32, fixing
  62. dev 2 has wrong journal sectors: got 0, should be 16384, fixing
  63. dev 3 has wrong btree buckets: got 0, should be 795, fixing
  64. dev 3 has wrong btree sectors: got 0, should be 407040, fixing
  65. dev 4 has wrong user buckets: got 0, should be 7264, fixing
  66. dev 4 has wrong user sectors: got 0, should be 3716888, fixing
  67. dev 4 has wrong user fragmented: got 0, should be 2048, fixing
  68. dev 5 has wrong cached buckets: got 0, should be 2, fixing
  69. dev 5 has wrong cached sectors: got 0, should be 1256, fixing
  70. dev 7 has wrong buckets_unavailable: got 0, should be 8094, fixing
  71. dev 1 has wrong sb buckets: got 0, should be 1, fixing
  72. dev 1 has wrong sb sectors: got 0, should be 264, fixing
  73. dev 1 has wrong sb fragmented: got 0, should be 248, fixing
  74. dev 2 has wrong journal buckets: got 0, should be 32, fixing
  75. dev 2 has wrong journal sectors: got 0, should be 16384, fixing
  76. dev 3 has wrong btree buckets: got 0, should be 795, fixing
  77. dev 3 has wrong btree sectors: got 0, should be 407040, fixing
  78. dev 4 has wrong user buckets: got 0, should be 7266, fixing
  79. dev 4 has wrong user sectors: got 0, should be 3717560, fixing
  80. dev 4 has wrong user fragmented: got 0, should be 1616, fixing
  81. dev 5 has wrong cached buckets: got 0, should be 1, fixing
  82. dev 5 has wrong cached sectors: got 0, should be 1528, fixing
  83. fs has wrong hidden: got 0, should be 363520, fixing
  84. starting fsck
  85. scanning for old btree nodes
  86. scanning for old btree nodes done
  87. mounted with opts: metadata_replicas=2,data_replicas=2,compression=lz4,background_compression=zstd,foreground_target=ssd,background_target=hdd,promote_target=ssd,degraded,fsck,fix_errors
  88. 0x7f3d9c20c470U: errors fixed
  89.  
  90.  
  91. #bcachefs fsck `ls -1 /dev/vgP4/corruptbcfs?`
  92. while marking u64s 10 type extent 469625:8:U32_MAX len 8 ver 0: crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 1:2350160 gen 5 ptr: 0:224728 gen 2 ptr: 4:2512264 gen 10 cached stale ptr: 5:3006552 ge, fixing
  93. bucket 4:4906 different types of data in same bucket: btree, user
  94. while marking u64s 11 type extent 469626:48:U32_MAX len 48 ver 0: crc: c_size 16 size 48 offset 0 nonce 0 csum 5 compress 3 ptr: 4:2512272 gen 10 cached stale ptr: 5:3006560 gen 9 cached stale crc: c_size 16 size , fixing
  95. bucket 4:4906 different types of data in same bucket: btree, user
  96. while marking u64s 11 type extent 469627:72:U32_MAX len 72 ver 0: crc: c_size 24 size 72 offset 0 nonce 0 csum 5 compress 3 ptr: 4:2512288 gen 10 cached stale ptr: 5:3006576 gen 9 cached stale crc: c_size 16 size , fixing
  97. bucket 4:4906 different types of data in same bucket: btree, user
  98. while marking u64s 11 type extent 469628:24:U32_MAX len 24 ver 0: crc: c_size 16 size 24 offset 0 nonce 0 csum 5 compress 3 ptr: 4:2512312 gen 10 cached stale ptr: 5:3006600 gen 9 cached stale crc: c_size 8 size 2, fixing
  99. bucket 4:4906 different types of data in same bucket: btree, user
  100. while marking u64s 10 type extent 469629:8:U32_MAX len 8 ver 0: crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 0:224776 gen 2 ptr: 1:2350208 gen 5 ptr: 4:2512328 gen 10 cached stale ptr: 5:3006616 ge, fixing
  101. bucket 4:4906 different types of data in same bucket: btree, user
  102. while marking u64s 11 type extent 469630:48:U32_MAX len 48 ver 0: crc: c_size 16 size 48 offset 0 nonce 0 csum 5 compress 3 ptr: 4:2512336 gen 10 cached stale ptr: 5:3006624 gen 9 cached stale crc: c_size 16 size , fixing
  103. bucket 4:4906 different types of data in same bucket: btree, user
  104. while marking u64s 10 type extent 469631:8:U32_MAX len 8 ver 0: crc: c_size 8 size 8 offset 0 nonce 0 csum 5 compress 0 ptr: 0:224800 gen 2 ptr: 1:2350232 gen 5 ptr: 4:2512352 gen 10 cached stale ptr: 5:3006640 ge, fixing
  105. bucket 4:4906 different types of data in same bucket: btree, user
  106. while marking u64s 11 type extent 469632:72:U32_MAX len 72 ver 0: crc: c_size 24 size 72 offset 0 nonce 0 csum 5 compress 3 ptr: 4:2512360 gen 10 cached stale ptr: 5:3006648 gen 9 cached stale crc: c_size 16 size , fixing
  107. going read-write
  108. starting fsck
  109. mounted with opts: metadata_replicas=2,data_replicas=2,compression=lz4,background_compression=zstd,foreground_target=ssd,background_target=hdd,promote_target=ssd,noinodes_32bit,noinodes_use_key_cache,degraded,fsck,fix_errors,version_upgrade
  110. 0x7f62ee8024c0U: errors fixed
  111.  
  112. ┤20:52:09│1│root@p4:~
  113. #bcachefs fusemount `ls -1 /dev/vgP4/corruptbcfs? | paste -sd:` /mnt/bcachefs
  114. Opening bcachefs filesystem on:
  115. /dev/vgP4/corruptbcfs1
  116. /dev/vgP4/corruptbcfs2
  117. /dev/vgP4/corruptbcfs3
  118. /dev/vgP4/corruptbcfs4
  119. /dev/vgP4/corruptbcfs5
  120. /dev/vgP4/corruptbcfs6
  121. recovering from clean shutdown, journal seq 22188
  122. going read-write
  123. mounted with opts: metadata_replicas=2,data_replicas=2,compression=lz4,background_compression=zstd,foreground_target=ssd,background_target=hdd,promote_target=ssd,noinodes_32bit,noinodes_use_key_cache
  124. Fuse mount initialized.
  125.  
  126. ┤20:57:54│130│root@p4:/mnt/bcachefs
  127. #ls
  128. googletest linux-headers-5.4.0-25 linux-headers-5.6.15-acso lost+found
  129. gtest linux-headers-5.4.0-25-lowlatency linux-headers-5.7.12+
  130. jrome linux-headers-5.5.5-acso linux-headers-5.7.8-acso
  131.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement