How to reload "udev rules" without restarting udev service?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6

Issue

  • After changing the udev rules configuration in /etc/udev/rules.d/, how to reload rules configuration without restarting "udev" service using start_udev?

Resolution

  1. Make the changes in udev configuration.

  2. If it's not possible to reboot the server, udevadm trigger can be utilized to reload the new rules configuration in udev:

# /sbin/udevadm control --reload-rules
# /sbin/udevadm trigger --type=devices --action=change

Or, for a specific event run the following command:

# echo change > /sys/block/<device>/uevent

Refer man udevadm for more details.
More documentation is available on the system in /usr/share/doc/udev-147/writing_udev_rules/index.html.

SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.