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