找回密码
 注册
查看: 12|回复: 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)
* S4 y3 m- Z" ?9 L( QhowalocahoualocanOUalOCA) j  r7 a5 `% f
4.180s( d7 Q- u& E7 V/ K- ^6 z6 A, {
sustend[11:
1 K1 U1 ~, H  |# Q" D4.2016661. b3 k' [$ t- m' c
centos?-x64-lum-tol,noualoca6 ^; l3 \. M# W5 f
Received SIGRTMIN+21 from PID 2?9(plumouthd)
3 z+ ?, }$ z0 _" D" j! Z5 R3 C' P2 t- \
: [! L" l) s# o9 j  s执行:
7 Z1 T: `2 H  f' Z9 j3 |% v- Jxfs_repair -L /dev/mapper/centos-root
, U9 R% @8 m% z) m
* ^* a0 e7 N3 @' h) N& H% b! d+ H2 P3 J, o2 |1 j) q# i
3 z* q+ _* x; ?1 b) G0 ]7 G( m* D

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2024-5-22 17:00:12 | 显示全部楼层
一、/dev/centos/swap does not exist' M2 k0 v' I8 D# ?0 I( u
1、问题描述3 r6 v$ @6 v- }6 l( S+ n
服务器引导启动失败进入dracut:/#界面,提示Could not boot. /dev/centos/swap does not exist
7 T! W# h! {. U2 }2 r; p5 a' U& a- g) R, d

( o' p7 L2 O8 N) o" W9 g9 ^) ]) l3 A
) E5 Z. a  w; f7 z) D$ f2、原因分析
6 y8 i% o; b; \# I7 t存在以下两种可能,需要临时修复进入系统后方可确认根因; e" h% |  q; h8 `: R+ ?

+ X. k' m- ]& Q2 v$ T( O: w/ ya、grub引导配置指向swap信息不正确,系统引导时无法加载对应swap信息,导致系统引导失败
6 }2 k1 Y$ Y1 S
: R* b8 ?3 c4 G/ [0 i! e
+ f+ N1 p$ B4 U% Y. \% _b、swap lv被误删除(/dev/centos/swap),系统引导时无法加载对应swap信息,导致系统引导失败
+ S- t7 C3 }3 f" q- t" u! K" @3 D6 i' w. t! w9 D$ i& F7 s) S

' S4 ]0 N; Q/ c! ]# D9 W3、解决措施& Q6 h+ k# o3 N2 E2 U; c' G
重启服务器,在选择引导启动界面,按下e进入grub修改界面,删除rd.lvm.lv=centos/swap配置,按下Ctrl + x引导启动
6 D( z) ~7 L# l' u( P
  o, q7 W' n  s# Q4 W/ y4 M6 M
5 r. G, o5 x4 F* Q  E引导启动进入系统后,修改/etc/grub2.cfg,纠正关于swap的配置(删除swap配置或者修改正确的swap路径)
& n$ y4 O4 m' V/ w$ [. K* m, {: Y! A3 \' O6 \, w  q; _. ]$ y0 B

+ f6 r) n( ~/ x7 s二、Failed to mount /sysroot4 P$ g/ G) i' P6 ~9 r
1、问题描述, ~# K$ E" `5 q$ o. B" I
服务器引导启动失败进入:/#界面,提示Failed to mount /sysroot
: Q3 P1 _1 F1 w/ C) F4 R5 p+ _' H" R4 U9 Y# \

( Q! h1 P4 `! p# q) b/ G) Q
  ]. ^4 N  D4 c' O  l; h2、原因分析4 ^& m/ @3 j, x7 }
系统盘/dev/mapper/centos-root文件系统损坏,导致无法/根目录无法挂载,需要对文件系统修复后重试
- O; W* q- |1 I" A1 s( F. y, l- G4 j$ g8 j( V' M% Q: B
3、解决措施1 A! F' L$ Q- q1 S% L$ `. c
执行xfs_repair -L /dev/mapper/centos-root命令修复系统盘文件系统之后,重启服务器
# I; k- l$ F9 v3 O
9 z/ b: |$ q3 ?a、修复系统盘文件系统9 m& ^6 ~4 R( B% I8 j$ J6 F/ R" R  `
/# xfs_repair -L /dev/mapper/centos-root
5 x+ P0 `7 y4 i, Rb、重启服务器,系统可正常引导,查看/dev/mapper/centos-root成功挂载到根目录; S' F6 C# ^! }4 H7 \& f  `& |' q! i
[root@node58 ~]# df | grep root
2 m' s  Z/ x! l6 f" n* i/dev/mapper/centos-root                      52403200   16883624     35519576  33% /
# M' H2 ]& {, @. G1
/ w& S+ t+ E9 Y2
/ @: s. @0 X  K6 C3& J  ?! `4 D* P0 z- D/ C5 M7 l7 P
4) E4 }3 M* u$ o: i- R  u2 H
5+ e# b9 p8 S8 u  s5 k/ G
三、重启服务器,系统无法引导,进入grub界面: x1 Z$ U( k4 E7 A7 a
1、问题描述+ ~, p/ Y7 t5 b( q
参考下图示意,重启服务器,系统无法引导,进入grub界面
# U) b* J8 F5 h5 f8 q  w6 @6 H, j
9 b2 ~* A8 I& C  Q9 {
' v; ^* E* t5 A: I$ @% N+ h* S3 S8 ^2 k- s
2、原因分析
( O* w( S  f3 f0 D7 K# j" t1 V* `( }/boot/grub2/grub.cfg文件损坏) d0 g& \. a% b/ J8 j( `- G' y% U
# X9 y" H" N- l" E$ q3 L
3、解决措施. i$ p$ x- l& l
查看当前分区情况,如下图所示,存在grub、grub2、efi等文件夹,说明该分区为/boot启动分区
& S$ m, x2 @  n" J, N) r5 v, X) C, s" \4 `" X5 {

/ Y; F. l1 p; d' {设置root2 k3 X( x+ i! I
set root=(hd0,msdos1)
7 c1 E# u3 i8 t8 m; T# Y7 z6 f1' w4 O! D2 o2 o/ s( I! V
设置linux16
# S( h; z2 @8 l4 X$ j' Ilinux16 /vmlinuz-3.10.0-957.el7.x86_64 root=/dev/mapper/centos-root- v$ d; P" L0 f9 L; |* q
1
' }4 {9 h4 P- Y8 o7 w设置initrd16% Z) q1 l2 W6 N
initrd16 /initramfs-3.10.0-957.el7.x86_64.img ! l) t2 c0 P  h+ ?, L
1
- T5 G7 l  o% Z3 W0 [* s引导启动
# _! M5 u/ i! P1 \- Gboot% O% g) g' a. o# w6 {4 @
15 ~5 G8 i; \9 F" }, \& @" R- b
系统启动后,重新生成grub.cfg文件% B/ c: K  u& t6 |
grub2-mkconfig -o /boot/grub2/grub.cfg
! t. M6 z9 U5 H  A2 ?16 ?6 Z3 O. J' J5 K0 T/ ~0 W4 b. p

" |& E! s2 j  `( l3 ^5 n6 y
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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