LVM volume groups with a name of 'root' will have naming collisions when systemd-udev-root-symlink service is active.

This document (7021959) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)

Situation

When a LVM VG named 'root' which contains a logical volume needed for boot exists, and the systemd-udev-root-symlink service is active, the boot log will show messages similar to this :

rename '/dev/root.tmp-b254:0' '/dev/root' failed appears when the system start on a LVM configured host.


Resolution

There are two possible solutions to this issue:

1. Since LVM VG's create /dev entries with the same name, do not choose VG names which may be used by other devices or services.

2. The /dev/root link provided by the systemd-udev-root-symlink service is currently deprecated and will be removed from future systemd versions. 

The /dev/root symlink created is not currently used by any system components.  As such, if a customer environment also does not make use of the /dev/root symlink, the systemd-udev-root-symlink service may be masked with the command:

  systemctl mask systemd-udev-root-symlink.service



Cause

The LVM vgcreate command verifies that there is currently no '/dev' entry which has the name of the volume group being created.  However, this does not stop a service which is started later, or a device from being added at a later time, which may be using the same name for a '/dev' entry. 

The system administrator should exercise caution in choosing VG names to ensure such collisions do not occur.

Additional Information

When a LVM VG named 'root'  contains a logical volume needed for boot, and the systemd-udev-root-symlink service is active, when the system starts up the boot log will show messages similar to :

11:25:47 LINUX123 systemd[1]: Started Rule generator for /dev/root symlink.
11:25:48 LINUX123 systemd-udevd[1901]: rename '/dev/root.tmp-b254:0' '/dev/root' failed: Is a directory

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:7021959
  • Creation Date: 02-Oct-2017
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center