重启机器,起不来了,
手工安装 mount -a
报无法读超块。
mount: /u01: can't read superblock on /dev/sdb1
[root@dbserver8 ~]# xfs_repair /dev/sdb1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair. If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
使用 -L 选线后,问题解决。
[root@dbserver8 ~]# xfs_repair -L /dev/sdb1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
ALERT: The filesystem has valuable metadata changes in a log which is being
destroyed because the -L option was used.
- scan filesystem freespace and inode maps...
agi_count 21632, counted 21568 in ag 3
agi_freecount 50, counted 51 in ag 3
agi unlinked bucket 54 is 7733750 in ag 3 (inode=108397046)
sb_icount 102656, counted 102784
sb_ifree 189, counted 134
sb_fdblocks 8219572, counted 8204171
- 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
correcting imap
- process newly discovered inodes...
Phase 4 - check for duplicate blocks...
- setting up duplicate extent list...
- check for inodes claiming duplicate blocks...
- agno = 0
- agno = 2
- agno = 3
- agno = 1
entry "org-openide-text" at block 1 offset 1280 in directory inode 76647100 references non-existent inode 108669568
clearing inode number in entry at offset 1280...
entry "org-openide-nodes_zh_CN" at block 1 offset 1360 in directory inode 76647100 references non-existent inode 108669569
clearing inode number in entry at offset 1360...
entry "com-sun-tools-visualvm-sa_zh_CN" at block 1 offset 1448 in directory inode 76647100 references non-existent inode 108669570
clearing inode number in entry at offset 1448...
entry "org-netbeans-modules-queries_ja" at block 1 offset 1544 in directory inode 76647100 references non-existent inode 108669571
clearing inode number in entry at offset 1544...
entry "org-netbeans-modules-print_zh_CN" at block 1 offset 1624 in directory inode 76647100 references non-existent inode 108669572
clearing inode number in entry at offset 1624...
entry "org-openide-execution" at block 1 offset 1728 in directory inode 76647100 references non-existent inode 108669573
clearing inode number in entry at offset 1728...
entry "com-sun-tools-visualvm-application_ja" at block 1 offset 1816 in directory inode 76647100 references non-existent inode 108669574
clearing inode number in entry at offset 1816...
entry "com-sun-tools-visualvm-sa" at block 1 offset 1920 in directory inode 76647100 references non-existent inode 108669575
clearing inode number in entry at offset 1920...
entry "org-openide-options_zh_CN" at block 1 offset 2000 in directory inode 76647100 references non-existent inode 108669576
clearing inode number in entry at offset 2000...
entry "org-netbeans-modules-autoupdate-ui" at block 1 offset 2088 in directory inode 76647100 references non-existent inode 108669577
clearing inode number in entry at offset 2088...
entry "org-netbeans-modules-applemenu" at block 1 offset 2184 in directory inode 76647100 references non-existent inode 108669578
clearing inode number in entry at offset 2184...
entry "org-netbeans-core-io-ui" at block 1 offset 2264 in directory inode 76647100 references non-existent inode 108669579
clearing inode number in entry at offset 2264...
entry "org-openide-filesystems_zh_CN" at block 1 offset 2360 in directory inode 76647100 references non-existent inode 108669580
clearing inode number in entry at offset 2360...
entry "org-netbeans-swing-outline" at block 1 offset 2456 in directory inode 76647100 references non-existent inode 108669581
clearing inode number in entry at offset 2456...
entry "org-openide-text_zh_CN" at block 1 offset 2536 in directory inode 76647100 references non-existent inode 108669582
clearing inode number in entry at offset 2536...
entry "com-sun-tools-visualvm-api-caching" at block 1 offset 2624 in directory inode 76647100 references non-existent inode 108669583
clearing inode number in entry at offset 2624...
entry "jfluid-server-15" at block 1 offset 2728 in directory inode 76647100 references non-existent inode 108669584
clearing inode number in entry at offset 2728...
entry "com-sun-tools-visualvm-charts_zh_CN" at block 1 offset 2792 in directory inode 76647100 references non-existent inode 108669585
clearing inode number in entry at offset 2792...
entry "com-sun-tools-visualvm-application-views" at block 1 offset 2896 in directory inode 76647100 references non-existent inode 108669586
clearing inode number in entry at offset 2896...
entry "com-sun-tools-visualvm-coredump" at block 1 offset 2976 in directory inode 76647100 references non-existent inode 108669587
clearing inode number in entry at offset 2976...
entry "org-netbeans-modules-profiler-selector-api" at block 1 offset 3080 in directory inode 76647100 references non-existent inode 108669588
clearing inode number in entry at offset 3080...
entry "com-sun-tools-visualvm-host-views_ja" at block 1 offset 3160 in directory inode 76647100 references non-existent inode 108669589
clearing inode number in entry at offset 3160...
entry "org-netbeans-spi-quicksearch_zh_CN" at block 1 offset 3240 in directory inode 76647100 references non-existent inode 108669590
clearing inode number in entry at offset 3240...
entry "org-netbeans-modules-keyring-fallback" at block 1 offset 3344 in directory inode 76647100 references non-existent inode 108669591
clearing inode number in entry at offset 3344...
entry "org-openide-awt_ja" at block 1 offset 3448 in directory inode 76647100 references non-existent inode 108669592
clearing inode number in entry at offset 3448...
entry "org-netbeans-modules-favorites_zh_CN" at block 1 offset 3528 in directory inode 76647100 references non-existent inode 108669593
clearing inode number in entry at offset 3528...
entry "org-netbeans-modules-options-api" at block 1 offset 3616 in directory inode 76647100 references non-existent inode 108669594
clearing inode number in entry at offset 3616...
entry "org-openide-awt_zh_CN" at block 1 offset 3704 in directory inode 76647100 references non-existent inode 108669595
clearing inode number in entry at offset 3704...
entry "org-netbeans-lib-profiler-common" at block 1 offset 3776 in directory inode 76647100 references non-existent inode 108669596
clearing inode number in entry at offset 3776...
entry "org-netbeans-modules-print_ja" at block 1 offset 3872 in directory inode 76647100 references non-existent inode 108669597
clearing inode number in entry at offset 3872...
entry "org-netbeans-modules-masterfs-nio2_zh_CN" at block 1 offset 3968 in directory inode 76647100 references non-existent inode 108669598
clearing inode number in entry at offset 3968...
entry "com-sun-tools-visualvm-heapdump_zh_CN" at block 2 offset 64 in directory inode 76647100 references non-existent inode 108669599
clearing inode number in entry at offset 64...
entry "org-netbeans-modules-masterfs-nio2_ja" at block 2 offset 176 in directory inode 76647100 references non-existent inode 108669600
clearing inode number in entry at offset 176...
entry "org-openide-modules_ja" at block 2 offset 272 in directory inode 76647100 references non-existent inode 108669601
clearing inode number in entry at offset 272...
entry "org-netbeans-modules-autoupdate-ui_ja" at block 2 offset 352 in directory inode 76647100 references non-existent inode 108669602
clearing inode number in entry at offset 352...
entry "org-openide-util_ja" at block 2 offset 456 in directory inode 76647100 references non-existent inode 108669603
clearing inode number in entry at offset 456...
entry "com-sun-tools-visualvm-application" at block 2 offset 544 in directory inode 76647100 references non-existent inode 108669604
clearing inode number in entry at offset 544...
entry "org-netbeans-modules-core-kit_ja" at block 2 offset 640 in directory inode 76647100 references non-existent inode 108669605
clearing inode number in entry at offset 640...
entry "com-sun-tools-visualvm-host-remote_zh_CN" at block 2 offset 744 in directory inode 76647100 references non-existent inode 108669606
clearing inode number in entry at offset 744...
entry "org-netbeans-modules-options-keymap_ja" at block 2 offset 848 in directory inode 76647100 references non-existent inode 108669607
clearing inode number in entry at offset 848...
entry "com-sun-tools-visualvm-heapdump" at block 2 offset 952 in directory inode 76647100 references non-existent inode 108669608
clearing inode number in entry at offset 952...
entry "org-netbeans-modules-profiler-selector-api_zh_CN" at block 2 offset 1048 in directory inode 76647100 references non-existent inode 108669609
clearing inode number in entry at offset 1048...
entry "org-netbeans-modules-sampler_zh_CN" at block 2 offset 1144 in directory inode 76647100 references non-existent inode 108669610
clearing inode number in entry at offset 1144...
entry "org-netbeans-modules-editor-mimelookup" at block 2 offset 1248 in directory inode 76647100 references non-existent inode 108669611
clearing inode number in entry at offset 1248...
entry "com-sun-tools-visualvm-jvm_ja" at block 2 offset 1360 in directory inode 76647100 references non-existent inode 108669612
clearing inode number in entry at offset 1360...
entry "com-sun-tools-visualvm-jmx" at block 2 offset 1448 in directory inode 76647100 references non-existent inode 108669613
clearing inode number in entry at offset 1448...
entry "org-netbeans-lib-uihandler_zh_CN" at block 2 offset 1520 in directory inode 76647100 references non-existent inode 108669614
clearing inode number in entry at offset 1520...
entry "org-openide-dialogs_ja" at block 2 offset 1624 in directory inode 76647100 references non-existent inode 108669615
clearing inode number in entry at offset 1624...
entry "org-netbeans-core-windows_visualvm" at block 2 offset 1712 in directory inode 76647100 references non-existent inode 108669616
clearing inode number in entry at offset 1712...
entry "com-sun-tools-visualvm-uisupport_ja" at block 2 offset 1808 in directory inode 76647100 references non-existent inode 108669617
clearing inode number in entry at offset 1808...
entry "org-netbeans-lib-profiler-ui_zh_CN" at block 2 offset 1904 in directory inode 76647100 references non-existent inode 108669618
clearing inode number in entry at offset 1904...
entry "org-netbeans-modules-sampler" at block 2 offset 2000 in directory inode 76647100 references non-existent inode 108669619
clearing inode number in entry at offset 2000...
entry "org-netbeans-core-output2" at block 2 offset 2088 in directory inode 76647100 references non-existent inode 108669620
clearing inode number in entry at offset 2088...
entry "com-sun-tools-visualvm-sampler_zh_CN" at block 2 offset 2176 in directory inode 76647100 references non-existent inode 108669621
clearing inode number in entry at offset 2176...
entry "com-sun-tools-visualvm-jvmstat" at block 2 offset 2272 in directory inode 76647100 references non-existent inode 108669622
clearing inode number in entry at offset 2272...
entry "org-netbeans-modules-options-api_zh_CN" at block 2 offset 2368 in directory inode 76647100 references non-existent inode 108669623
clearing inode number in entry at offset 2368...
entry "org-netbeans-modules-core-kit_zh_CN" at block 2 offset 2472 in directory inode 76647100 references non-existent inode 108669624
clearing inode number in entry at offset 2472...
entry "org-netbeans-modules-masterfs-nio2" at block 2 offset 2576 in directory inode 76647100 references non-existent inode 108669625
clearing inode number in entry at offset 2576...
entry "com-sun-tools-visualvm-attach_ja" at block 2 offset 2664 in directory inode 76647100 references non-existent inode 108669626
clearing inode number in entry at offset 2664...
entry "org-openide-loaders_zh_CN" at block 2 offset 2744 in directory inode 76647100 references non-existent inode 108669627
clearing inode number in entry at offset 2744...
entry "com-sun-tools-visualvm-host-views_zh_CN" at block 2 offset 2832 in directory inode 76647100 references non-existent inode 108669628
clearing inode number in entry at offset 2832...
entry "org-netbeans-modules-keyring-impl_zh_CN" at block 2 offset 2928 in directory inode 76647100 references non-existent inode 108669629
clearing inode number in entry at offset 2928...
entry "org-netbeans-modules-profiler-snaptracer_ja" at block 2 offset 3024 in directory inode 76647100 references non-existent inode 108669630
clearing inode number in entry at offset 3024...
entry "org-netbeans-modules-spi-actions_zh_CN" at block 2 offset 3120 in directory inode 76647100 references non-existent inode 108669631
clearing inode number in entry at offset 3120...
Phase 5 - rebuild AG headers and trees...
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- traversing filesystem ...
bad hash table for directory inode 76647100 (no data entry): rebuilding
rebuilding directory inode 76647100
- traversal finished ...
- moving disconnected inodes to lost+found ...
disconnected dir inode 18303242, moving to lost+found
disconnected dir inode 18303245, moving to lost+found
disconnected dir inode 18303248, moving to lost+found
disconnected dir inode 18303251, moving to lost+found
disconnected dir inode 18303254, moving to lost+found
disconnected dir inode 18303257, moving to lost+found
disconnected dir inode 18303260, moving to lost+found
disconnected dir inode 18303263, moving to lost+found
disconnected dir inode 18303266, moving to lost+found
disconnected dir inode 18303269, moving to lost+found
disconnected dir inode 18303272, moving to lost+found
disconnected dir inode 18303275, moving to lost+found
disconnected dir inode 18303278, moving to lost+found
disconnected dir inode 18303281, moving to lost+found
disconnected dir inode 18303284, moving to lost+found
disconnected dir inode 18303287, moving to lost+found
disconnected dir inode 18303290, moving to lost+found
disconnected dir inode 18303293, moving to lost+found
disconnected dir inode 18303680, moving to lost+found
disconnected dir inode 18303683, moving to lost+found
disconnected dir inode 18303686, moving to lost+found
disconnected dir inode 18303689, moving to lost+found
disconnected dir inode 18303692, moving to lost+found
disconnected dir inode 18303695, moving to lost+found
disconnected dir inode 18303698, moving to lost+found
disconnected dir inode 18303701, moving to lost+found
disconnected dir inode 18303704, moving to lost+found
disconnected dir inode 18303707, moving to lost+found
disconnected dir inode 18303710, moving to lost+found
disconnected dir inode 18303713, moving to lost+found
disconnected dir inode 18303716, moving to lost+found
disconnected dir inode 18303719, moving to lost+found
disconnected dir inode 18303722, moving to lost+found
disconnected dir inode 18303725, moving to lost+found
disconnected dir inode 18303728, moving to lost+found
disconnected dir inode 18303731, moving to lost+found
disconnected dir inode 18303734, moving to lost+found
disconnected dir inode 18303737, moving to lost+found
disconnected dir inode 18303740, moving to lost+found
disconnected dir inode 18303743, moving to lost+found
disconnected dir inode 18303746, moving to lost+found
disconnected dir inode 18303749, moving to lost+found
disconnected dir inode 18303752, moving to lost+found
disconnected dir inode 18303755, moving to lost+found
disconnected dir inode 18303758, moving to lost+found
disconnected dir inode 18303761, moving to lost+found
disconnected dir inode 18303764, moving to lost+found
disconnected dir inode 18303767, moving to lost+found
disconnected dir inode 18303770, moving to lost+found
disconnected dir inode 18303773, moving to lost+found
disconnected dir inode 18303776, moving to lost+found
disconnected dir inode 18303779, moving to lost+found
disconnected dir inode 18303782, moving to lost+found
disconnected dir inode 18303785, moving to lost+found
disconnected dir inode 18303788, moving to lost+found
disconnected dir inode 18303791, moving to lost+found
disconnected dir inode 18303794, moving to lost+found
disconnected dir inode 18303797, moving to lost+found
disconnected dir inode 18303800, moving to lost+found
disconnected dir inode 18303803, moving to lost+found
disconnected dir inode 18303806, moving to lost+found
disconnected dir inode 18304001, moving to lost+found
disconnected dir inode 18304004, moving to lost+found
disconnected dir inode 18304007, moving to lost+found
disconnected inode 108397046, moving to lost+found
Phase 7 - verify and correct link counts...
resetting inode 18872576 nlinks from 2 to 66
resetting inode 76647100 nlinks from 314 to 250
Maximum metadata LSN (29:30278) is ahead of log (1:2).
Format log to cycle 32.
done
[root@dbserver8 ~]# xfs_repair /dev/sdb1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
- zero log...
- 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 = 3
- agno = 2
- agno = 1
Phase 5 - rebuild AG headers and trees...
- reset superblock...
Phase 6 - check inode connectivity...
- resetting contents of realtime bitmap and summary inodes
- traversing filesystem ...
- traversal finished ...
- moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done
[root@dbserver8 ~]# mount /dev/sdb1 /u01
[root@dbserver8 ~]# mount /dev/sdb1 /u01
[root@dbserver8 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 3.8G 9.7M 3.8G 1% /run
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/cl-root 60G 4.9G 56G 9% /
/dev/sda1 1014M 323M 692M 32% /boot
tmpfs 775M 1.2M 774M 1% /run/user/42
tmpfs 775M 0 775M 0% /run/user/0
/dev/sdb1 50G 20G 31G 39% /u01
问题解决。
|