wishie Posted March 15, 2018 Author Share Posted March 15, 2018 Ok, so rebuild finished, 0 errors. Does this mean I got away with it?! Quote Link to comment
trurl Posted March 15, 2018 Share Posted March 15, 2018 DId you do the filesystem check? 11 hours ago, johnnie.black said: run xfs_repair -v when it finishes rebuilding. Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 root@wishie:~# xfs_repair -v /dev/sdd1 Phase 1 - find and verify superblock... - block cache size set to 326328 entries Phase 2 - using internal log - zero log... zero_log: head block 68262 tail block 68262 - scan filesystem freespace and inode maps... - found root inode chunk Phase 3 - for each AG... - scan and clear agi unlinked lists... - process known inodes and perform inode discovery... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - process newly discovered inodes... Phase 4 - check for duplicate blocks... - setting up duplicate extent list... - check for inodes claiming duplicate blocks... - agno = 0 - agno = 1 - agno = 2 - agno = 3 Phase 5 - rebuild AG headers and trees... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - reset superblock... Phase 6 - check inode connectivity... - resetting contents of realtime bitmap and summary inodes - traversing filesystem ... - agno = 0 - agno = 1 - agno = 2 - agno = 3 - traversal finished ... - moving disconnected inodes to lost+found ... Phase 7 - verify and correct link counts... XFS_REPAIR Summary Fri Mar 16 11:39:12 2018 Phase Start End Duration Phase 1: 03/16 11:39:09 03/16 11:39:09 Phase 2: 03/16 11:39:09 03/16 11:39:10 1 second Phase 3: 03/16 11:39:10 03/16 11:39:11 1 second Phase 4: 03/16 11:39:11 03/16 11:39:11 Phase 5: 03/16 11:39:11 03/16 11:39:11 Phase 6: 03/16 11:39:11 03/16 11:39:11 Phase 7: 03/16 11:39:11 03/16 11:39:11 Total run time: 2 seconds done Quote Link to comment
trurl Posted March 16, 2018 Share Posted March 16, 2018 So did anything wind up in the lost+found folder on that disk? You should have run that on the md device instead of the sd device. Writing changes to md device maintains parity. Writing changes to sd device does not. I think you will have to parity sync again. Or maybe just a correcting parity check would be good enough if there weren't many changes. Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 I tried it on the md device first. It said it was 'mountable' and 'mountable & writable' but then exited with an error: xfs_repair -v /dev/md5 xfs_repair: /dev/md5 contains a mounted filesystem xfs_repair: /dev/md5 contains a mounted and writable filesystem fatal error -- couldn't initialize XFS library So I stopped the array, and ran it on the actual device. Nothing ended up in lost+found (there is no lost+found on that disk) Quote Link to comment
trurl Posted March 16, 2018 Share Posted March 16, 2018 Sorry we should have explained better. You would have to start in maintenance mode, then you could have just told it in the webUI to do the check. I think you should do a correcting parity check. It would be a good test that everything is working well anyway. Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 So simply going to the "Main" page, "Array Operation" tab and clicking "Check" ? Quote Link to comment
JorgeB Posted March 16, 2018 Share Posted March 16, 2018 4 hours ago, wishie said: So simply going to the "Main" page, "Array Operation" tab and clicking "Check" ? yes Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 Running now.. will check back in when its finished. Thanks Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 Just over 2hrs in, and there have been 31 corrections.. is it fairly safe to assume these were caused by my xfs_repair on the disk itself? Quote Link to comment
JorgeB Posted March 16, 2018 Share Posted March 16, 2018 7 minutes ago, wishie said: is it fairly safe to assume these were caused by my xfs_repair on the disk itself? Yep Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 Well, it looks like I did almost everything wrong, and you all helped me sort it out, again. Thank you very much. Quote Link to comment
wishie Posted March 16, 2018 Author Share Posted March 16, 2018 51 errors in total. Not too bad. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.