RHEV 4.1 and Oracle ASM
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
