udev rule on VM

Yong Huang yong321 at yahoo.com
Tue Sep 13 20:21:29 UTC 2016


On RHEL 6 or 7, in a guest OS in the VMWare environment, not using multipaths, is there a danger to specify the udev rule as follows?

KERNEL=="sdb1", OWNER="oracle", GROUP="dba",...

Currently we use this rule:

KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="<UUID returned by scsi_id>", OWNER="oracle", GROUP="dba",...

VM may be relevant here. You have to set disk.enableUUID=true in vSphere to get the UUID.

The concern is that the label sdb for this specific disk may change under certain conditions, maybe after inserting a new hard disk which happens to be scanned earlier than this one on next reboot. I think that would be true if this was not a VM. How about on a VM? Thanks.




More information about the redhat-list mailing list