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

nount: nount /deu/napper/centos-root on /sysroot failed: Structure neecleaning 解

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2024-5-22 17:00:11 | 显示全部楼层 |阅读模式
xfs trans.c.Return address1.920149]centos?-x64-lum-tplKcrnel:XFS(dm-0):Corruption ofin-nenory data detected, Shutting doun filesystc.10U0d4.9204701 centos?-x64-lum-tpl.noualocal kernel: xrs (dn-0): Please umount the filesysten and rectify the problen(s)4.9204951centos7-x64-lum-tpl.novaloca lkernel: XFS(dn0): Failed to recouer intents1.9205461centos? x64-lumtpl.10Ua 0caKernel:XFS(dm 0):log nount finish failed4.1268331centos?-x64-lum-tplTOUaOCAnount [413]:nount: nount /deu/napper/centos-root on /sysroot failed: Structure neecleaning4.17?322]centos?-x64-lum-tpl.noualocalsystend[11:sysroot .mount mount process exited,code=exited status=324.1776331centos7-x64-lum-tpl0Ca3U号te0aile0t0 n0Unt3usront一-口口日4.17?9241ccntos?-x64-lum-tplDependency failed for Iitrd Root File Susten.1 .1782231centos?-x64-lum-tpfailed for Reload Configuration from the Real Root.1.CTCU4.178496]centos?-x64-lum-tJob initrd-parse-etc.seruice/start failed with result 'dependency'4.1788321centos?-x64-lvm0nFailure= dependencies of initrd-parse-etc .service .Trigger ing4.1792591lob initrd root-fs,target/start failed with result 'dependencu'centos7-x64-lvM4.1?9544]centos?-x64-luMTriggering OnFailure= dependencies of initrd-root-fs ,target .4.17981?1cent0s?-x64-10m1m isysroot.mount entered failed state.4.180212]centos?-x64target Initrd File Sustens .4.1805101centos7-x64targetBasic SustemStoppec4.1807851target Susten lnitialization .cent0s7-x64StopeEmcrgcncy Shell4.181184]ccntos?Startcd4.181460]centos?-x向4ReAche0target Pmergency Hode..1817511centos?x64Stoppecir'acutinituueue hook3U514.1820611centos?-x64-lvm-tplsustend[11:Stoppeddracut pre-udev hook .4.1823341systemd[11:Stoppeddracut cmdline hook .centos?-x64-lvm-tn4.182625]centos?-xá4-lumsystend[1】:Startupfinished in ?13ms(kernel)+0(initrd)+3.46?s(userspace)2 Z# d" V$ t8 _5 M& W
howalocahoualocanOUalOCA7 ^  N5 C( E9 s; m: _# H
4.180s4 F7 n8 L8 n" @
sustend[11:
" }7 z% C6 |! Y" d6 |' A9 {, H4.2016661
6 N$ `* S" X" [. z# `( `6 tcentos?-x64-lum-tol,noualoca
: z" M& m* K$ W# ~* W7 P: P2 ~+ yReceived SIGRTMIN+21 from PID 2?9(plumouthd)  s$ J/ j6 Z) L+ G& j. \) `3 D

3 ^: l" T! L7 [! R$ _6 K5 B执行:( h2 N8 E( F0 l  q+ Y- ]
xfs_repair -L /dev/mapper/centos-root
/ x+ w( p, p' \% m) @1 f; t
# A( j  s4 t$ |: `* G$ O9 ~- o2 i% [% ?  V7 p

- Q- b8 L+ P7 f$ u

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-5-22 17:00:12 | 显示全部楼层
一、/dev/centos/swap does not exist) R2 x: l% O. B& e8 \5 T/ [
1、问题描述
8 {- {0 y/ ~- Q2 L! J, G8 |服务器引导启动失败进入dracut:/#界面,提示Could not boot. /dev/centos/swap does not exist
0 B: [9 [6 t) A3 d3 c8 i
0 O9 L8 [7 q3 I9 M# L: K( W: t
1 ?8 w) \, C5 f( A# }7 V9 m) v: w# u$ S- }& |2 _' l# u
2、原因分析
3 ?6 P8 a- F8 ?! L$ i存在以下两种可能,需要临时修复进入系统后方可确认根因
/ B3 R6 x; O- N! h- ?1 s# C( X( ?/ B' {- J. |9 Q
a、grub引导配置指向swap信息不正确,系统引导时无法加载对应swap信息,导致系统引导失败
$ k; o- ]- e* g. P6 n# S0 G& c2 [1 l7 A0 f7 d. R# A

- ?9 w0 \6 ?* x+ _" Rb、swap lv被误删除(/dev/centos/swap),系统引导时无法加载对应swap信息,导致系统引导失败$ D/ z9 S$ \' T* R* A; [

7 Y( G( r" f8 u
/ F: Q$ ]7 p8 n5 C" u( G3、解决措施
$ q; D1 o2 f7 E% u4 m9 a- ~$ s; S重启服务器,在选择引导启动界面,按下e进入grub修改界面,删除rd.lvm.lv=centos/swap配置,按下Ctrl + x引导启动1 E+ i2 p* V- _6 q) ]
/ `" A5 G& O) ^

7 U; Y$ ^* D- C引导启动进入系统后,修改/etc/grub2.cfg,纠正关于swap的配置(删除swap配置或者修改正确的swap路径)
$ n$ g4 B' `% j* m" \
: Z/ P! E; s  K* o5 s* B) B4 T5 G" p1 v3 c1 n+ a0 t" A* L" T
二、Failed to mount /sysroot# l9 b; V2 d$ {$ ~; _
1、问题描述% H! k/ I0 ^, K; o* V
服务器引导启动失败进入:/#界面,提示Failed to mount /sysroot
# X% g* `& W) t. V4 {9 T' u2 k: Q  ]2 n( `

; z2 V, G2 v6 q. U" W& V& T* K$ f. C8 l$ F3 C* @6 f. J5 ~
2、原因分析
$ P, B& z$ i. G0 P5 G) P* I: Y系统盘/dev/mapper/centos-root文件系统损坏,导致无法/根目录无法挂载,需要对文件系统修复后重试
& t" J! B6 r6 m7 A" y* V. L) `$ a2 I- y( q1 D$ X
3、解决措施: N4 @/ b3 Y# E0 k$ w
执行xfs_repair -L /dev/mapper/centos-root命令修复系统盘文件系统之后,重启服务器
0 f* k) Z& j8 O; m1 G' c8 k, t& G4 N2 D4 v) r! l5 C0 _: E
a、修复系统盘文件系统5 K: o) p2 ?5 E9 M0 H
/# xfs_repair -L /dev/mapper/centos-root
# ^6 o* q0 {1 J. d, C) N. Rb、重启服务器,系统可正常引导,查看/dev/mapper/centos-root成功挂载到根目录7 N9 L% f2 i2 w, [& y% w
[root@node58 ~]# df | grep root3 p, B* S5 s& k: ~" ~8 F
/dev/mapper/centos-root                      52403200   16883624     35519576  33% /
3 K4 M5 v% n3 M8 _) J, g: [# W1
+ V* _/ a( u  B, w2
' x+ _( P6 R: C& A33 W: C+ W3 a1 B7 K
4
  W4 U% E( j1 X4 U53 h. W, y7 F6 B* _) t0 l% s
三、重启服务器,系统无法引导,进入grub界面' n" R4 X7 ~+ g. L
1、问题描述9 L: r, K6 m: @
参考下图示意,重启服务器,系统无法引导,进入grub界面. u* d/ A' k' F2 _' H6 S
( r2 ^5 x( E+ x# v9 n4 b

* L, ~) X1 ~7 O6 Z7 t% z0 H: `6 I7 R5 z" J: ~% N
2、原因分析
: P# ^) Q, b2 H4 }9 C/boot/grub2/grub.cfg文件损坏
+ [8 Z( d) ?' K3 q0 w/ H* C" i; |
3 P) _( r- p4 ~8 P3、解决措施4 l8 L* b1 Y3 \) |8 t3 x
查看当前分区情况,如下图所示,存在grub、grub2、efi等文件夹,说明该分区为/boot启动分区
% y7 r  ~+ z- _( B$ M" f: s) y: s6 }3 M

. |, g6 g2 i/ L% b! p设置root
4 [' a0 D6 F  r( W# I7 D- x: `set root=(hd0,msdos1)1 f; O4 N! m5 E1 B' j. G* C
1
8 {0 Q8 P7 o" H# f  g- B# l& P! z设置linux164 g3 L2 b  M2 j0 c, @
linux16 /vmlinuz-3.10.0-957.el7.x86_64 root=/dev/mapper/centos-root6 C' K" t1 k8 W/ Y2 j$ M! C# X' P2 ]
16 j" i- D; A2 K) z! Y% F
设置initrd162 ]1 u5 H* H4 k' d, `+ n. z8 T# A0 r
initrd16 /initramfs-3.10.0-957.el7.x86_64.img
5 N4 X- m2 N8 V3 U1
6 [6 K7 H, G6 p; ]2 |; p4 @引导启动! i# R- r+ B8 y) m2 g
boot, u$ m+ R, e- Y; w
17 b5 S, p( ]% h+ D
系统启动后,重新生成grub.cfg文件
, \" i' n7 M  g- ^grub2-mkconfig -o /boot/grub2/grub.cfg1 \' W" `3 E1 H* Z/ ?
1
# Q: l( ~# Z; A& ^; W; E" b3 ]' T; d  p' R
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 04:19 , Processed in 0.013224 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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