UUID not detected for xfs disks
Issue
On systems running RHEL 8 with DRBD-based storage, the system fails to retrieve the volume ID (UUID) for files residing on DRBD devices. The following error appears in the logs:
03/31/2025 02:50:05 AM,Scanning service,Cannot find volume id for file /path/to/file on device 51729,eset-efs-scand |
Additionally, the output of lsblk -f does not display UUIDs for DRBD child devices under clustered volume groups:
Workaround
Manually define ID_FS_UUID values using a custom udev rule. The ID_FS_UUID environment variable for DRBD devices is not automatically set by udev on RHEL 8, unlike CentOS 7, where it works correctly. This leads to UUIDs being unavailable for DRBD volumes, preventing ESET from associating scanned files with a valid volume ID.
1.Create or modify the custom udev rule file as privileged user:
nano /etc/udev/rules.d/99-custom-drbd.rules |
2.Add following rules at the end:
KERNEL=="drbd0", SUBSYSTEM=="block", ENV{ID_FS_UUID}="c748b838-df7a-4b6f-a644-e18314b9ba9d" KERNEL=="drbd1", SUBSYSTEM=="block", ENV{ID_FS_UUID}="22885008-3119-4b2d-ad23-c23dd7242f8c" |
3.Trigger the udev system to apply the changes as privileged user:
udevadm trigger |
4.Verify the value via udevadm:
udevadm info /dev/drbd0 |