25.3.2.2. Persistently Adding an LCS Device
cio_ignore is handled transparently for persistent device configurations and you do not need to free devices from the ignore list manually.
To add an LCS device persistently, follow these steps:
- Create a configuration script as file in
/etc/sysconfig/network-scripts/with a name likeifcfg-ethnwhere n is an integer starting with0. The file should look similar to the following:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Modify the value of
PORTNAMEto reflect the LCS port number (portno) you would like to use. You can add any valid lcs sysfs attribute and its value to the optionalOPTIONSparameter. Refer to Section 25.3.1.3, “Persistently Adding a qeth Device” for the syntax. - Set the
DEVICEparameter as follows:DEVICE=ethn
DEVICE=ethnCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Issue an
ifupcommand to activate the device:ifup ethn
# ifup ethnCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Changes to an
ifcfg file only become effective after rebooting the system. You can trigger the activation of a ifcfg file for network channels by executing the following commands:
- Use the
cio_ignorecommand to remove the LCS device adapter from the list of ignored devices and make it visible to Linux:cio_ignore -r read_device_bus_id,write_device_bus_id
# cio_ignore -r read_device_bus_id,write_device_bus_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace read_device_bus_id and write_device_bus_id with the device bus IDs of the LCS device. For example:cio_ignore -r 0.0.09a0,0.0.09a1
# cio_ignore -r 0.0.09a0,0.0.09a1Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To trigger the uevent that activates the change, issue:
echo add > /sys/bus/ccw/devices/read-channel/uevent
echo add > /sys/bus/ccw/devices/read-channel/ueventCopy to Clipboard Copied! Toggle word wrap Toggle overflow For example:echo add > /sys/bus/ccw/devices/0.0.09a0/uevent
echo add > /sys/bus/ccw/devices/0.0.09a0/ueventCopy to Clipboard Copied! Toggle word wrap Toggle overflow