|
|
6 }+ R3 o& f J6 A! p5 Z/ m
6 Q) u. U% N8 E" D# Z a$ {9 i1 y这种问题只能靠修复来完成了
- |9 q8 ^# N# r7 z[root@compute03 images]# rbd ls -p hdd-8T-volumes|grep 94d18fa8-4f51-48e3-bb13-032400a71c0f % C* d- ~3 [: Z% C% e h/ ~. r
volume-94d18fa8-4f51-48e3-bb13-032400a71c0f6 O \1 B7 H2 k7 s6 V
[root@compute03 images]# rbd map hdd-8T-volumes/volume-94d18fa8-4f51-48e3-bb13-032400a71c0f1 k0 e1 O# y/ i+ r
/dev/rbd0' b! V" l( X t0 \/ ^
4 X( |& j8 G s, C% f0 x" r }
' p. B3 U; {& h. A
# L8 ]- v4 c1 O1 Q- K
[root@compute03 images]# xfs_repair -L /dev/rbd0p1
( n" O6 n/ d4 {# _4 K& V; qPhase 1 - find and verify superblock...
1 a+ T3 B! u# B. z& l4 vPhase 2 - using internal log
* z+ x' c2 ~! m: c - zero log...
+ }$ C& L$ @1 T! F' c N' f( oALERT: The filesystem has valuable metadata changes in a log which is being
3 L$ u& U6 l8 u4 gdestroyed because the -L option was used.
j( ~3 J: k; F) }7 V* | - scan filesystem freespace and inode maps...6 _" ?# w" Z& z1 I8 ?
sb_fdblocks 90682, counted 97082
+ g3 ~3 _0 U/ F$ J3 x+ D* w - found root inode chunk
. |. r6 u, ~0 U6 X' f1 \. ?" IPhase 3 - for each AG...
x- o# w6 y% t+ T - scan and clear agi unlinked lists...
+ c4 F. F+ p) y" Y" @* k5 U f6 A - process known inodes and perform inode discovery...
/ r/ L2 V4 i* [1 d; D7 g* r - agno = 0
/ T; A8 c( i- ~. D$ r7 q, t - agno = 1, G; e+ _9 g2 q3 u0 L$ n0 ?2 \
- agno = 2& I- d4 \( T3 v; @
- agno = 3
# c H9 ?& W- @3 H% a: c: H9 Q - process newly discovered inodes...
/ [( ]# q2 b' }* @$ e4 uPhase 4 - check for duplicate blocks...
E# q$ b# Z7 t - setting up duplicate extent list...+ s8 ~5 }) R% C# I' f b1 [
- check for inodes claiming duplicate blocks...% T7 J6 h+ N8 T9 v5 ?
- agno = 0
; R) k1 |$ j0 ~' w# E - agno = 13 J: C: j; O5 t/ |+ k
- agno = 21 |8 m# J. B7 C7 i
- agno = 3: S0 t2 ]9 P$ Z! m1 `$ {' `
Phase 5 - rebuild AG headers and trees...
. `- \5 `8 u2 \* e& D4 q4 q- b - reset superblock...
1 Y5 S2 t- @! j4 }0 NPhase 6 - check inode connectivity...
; V4 j5 w, ?2 V; v/ [5 Y8 C! v - resetting contents of realtime bitmap and summary inodes
2 ~$ i; K! i" v) C/ \ - traversing filesystem ...$ ?2 Q2 h% l- ?1 `3 ~1 S: W4 M- ^
- traversal finished ...$ @' ?2 {! k. n/ ?
- moving disconnected inodes to lost+found ...
! {2 F4 K+ X; r' `# P) aPhase 7 - verify and correct link counts...
2 w: b" O7 @7 t- LMaximum metadata LSN (1:3530) is ahead of log (1:2).7 f! W" ]1 C2 J4 \2 Y! ~
Format log to cycle 4.4 n* u9 X+ I, h1 j7 @4 s( W
done
4 P3 M. y# F' k! s! @) i7 v0 `# N2 O1 @4 U! G, P
! T1 m+ w+ Q6 u) @; e. h0 w
: K' n" u0 Z8 H% N
[root@compute03 images]# rbd unmap hdd-8T-volumes/volume-94d18fa8-4f51-48e3-bb13-032400a71c0f
8 ]: j3 b7 o! {, Q2 ], O* W' [ |
|