User Manual

Driver FeaturesRev 2.2-1.0.1
Mellanox Technologies
60
Manual Activation of High Availability
Initialization: (Execute after each boot of the driver)
1. Execute modprobe dm-multipath
2. Execute modprobe ib-srp
3. Make sure you have created file /etc/udev/rules.d/91-srp.rules as described above.
4. Execute for each port and each HCA:
srp_daemon -c -e -R 300 -i <InfiniBand HCA name> -p <port number>
This step can be performed by executing srp_daemon.sh, which sends its log to /var/log/
srp_daemon.log.
Now it is possible to access the SRP LUNs on
/dev/mapper/.
It is possible for regular (non-SRP) LUNs to also be present; the SRP LUNs may be
identified by their names. You can configure the /etc/multipath.conf file to change
multipath behavior.
It is also possible that the SRP LUNs will not appear under /dev/mapper/. This can
occur if the SRP LUNs are in the black-list of multipath. Edit the ‘blacklist’ section in
/etc/multipath.conf and make sure the SRP LUNs are not black-listed.
Automatic Activation of High Availability
Set the value of SRP_DAEMON_ENABLE in
/etc/infiniband/openib.conf to
"yes".
For the changes in
openib.conf to take effect, run:
/etc/init.d/openibd restart
Start srpd service, run: service srpd start
From the next loading of the driver it will be possible to access the SRP LUNs on /dev/
mapper/
It is possible that regular (not SRP) LUNs may also be present; the SRP LUNs may be
identified by their name.
It is possible to see the output of the SRP daemon in /var/log/srp_daemon.log
4.1.2.7 Shutting Down SRP
SRP can be shutdown by using “rmmod ib_srp”, or by stopping the OFED driver (“
/etc/
init.d/openibd stop”), or as a by-product of a complete system shutdown.
Prior to shutting down SRP, remove all references to it. The actions you need to take depend on
the way SRP was loaded.
There are three cases:
1. Without High Availability
When working without High Availability, you should unmount the SRP partitions that were
mounted prior to shutting down SRP
.
2. After Manual Activation of High Availability