User Tools

Site Tools


linux:linuxppc_devices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:linuxppc_devices [2025/04/28 16:42]
manu
linux:linuxppc_devices [2025/06/11 18:17] (current)
manu [Connections to VIOS]
Line 353: Line 353:
 for i in $(ls /​sys/​class/​scsi_host/​host*/​scan);​ do echo "- - -" > $i; done for i in $(ls /​sys/​class/​scsi_host/​host*/​scan);​ do echo "- - -" > $i; done
 </​cli>​ </​cli>​
 +
 +==== Reset the FC port ====
 +
 +If the paths are still bad, then reset the FC adapter (systool -c fc_host -v)
 +  Here example for one adapter
 +<cli prompt='#'>​
 +# echo "​1"​ > /​sys/​devices/​vio/​30000004/​host1/​fc_host/​host1/​issue_lip
 +
 +Or
 +
 +# echo 1 > /​sys/​class/​fc_host/​host1/​issue_lip
 +</​cli>​
 +
 +
 +
 +==== Connections to VIOS ====
 +
 +List all SCSI emulation: vscsi and Fc SCSI emulation
 +<cli prompt='#'>​
 +[root@lnx001 /​root/​scripts]#​ systool -c scsi_host -v
 +Class = "​scsi_host"​
 +
 +  Class Device = "​host0"​
 +  Class Device path = "/​sys/​devices/​vio/​30000002/​host0/​scsi_host/​host0"​
 +    active_mode ​        = "​Initiator"​
 +    can_queue ​          = "​100"​
 +    cmd_per_lun ​        = "​16"​
 +    config ​             =
 +    eh_deadline ​        = "​off"​
 +    host_busy ​          = "​0"​
 +    host_reset ​         = <store method only>
 +    mad_version ​        = "​1"​
 +    nr_hw_queues ​       = "​1"​
 +    os_type ​            = "​3"​
 +    partition_name ​     = "​VIOS01"​
 +    partition_number ​   = "​2"​
 +    proc_name ​          = "​ibmvscsi"​
 +    prot_capabilities ​  = "​0"​
 +    prot_guard_type ​    = "​0"​
 +    scan                = <store method only>
 +    sg_prot_tablesize ​  = "​0"​
 +    sg_tablesize ​       = "​128"​
 +    srp_version ​        = "​16.a"​
 +    state               = "​running"​
 +    supported_mode ​     = "​Initiator"​
 +    uevent ​             =
 +    unchecked_isa_dma ​  = "​0"​
 +    unique_id ​          = "​0"​
 +    use_blk_mq ​         = "​1"​
 +    vhost_loc ​          = "​U9009.22G.xxxxxxx-V20-C2-T1"​
 +    vhost_name ​         = "​vhost13"​
 +
 +    Device = "​host0"​
 +    Device path = "/​sys/​devices/​vio/​30000002/​host0"​
 +      uevent ​             = "​DEVTYPE=scsi_host"​
 +
 +
 +  Class Device = "​host1"​
 +  Class Device path = "/​sys/​devices/​vio/​30000003/​host1/​scsi_host/​host1"​
 +    active_mode ​        = "​Initiator"​
 +    can_queue ​          = "​100"​
 +    capabilities ​       = "​105d"​
 +    cmd_per_lun ​        = "​16"​
 +    device_name ​        = "​vfchost21"​
 +    drc_name ​           = "​U9009.22G.78D0270-V2-C38"​
 +    eh_deadline ​        = "​off"​
 +    host_busy ​          = "​0"​
 +    host_reset ​         = <store method only>
 +    log_level ​          = "​2"​
 +    npiv_version ​       = "​2"​
 +    nr_hw_queues ​       = "​1"​
 +    nr_scsi_channels ​   = "​1"​
 +    partition_name ​     = "​VIOS01"​
 +    port_loc_code ​      = "​U78D3.001.xxxxxxx-P1-C10-T2"​
 +    proc_name ​          = "​ibmvfc"​
 +    prot_capabilities ​  = "​0"​
 +    prot_guard_type ​    = "​0"​
 +    scan                = <store method only>
 +    sg_prot_tablesize ​  = "​0"​
 +    sg_tablesize ​       = "​128"​
 +    state               = "​running"​
 +    supported_mode ​     = "​Initiator"​
 +    trace               = "​▒G{e"​
 +    uevent ​             =
 +    unchecked_isa_dma ​  = "​0"​
 +    unique_id ​          = "​1"​
 +    use_blk_mq ​         = "​1"​
 +
 +    Device = "​host1"​
 +    Device path = "/​sys/​devices/​vio/​30000003/​host1"​
 +      uevent ​             = "​DEVTYPE=scsi_host"​
 +</​cli>​
 +
 +List all logical FC adapter (and their WWN)
 +<cli prompt='#'>​
 +[root@lnx001 /​root/​scripts]#​ systool -c fc_host -v
 +Class = "​fc_host"​
 +
 +  Class Device = "​host1"​
 +  Class Device path = "/​sys/​devices/​vio/​30000003/​host1/​fc_host/​host1"​
 +    dev_loss_tmo ​       = "​300"​
 +    fabric_name ​        = "​0xc050760xxxxe05d5"​
 +    issue_lip ​          = <store method only>
 +    maxframe_size ​      = "2048 bytes"
 +    node_name ​          = "​0xc050760xxxxe05d5"​
 +    port_id ​            = "​0x702521"​
 +    port_name ​          = "​0xc050760xxxxe05d5"​
 +    port_state ​         = "​Online"​
 +    port_type ​          = "NPIV VPORT"
 +    speed               = "​unknown"​
 +    supported_classes ​  = "Class 3"
 +    tgtid_bind_type ​    = "wwpn (World Wide Port Name)"
 +    uevent ​             =
 +
 +    Device = "​host1"​
 +    Device path = "/​sys/​devices/​vio/​30000003/​host1"​
 +      uevent ​             = "​DEVTYPE=scsi_host"​
 +</​cli>​
 +
 +Identify also the PCI virtual slots (PPC64LE)
 +<cli prompt='#'>​
 +[root@lnx001 /​root/​scripts]#​ lsslot
 +# Slot                     ​Description ​      Linux Name    Device(s)
 +U9009.22G.78xxxxx-V35-C0 ​  ​Virtual I/O Slot  30000000 ​     vty
 +U9009.22G.78xxxxx-V35-C2 ​  ​Virtual I/O Slot  30000002 ​     v-scsi
 +U9009.22G.78xxxxx-V35-C3 ​  ​Virtual I/O Slot  30000003 ​     vfc-client
 +U9009.22G.78xxxxx-V35-C4 ​  ​Virtual I/O Slot  30000004 ​     vfc-client
 +U9009.22G.78xxxxx-V35-C5 ​  ​Virtual I/O Slot  30000005 ​     vfc-client
 +</​cli>​
 +
  
linux/linuxppc_devices.1745851337.txt.gz · Last modified: 2025/04/28 16:42 by manu