| To: | Eric Sandeen <sandeen@xxxxxxxxxxx> |
|---|---|
| Subject: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22 |
| From: | 符永涛 <yongtaofu@xxxxxxxxx> |
| Date: | Tue, 9 Apr 2013 23:18:56 +0800 |
| Cc: | xfs@xxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=NKbE67Cv+6Ay4RokXhhe5TEW0eNiV1gpa2r7vn1wp2I=; b=tfIu4fx7hF2nH66V8+5mJEBgScUpIMO39FIdDsZTS4dWRi0HbYDZt5V9cH7W8SQRWa CpWWKC5gCVYYvnypt02eaRy+JcsvHjOY0TsD3fnwmYMaHH6EZBWEeA+XkO+rXnhrjqHi Xv2uDuqxdUUu+8kk0w1S6TUyxmzPSXBRVjteYbwkPX/hkYq7whBybdvFmtoown0EFJuY wYsslWEQ24IvSegQeWMxhsEHqWhVewcconeJPevCIDhbd3cFY3bOb9ebpK9hedG4bGZ3 Q/31nhj5GPWfXH9MfVPqHT2eIwcMjZ9jgCn37x0vVEF7MnMUWNwtLI607zlykxgWXEk7 7tyQ== |
| In-reply-to: | <51642E5E.3040403@xxxxxxxxxxx> |
| References: | <CADFMGuJm5bPPwbbUtYwrCVDL23KExJTw_-VRX2UEEdZjo+i5oA@xxxxxxxxxxxxxx> <51642E5E.3040403@xxxxxxxxxxx> |
|
The servers are back to service now and It's hard to run xfs_repair. It always happen bellow is the xfs_repair log when it happens on another server several days ago. -sh-4.1$ sudo xfs_repair -n /dev/glustervg/glusterlv Phase 1 - find and verify superblock… Phase 2 - using internal log - scan filesystem freespace and inode maps… agi unlinked bucket 0 is 4046848 in ag 0 (inode=4046848) agi unlinked bucket 5 is 2340485 in ag 0 (inode=2340485) agi unlinked bucket 6 is 2326854 in ag 0 (inode=2326854) agi unlinked bucket 8 is 1802120 in ag 0 (inode=1802120) agi unlinked bucket 14 is 495566 in ag 0 (inode=495566) agi unlinked bucket 16 is 5899536 in ag 0 (inode=5899536) agi unlinked bucket 19 is 4008211 in ag 0 (inode=4008211) agi unlinked bucket 21 is 4906965 in ag 0 (inode=4906965) agi unlinked bucket 23 is 2022231 in ag 0 (inode=2022231) agi unlinked bucket 24 is 1626200 in ag 0 (inode=1626200) agi unlinked bucket 25 is 938585 in ag 0 (inode=938585) agi unlinked bucket 30 is 4226526 in ag 0 (inode=4226526) agi unlinked bucket 34 is 4108962 in ag 0 (inode=4108962) agi unlinked bucket 37 is 1740389 in ag 0 (inode=1740389) agi unlinked bucket 39 is 247399 in ag 0 (inode=247399) agi unlinked bucket 40 is 6237864 in ag 0 (inode=6237864) agi unlinked bucket 43 is 3404331 in ag 0 (inode=3404331) agi unlinked bucket 45 is 2092717 in ag 0 (inode=2092717) agi unlinked bucket 48 is 4041008 in ag 0 (inode=4041008) agi unlinked bucket 50 is 1459762 in ag 0 (inode=1459762) agi unlinked bucket 56 is 852024 in ag 0 (inode=852024) - found root in ode chunk Phase 3 - for each AG… - scan (but don't clear) agi unlinked lists… - process known inodes and perform inode discovery… - agno = 0 7f084d34e700: Badness in key lookup (length) bp=(bno 123696, len 16384 bytes) key=(bno 123696, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 247776, len 16384 bytes) key=(bno 247776, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 425984, len 16384 bytes) key=(bno 425984, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 469280, len 16384 bytes) key=(bno 469280, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 729856, len 16384 bytes) key=(bno 729856, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 813072, len 16384 bytes) key=(bno 813072, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 870176, len 16384 bytes) key=(bno 870176, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 901056, len 16384 bytes) key=(bno 901056, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 1011104, len 16384 bytes) key=(bno 1011104, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 1046336, len 16384 bytes) key=(bno 1046336, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 1163424, len 16384 bytes) key=(bno 1163424, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 1170240, len 16384 bytes) key=(bno 1170240, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 1702160, len 16384 bytes) key=(bno 1702160, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2004096, len 16384 bytes) key=(bno 2004096, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2020496, len 16384 bytes) key=(bno 2020496, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2023408, len 16384 bytes) key=(bno 2023408, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2054464, len 16384 bytes) key=(bno 2054464, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2113232, len 16384 bytes) key=(bno 2113232, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2453472, len 16384 bytes) key=(bno 2453472, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 2949760, len 16384 bytes) key=(bno 2949760, len 8192 bytes) 7f084d34e700: Badness in key lookup (length) bp=(bno 3118912, len 16384 bytes) key=(bno 3118912, len 8192 bytes) - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 - agno = 16 - agno = 17 - agno = 18 - agno = 19 - agno = 20 - agno = 21 - agno = 22 - agno = 23 - agno = 24 - agno = 25 - agno = 26 - agno = 27 - agno = 28 - agno = 29 - agno = 30 - process newly discovered in odes.. Phase 4 - check for duplicate blocks… - setting up duplicate extent list… - check for inodes claiming duplicate blocks… - agno = 0 - agno = 1 - agno = 3 - agno = 9 - agno = 12 - agno = 14 - agno = 5 - agno = 19 - agno = 23 - agno = 24 - agno = 25 - agno = 26 - agno = 27 - agno = 28 - agno = 29 - agno = 30 - agno = 4 - agno = 2 - agno = 17 - agno = 6 - agno = 8 - agno = 16 - agno = 11 - agno = 10 - agno = 18 - agno = 13 - agno = 15 - agno = 20 - agno = 22 - agno = 21 - agno = 7 No modify flag set, skipping phase 5 Phase 6 - check inode connectivity… - traversing filesystem … - traversal finished … - moving disconnected inodes to lost+found … disconnected inode 6235944, would move to lost+found Phase 7 - verify link counts… would have reset inode 6235944 nlinks from 0 to 1 No modify flag set, skipping filesystem flush and exiting.. 第二步 repair的log sh-4.1$ sudo xfs_repair /dev/glustervg/glusterlv Phase 1 - find and verify superblock… Phase 2 - using internal log - zero log… - scan filesystem freespace and inode maps… agi unlinked bucket 0 is 4046848 in ag 0 (inode=4046848) agi unlinked bucket 5 is 2340485 in ag 0 (inode=2340485) agi unlinked bucket 6 is 2326854 in ag 0 (inode=2326854) agi unlinked bucket 8 is 1802120 in ag 0 (inode=1802120) agi unlinked bucket 14 is 495566 in ag 0 (inode=495566) agi unlinked bucket 16 is 5899536 in ag 0 (inode=5899536) agi unlinked bucket 19 is 4008211 in ag 0 (inode=4008211) agi unlinked bucket 21 is 4906965 in ag 0 (inode=4906965) agi unlinked bucket 23 is 2022231 in ag 0 (inode=2022231) agi unlinked bucket 24 is 1626200 in ag 0 (inode=1626200) agi unlinked bucket 25 is 938585 in ag 0 (inode=938585) agi unlinked bucket 30 is 4226526 in ag 0 (inode=4226526) agi unlinked bucket 34 is 4108962 in ag 0 (inode=4108962) agi unlinked bucket 37 is 1740389 in ag 0 (inode=1740389) agi unlinked bucket 39 is 247399 in ag 0 (inode=247399) agi unlinked bucket 40 is 6237864 in ag 0 (inode=6237864) agi unlinked bucket 43 is 3404331 in ag 0 (inode=3404331) agi unlinked bucket 45 is 2092717 in ag 0 (inode=2092717) agi unlinked bucket 48 is 4041008 in ag 0 (inode=4041008) agi unlinked bucket 50 is 1459762 in ag 0 (inode=1459762) agi unlinked bucket 56 is 852024 in ag 0 (inode=852024) - found root in ode chunk Phase 3 - for each AG… - scan and clear agi unlinked lists… - process known inodes and perform inode discovery… - agno = 0 7f8220be6700: Badness in key lookup (length) bp=(bno 123696, len 16384 bytes) key=(bno 123696, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 247776, len 16384 bytes) key=(bno 247776, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 425984, len 16384 bytes) key=(bno 425984, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 469280, len 16384 bytes) key=(bno 469280, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 729856, len 16384 bytes) key=(bno 729856, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 813072, len 16384 bytes) key=(bno 813072, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 870176, len 16384 bytes) key=(bno 870176, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 901056, len 16384 bytes) key=(bno 901056, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 1011104, len 16384 bytes) key=(bno 1011104, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 1046336, len 16384 bytes) key=(bno 1046336, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 1163424, len 16384 bytes) key=(bno 1163424, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 1170240, len 16384 bytes) key=(bno 1170240, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 1702160, len 16384 bytes) key=(bno 1702160, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2004096, len 16384 bytes) key=(bno 2004096, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2020496, len 16384 bytes) key=(bno 2020496, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2023408, len 16384 bytes) key=(bno 2023408, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2054464, len 16384 bytes) key=(bno 2054464, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2113232, len 16384 bytes) key=(bno 2113232, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2453472, len 16384 bytes) key=(bno 2453472, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 2949760, len 16384 bytes) key=(bno 2949760, len 8192 bytes) 7f8220be6700: Badness in key lookup (length) bp=(bno 3118912, len 16384 bytes) key=(bno 3118912, len 8192 bytes) - agno = 1 - agno = 2 - agno = 3 - agno = 4 - agno = 5 - agno = 6 - agno = 7 - agno = 8 - agno = 9 - agno = 10 - agno = 11 - agno = 12 - agno = 13 - agno = 14 - agno = 15 - agno = 16 - agno = 17 - agno = 18 - agno = 19 - agno = 20 - agno = 21 - agno = 22 - agno = 23 - agno = 24 - agno = 25 - agno = 26 - agno = 27 - agno = 28 - agno = 29 - agno = 30 - process newly discovered in odes.. Phase 4 - check for duplicate blocks… - setting up duplicate extent list… - check for inodes claiming duplicate blocks… - agno = 0 - agno = 4 - agno = 2 - agno = 3 - agno = 7 - agno = 18 - agno = 28 - agno = 6 - agno = 5 - agno = 1 - agno = 26 - agno = 8 - agno = 14 - agno = 17 - agno = 16 - agno = 10 - agno = 20 - agno = 13 - agno = 15 - agno = 11 - agno = 19 - agno = 22 - agno = 21 - agno = 23 - agno = 9 - agno = 12 - agno = 24 - agno = 27 - agno = 25 - agno = 29 - agno = 30 Phase 5 - rebuild AG headers and trees… - reset superblock… Phase 6 - check inode connectivity… - resetting contents of realtime bitmap and summary in odes - traversing filesystem … - traversal finished … - moving disconnected inodes to lost+found … disconnected inode 6235944, moving to lost+found Phase 7 - verify and correct link counts… done sh-4.1$ . 2013/4/9 Eric Sandeen <sandeen@xxxxxxxxxxx>
-- 符永涛 |
| Previous by Date: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, 符永涛 |
|---|---|
| Next by Date: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, Eric Sandeen |
| Previous by Thread: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, Eric Sandeen |
| Next by Thread: | Re: need help how to debug xfs crash issue xfs_iunlink_remove: xfs_inotobp() returned error 22, Eric Sandeen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |