Unmounting Runtime Directory Failed During Shutdown
This document (7023942) is provided subject to the disclaimer at the end of this document.
Environment
Situation
dracut: Disassembling device-mapper devices , Command failed
Apr 25 16:32:38 linux-aoie systemd[1]: Unmounting Runtime Directory...Apr 25 16:32:38 linux-aoie systemd[1]: Unmounted Lock Directory.Apr 25 16:32:38 linux-aoie umount[2531]: umount: /var/run: target is busyApr 25 16:32:38 linux-aoie umount[2531]: (In some cases useful info abouApr 25 16:32:38 linux-aoie umount[2531]: use the device is found by lsoApr 25 16:32:38 linux-aoie systemd[1]: var-run.mount: Mount process exited, codeApr 25 16:32:38 linux-aoie systemd[1]: Failed unmounting Runtime Directory.
Resolution
then mounting the root disk to /mntthen remove /mnt/var/runnext, create a link /mnt/var/run -> /mnt/run
Note in the case /var is separate volume then mount var instead of / and adjust above paths
run the following command :
dracut --add convertfs -f
add the following two kernel command line parameters to the kernel Command Line (use 'yast bootloader'):
rd.convertfs rootflags=rw systemctl reboot
linux-aoie# ll -ld /var/run*lrwxrwxrwx 1 root root 6 May 13 09:22 /var/run -> ../rundrwxr-xr-x 22 root root 4096 Apr 30 11:05 /var/run.runmove~
linux-aoie# systemctl status var-run.mount● var-run.mount - Runtime DirectoryLoaded: loaded (/usr/lib/systemd/system/var-run.mount; static; vendor preset: disabled)Active: inactive (dead
Cause
linux-aoie# mount | grep runtmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)tmpfs on /var/run type tmpfs (rw,nosuid,nodev,mode=755)
linux-aoie# ll /var/runlrwxrwxrwx 1 root root 4 May 2 2017 /var/run -> /run
linux-aoie# systemctl status var-run.mount● var-run.mount - Runtime DirectoryLoaded: loaded (/usr/lib/systemd/system/var-run.mount; static; vendor preset: disabled)Active: active (mounted) since Thu 2019-04-25 16:39:46 CEST; 13min agoWhere: /var/runWhat: tmpfsProcess: 678 ExecMount=/usr/bin/mount /run /var/run -t bind -o bind (code=exited, status=0/SUCCESS)Tasks: 0 (limit: 512)
Apr 25 16:39:46 linux-aoie systemd[1]: var-run.mount: Directory /var/run to mount over is not empty, mounting anyway.Apr 25 16:39:46 linux-aoie systemd[1]: Mounting Runtime Directory...Apr 25 16:39:46 linux-aoie systemd[1]: Mounted Runtime Directory.
linux-aoie# grep Condition /usr/lib/systemd/system/var-run.mountConditionPathIsDirectory=/var/runConditionPathIsSymbolicLink=!/var/run
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023942
- Creation Date: 13-Jun-2019
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com