[root@mail ~]# mount /dev/md127 /opt
mount: mount /dev/md127 on /opt failed: Structure needs cleaning
[root@mail ~]#

Dilakukan perbaikan

[root@mail ~]# xfs_repair /dev/md127
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.
[root@mail ~]#
[root@mail ~]# xfs_repair /dev/md127 -L
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 unlinked bucket 48 is 74178224 in ag 7 (inode=15106563760)
block (1,23869431-23869431) multiply claimed by cnt space tree, state - 2
block (1,23872166-23872166) multiply claimed by cnt space tree, state - 2
agf_freeblks 216834, counted 216876 in ag 1
agi unlinked bucket 3 is 46444611 in ag 2 (inode=4341411907)
agi unlinked bucket 5 is 46444613 in ag 2 (inode=4341411909)
agi unlinked bucket 31 is 84953375 in ag 2 (inode=4379920671)
agi unlinked bucket 56 is 46441016 in ag 2 (inode=4341408312)
agi unlinked bucket 61 is 46441021 in ag 2 (inode=4341408317)
agi unlinked bucket 63 is 46413503 in ag 2 (inode=4341380799)
block (5,74040-74040) multiply claimed by cnt space tree, state - 2
agf_freeblks 16916207, counted 16916156 in ag 3
agf_freeblks 47305350, counted 47305360 in ag 5
agi unlinked bucket 0 is 592064 in ag 5 (inode=10738010304)
sb_ifree 69744, counted 69303
sb_fdblocks 388552578, counted 388498638
        - 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
data fork in ino 2338423983 claims free block 292304867
data fork in ino 2338460769 claims free block 292307605
        - agno = 2
imap claims a free inode 4473520950 is in use, correcting imap and clearing inode
cleared inode 4473520950
imap claims a free inode 4553407895 is in use, correcting imap and clearing inode
cleared inode 4553407895
        - agno = 3
        - agno = 4
        - agno = 5
        - agno = 6
correcting bad hashval in non-leaf directory block
        in (level 1) in inode 12886220102.
        - agno = 7
        - 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
entry "_3c.fnm" at block 0 offset 3672 in directory inode 4341392515 references free inode 4473520950
        clearing inode number in entry at offset 3672...
entry "_1dy.cfs" at block 3 offset 2032 in directory inode 4341392515 references free inode 4553407895
        clearing inode number in entry at offset 2032...
        - agno = 4
        - agno = 5
        - agno = 6
        - agno = 7
Phase 5 - rebuild AG headers and trees...
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - traversing filesystem ...
rebuilding directory inode 4341392515
bad hash table for directory inode 6527430436 (no leaf entry): rebuilding
rebuilding directory inode 6527430436
rebuilding directory inode 6535879493
bad hash table for directory inode 6539063524 (no leaf entry): rebuilding
rebuilding directory inode 6539063524
rebuilding directory inode 8636291616
bad hash table for directory inode 8639013282 (no leaf entry): rebuilding
rebuilding directory inode 8639013282
rebuilding directory inode 8639013499
rebuilding directory inode 10748849701
free block 16777216 entry 13 for directory ino 15101396763 bad
rebuilding directory inode 15101396763
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
disconnected inode 2313786620, moving to lost+found
disconnected inode 2326665785, moving to lost+found
disconnected inode 2342268360, moving to lost+found
disconnected inode 2342268361, moving to lost+found
disconnected inode 2342268362, moving to lost+found
disconnected inode 2342268363, moving to lost+found
disconnected inode 2342268364, moving to lost+found
disconnected inode 2342268365, moving to lost+found
disconnected inode 2342268366, moving to lost+found
disconnected inode 2342268367, moving to lost+found
disconnected inode 2342268368, moving to lost+found
disconnected inode 2342268369, moving to lost+found
disconnected inode 2342268370, moving to lost+found
disconnected inode 2342268371, moving to lost+found
disconnected inode 2342268372, moving to lost+found
disconnected inode 2342268373, moving to lost+found
disconnected inode 2342268374, moving to lost+found
disconnected inode 2342268375, moving to lost+found
disconnected inode 2342268376, moving to lost+found
disconnected inode 2342268377, moving to lost+found
disconnected inode 2342268378, moving to lost+found
disconnected inode 2342268379, moving to lost+found
disconnected inode 2342268380, moving to lost+found
disconnected inode 2342268381, moving to lost+found
disconnected inode 2342268382, moving to lost+found
disconnected inode 2342268383, moving to lost+found
disconnected inode 2342268384, moving to lost+found
disconnected inode 2342268385, moving to lost+found
disconnected inode 2342268386, moving to lost+found
disconnected inode 2342268387, moving to lost+found
disconnected inode 2342268388, moving to lost+found
disconnected inode 2342268389, moving to lost+found
disconnected inode 2342268390, moving to lost+found
disconnected inode 2342268391, moving to lost+found
disconnected inode 2342268392, moving to lost+found
disconnected inode 2342268393, moving to lost+found
disconnected inode 2342268394, moving to lost+found
disconnected inode 2342268395, moving to lost+found
disconnected inode 2342268396, moving to lost+found
disconnected inode 2342268397, moving to lost+found
disconnected inode 2342268398, moving to lost+found
disconnected inode 2342268399, moving to lost+found
disconnected inode 2342268403, moving to lost+found
disconnected inode 2342268404, moving to lost+found
disconnected inode 2342268405, moving to lost+found
disconnected inode 2342268406, moving to lost+found
disconnected inode 2342268407, moving to lost+found
disconnected inode 2342268408, moving to lost+found
disconnected inode 4341380799, moving to lost+found
disconnected inode 4341408312, moving to lost+found
disconnected inode 4341408317, moving to lost+found
disconnected inode 4341411907, moving to lost+found
disconnected inode 4341411909, moving to lost+found
disconnected inode 4379920671, moving to lost+found
disconnected inode 10738010304, moving to lost+found
disconnected inode 15106563760, moving to lost+found
Phase 7 - verify and correct link counts...
resetting inode 2258956506 nlinks from 7 to 6
resetting inode 2313786613 nlinks from 7 to 6
resetting inode 2333803858 nlinks from 6 to 5
resetting inode 2341908258 nlinks from 12 to 11
Maximum metadata LSN (470:1069816) is ahead of log (1:8).
Format log to cycle 473.
done
[root@mail ~]# mount /dev/md127 /opt
[root@mail ~]#

Disk bisa di mount kembali

[root@mail ~]# df -hT
Filesystem                       Type      Size  Used Avail Use% Mounted on
devtmpfs                         devtmpfs  7.8G     0  7.8G   0% /dev
tmpfs                            tmpfs     7.8G     0  7.8G   0% /dev/shm
tmpfs                            tmpfs     7.8G  9.7M  7.8G   1% /run
tmpfs                            tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/mapper/cl_dartjkt--wdd-root xfs        50G  6.7G   44G  14% /
tmpfs                            tmpfs     7.8G  192K  7.8G   1% /tmp
/dev/sdb1                        xfs      1014M  212M  803M  21% /boot
/dev/mapper/cl_dartjkt--wdd-home xfs       873G  5.5G  867G   1% /home
tmpfs                            tmpfs     1.6G   24K  1.6G   1% /run/user/1000
tmpfs                            tmpfs     1.6G     0  1.6G   0% /run/user/0
/dev/md127                       xfs       7.3T  5.9T  1.5T  81% /opt
[root@mail ~]#

Leave a Reply

Your email address will not be published. Required fields are marked *