找回密码
 注册
查看: 647|回复: 1

ceph存储对应的虚机无法正常启动Failed to mount /sysroot

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-8-12 10:39:39 | 显示全部楼层 |阅读模式
% e$ N+ M( r# Y+ o1 c, p
4 b, U, k+ p: [7 H: K
这种问题只能靠修复来完成了; b4 I' s% ^* D% c5 b
[root@compute03 images]# rbd ls -p hdd-8T-volumes|grep 94d18fa8-4f51-48e3-bb13-032400a71c0f  6 [# q2 ~+ I5 W# i: U
volume-94d18fa8-4f51-48e3-bb13-032400a71c0f! `  U, [* O- K$ {+ @
[root@compute03 images]# rbd map hdd-8T-volumes/volume-94d18fa8-4f51-48e3-bb13-032400a71c0f# u0 M) E1 `; e2 n- h
/dev/rbd0
; g1 F& _& M, N, p% I
6 f  T+ e7 X8 O1 o# v: _6 E. ]( i* @4 H. s* W3 {/ ]

3 }# A2 \- e' Z5 p- T0 h4 C8 F[root@compute03 images]# xfs_repair -L /dev/rbd0p1 + A( `1 f5 C& k
Phase 1 - find and verify superblock...$ H+ ^% E- O9 A# R0 j
Phase 2 - using internal log- M1 ~! }" {$ s2 v! i
        - zero log...
: r/ B8 S- Q5 a% F5 l" hALERT: The filesystem has valuable metadata changes in a log which is being+ g5 S( ~" ]' L' Z6 q+ N+ ?7 I6 V
destroyed because the -L option was used.
) q. R% `- S; v+ s+ {! C        - scan filesystem freespace and inode maps...
$ E- r, F# {, Ysb_fdblocks 90682, counted 97082  \% q& z  A+ d6 }2 U1 |, F# ^+ q+ D  g
        - found root inode chunk
1 R6 P1 F  k  q) YPhase 3 - for each AG...
2 |+ \( ], ?! M        - scan and clear agi unlinked lists...1 S6 ?( X7 i: b; j0 {/ B' D
        - process known inodes and perform inode discovery...6 l7 F. @$ t/ Y. P* {1 Q
        - agno = 0
5 a8 R/ g8 {2 i5 [  b        - agno = 1* O4 V4 e, [  p5 y  F! S6 U
        - agno = 2$ z- O2 {# L9 e4 ?7 e) T; `" |
        - agno = 3- L; s$ P) c( a7 A
        - process newly discovered inodes...7 I( o/ R  {/ ?& ^6 [; d
Phase 4 - check for duplicate blocks...- a- o( L, K  z# i, ]
        - setting up duplicate extent list...% |! ?% w: f( h1 i1 M$ H) H+ ]( y
        - check for inodes claiming duplicate blocks...
+ u& ]$ d/ E% |+ |        - agno = 0
9 T) A3 @1 g7 M' M        - agno = 1* ~4 U# C' ^% o$ _5 V0 d6 h
        - agno = 2
& }' t4 _) o, b) n$ f( O& H        - agno = 3
4 @. w% J. R* s- PPhase 5 - rebuild AG headers and trees...
2 f( V* S6 s* Z! I7 A        - reset superblock...
# |6 a7 o& o6 T7 X7 S* R- VPhase 6 - check inode connectivity.... m  j4 ^% e4 w: D( ]+ [$ l' Y/ ]
        - resetting contents of realtime bitmap and summary inodes
3 a, a  S6 B6 J' D; k        - traversing filesystem ...9 p- B5 S# E: }4 h/ S% w
        - traversal finished ...8 d, k( }. ]" u8 H1 U2 d7 `; X, _
        - moving disconnected inodes to lost+found ...
) o+ u4 l1 {1 }5 K# SPhase 7 - verify and correct link counts...
0 t  i& l5 J+ R+ }- ~Maximum metadata LSN (1:3530) is ahead of log (1:2).
' e1 g+ f, W" x6 \) @) w8 sFormat log to cycle 4." b8 j9 q( w: T3 j& p
done
7 P. [( f$ X3 @/ A/ c, L% {( p3 ?: b

6 ^" [: J, d4 e0 {8 W, W& i- H8 q5 p
[root@compute03 images]# rbd unmap hdd-8T-volumes/volume-94d18fa8-4f51-48e3-bb13-032400a71c0f
5 z# i" Q; {$ w- I2 n# G. L/ V9 j

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-8-12 10:40:06 | 显示全部楼层
接下来就是,启动虚机。查看是否可行。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:07 , Processed in 0.026127 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表