Package Details: opensm 3.3.22-1

Git Clone URL: https://aur.archlinux.org/opensm.git (read-only, click to copy)
Package Base: opensm
Description: OpenFabrics Alliance InfiniBand Subnet Manager and Administrator
Upstream URL: https://www.openfabrics.org/index.php/overview.html
Licenses: GPL2, custom:"OpenIB.org BSD"
Submitter: twinshadow
Maintainer: jamespharvey20 (nfnty)
Last Packager: jamespharvey20
Votes: 4
Popularity: 0.000000
First Submitted: 2011-12-28 02:53 (UTC)
Last Updated: 2019-04-25 10:32 (UTC)

Pinned Comments

jamespharvey20 commented on 2018-10-14 08:03 (UTC)

Adding a pinned comment, that anyone needing multiple interfaces should check out the opensm-systemd-multiple-interfaces package.

Latest Comments

HappyGirl commented on 2021-09-02 05:48 (UTC) (edited on 2021-09-02 05:51 (UTC) by HappyGirl)

If this is still being maintained can you please update the system service file due to the rdma-core service file changes. The only two lines that are changing are:

Requires=rdma-load-modules@rdma.service
After=rdma-load-modules@rdma.service

So the complete file is /usr/lib/systemd/system/opensm.service

# Upstream doesn't provide a systemd .service file
# Copied from Fedora's opensm-3.3.17-4.fc22.x86_64.rpm
# Modified to follow Arch layout
[Unit]
Description=Starts the OpenSM InfiniBand fabric Subnet Manager
Documentation=man:opensm
DefaultDependencies=false
Before=network.target remote-fs-pre.target
Requires=rdma-load-modules@rdma.service
After=rdma-load-modules@rdma.service

[Service]
Type=forking
# There is a timing bug that intermittently causes signal 15 failures on start
# Fedora's workaround is to use a separate script
ExecStart=/usr/bin/opensm.launch

[Install]
WantedBy=network.target

jamespharvey20 commented on 2018-10-14 08:03 (UTC)

Adding a pinned comment, that anyone needing multiple interfaces should check out the opensm-systemd-multiple-interfaces package.

jmsq commented on 2015-07-18 17:01 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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