mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
e84287e76e
Consistency with "lszfcp -Ha" which includes zfcp_adapter as class=ccw.
Attribute details are especially useful to show the driver-internal status.
For FCP devices (hosts), "css" shows subchannel details including CHPID.
Abbreviated examples:
$ lszfcp -PVeam -b 0.0.50c0 -p 0x500507680b2481fa
- (NoMoreZfcpPort:0.0.50c0/0x500507680b2481fa)
/sys/class/fc_remote_ports/rport-6:0-2 NotOnline
Class = "fc_remote_ports"
dev_loss_tmo = "60"
fast_io_fail_tmo = "off"
maxframe_size = "2048 bytes"
node_name = "0x500507680b0081fa"
port_id = "0x242200"
port_name = "0x500507680b2481fa"
port_state = "Blocked"
roles = "FCP Target"
scsi_target_id = "2"
supported_classes = "Class 2, Class 3"
$ lszfcp -HPDeam
0.0.1900 host0
Bus = "css"
chpids = "60 00 00 00 00 00 00 00"
modalias = "css:t0"
pimpampom = "80 80 ff"
type = "0"
uevent = "DRIVER=io_subchannel"
vpm = "80"
Bus = "ccw"
availability = "good"
...
failed = "0"
in_recovery = "0"
online = "1"
status = "0x5400040b"
...
Class = "fc_host"
...
port_state = "Online"
port_type = "NPIV VPORT"
...
Class = "scsi_host"
...
state = "running"
...
0.0.1940 host8 offline
Bus = "css"
chpids = "61 00 00 00 00 00 00 00"
modalias = "css:t0"
pimpampom = "80 80 ff"
type = "0"
uevent = "DRIVER=io_subchannel"
vpm = "80"
Bus = "ccw"
availability = "good"
...
failed = "0"
in_recovery = "0"
online = "0"
status = "0x00000401"
...
Class = "fc_host"
...
port_state = "Unknown"
port_type = "NPIV VPORT"
...
Class = "scsi_host"
...
state = "running"
...
0.0.5000 host1 offline
Bus = "css"
chpids = "67 00 00 00 00 00 00 00"
modalias = "css:t0"
pimpampom = "80 80 ff"
type = "0"
uevent = "DRIVER=io_subchannel"
vpm = "80"
Bus = "ccw"
availability = "good"
...
failed = "0"
in_recovery = "0"
online = "0"
status = "0x00000401"
uevent = "DRIVER=zfcp"
...
Class = "fc_host"
...
port_state = "Unknown"
port_type = "NPort (fabric via point-to-point)"
...
Class = "scsi_host"
...
state = "running"
...
0.0.3c40 host7 defunct
Bus = "css"
defunct
Bus = "ccw"
availability = "no device"
...
failed = "0"
in_recovery = "0"
online = "1"
status = "0x00000401"
...
Class = "fc_host"
...
port_state = "Unknown"
port_type = "NPIV VPORT"
...
Class = "scsi_host"
...
state = "running"
...
0.0.1880 - offline
Bus = "css"
chpids = "5a 00 00 00 00 00 00 00"
modalias = "css:t0"
pimpampom = "80 80 ff"
type = "0"
uevent = "DRIVER=io_subchannel"
vpm = "00"
Bus = "ccw"
availability = "good"
cmb_enable = "0"
cutype = "1731/03"
devtype = "1732/03"
modalias = "ccw:t1731m03dt1732dm03"
online = "0"
uevent = "DRIVER=zfcp"
0.0.1900/0x500507630708c5e3 rport-0:0-0
Class = "zfcp_port"
access_denied = "0"
failed = "0"
in_recovery = "0"
status = "0x54000001"
Class = "fc_remote_ports"
dev_loss_tmo = "2147483647"
fast_io_fail_tmo = "5"
maxframe_size = "2112 bytes"
node_name = "0x5005076307ffc5e3"
port_id = "0x675c00"
port_name = "0x500507630708c5e3"
port_state = "Online"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 2, Class 3"
0.0.5000/0x500507680b2381fb rport-1:0-0 NotOnline
Class = "zfcp_port"
access_denied = "0"
failed = "0"
in_recovery = "0"
status = "0x00000001"
Class = "fc_remote_ports"
dev_loss_tmo = "2147483647"
fast_io_fail_tmo = "5"
maxframe_size = "2048 bytes"
node_name = "0x500507680b0081fb"
port_id = "0x24e200"
port_name = "0x500507680b2381fb"
port_state = "Blocked"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 2, Class 3"
0.0.5040/0x500507680b2281fa rport-2:0-0
Class = "zfcp_port"
access_denied = "0"
failed = "0"
in_recovery = "0"
status = "0x54000001"
Class = "fc_remote_ports"
dev_loss_tmo = "2147483647"
fast_io_fail_tmo = "5"
maxframe_size = "2048 bytes"
node_name = "0x500507680b0081fa"
port_id = "0x24a300"
port_name = "0x500507680b2281fa"
port_state = "Online"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 2, Class 3"
0.0.1940/0x500507630718c5e3 rport-8:0-0 NotOnline
Class = "zfcp_port"
access_denied = "0"
failed = "0"
in_recovery = "0"
status = "0x00000001"
Class = "fc_remote_ports"
dev_loss_tmo = "2147483647"
fast_io_fail_tmo = "5"
maxframe_size = "2112 bytes"
node_name = "0x5005076307ffc5e3"
port_id = "0x675e00"
port_name = "0x500507630718c5e3"
port_state = "Blocked"
roles = "FCP Target"
scsi_target_id = "0"
supported_classes = "Class 2, Class 3"
0.0.1900/0x500507630708c5e3/0x4000408600000000 0:0:0:1082540032 auto
Class = "scsi_device"
...
state = "running"
...
zfcp_access_denied = "0"
zfcp_failed = "0"
zfcp_in_recovery = "0"
zfcp_status = "0x54000000"
0.0.1940/0x500507630718c5e3/0x4000408600000000 8:0:0:1082540032 auto NotRunning
Class = "scsi_device"
...
state = "transport-offline"
...
zfcp_access_denied = "0"
zfcp_failed = "0"
zfcp_in_recovery = "0"
zfcp_status = "0x00000000"
0.0.5000/0x500507680b2381fb/0x0256000000000000 1:0:0:598 NotRunning
Class = "zfcp_unit"
access_denied = "0"
access_readonly = "0"
access_shared = "0"
failed = "0"
in_recovery = "0"
status = "0x00000000"
Class = "scsi_device"
...
state = "transport-offline"
...
zfcp_access_denied = "0"
zfcp_failed = "0"
zfcp_in_recovery = "0"
zfcp_status = "0x00000000"
0.0.5040/0x500507680b2281fa/0x0256000000000000 2:0:0:598
Class = "zfcp_unit"
access_denied = "0"
access_readonly = "0"
access_shared = "0"
failed = "0"
in_recovery = "0"
status = "0x54000000"
Class = "scsi_device"
...
state = "running"
...
zfcp_access_denied = "0"
zfcp_failed = "0"
zfcp_in_recovery = "0"
zfcp_status = "0x54000000"
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>