13 Star 9 Fork 88

src-openEuler / systemd

 / 详情

systemd-shutdown卡住,无法重启

已完成
缺陷
创建于  
2024-03-20 11:16

【标题描述】能够简要描述问题:
1、服务器使用了软RAID组成的RAID1作为系统盘
2、系统盘分区使用了lvm卷;
3、灌装系统完成后,执行reboot命令,重启卡主,无法重启!
一、缺陷信息

内核信息:
5.10.0-136.55.0.134.oe2203sp1.x86_64
缺陷归属组件:
systemd
缺陷归属的版本:

缺陷简述:
1、服务器使用了软RAID组成的RAID1作为系统盘
2、系统盘分区使用了lvm卷;
3、灌装系统完成后,执行reboot命令,重启卡主,无法重启!
4、上图所示为reboot过程中卡主的进程的栈信息,以及lsof -p pid的信息;

经过对比,社区的发布版本ISO,默认文件系统ext4,不会存在reboot卡主的问题;当文件系统为xfs时,必现此问题!

【环境信息】
硬件信息

  • 裸机场景请提供问题的硬件信息
  • 虚拟机场景请提供虚拟机的XML文件或配置信息
    软件信息
  • OS版本及分支信息
  • 内核信息
  • 发现问题的组件版本信息
    网络信息
  • 如果有特殊组网,请提供网络拓扑信息

【问题复现步骤】,请描述具体的操作步骤
【实际结果】,请描述出问题的结果和影响
【其他相关附件信息】
比如系统message日志/组件日志、dump信息、图片等

[  OK  ] Reached target System Reboot.
[  282.844197][    T1] systemd-shutdown[1]: Syncing filesystems and block devices.
[  283.029221][    T1] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  283.045403][ T1274] systemd-journald[1274]: Received SIGTERM from PID 1 (systemd-shutdow).
[  283.054817][    T1] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  283.068835][    T1] systemd-shutdown[1]: Unmounting file systems.
[  283.075475][ T2586] [2586]: Remounting '/' read-only in with options 'seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota'.
[  283.327785][    T1] systemd-shutdown[1]: All filesystems unmounted.
[  283.334052][    T1] systemd-shutdown[1]: Deactivating swaps.
[  283.339730][    T1] systemd-shutdown[1]: All swaps deactivated.
[  283.345652][    T1] systemd-shutdown[1]: Detaching loop devices.
[  283.351751][    T1] systemd-shutdown[1]: All loop devices detached.
[  283.358019][    T1] systemd-shutdown[1]: Stopping MD devices.
[  283.364168][    T1] systemd-shutdown[1]: Stopping MD /dev/md127 (9:127).
[  283.370879][    T1] md: md127 stopped.
[  283.388346][    T1] systemd-shutdown[1]: Stopping MD /dev/md126p2 (259:1).
[  283.417348][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126p2: Device or resource busy
[  283.426139][    T1] systemd-shutdown[1]: Stopping MD /dev/md126p1 (259:0).
[  283.433017][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126p1: Device or resource busy
[  283.441793][    T1] systemd-shutdown[1]: Stopping MD /dev/md126 (9:126).
[  283.448492][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126: Device or resource busy
[  283.457097][    T1] systemd-shutdown[1]: Not all MD devices stopped, 3 left.
[  283.464141][    T1] systemd-shutdown[1]: Detaching DM devices.
[  283.470321][    T1] systemd-shutdown[1]: Detaching DM /dev/dm-2 (253:2).
[  283.499685][    T1] device-mapper: ioctl: systemd-shutdow[1]: dm-2 (openeuler-home) is removed successfully
[  283.518305][    T1] systemd-shutdown[1]: Detaching DM /dev/dm-1 (253:1).
[  283.543425][    T1] device-mapper: ioctl: systemd-shutdow[1]: dm-1 (openeuler-swap) is removed successfully
[  283.561298][    T1] systemd-shutdown[1]: Not all DM devices detached, 1 left.
[  283.568591][    T1] systemd-shutdown[1]: Stopping MD devices.
[  283.574671][    T1] systemd-shutdown[1]: Stopping MD /dev/md126p2 (259:1).
[  283.595581][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126p2: Device or resource busy
[  283.604363][    T1] systemd-shutdown[1]: Stopping MD /dev/md126p1 (259:0).
[  283.611238][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126p1: Device or resource busy
[  283.620013][    T1] systemd-shutdown[1]: Stopping MD /dev/md126 (9:126).
[  283.626713][    T1] systemd-shutdown[1]: Could not stop MD /dev/md126: Device or resource busy
[  283.635318][    T1] systemd-shutdown[1]: Not all MD devices stopped, 3 left.
[  283.642365][    T1] systemd-shutdown[1]: Detaching DM devices.
[  283.648336][    T1] systemd-shutdown[1]: Not all DM devices detached, 1 left.
[  283.655470][    T1] systemd-shutdown[1]: Cannot finalize remaining DM devices, MD devices, continuing.
[  284.813251][    T1] systemd-shutdown[1]: Successfully changed into root pivot.
[  284.820474][    T1] systemd-shutdown[1]: Returning to initrd...
[  284.849892][  T255] audit: type=1400 audit(1706034378.444:131): avc:  denied  { nosuid_transition } for  pid=2613 comm="shutdown" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:mdadm_t:s0 tclass=process2 permissive=0
[  284.857551][    T1] dracut: Taking over mdmon processes.
[  284.870553][  T255] audit: type=1401 audit(1706034378.444:131): op=security_bounded_transition seresult=denied oldcontext=system_u:system_r:init_t:s0 newcontext=system_u:system_r:mdadm_t:s0
[  284.875969][    T1] dracut Warning: Killing all remaining processes
dracut Warning: Killing all remaining processes
[  285.133345][ T2637] XFS (dm-0): Unmounting Filesystem
[  375.121083][    T1] dracut Warning: Unmounting /oldroot timed out.
dracut Warning: Unmounting /oldroot timed out.
[  375.142273][ T2641] dracut: Disassembling device-mapper devices
[  375.152087][ T2646] dracut: Waiting for mdraid devices to be clean.

缺陷详情参考链接:
https://e.gitee.com/open_euler/dashboard?issue=I8PFAG
缺陷分析指导链接:

评论 (1)

胡宇彪 创建了缺陷

Hi huyubiao, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @Monday , @syyhao , @谢志鹏 , @zhujianwei001 , @hexiaowen , @licunlong , @const , @xujing , @chenjiayi , @陈棋德

openeuler-ci-bot 添加了
 
sig/Base-service
标签
胡宇彪 修改了描述
胡宇彪 任务状态待办的 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd

搜索帮助