找回密码
 注册
查看: 13|回复: 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)
! R4 X5 A2 g7 ~8 mhowalocahoualocanOUalOCA* V$ l0 S3 K% R7 h. n
4.180s9 \' U2 |, {% ^: r* ^
sustend[11:
% K8 K% L" \; [5 Z# ~# }7 y4.2016661
8 x1 X7 Y* \6 N( \centos?-x64-lum-tol,noualoca
5 J) d. t; P4 T4 q1 n& AReceived SIGRTMIN+21 from PID 2?9(plumouthd)
# n0 E% _! X' w. N2 j, d9 o
& a& c  y6 V' H( w" ?% d# F% N执行:
" t& ~/ W; W% n3 C' ^' F, E) Pxfs_repair -L /dev/mapper/centos-root5 G9 t2 H; K1 G* ~" u/ C9 @; b

# h: [5 s" I# d+ L4 l1 [9 X7 T" r9 ]% t8 o: k

- ]; X+ _- X+ c  Z

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-5-22 17:00:12 | 显示全部楼层
一、/dev/centos/swap does not exist- E4 }! r, ?6 A( j# V
1、问题描述! z. v* u8 {, s+ ~& R( y
服务器引导启动失败进入dracut:/#界面,提示Could not boot. /dev/centos/swap does not exist
/ w6 ]% b- I% A0 `/ O7 U, e; b7 T4 T9 C+ I" ^% [- D  p7 E
$ o4 S9 Q6 {2 e4 G6 F
' M0 s5 v' w7 c: _0 v
2、原因分析
3 A% k1 W- B7 A! H' Z5 [* I" p存在以下两种可能,需要临时修复进入系统后方可确认根因( a3 \; D* y, E4 U4 I' o! M; A

. ~  b6 O9 c- D. _a、grub引导配置指向swap信息不正确,系统引导时无法加载对应swap信息,导致系统引导失败
) K6 r1 q7 e+ w+ y! w0 P; @9 @9 Y6 y, s3 U- H' q# S. j6 n5 w

6 q' u0 `1 c( ~1 l# sb、swap lv被误删除(/dev/centos/swap),系统引导时无法加载对应swap信息,导致系统引导失败5 D# O2 T; ]8 |0 R9 V
  d" Q# I. P+ t/ p+ s( j
, I% n) ^" ]+ [+ v! \! ]7 K
3、解决措施  P' {$ n9 D# J0 i
重启服务器,在选择引导启动界面,按下e进入grub修改界面,删除rd.lvm.lv=centos/swap配置,按下Ctrl + x引导启动/ Q% K7 i/ ^  |# L' I! [

( Y: R' _: [% U
" O: U2 k: |. I2 [引导启动进入系统后,修改/etc/grub2.cfg,纠正关于swap的配置(删除swap配置或者修改正确的swap路径)
! a& W" A% [% R. j* M- ^
5 o2 F9 C2 s7 E' G. u  F& ?+ \% @; z7 M$ h! ]1 Z  N: G! ^
二、Failed to mount /sysroot. ?2 Y  n4 d; F& A) S; w2 e2 D9 V
1、问题描述8 i6 q% R0 l) I' @: G
服务器引导启动失败进入:/#界面,提示Failed to mount /sysroot
& g1 c1 p8 Q' w: |  b+ ~
( X+ r) s# d# p, L1 ?% Y
, |. p( h/ \" a1 y6 L
4 n2 v7 C9 H8 ?' n2、原因分析! ~( X/ B6 W* k( q: |
系统盘/dev/mapper/centos-root文件系统损坏,导致无法/根目录无法挂载,需要对文件系统修复后重试
: G9 L) y' m6 O# k, a+ a6 d" V* x4 F/ M6 p
3、解决措施) w; r0 v' Z6 x, e, z( c) l
执行xfs_repair -L /dev/mapper/centos-root命令修复系统盘文件系统之后,重启服务器
3 ~$ `, V5 s: i: O. G7 v3 I/ e2 r& E/ Z5 {/ `! ?+ F
a、修复系统盘文件系统
/ ^7 T! q- L+ S1 E. w7 M2 ]/# xfs_repair -L /dev/mapper/centos-root
4 q  P' v7 h. B2 n+ \b、重启服务器,系统可正常引导,查看/dev/mapper/centos-root成功挂载到根目录. `7 I$ E' L$ M6 R. ?0 z8 s
[root@node58 ~]# df | grep root3 J* c1 t& U( e$ s& s1 X
/dev/mapper/centos-root                      52403200   16883624     35519576  33% /$ A# E. e) N) D9 J; z1 y
1
1 p; m) |! J1 h" ]5 P24 A, Y9 h% _9 z0 t
3- a3 }% d& k- i1 d
4% B2 i9 H& g8 R0 E
5+ q+ I0 L; L" s% a0 [! u3 @; E
三、重启服务器,系统无法引导,进入grub界面
( C+ p/ Q/ B, o  M1、问题描述+ ?) Y9 E: d0 [2 ?- _: P
参考下图示意,重启服务器,系统无法引导,进入grub界面
& s6 X5 i' Z( j- K, z, e4 v  L; g9 w4 n3 y/ b

* u( `! \1 ?/ N6 k9 p
3 E: c) x: ?0 f* \2、原因分析
7 O  y: F) o, H: U/boot/grub2/grub.cfg文件损坏# w" ^. Y- M+ j
) X9 D* S# L& k
3、解决措施
5 r, ^' T3 m! i. i# W* @2 ?, B查看当前分区情况,如下图所示,存在grub、grub2、efi等文件夹,说明该分区为/boot启动分区
' S6 o' O# R/ M, O# W- j$ \( c* p/ L. {$ i& _- i

. m* H- {: k% H8 A6 O, m设置root: y8 b, L8 X- E: N0 s1 G3 O9 ?7 X
set root=(hd0,msdos1)$ k! J/ W$ P1 L, }+ x8 W
1- c  s, |7 R3 i0 C" S3 j
设置linux16  V9 V" _2 i) L+ ]4 G% u, Q
linux16 /vmlinuz-3.10.0-957.el7.x86_64 root=/dev/mapper/centos-root
/ B1 _0 b+ n2 H  k9 w# q8 o1& T% h( q( t- H; c9 f
设置initrd16
; Q% L4 P& n8 ainitrd16 /initramfs-3.10.0-957.el7.x86_64.img 2 v% h- j9 h' m: W) Q+ Q  v5 d4 }& y
1' r1 M/ r/ @4 e
引导启动
9 J( i, q" A! ]+ X& Oboot
5 N+ l$ `/ ?& d( C1/ m' X5 x' D+ E
系统启动后,重新生成grub.cfg文件
' o! C4 F' y5 p* x7 d5 X' n+ B# Ggrub2-mkconfig -o /boot/grub2/grub.cfg
, X5 A8 w* k  G1! N; ^; `% ^6 W7 Y

, f7 R0 L; A4 _+ O3 r9 p
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 03:01 , Processed in 0.015720 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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