Linux: Importing luns into cluster for asm to import

The project was to present luns from the san server to all the nodes within a cluster for use by ASM. The required the SAN Administrator to present the luns to the device and the system administrator to do the rest.

  1. Rescan the qla2xxx card. “echo ‘scsi-qlascan’ > /proc/scsi/qla2xx/# – channel number.
  2. Make the devices visible to the OS: sudo rescan-scsi-bus.sh –ids=(id numbers) –luns=(lun numbers).
  3. Format the devices. This is a vital step because ASM places a header on each device. If the old header is in place ASM will become confused, then you have real problems.
  4. Place the lun IDs into /etc/multipath.conf.
  5. Place the raw device names in /etc/raw
  6. Change the permissions of the raw devices in /etc/udev/udev.permissions to oracle:dba.
  7. Run /sbin/multipath -v2 to bring the devices into the device.
  8. Run /etc/init.d/raw start, which will start the devices in raw.
  9. Perform the steps for each node with the exception of step 3. The reason for excluding step 3 is because the same luns are being shared between all nodes.

Pretty simple when you know the method. Hope this helps and have fun.

Comments are closed.