RHEL6: udev and ASM
Hi,
As I found out, Oracle does not provide the RPM for asmlib any more for RHEL6.
The alternative is udev: you have to write some rules to get persistent names for your devices, i.e.:
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="3600c0ff000112a6d0b0ebf5001000000",NAME+="oracleasm/disks/OCR1", OWNER="grid" GROUP="asmadmin" MODE="0660"
After the first tests I have some questions:
* using udev rules with the "NAME+=" option, the device is renamed. For example, /dev/sdc is not available any more if there is a rule that applies for this device. A bit strange, because in /proc/partition it is still listed. Is there a way to have both? The original device (/dev/sdc) and the "newly created" device (for example /dev/oracleasm/disks/OCR1)? I know that you can use SYMLINK but is this supported/recommended?
* is it recommended to use partitions here? If so, udev does not seem to map / rename partitions but devices only...
Any feedback is appreciated,
Werner