[Pkg-fcoe-general] Configuring FCoE parameters at boot

Valentin Vidic Valentin.Vidic at CARNet.hr
Wed Apr 4 13:52:50 UTC 2018


On Wed, Apr 04, 2018 at 11:29:07AM +0000, Mark Syms wrote:
> I have a server with a pair of Intel 82599ES NICs which is configured as an LIO FCoE software target. This works well but it has a minor irritation that every time the system boots I have to run 
> 
> 	echo <nic>.11 > /sys/module/libfcoe/parameters/create
> 
> On each of the NICs to make the FCoE adapters come live.
> 
> This feels like it should be something that could be configured automatically but when I tried adding it as a post-up on the VLAN interface in /etc/networtk/interfaces the system failed to bring up the network at all due to a circular dependency.
> 
> Are there any recommendations about how to achieve this?

I don't have Intel NIC, but the following service file
starts fcoemon before the network:

[Unit]
Description=Open-FCoE initiator daemon
After=lldpad.service
Before=network.target

[Service]
Type=simple
EnvironmentFile=/etc/fcoe/config
ExecStartPre=/sbin/modprobe -qa $SUPPORTED_DRIVERS
ExecStart=/usr/sbin/fcoemon --foreground --syslog $FCOEMON_OPTS

[Install]
WantedBy=multi-user.target
Also=fcoemon.socket


The NIC is configured in /etc/fcoe/cfg-eno51:

## Type:       yes/no
## Default:    no
# Enable/Disable FCoE service at the Ethernet port
# Normally set to "yes"
FCOE_ENABLE="yes"

## Type:       yes/no
## Default:    no
# Indicate if DCB service is required at the Ethernet port
# Normally set to "yes"
DCB_REQUIRED="no"

## Type:        yes/no
## Default:     no
# Indicate if VLAN discovery should be handled by fcoemon
# Normally set to "yes"
AUTO_VLAN="yes"

## Type:        fabric/vn2vn
## Default:     fabric
# Indicate the mode of the FCoE operation, either fabric or vn2vn
# Normally set to "fabric"
MODE="fabric"

## Type:        yes/no
## Default:     no
# Indicate whether to run a FIP responder for VLAN discovery in vn2vn
# mode
#FIP_RESP="yes"


Finally, /etc/network/interfaces just brings up the interface:

auto eno51
iface eno51 inet manual
        up   ip link set dev $IFACE up
        down ip link set dev $IFACE down

-- 
Valentin



More information about the Pkg-fcoe-general mailing list