Package Details: opensm 3.3.20-1

Git Clone URL: https://aur.archlinux.org/opensm.git (read-only)
Package Base: opensm
Description: OpenFabrics Alliance InfiniBand Subnet Manager and Administrator
Upstream URL: https://www.openfabrics.org/index.php/overview.html
Licenses: GPL2, custom:"Open Fabrics Alliance BSD"
Submitter: twinshadow
Maintainer: jamespharvey20
Last Packager: jamespharvey20
Votes: 4
Popularity: 0.023178
First Submitted: 2011-12-28 02:53
Last Updated: 2016-07-14 22:19

Dependencies (2)

Required by (2)

Sources (3)

Latest Comments

jmsq commented on 2015-07-18 17:01

jamespharvey20:

I notice you gutted the opensm.launch script. Granted the previous version was broken, please consider adopting this one since I do use multiple ports/daemons:

#!/bin/bash
#
# Launch the necessary OpenSM daemons for systemd
# Modifed to work on Archlinux from Fedora opensm-3.3.15-7.fc20.x86_64.rpm
#

shopt -s nullglob

GUIDS=`cat /etc/opensm/guid.conf`

prog=/usr/sbin/opensm

if [ -z "$GUIDS" ]; then
CONFIGS=""
CONFIG_CNT=0
for conf in /etc/opensm/opensm.conf.[0-9]*; do
CONFIGS="$CONFIGS $conf"
let CONFIG_CNT++
done
else
GUID_CNT=0
for guid in $GUIDS; do
let GUID_CNT++
done
fi
# Start opensm
if [ -n "$GUIDS" ]; then
SUBNET_COUNT=0
for guid in $GUIDS; do
(while true; do $prog -g $guid; sleep 30; done) &
let SUBNET_COUNT++
done
elif [ -n "$CONFIGS" ]; then
for config in $CONFIGS; do
(while true; do $prog -F $config; sleep 30; done) &
done
else
(while true; do $prog; sleep 30; done) &
fi
exit 0

and example guid.conf:
0x0002c902002240f9
0x0002c902002240fa

twinshadow commented on 2014-05-04 23:49

jmsq, I took the script and systemd unit-file from Fedora, modifying the paths for Archlinux.

If you find anything else you want to add, feel free to send me a pull-request at http://github.com/twinshadow/abs

jmsq commented on 2014-04-29 03:37

So I've finally gotten opensm working for me with systemd. Apparently the RedHat devs ran into the same problem with timing, hence why they use a helper script. If you could modify the systemd service I'd really appreciate it.

opensm.service: http://pastebin.com/zs22r76G
opensm-launch: http://pastebin.com/BKkHNCLN

twinshadow commented on 2013-02-15 22:55

I've not been using the systemd services, since my setup has OpenSM running on both ports. I need to read the systemd docs so I can add my advanced scripting/setup to these services. The service files that are not installed from the OpenSM package only works on RHEL/CentOS setups AFAIK.

jmsq commented on 2013-02-12 00:39

Does the systemd service reliably start opensm for you? Half the time when I try starting opensm it immediately bombs out with signal 15, but starting it a second or third time in a row yields no issue.

twinshadow commented on 2013-01-08 00:17

I am working on some systemd service files for this package before I update it.