On Red Hat Enterprise Linux 6 or 7, in a guest OS in the VMWare environment, not using multipaths, is there a danger to specify a simple 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",...
(We 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 guest. How about on a VM? Thanks.