Devices time out at boot time but appear later
This document (7018491) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12
journalctl -xb shows the following types of errors:
Dependency failed for /export/data
Dependency failed for Local File Systems
Timed out waiting for device dev-mapper-export\x2ddata.device.
After logging into emergency mode, the device for /export/data mounts just fine and systemctl default continues and reaches the default target.
So the device is eventually found, but does not get found in time during the boot process.
For each of the devices in /etc/fstab more timeout is needed, add the device timeout option in the options field.
This option is parsed by the systemd-fstab-generator unit.
For example, change:
UUID=2ed453ee-c197-4e76-860b-d8ecf5540576 /export/data ext3 acl,user_xattr 1 2
UUID=2ed453ee-c197-4e76-860b-d8ecf5540576 /export/data ext3 acl,user_xattr,x-systemd.device-timeout=300s 1 2
The systemd-fstab-generator(8) unit creates a mount unit for each entry in the /etc/fstab.
It will increase the time systemd waits for the device with this option.
In this case a 300 second / 5 minute timeout was added.
Once the timeout is determined, it can be specified in /etc/fstab with the x-systemd.device-timeout= option for the individual device.
The parameter "systemd.default_timeout_start_sec=" overwrites the default start job timeout DefaultTimeoutStartSec= at boot.
It affects all units, ie not only the mount units generated from /etc/fstab.
Method to add the Kernel option (for debugging only):
Edit the /etc/default/grub and change:
Run grub2-mkconfig -o /boot/grub2/grub.cfg and reboot.
This option will set a 5 minute timeout on all units, including mount units.
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:7018491
- Creation Date: 13-Jan-2017
- Modified Date:30-Sep-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com