Quantcast
Channel: VMware Communities : Unanswered Discussions - Virtual Machine, Guest OS and VM Tools
Viewing all articles
Browse latest Browse all 1748

Simplify udev rule

$
0
0

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.


Viewing all articles
Browse latest Browse all 1748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>