Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
25.3.2. 添加 LCS 设备
LAN 通道站(LCS)设备驱动程序在 OSA-Express2 和 OSA-Express 3 特性中支持 1000Base-T 以太网。
根据所添加接口的类型,LCS 驱动程序分配以下三个接口名之一:
- ethn 用于 OSA-Express Fast Ethernet 和 Gigabit Ethernet
其中 n 是一个唯一的整数值来区分不同的设备。n 为 0 代表此种类型中的第一个设备,1 为第 2 个设备,依次类推。
25.3.2.1. 动态添加 LCS 设备
- 载入设备驱动程序:
# modprobe lcs
- 使用
cio_ignore
命令删除忽略的设备列表中的网络通道,并使其出现在 Linux 中:# cio_ignore -r read_device_bus_id,write_device_bus_id
使用代表网络设备的两个设备总线 ID 替换 read_device_bus_id 和 write_device_bus_id。例如:# cio_ignore -r 0.0.09a0,0.0.09a1
- 创建组设备:
# echo read_device_bus_id,write_device_bus_id > /sys/bus/ccwgroup/drivers/lcs/group
- 配置该设备。OSA卡可以为一个单独的 CHPID 提供多达16个端口。在默认的情况下,LCS 组设备使用端口
0
。要使用不同的端口,请执行类似如下的命令:# echo portno > /sys/bus/ccwgroup/drivers/lcs/device_bus_id/portno
请用您要使用的端口号替换 portno。有关配置 LCS 驱动程序配置的详情请参考《System z 中的 Linux: Red Hat Enterprise Linux 6 中的设备驱动程序、特性和命令》中有关 LCS 的章节。 - 设置设备在线:
# echo 1 > /sys/bus/ccwgroup/drivers/lcs/read_device_bus_id/online
- 查找已经分配的网络设备名称,请输入命令:
# ls -l /sys/bus/ccwgroup/drivers/lcs/read_device_bus_ID/net/ drwxr-xr-x 4 root root 0 2010-04-22 16:54 eth1