[Pkg-fcoe-general] Configuring FCoE parameters at boot
    Jacob Luna Lundberg 
    jacob at gnifty.net
       
    Thu Apr  5 00:10:07 UTC 2018
    
    
  
Hi all,
I'm not sure how it works out in systemd-land but under sysvinit it can 
take a while (at least ten or fifteen seconds) for devices to get 
created after fcoemon claims to be running.  We use an additional init 
script to wait and mount.  This is also useful because Debian hasn't 
successfully mounted _netdev filesystems in sysvinit since this change:
https://people.debian.org/~spaillard/Debian_Release_Notes/mtab.html
do_start() {
        # Try for 30 seconds to give time for HBAs to come up.
        SLEEP=30
        if [ "$NETDEV" ]; then
                log_action_begin_msg "Mounting _netdev filesystems"
                pre_mountall
                RETVAL=1
                while [ $RETVAL -ne 0 ] && [ $SLEEP -gt 0 ]; do
                        sleep 1
                        SLEEP=$((SLEEP-1))
                        # Do fsck checks now because you generally can't do them automatically for _netdev filesystems.
                        # This will only check the ones that aren't already mounted at this point.
                        fsck -C -A -M -a -t opts=_netdev
                        # Mount the remaining _netdev filesystem(s) if they're ready.
                        # RETVAL will indicate if all _netdev filesystems defined in /etc/fstab are now mounted.
                        mount -a -O _netdev
                        RETVAL=$?
                done
                post_mountall
                log_action_end_msg 0
        fi
}
-Jacob
    
    
More information about the Pkg-fcoe-general
mailing list