Configure esos Infiniband HCA hostname on boot for ibnetdiscover

144 views
Skip to first unread message

Giuseppe

unread,
Mar 1, 2016, 7:54:18 PM3/1/16
to esos-users
Hello, i wuld like to know how to configure esos that will write on the boot the server hostname so i can discover trough ibnetdiscover
the HCA infiniband connected to the switch, i edited the following file manually and it worked:

/sys/class/infiniband/mlx4_0/node_desc

but i dont know of set it automticaly when esos booting

Thanks


Marc Smith

unread,
Mar 1, 2016, 9:52:48 PM3/1/16
to esos-...@googlegroups.com
Hi,

I took a quick look and was pretty sure this should be done already
for you, but looking at the code again there may be a problem...
rc.openibd (/etc/rc.d/rc.openibd) has this section in it:
--snip--
# Add node description to sysfs
if [ -d ${IB_SYSFS} ]; then
hca_id=1
for hca in ${IB_SYSFS}/*; do
if [ -e ${hca}/node_desc ]; then
/usr/bin/logger "Set node_desc for $(/usr/bin/basename
$hca): $(/bin/hostname -s) HCA-${hca_id}"
echo -n "$(/bin/hostname -s) HCA-${hca_id}" >> ${hca}/node_desc
fi
hca_id=$(/usr/bin/expr ${hca_id} + 1)
done
fi
--snip--

But looking at this again, I'm not sure 'hostname -s' is right... can
you check this code on your machine and see why its not working? I
don't have any IB hardware to test with.

And to answer your question, if you wanted to do this manually, you
could edit '/etc/rc.local' and add that same line in there, or in
'/etc/pre-scst_xtra_conf'.


--Marc
> --
> You received this message because you are subscribed to the Google Groups
> "esos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to esos-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Giuseppe

unread,
Mar 2, 2016, 11:08:46 AM3/2/16
to esos-users

Hello mark.... just checked it the  code inside /etc/rc.d/rc.openibd its same
anyway if im running hostname -s im getting localhost..... but inside the /etc/hosts i have this:

127.0.0.1       localhost storage1 storage1.esos
::1             localhost storage1 storage1.esos


thanks

Marc Smith

unread,
Mar 3, 2016, 9:05:02 AM3/3/16
to esos-...@googlegroups.com
Yes, it seems 'hostname -s' does not give us the expected value. I'll
look into this more, but for the time being, use the work-around I
suggested in my previous email.

--Marc
Reply all
Reply to author
Forward
0 new messages