RHEV 4.1 and Oracle ASM

Latest response

We're looking to migrate from VMware to RHEV for certain Oracle RAC databases but I'm not seeing a way to mark a UUID to the shared disks. In VMware you just set "disk.enableUUID=true" and then from the OS you can run "/sbin/scsi_id -g -u -d /dev/sdX" to find the UUID. In fact, looking at a udev rule on one of our VMware RAC DB's I see something like the following:

KERNEL=="sd?1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="36000c295d87469d6252afa01e5341691",NAME+="oracleasm/disks/DATA_1" OWNER="oracle" GROUP="oinstall" MODE="0660"

Since I can't see a way to enable UUID on the RHEV disks, the command "/sbin/scsi_id -g -u -d /dev/$parent" will fail. Is there a way to enable UUID in RHEV or do we have to use another method to create the ASM disks.
Thank you,

Responses

Hello,

Try using the following:

udevadm info -a -p /sys/block/vdX | grep -i serial

You should be able to create rules based on this serial number: What is udev and how do you write custom udev rules in RHEL7 ?

AFAIK, since the device is para-virtualized (virtio), the scsi_id command won't always work as expected.

Thank you Marcus for the response. While I was researching I found some notes on creating a custom UDEV (it wasn't the link you provided - your's looks more comprehensive), and I did run the udevadm info command and noticed the serial line but wasn't sure if that was always going to be there or if it was always going to be unique. Thank you for pointing that out.

Agree with Marcus, scsi_id can be unreliable in some situations so moving to other commands that provide a more reliable unique identifier in your scenario is the best approach.

Another option is to move to ASMLib over udev, but this will require more reconfiguration/changes.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.