a2783db
# Problem #1: Multiple IB fabrics needing a subnet manager
a2783db
#
a2783db
# In the event that a machine has more than one IB subnet attached,
a2783db
# and that machine is an opensm server, by default, opensm will
a2783db
# only attach to one port and will not manage the fabric on the
a2783db
# other port.  There are two ways to solve this problem:
a2783db
#
a2783db
# 1) Start opensm on multiple machines and configure it to manage
a2783db
#    different fabrics on each machine
a2783db
# 2) Configure opensm to start multiple instances on a single
a2783db
#    machine
a2783db
#
a2783db
# Both solutions to this problem require non-standard configurations.
a2783db
# In other words, you would normally have to modify /etc/rdma/opensm.conf
a2783db
# and once you do that, the file will no longer be updated for new
a2783db
# options when opensm is upgraded.  In an effort to allow people to
a2783db
# have more than one subnet managed by opensm without having to modify
a2783db
# the system default opensm.conf file, we have enabled two methods
a2783db
# for modifying the default opensm config items needed to enable
a2783db
# multiple fabric management.
a2783db
#
a2783db
# Method #1: Create multiple opensm.conf files in non-standard locations
a2783db
#   Copy /etc/rdma/opensm.conf to /etc/rdma/opensm.conf.<number>
a2783db
#     (do this once for each instance you want started)
a2783db
#   Edit each copy of the opensm.conf file to reflect the necessary changes
a2783db
#     for a multiple instance startup.  If you need to manage more than
a2783db
#     one fabric, you will have to change the guid option in each file
a2783db
#     to specify the guid of the specific port you want opensm attached
a2783db
#     to.
a2783db
#
a2783db
# The advantage to method #1 is that, on the off chance you want to do
a2783db
# really special custom things on different ports, like have different
a2783db
# QoS settings depending on which port you are attached to, you have the
a2783db
# freedom to edit any and all settings for each instance without those
a2783db
# changes affecting other instances or being lost when opensm upgrades.
a2783db
#
a2783db
# Method #2: Specify multiple GUIDS variable entries in this file
a2783db
#   Uncomment the below GUIDS variable and enter each guid you need to attach
a2783db
#     to into the list.  If using this method you need to enter each
a2783db
#     guid into the list as we won't attach to any default ports, only
a2783db
#     those specified in the list.
a2783db
#
a2783db
#GUIDS="0x0002c90300048ca1 0x0002c90300048ca2"
a2783db
#
a2783db
# The obvious advantage to method #2 is that it's simple and doesn't
a2783db
# clutter up your file system, but it is far more limited in what you
a2783db
# can do.  If you enable method #2, then even if you create the files
a2783db
# referenced in method #1, they will be ignored.
a2783db
#
a2783db
# Problem #2: Activating a backup subnet manager
a2783db
#
a2783db
# The default priority of opensm is set so that it wants to be the
a2783db
# primary subnet manager.  This is great when you are only running
a2783db
# opensm on one server, but if you want to have a non-primary opensm
a2783db
# instance for failover, then you have to manually edit the opensm.conf
a2783db
# file like for problem #1.  This carries with it all the problems
a2783db
# listed above.  If you wish to enable opensm as a non-primary manager,
a2783db
# then you can uncomment the PRIORITY variable below and set it to
a2783db
# some number between 0 and 15, where 15 is the highest priority and
a2783db
# the primary manager, with 0 being the lowest backup server.  This method
a2783db
# will work with the GUIDS option above, and also with the multiple
a2783db
# config files in method #1 above.  However, only a single priority is
a2783db
# supported here.  If you wanted more than one priority (say this machine
a2783db
# is the primary on the first fabric, and second on the second fabric,
a2783db
# while the other opensm server is primary on the second fabric and
a2783db
# second on the primary), then the only way to do that is to use method #1
a2783db
# above and individually edit the config files.  If you edit the config
a2783db
# files to set the priority and then also set the priority here, then
a2783db
# this setting will override the config files and render that particular
a2783db
# edit useless.
a2783db
#
a2783db
#PRIORITY=15