oshunluvr

btrfs_csum_error

Jul 2nd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.73 KB | None | 0 0
  1. To run a command as administrator (user "root"), use "sudo <command>".
  2. See "man sudo_root" for details.
  3.  
  4. neon@neon:~$ sudo -i
  5. root@neon:~# lsblk
  6. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  7. loop1 7:1 0 1.1G 1 loop /rofs
  8. sdd 8:48 0 238.5G 0 disk
  9. ├─sdd2 8:50 0 8G 0 part [SWAP]
  10. ├─sdd3 8:51 0 230G 0 part
  11. ├─sdd1 8:49 0 1007K 0 part
  12. └─sdd4 8:52 0 512M 0 part
  13. sdb 8:16 0 931.5G 0 disk
  14. ├─sdb2 8:18 0 200G 0 part
  15. ├─sdb3 8:19 0 731.5G 0 part
  16. └─sdb1 8:17 0 1007K 0 part
  17. sdi 8:128 1 59.6G 0 disk
  18. └─sdi1 8:129 1 59.6G 0 part
  19. sr0 11:0 1 1024M 0 rom
  20. loop0 7:0 0 1.2G 0 loop /cdrom
  21. sdc 8:32 0 238.5G 0 disk
  22. ├─sdc2 8:34 0 8G 0 part [SWAP]
  23. ├─sdc3 8:35 0 230G 0 part
  24. ├─sdc1 8:33 0 1007K 0 part
  25. └─sdc4 8:36 0 512M 0 part
  26. sda 8:0 0 1.8T 0 disk
  27. ├─sda4 8:4 0 500G 0 part
  28. ├─sda2 8:2 0 20G 0 part /isodevice
  29. ├─sda5 8:5 0 500G 0 part
  30. ├─sda3 8:3 0 30G 0 part
  31. ├─sda1 8:1 0 1007K 0 part
  32. └─sda6 8:6 0 813G 0 part
  33. root@neon:~# btrfs check --help
  34. usage: btrfs check [options] <device>
  35.  
  36. Check structural inegrity of a filesystem (unmounted).
  37.  
  38. Check structural inegrity of an unmounted filesystem. Verify internal
  39. trees' consistency and item connectivity. In the repair mode try to
  40. fix the problems found.
  41. WARNING: the repair mode is considered dangerous
  42.  
  43. -s|--super <superblock> use this superblock copy
  44. -b|--backup use the backup root copy
  45. --repair try to repair the filesystem
  46. --readonly run in read-only mode (default)
  47. --init-csum-tree create a new CRC tree
  48. --init-extent-tree create a new extent tree
  49. --check-data-csum verify checkums of data blocks
  50. -Q|--qgroup-report print a report on qgroup consistency
  51. -E|--subvol-extents <subvolid>
  52. print subvolume extents and sharing state
  53. -r|--tree-root <bytenr> use the given bytenr for the tree root
  54. -p|--progress indicate progress
  55.  
  56. root@neon:~# btrfs check /dev/sdc3
  57. Checking filesystem on /dev/sdc3
  58. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  59. checking extents
  60. ref mismatch on [1928117075968 36864] extent item 1, found 0
  61. Incorrect local backref count on 1928117075968 root 1215 owner 18604 offset 0 found 0 wanted 1 back 0xe1036d0
  62. Backref disk bytenr does not match extent record, bytenr=1928117075968, ref bytenr=0
  63. backpointer mismatch on [1928117075968 36864]
  64. owner ref check failed [1928117075968 36864]
  65. ref mismatch on [1928117112832 372736] extent item 1, found 0
  66. Incorrect local backref count on 1928117112832 root 1215 owner 18606 offset 0 found 0 wanted 1 back 0xe103800
  67. Backref disk bytenr does not match extent record, bytenr=1928117112832, ref bytenr=0
  68. backpointer mismatch on [1928117112832 372736]
  69. owner ref check failed [1928117112832 372736]
  70. ref mismatch on [1928117485568 2093056] extent item 1, found 0
  71. Incorrect local backref count on 1928117485568 root 1215 owner 18608 offset 0 found 0 wanted 1 back 0xe103930
  72. Backref disk bytenr does not match extent record, bytenr=1928117485568, ref bytenr=0
  73. backpointer mismatch on [1928117485568 2093056]
  74. owner ref check failed [1928117485568 2093056]
  75. ref mismatch on [1928119578624 45056] extent item 1, found 0
  76. Incorrect local backref count on 1928119578624 root 1215 owner 18610 offset 0 found 0 wanted 1 back 0xe103a60
  77. Backref disk bytenr does not match extent record, bytenr=1928119578624, ref bytenr=0
  78. backpointer mismatch on [1928119578624 45056]
  79. owner ref check failed [1928119578624 45056]
  80. ref mismatch on [1928119623680 2748416] extent item 1, found 0
  81. Incorrect local backref count on 1928119623680 root 1215 owner 18612 offset 0 found 0 wanted 1 back 0xe103b90
  82. Backref disk bytenr does not match extent record, bytenr=1928119623680, ref bytenr=0
  83. backpointer mismatch on [1928119623680 2748416]
  84. owner ref check failed [1928119623680 2748416]
  85. checking free space cache
  86. checking fs roots
  87. checking csums
  88. checking root refs
  89. found 193489473633 bytes used err is 0
  90. total csum bytes: 187036812
  91. total tree bytes: 2659794944
  92. total fs tree bytes: 2183217152
  93. total extent tree bytes: 250642432
  94. btree space waste bytes: 570521694
  95. file data blocks allocated: 7405642772480
  96. referenced 213186834432
  97. root@neon:~# btrfs check /dev/sdd3
  98. Checking filesystem on /dev/sdd3
  99. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  100. checking extents
  101. ref mismatch on [1928117075968 36864] extent item 1, found 0
  102. Incorrect local backref count on 1928117075968 root 1215 owner 18604 offset 0 found 0 wanted 1 back 0xe01ca10
  103. Backref disk bytenr does not match extent record, bytenr=1928117075968, ref bytenr=0
  104. backpointer mismatch on [1928117075968 36864]
  105. owner ref check failed [1928117075968 36864]
  106. ref mismatch on [1928117112832 372736] extent item 1, found 0
  107. Incorrect local backref count on 1928117112832 root 1215 owner 18606 offset 0 found 0 wanted 1 back 0xe01cb40
  108. Backref disk bytenr does not match extent record, bytenr=1928117112832, ref bytenr=0
  109. backpointer mismatch on [1928117112832 372736]
  110. owner ref check failed [1928117112832 372736]
  111. ref mismatch on [1928117485568 2093056] extent item 1, found 0
  112. Incorrect local backref count on 1928117485568 root 1215 owner 18608 offset 0 found 0 wanted 1 back 0xe01cc70
  113. Backref disk bytenr does not match extent record, bytenr=1928117485568, ref bytenr=0
  114. backpointer mismatch on [1928117485568 2093056]
  115. owner ref check failed [1928117485568 2093056]
  116. ref mismatch on [1928119578624 45056] extent item 1, found 0
  117. Incorrect local backref count on 1928119578624 root 1215 owner 18610 offset 0 found 0 wanted 1 back 0xe01cda0
  118. Backref disk bytenr does not match extent record, bytenr=1928119578624, ref bytenr=0
  119. backpointer mismatch on [1928119578624 45056]
  120. owner ref check failed [1928119578624 45056]
  121. ref mismatch on [1928119623680 2748416] extent item 1, found 0
  122. Incorrect local backref count on 1928119623680 root 1215 owner 18612 offset 0 found 0 wanted 1 back 0xe01ced0
  123. Backref disk bytenr does not match extent record, bytenr=1928119623680, ref bytenr=0
  124. backpointer mismatch on [1928119623680 2748416]
  125. owner ref check failed [1928119623680 2748416]
  126. checking free space cache
  127. checking fs roots
  128. checking csums
  129. checking root refs
  130. found 193489473633 bytes used err is 0
  131. total csum bytes: 187036812
  132. total tree bytes: 2659794944
  133. total fs tree bytes: 2183217152
  134. total extent tree bytes: 250642432
  135. btree space waste bytes: 570521694
  136. file data blocks allocated: 7405642772480
  137. referenced 213186834432
  138. root@neon:~# btrfs check --repair /dev/sdd3
  139. enabling repair mode
  140. Checking filesystem on /dev/sdd3
  141. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  142. checking extents
  143. ref mismatch on [1928117075968 36864] extent item 1, found 0
  144. repair deleting extent record: key 1928117075968 168 36864
  145. Incorrect local backref count on 1928117075968 root 1215 owner 18604 offset 0 found 0 wanted 1 back 0xf911a00
  146. Backref disk bytenr does not match extent record, bytenr=1928117075968, ref bytenr=0
  147. backpointer mismatch on [1928117075968 36864]
  148. owner ref check failed [1928117075968 36864]
  149. ref mismatch on [1928117112832 372736] extent item 1, found 0
  150. repair deleting extent record: key 1928117112832 168 372736
  151. Incorrect local backref count on 1928117112832 root 1215 owner 18606 offset 0 found 0 wanted 1 back 0xf911b30
  152. Backref disk bytenr does not match extent record, bytenr=1928117112832, ref bytenr=0
  153. backpointer mismatch on [1928117112832 372736]
  154. owner ref check failed [1928117112832 372736]
  155. ref mismatch on [1928117485568 2093056] extent item 1, found 0
  156. repair deleting extent record: key 1928117485568 168 2093056
  157. Incorrect local backref count on 1928117485568 root 1215 owner 18608 offset 0 found 0 wanted 1 back 0xf911c60
  158. Backref disk bytenr does not match extent record, bytenr=1928117485568, ref bytenr=0
  159. backpointer mismatch on [1928117485568 2093056]
  160. owner ref check failed [1928117485568 2093056]
  161. ref mismatch on [1928119578624 45056] extent item 1, found 0
  162. repair deleting extent record: key 1928119578624 168 45056
  163. Incorrect local backref count on 1928119578624 root 1215 owner 18610 offset 0 found 0 wanted 1 back 0xf911d90
  164. Backref disk bytenr does not match extent record, bytenr=1928119578624, ref bytenr=0
  165. backpointer mismatch on [1928119578624 45056]
  166. owner ref check failed [1928119578624 45056]
  167. ref mismatch on [1928119623680 2748416] extent item 1, found 0
  168. repair deleting extent record: key 1928119623680 168 2748416
  169. Incorrect local backref count on 1928119623680 root 1215 owner 18612 offset 0 found 0 wanted 1 back 0xf911ec0
  170. Backref disk bytenr does not match extent record, bytenr=1928119623680, ref bytenr=0
  171. backpointer mismatch on [1928119623680 2748416]
  172. owner ref check failed [1928119623680 2748416]
  173. repaired damaged extent references
  174. Fixed 0 roots.
  175. checking free space cache
  176. cache and super generation don't match, space cache will be invalidated
  177. checking fs roots
  178. checking csums
  179. There are no extents for csum range 1928117075968-1928122372096
  180. Csum exists for 1928117075968-1928134602752 but there is no extent record
  181. found 193489473633 bytes used err is 1
  182. total csum bytes: 187036812
  183. total tree bytes: 2659794944
  184. total fs tree bytes: 2183217152
  185. total extent tree bytes: 250642432
  186. btree space waste bytes: 570521694
  187. file data blocks allocated: 7405642772480
  188. referenced 213186834432
  189. root@neon:~# btrfs check /dev/sdd3
  190. Checking filesystem on /dev/sdd3
  191. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  192. checking extents
  193. checking free space cache
  194. cache and super generation don't match, space cache will be invalidated
  195. checking fs roots
  196. checking csums
  197. There are no extents for csum range 1928117075968-1928122372096
  198. Csum exists for 1928117075968-1928134602752 but there is no extent record
  199. found 193484206177 bytes used err is 1
  200. total csum bytes: 187036812
  201. total tree bytes: 2659823616
  202. total fs tree bytes: 2183217152
  203. total extent tree bytes: 250671104
  204. btree space waste bytes: 570549286
  205. file data blocks allocated: 7405642772480
  206. referenced 213186834432
  207. root@neon:~# lsblk
  208. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  209. loop1 7:1 0 1.1G 1 loop /rofs
  210. sdd 8:48 0 238.5G 0 disk
  211. ├─sdd2 8:50 0 8G 0 part [SWAP]
  212. ├─sdd3 8:51 0 230G 0 part
  213. ├─sdd1 8:49 0 1007K 0 part
  214. └─sdd4 8:52 0 512M 0 part
  215. sdb 8:16 0 931.5G 0 disk
  216. ├─sdb2 8:18 0 200G 0 part
  217. ├─sdb3 8:19 0 731.5G 0 part
  218. └─sdb1 8:17 0 1007K 0 part
  219. sdi 8:128 1 59.6G 0 disk
  220. └─sdi1 8:129 1 59.6G 0 part
  221. sr0 11:0 1 1024M 0 rom
  222. loop0 7:0 0 1.2G 0 loop /cdrom
  223. sdc 8:32 0 238.5G 0 disk
  224. ├─sdc2 8:34 0 8G 0 part [SWAP]
  225. ├─sdc3 8:35 0 230G 0 part
  226. ├─sdc1 8:33 0 1007K 0 part
  227. └─sdc4 8:36 0 512M 0 part
  228. sda 8:0 0 1.8T 0 disk
  229. ├─sda4 8:4 0 500G 0 part
  230. ├─sda2 8:2 0 20G 0 part /isodevice
  231. ├─sda5 8:5 0 500G 0 part
  232. ├─sda3 8:3 0 30G 0 part
  233. ├─sda1 8:1 0 1007K 0 part
  234. └─sda6 8:6 0 813G 0 part
  235. root@neon:~# mkdir /backup
  236. root@neon:~# mkdir /subvol
  237. root@neon:~# mount /dev/sdc2 /subvol
  238. mount: unknown filesystem type 'swap'
  239. root@neon:~# mount /dev/sdc3 /subvol
  240. root@neon:~# mount /dev/sda4 /backup
  241. root@neon:~# ll /mnt/backup
  242. ls: cannot access '/mnt/backup': No such file or directory
  243. root@neon:~# ll /backup
  244. total 16
  245. drwxr-xr-x 1 root root 316 Jul 2 15:01 ./
  246. drwxr-xr-x 37 root root 360 Jul 2 20:09 ../
  247. drwxr-xr-x 1 root root 288 Jun 24 12:45 @KDEneon_backup1/
  248. drwxr-xr-x 1 root root 288 Jul 2 14:46 @KDEneon_backup2/
  249. drwxr-xr-x 1 root root 288 Jun 24 12:45 @KDEneon_backup3/
  250. drwxr-xr-x 1 root root 38 Jun 24 13:40 @KDEneon_home_backup1/
  251. drwxr-xr-x 1 root root 38 Jul 2 14:36 @KDEneon_home_backup2/
  252. drwxr-xr-x 1 root root 38 Apr 1 13:30 @KDEneon_home_backup3/
  253. drwxr-xr-x 1 root root 282 Jul 2 14:52 @Manjaro_free_backup1/
  254. drwxr-xr-x 1 root root 12 Jul 2 14:33 @Manjaro_free_home_backup1/
  255. root@neon:~# btrfs su de /backup/@KDEneon_home_backup3
  256. Delete subvolume (no-commit): '/backup/@KDEneon_home_backup3'
  257. root@neon:~# sync
  258. root@neon:~# ll /subvol/
  259. total 4
  260. drwxr-xr-x 1 root root 680 Jul 2 15:01 ./
  261. drwxr-xr-x 37 root root 360 Jul 2 20:09 ../
  262. drwxr-xr-x 1 root root 286 Jul 2 14:29 @KDEneon/
  263. drwxr-xr-x 1 root root 288 Jun 7 13:36 @KDEneon_backup1/
  264. drwxr-xr-x 1 root root 288 Jun 23 19:29 @KDEneon_backup2/
  265. drwxr-xr-x 1 root root 302 Jun 30 11:58 @KDEneon_backup3/
  266. drwxr-xr-x 1 root root 38 Apr 1 13:30 @KDEneon_home/
  267. drwxr-xr-x 1 root root 38 Apr 1 13:30 @KDEneon_home_backup1/
  268. drwxr-xr-x 1 root root 38 Apr 1 13:30 @KDEneon_home_backup2/
  269. drwxr-xr-x 1 root root 38 Apr 1 13:30 @KDEneon_home_backup3/
  270. drwxr-xr-x 1 root root 196 Jun 13 20:49 @KDEneon_new/
  271. drwxr-xr-x 1 root root 12 Jun 13 20:41 @KDEneon_new_home/
  272. drwxr-xr-x 1 root root 262 Dec 13 2016 @Kubuntu_16_04/
  273. drwxr-xr-x 1 root root 32 Dec 22 2016 @Kubuntu_16_04_home/
  274. drwxr-xr-x 1 root root 282 Jun 27 13:31 @Manjaro_free/
  275. drwxr-xr-x 1 root root 282 Jun 27 13:31 @Manjaro_free_backup1/
  276. drwxr-xr-x 1 root root 12 Jun 11 12:11 @Manjaro_free_home/
  277. drwxr-xr-x 1 root root 12 Jun 11 12:11 @Manjaro_free_home_backup1/
  278. drwxr-xr-x 1 root root 216 Jun 10 15:55 @Manjaro_nonfree/
  279. drwxr-xr-x 1 root root 12 Jun 10 15:49 @Manjaro_nonfree_home/
  280. drwxr-xr-x 1 root root 234 Jun 13 21:21 @Ubuntu_16_04/
  281. drwxr-xr-x 1 root root 12 Jun 13 20:14 @Ubuntu_16_04_home/
  282. root@neon:~# btrfs su de -c /subvol/@KDEneon_home_backup3
  283. Delete subvolume (commit): '/subvol/@KDEneon_home_backup3'
  284. root@neon:~# btrfs su sn -r /subvol/@KDEneon_home /subvol/@KDEneon_home_backup3
  285. Create a readonly snapshot of '/subvol/@KDEneon_home' in '/subvol/@KDEneon_home_backup3'
  286. root@neon:~# btrfs send /subvol/@K
  287. @KDEneon/ @KDEneon_backup2/ @KDEneon_home/ @KDEneon_home_backup2/ @KDEneon_new/ @Kubuntu_16_04/
  288. @KDEneon_backup1/ @KDEneon_backup3/ @KDEneon_home_backup1/ @KDEneon_home_backup3/ @KDEneon_new_home/ @Kubuntu_16_04_home/
  289. root@neon:~# btrfs send /subvol/@K
  290. @KDEneon/ @KDEneon_backup2/ @KDEneon_home/ @KDEneon_home_backup2/ @KDEneon_new/ @Kubuntu_16_04/
  291. @KDEneon_backup1/ @KDEneon_backup3/ @KDEneon_home_backup1/ @KDEneon_home_backup3/ @KDEneon_new_home/ @Kubuntu_16_04_home/
  292. root@neon:~# btrfs send -p /subvol/@KDEneon_home_backup2 /subvol/@KDEneon_home_backup3 |btrfs receive /backup
  293. At subvol /subvol/@KDEneon_home_backup3
  294. At snapshot @KDEneon_home_backup3
  295. ERROR: rename stuart/.local/share/Trash/files/mediagallery -> o159577-3275527-0 failed: No such file or directory
  296. root@neon:~# ls /subvol/@KDEneon_home/stuart/.local/share/Trash/
  297. files info
  298. root@neon:~# ls /subvol/@KDEneon_home/stuart/.local/share/Trash/files/
  299. root@neon:~# ls -a /subvol/@KDEneon_home/stuart/.local/share/Trash/files/
  300. . ..
  301. root@neon:~# btrfs check --repair /dev/sdc3
  302. enabling repair mode
  303. /dev/sdc3 is currently mounted. Aborting.
  304. root@neon:~# umount /dev/sdc3
  305. root@neon:~# btrfs check --repair /dev/sdc3
  306. enabling repair mode
  307. Checking filesystem on /dev/sdc3
  308. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  309. checking extents
  310. Fixed 0 roots.
  311. checking free space cache
  312. cache and super generation don't match, space cache will be invalidated
  313. checking fs roots
  314. checking csums
  315. There are no extents for csum range 1928117075968-1928122372096
  316. Csum exists for 1928117075968-1928134602752 but there is no extent record
  317. found 192050524257 bytes used err is 1
  318. total csum bytes: 185517568
  319. total tree bytes: 2654859264
  320. total fs tree bytes: 2179944448
  321. total extent tree bytes: 250236928
  322. btree space waste bytes: 569821194
  323. file data blocks allocated: 7389670899712
  324. referenced 211022544896
  325. root@neon:~# mkdir /subvol/@KDEneon_home/stuart/.local/share/Trash/files/mediagallery
  326. root@neon:~# chown 1000:1000 /subvol/@KDEneon_home/stuart/.local/share/Trash/files/mediagallery
  327. root@neon:~# ls /subvol/@KDEneon_home/stuart/.local/share/Trash/files/mediagallery
  328. root@neon:~# ls /subvol/@KDEneon_home/stuart/.local/share/Trash/files/
  329. mediagallery
  330. root@neon:~# btrfs su de -c /backup/@KDEneon_home_backup3
  331. Delete subvolume (commit): '/backup/@KDEneon_home_backup3'
  332. root@neon:~# btrfs su de -c /subvol/@KDEneon_home_backup3
  333. Delete subvolume (commit): '/subvol/@KDEneon_home_backup3'
  334. root@neon:~# btrfs su sn -r /subvol/@KDEneon_home /subvol/@KDEneon_home_backup3
  335. Create a readonly snapshot of '/subvol/@KDEneon_home' in '/subvol/@KDEneon_home_backup3'
  336. root@neon:~# btrfs send -p /subvol/@KDEneon_home_backup2 /subvol/@KDEneon_home_backup3 |btrfs receive /backup
  337. At subvol /subvol/@KDEneon_home_backup3
  338. At snapshot @KDEneon_home_backup3
  339. ERROR: rename stuart/.local/share/Trash/files/mediagallery -> o159577-3275527-0 failed: No such file or directory
  340. root@neon:~# btrfs scrub /subvol
  341. btrfs scrub: unknown token '/subvol'
  342. usage: btrfs scrub <command> [options] <path>|<device>
  343.  
  344. btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] <path>|<device>
  345. Start a new scrub. If a scrub is already running, the new one fails.
  346. btrfs scrub cancel <path>|<device>
  347. Cancel a running scrub
  348. btrfs scrub resume [-BdqrR] [-c ioprio_class -n ioprio_classdata] <path>|<device>
  349. Resume previously canceled or interrupted scrub
  350. btrfs scrub status [-dR] <path>|<device>
  351. Show status of running or finished scrub
  352.  
  353. verify checksums of data and metadata
  354. root@neon:~# btrfs scrub start -B /subvol
  355. scrub done for 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  356. scrub started at Sun Jul 2 20:23:10 2017 and finished after 00:07:55
  357. total bytes scrubbed: 182.22GiB with 0 errors
  358. root@neon:~# btrfs check /dev/sdc3
  359. /dev/sdc3 is currently mounted. Aborting.
  360. root@neon:~# umount /subvol
  361. root@neon:~# btrfs check /dev/sdc3
  362. Checking filesystem on /dev/sdc3
  363. UUID: 8f0c1661-4e84-4512-b875-23bcfd5be1d8
  364. checking extents
  365. checking free space cache
  366. checking fs roots
  367. checking csums
  368. There are no extents for csum range 1928117075968-1928122372096
  369. Csum exists for 1928117075968-1928134602752 but there is no extent record
  370. found 192050528352 bytes used err is 1
  371. total csum bytes: 185517568
  372. total tree bytes: 2654863360
  373. total fs tree bytes: 2179911680
  374. total extent tree bytes: 250273792
  375. btree space waste bytes: 569845731
  376. file data blocks allocated: 7389660221440
  377. referenced 211011866624
  378. root@neon:~#
Advertisement
Add Comment
Please, Sign In to add comment