[openib-general] [PATCH] OPENSM make missing /dev/infiniband/umad entries obvious
Grant Grundler
iod00d at hp.com
Sat Dec 10 20:34:52 PST 2005
Hi,
When installing openib bits on a new machine, I wasted an unreasonable
and absurd amount of time (by doing some other stupid things) when
OpenSM failed to start and gave an error msg about
"osm_vendor_bind: ERR 5424: Unable to Open Port 0x1321ffff75787a"
Once I enabled debugging in umad.c the problem was obvious:
I forgot to mknod the /dev/infiniband device files! Doh!
(obviously didn't have udev installed either.)
Just tell me the first time around please.
Don't hide error messages that users likely to run opensm are
able to correct. This error now shows up on the controlling tty.
thanks,
grant
Signed-off-by: Grant Grundler <iod00d at hp.com>
Index: src/userspace/management/libibumad/src/umad.c
===================================================================
--- src/userspace/management/libibumad/src/umad.c (revision 4371)
+++ src/userspace/management/libibumad/src/umad.c (working copy)
@@ -558,7 +558,7 @@ umad_open_port(char *ca_name, int portnu
UMAD_DEV_DIR , umad_id);
if ((port->dev_fd = open(port->dev_file, O_RDWR|O_NONBLOCK)) < 0) {
- DEBUG("open %s failed", port->dev_file);
+ IBWARN("open %s failed", port->dev_file);
return -EIO;
}
More information about the general
mailing list