1) Open 2 sessions to a server that will be having the new disks added as root
2) Run the command /opt/netapp/santools/ql-dynamic-tgt-lun-disc.sh
i. Answer yes to the I/O question
3) Run the command sanlun lun show –p > /tmp/sanout#, where # is a date or new instance that does not exist yet
4) In one of the open shell sessions, use vi to open the /tmp/sanout# file, and search for the LUN name that is being added. In this example, data16 is the new disk. (red #1)
5) In the second shell session, edit /etc/multipath.conf with the WWN found in the previous step and add the name of the LUN as the alias. This sets up persistent bindings.
( blue #2)
6) set up multipath to understand the new additions
- Run the command “ multipath –F” to clear the current settings
- Run the command “ multipath “ to re-establish the setup
This will give output showing new paths created
- Verify with “ multipath –ll | grep < new LUN name>
7) Verify disk is available
Run the command “ls –l /dev/mapper | grep <new LUN name>”
verify that persistence is working
Run the command “ sanlun lun show –p | grep <new LUN name> “
The disk is now available.
If the disk is needed as a standard mount, then add the /dev/mapper/<diskname> entry to /etc/fstab , mount , and test.
RAW DEVICES for ORACLE
If the disk is needed as an oracle raw device, then several more edits are needed.
1) edit /etc/sysconfig/rawdevices with the following format. The raw device will be the next number in sequence.
2) edit /etc/rc.local
Oracle user and DBA group will need to own these raw devices
Add the chown and chmod lines to /etc/rc.local
chmod 775 /dev/raw/raw#
chown orcle:dba /dev/raw/raw#
3) restart the raw devices service
# service rawdevices restart
4) run /etc/rc.local
cd /etc/ and run the command “ ./rc.local “





