[Lustre-discuss] Lustre module not loading on client mount

Nathan Dauchy Nathan.Dauchy at noaa.gov
Wed Apr 14 11:00:58 PDT 2010


Michael Robbert wrote:
> Kit,
> I thought that it may be a timing issue, but I added mount commands to rc.local and it didn't help.

Robert,

I'm not sure of the root cause of your mount problems, but we were also
hitting a timing problem when mounting file systems over Infiniband at
boot time.  To avoid it, since the IB may still not be initialized when
rc.local runs, the solution I used was to add the following to the
"start)" section of /etc/rc.d/init.d/netfs.  You could put something
similar in rc.local if you prefer.

    # Spin until we find an "Active" IB device
    if [ -d /sys/class/infiniband ]; then
        tries=1
        maxtries=10
        delay=5
        while [ $tries -le $maxtries ]; do
            grep -q ACTIVE /sys/class/infiniband/*/ports/*/state 2>&1 &&
break
            logger -s -t netfs "WARNING:  No "ACTIVE" Infiniband ports
found: try $tries/$maxtries, sleep $delay"
            sleep $delay
            (( tries++ ))
            [ $tries -gt $maxtries ] && logger -s -t "ERROR:  No
"ACTIVE" Infiniband ports found."
        done
    fi


Hope this helps!

-Nathan



More information about the lustre-discuss mailing list