Blame SPECS/opensm.sysconfig

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