Creating an LCS group device
Use the group attribute to create an LCS group device.
Before you begin
Procedure
To define an LCS group device, write the device bus-IDs
of the subchannel pair to /sys/bus/ccwgroup/drivers/lcs/group.
Issue a command of this form:
# echo <read_device_bus_id>,<write_device_bus_id> > /sys/bus/ccwgroup/drivers/lcs/group
Results
/sys/bus/ccwgroup/drivers/lcs/<read_device_bus_id>
This
directory contains a number of attributes that determine the settings
of the LCS group device. The following sections describe how to use
these attributes to configure an LCS group device. Note: When the
device subchannels are added, device types 3088/08 and 3088/1f can
be assigned to either the CTCM or the LCS device driver.
To check
which devices are assigned to which device driver, issue the following
commands:
# ls -l /sys/bus/ccw/drivers/ctcm
# ls -l /sys/bus/ccw/drivers/lcs
To change a faulty
assignment, use the unbind and bind attributes of the device. For
example, to change the assignment for device bus-IDs
0.0.2000
and 0.0.2001
issue
the following commands: # echo 0.0.2000 > /sys/bus/ccw/drivers/ctcm/unbind
# echo 0.0.2000 > /sys/bus/ccw/drivers/lcs/bind
# echo 0.0.2001 > /sys/bus/ccw/drivers/ctcm/unbind
# echo 0.0.2001 > /sys/bus/ccw/drivers/lcs/bind
Example
Assuming that 0.0.d000 is the device bus-ID that corresponds to a read subchannel:
# echo 0.0.d000,0.0.d001 > /sys/bus/ccwgroup/drivers/lcs/group
This command results in the creation of the following directories in sysfs:
- /sys/bus/ccwgroup/drivers/lcs/0.0.d000
- /sys/bus/ccwgroup/devices/0.0.d000
- /sys/devices/lcs/0.0.d000