Shell
x
4
1
[root@mail ~]# mount /dev/md127 /opt
2
mount: mount /dev/md127 on /opt failed: Structure needs cleaning
3
[root@mail ~]#
4
Dilakukan perbaikan
Shell
1
156
156
1
[root@mail ~]# xfs_repair /dev/md127
2
Phase 1 - find and verify superblock...
3
Phase 2 - using internal log
4
- zero log...
5
ERROR: The filesystem has valuable metadata changes in a log which needs to
6
be replayed. Mount the filesystem to replay the log, and unmount it before
7
re-running xfs_repair. If you are unable to mount the filesystem, then use
8
the -L option to destroy the log and attempt a repair.
9
Note that destroying the log may cause corruption -- please attempt a mount
10
of the filesystem before doing this.
11
[root@mail ~]#
12
[root@mail ~]# xfs_repair /dev/md127 -L
13
Phase 1 - find and verify superblock...
14
Phase 2 - using internal log
15
- zero log...
16
ALERT: The filesystem has valuable metadata changes in a log which is being
17
destroyed because the -L option was used.
18
- scan filesystem freespace and inode maps...
19
agi unlinked bucket 48 is 74178224 in ag 7 (inode=15106563760)
20
block (1,23869431-23869431) multiply claimed by cnt space tree, state - 2
21
block (1,23872166-23872166) multiply claimed by cnt space tree, state - 2
22
agf_freeblks 216834, counted 216876 in ag 1
23
agi unlinked bucket 3 is 46444611 in ag 2 (inode=4341411907)
24
agi unlinked bucket 5 is 46444613 in ag 2 (inode=4341411909)
25
agi unlinked bucket 31 is 84953375 in ag 2 (inode=4379920671)
26
agi unlinked bucket 56 is 46441016 in ag 2 (inode=4341408312)
27
agi unlinked bucket 61 is 46441021 in ag 2 (inode=4341408317)
28
agi unlinked bucket 63 is 46413503 in ag 2 (inode=4341380799)
29
block (5,74040-74040) multiply claimed by cnt space tree, state - 2
30
agf_freeblks 16916207, counted 16916156 in ag 3
31
agf_freeblks 47305350, counted 47305360 in ag 5
32
agi unlinked bucket 0 is 592064 in ag 5 (inode=10738010304)
33
sb_ifree 69744, counted 69303
34
sb_fdblocks 388552578, counted 388498638
35
- found root inode chunk
36
Phase 3 - for each AG...
37
- scan and clear agi unlinked lists...
38
- process known inodes and perform inode discovery...
39
- agno = 0
40
- agno = 1
41
data fork in ino 2338423983 claims free block 292304867
42
data fork in ino 2338460769 claims free block 292307605
43
- agno = 2
44
imap claims a free inode 4473520950 is in use, correcting imap and clearing inode
45
cleared inode 4473520950
46
imap claims a free inode 4553407895 is in use, correcting imap and clearing inode
47
cleared inode 4553407895
48
- agno = 3
49
- agno = 4
50
- agno = 5
51
- agno = 6
52
correcting bad hashval in non-leaf directory block
53
in (level 1) in inode 12886220102.
54
- agno = 7
55
- process newly discovered inodes...
56
Phase 4 - check for duplicate blocks...
57
- setting up duplicate extent list...
58
- check for inodes claiming duplicate blocks...
59
- agno = 0
60
- agno = 1
61
- agno = 2
62
- agno = 3
63
entry "_3c.fnm" at block 0 offset 3672 in directory inode 4341392515 references free inode 4473520950
64
clearing inode number in entry at offset 3672...
65
entry "_1dy.cfs" at block 3 offset 2032 in directory inode 4341392515 references free inode 4553407895
66
clearing inode number in entry at offset 2032...
67
- agno = 4
68
- agno = 5
69
- agno = 6
70
- agno = 7
71
Phase 5 - rebuild AG headers and trees...
72
- reset superblock...
73
Phase 6 - check inode connectivity...
74
- resetting contents of realtime bitmap and summary inodes
75
- traversing filesystem ...
76
rebuilding directory inode 4341392515
77
bad hash table for directory inode 6527430436 (no leaf entry): rebuilding
78
rebuilding directory inode 6527430436
79
rebuilding directory inode 6535879493
80
bad hash table for directory inode 6539063524 (no leaf entry): rebuilding
81
rebuilding directory inode 6539063524
82
rebuilding directory inode 8636291616
83
bad hash table for directory inode 8639013282 (no leaf entry): rebuilding
84
rebuilding directory inode 8639013282
85
rebuilding directory inode 8639013499
86
rebuilding directory inode 10748849701
87
free block 16777216 entry 13 for directory ino 15101396763 bad
88
rebuilding directory inode 15101396763
89
- traversal finished ...
90
- moving disconnected inodes to lost+found ...
91
disconnected inode 2313786620, moving to lost+found
92
disconnected inode 2326665785, moving to lost+found
93
disconnected inode 2342268360, moving to lost+found
94
disconnected inode 2342268361, moving to lost+found
95
disconnected inode 2342268362, moving to lost+found
96
disconnected inode 2342268363, moving to lost+found
97
disconnected inode 2342268364, moving to lost+found
98
disconnected inode 2342268365, moving to lost+found
99
disconnected inode 2342268366, moving to lost+found
100
disconnected inode 2342268367, moving to lost+found
101
disconnected inode 2342268368, moving to lost+found
102
disconnected inode 2342268369, moving to lost+found
103
disconnected inode 2342268370, moving to lost+found
104
disconnected inode 2342268371, moving to lost+found
105
disconnected inode 2342268372, moving to lost+found
106
disconnected inode 2342268373, moving to lost+found
107
disconnected inode 2342268374, moving to lost+found
108
disconnected inode 2342268375, moving to lost+found
109
disconnected inode 2342268376, moving to lost+found
110
disconnected inode 2342268377, moving to lost+found
111
disconnected inode 2342268378, moving to lost+found
112
disconnected inode 2342268379, moving to lost+found
113
disconnected inode 2342268380, moving to lost+found
114
disconnected inode 2342268381, moving to lost+found
115
disconnected inode 2342268382, moving to lost+found
116
disconnected inode 2342268383, moving to lost+found
117
disconnected inode 2342268384, moving to lost+found
118
disconnected inode 2342268385, moving to lost+found
119
disconnected inode 2342268386, moving to lost+found
120
disconnected inode 2342268387, moving to lost+found
121
disconnected inode 2342268388, moving to lost+found
122
disconnected inode 2342268389, moving to lost+found
123
disconnected inode 2342268390, moving to lost+found
124
disconnected inode 2342268391, moving to lost+found
125
disconnected inode 2342268392, moving to lost+found
126
disconnected inode 2342268393, moving to lost+found
127
disconnected inode 2342268394, moving to lost+found
128
disconnected inode 2342268395, moving to lost+found
129
disconnected inode 2342268396, moving to lost+found
130
disconnected inode 2342268397, moving to lost+found
131
disconnected inode 2342268398, moving to lost+found
132
disconnected inode 2342268399, moving to lost+found
133
disconnected inode 2342268403, moving to lost+found
134
disconnected inode 2342268404, moving to lost+found
135
disconnected inode 2342268405, moving to lost+found
136
disconnected inode 2342268406, moving to lost+found
137
disconnected inode 2342268407, moving to lost+found
138
disconnected inode 2342268408, moving to lost+found
139
disconnected inode 4341380799, moving to lost+found
140
disconnected inode 4341408312, moving to lost+found
141
disconnected inode 4341408317, moving to lost+found
142
disconnected inode 4341411907, moving to lost+found
143
disconnected inode 4341411909, moving to lost+found
144
disconnected inode 4379920671, moving to lost+found
145
disconnected inode 10738010304, moving to lost+found
146
disconnected inode 15106563760, moving to lost+found
147
Phase 7 - verify and correct link counts...
148
resetting inode 2258956506 nlinks from 7 to 6
149
resetting inode 2313786613 nlinks from 7 to 6
150
resetting inode 2333803858 nlinks from 6 to 5
151
resetting inode 2341908258 nlinks from 12 to 11
152
Maximum metadata LSN (470:1069816) is ahead of log (1:8).
153
Format log to cycle 473.
154
done
155
[root@mail ~]# mount /dev/md127 /opt
156
[root@mail ~]#
Disk bisa di mount kembali
Shell
1
14
14
1
[root@mail ~]# df -hT
2
Filesystem Type Size Used Avail Use% Mounted on
3
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
4
tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm
5
tmpfs tmpfs 7.8G 9.7M 7.8G 1% /run
6
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
7
/dev/mapper/cl_dartjkt--wdd-root xfs 50G 6.7G 44G 14% /
8
tmpfs tmpfs 7.8G 192K 7.8G 1% /tmp
9
/dev/sdb1 xfs 1014M 212M 803M 21% /boot
10
/dev/mapper/cl_dartjkt--wdd-home xfs 873G 5.5G 867G 1% /home
11
tmpfs tmpfs 1.6G 24K 1.6G 1% /run/user/1000
12
tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0
13
/dev/md127 xfs 7.3T 5.9T 1.5T 81% /opt
14
[root@mail ~]#