Closed jackydalong closed 7 months ago
lszfcp_output=`lszfcp -P | awk '{print $1}' | awk -F'/' '{print $1,$2}'`
wwpns_shown_in_sys=`ls /sys/bus/ccw/drivers/zfcp/0.0.$fcp/ | grep "0x"`
### start: test code
if [[ $retry_num -gt 8 ]]; then
lszfcp_output=''
wwpns_shown_in_sys=''
fi
### end: test code
lszfcp_output=''
inform "Output of 'lszfcp -P': $lszfcp_output."
inform "Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.$fcp/: $wwpns_shown_in_sys"
refreshFCPBootmap: RefreshFCPBootmap begins. FCP: 1a17 1c19, WWPNs: 50050768103491d8 50050768102491d8 50050768102391d8 50050768103391d8 50050768102391e1 50050768101391e1 50050768102491e1 50050768101491e1, LUN: 0x0000000000000000, WWID: 3600507681080848f0800000000003b86, minfcp: 2.
refreshFCPBootmap: zthinUserID is IAAS006A
checkMultipath: multipathd service is active and running.
dedicateOnlineFcp: Dedicate FCP device: 1a17 successfully.
chccwdevDevice: set device 1a17 online successfully.
dedicateOnlineFcp: Dedicate FCP device: 1c19 successfully.
chccwdevDevice: set device 1c19 online successfully.
refreshFCPBootmap: Port state of fcp: 1a17 is: Online.
refreshFCPBootmap: Port detail info of fcp: 1a17 is: Class = "fc_host"#012#012 Class Device = "host2"#012 Class Device path = "/sys/devices/css0/0.0.000a/0.0.1a17/host2/fc_host/host2"#012 active_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "#012 dev_loss_tmo = "60"#012 fabric_name = "0x1000889471cc76c6"#012 firmware_version = "0x16300166"#012 hardware_version = "0x00000000"#012 manufacturer = "IBM"#012 maxframe_size = "2112 bytes"#012 model = "0x0008"#012 node_name = "0x5005076400c82f57"#012 permanent_port_name = "0xc05076de33002e41"#012 port_id = "0x3c156a"#012 port_name = "0xc05076de3300034a"#012 port_state = "Online"#012 port_type = "NPIV VPORT"#012 serial_number = "IBM02000000082F57"#012 speed = "16 Gbit"#012 supported_classes = "Class 2, Class 3"#012 supported_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "#012 supported_speeds = "4 Gbit, 8 Gbit, 16 Gbit"#012 symbolic_name = "IBM 3906 02000000082F57 PCHID: 02E4 NPIV UlpId: 002701E4 DEVNO: 0.0.1a17 NAME: 112-cmp-wdl"#012 tgtid_bind_type = "wwpn (World Wide Port Name)"#012 uevent = #012#012 Device = "host2"#012 Device path = "/sys/devices/css0/0.0.000a/0.0.1a17/host2"#012 uevent = "DEVTYPE=scsi_host".
refreshFCPBootmap: Port state of fcp: 1c19 is: Online.
refreshFCPBootmap: Port detail info of fcp: 1c19 is: Class = "fc_host"#012#012 Class Device = "host3"#012 Class Device path = "/sys/devices/css0/0.0.000b/0.0.1c19/host3/fc_host/host3"#012 active_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "#012 dev_loss_tmo = "60"#012 fabric_name = "0x1000889471cc76c6"#012 firmware_version = "0x16300166"#012 hardware_version = "0x00000000"#012 manufacturer = "IBM"#012 maxframe_size = "2112 bytes"#012 model = "0x0008"#012 node_name = "0x5005076400c82f57"#012 permanent_port_name = "0xc05076de33002641"#012 port_id = "0x3c0228"#012 port_name = "0xc05076de3300034d"#012 port_state = "Online"#012 port_type = "NPIV VPORT"#012 serial_number = "IBM02000000082F57"#012 speed = "16 Gbit"#012 supported_classes = "Class 2, Class 3"#012 supported_fc4s = "0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 "#012 supported_speeds = "4 Gbit, 8 Gbit, 16 Gbit"#012 symbolic_name = "IBM 3906 02000000082F57 PCHID: 0264 NPIV UlpId: 00320168 DEVNO: 0.0.1c19 NAME: 112-cmp-wdl"#012 tgtid_bind_type = "wwpn (World Wide Port Name)"#012 uevent = #012#012 Device = "host3"#012 Device path = "/sys/devices/css0/0.0.000b/0.0.1c19/host3"#012 uevent = "DEVTYPE=scsi_host".
refreshFCPBootmap: The number of online FCP devices: 2 satisfies the required minimum FCP path count: 2.
---- start retry
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1a17, 9 times left...
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1a17, 8 times left...
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1a17/: 0x5005076306105388#0120x50050763061bd388#0120x50050763080052cf#0120x500507630800d2cf#0120x50050763080bd2cf#0120x500507630810d2cf#0120x500507680b21bac6#0120x500507680b21bac7#0120x500507680b23bac6#0120x500507680b23bac7#0120x500507680d060027#0120x500507680d120027#0120x500507680d760027#0120x500507680d820027#0120x50050768101391e1#0120x50050768102491d8#0120x50050768102491e1#0120x50050768103391d8 refreshFCPBootmap: Found one valid path: (1a17,0x50050768102491d8). refreshFCPBootmap: Found one valid path: (1a17,0x50050768103391d8). refreshFCPBootmap: Found one valid path: (1a17,0x50050768101391e1). refreshFCPBootmap: Found one valid path: (1a17,0x50050768102491e1). refreshFCPBootmap: Found target WWPNs 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1 for FCP device 1a17.
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1c19, 9 times left...
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: refreshFCPBootmap: Retrying to get the target WWPNs for FCP device 1c19, 8 times left...
---- end: retry
refreshFCPBootmap: Output of 'lszfcp -P': . refreshFCPBootmap: Target WWPNs shown under /sys/bus/ccw/drivers/zfcp/0.0.1c19/: 0x5005076306105388#0120x50050763061bd388#0120x50050763080052cf#0120x500507630800d2cf#0120x50050763080bd2cf#0120x500507630810d2cf#0120x500507680b21bac6#0120x500507680b21bac7#0120x500507680b23bac6#0120x500507680b23bac7#0120x500507680d060027#0120x500507680d120027#0120x500507680d760027#0120x500507680d820027#0120x50050768101391e1#0120x50050768102491d8#0120x50050768102491e1#0120x50050768103391d8 refreshFCPBootmap: Found one valid path: (1c19,0x50050768102491d8). refreshFCPBootmap: Found one valid path: (1c19,0x50050768103391d8). refreshFCPBootmap: Found one valid path: (1c19,0x50050768101391e1). refreshFCPBootmap: Found one valid path: (1c19,0x50050768102491e1). refreshFCPBootmap: Found target WWPNs 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1 for FCP device 1c19. refreshFCPBootmap: valid target ports found on FCP: 1a17 are: 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768102491d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768103391d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768101391e1:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1a17-zfcp-0x50050768102491e1:0x0000000000000000. refreshFCPBootmap: valid target ports found on FCP: 1c19 are: 50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768102491d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768103391d8:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768101391e1:0x0000000000000000. refreshFCPBootmap: Successfully added disk path: /dev/disk/by-path/ccw-0.0.1c19-zfcp-0x50050768102491e1:0x0000000000000000. refreshFCPBootmap: 8 valid paths found. refreshFCPBootmap: valid paths string is: 1a17:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1,1c19:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1. refreshFCPBootmap: Multipath is enabled, using multipath devNode: /dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86. refreshZIPL: Begin to refreshZIPL. refreshZIPL: devNode is: /dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 point: /tmp/aG7hE refreshZIPL: Updating /tmp/aG7hE/etc/fstab refreshZIPL: Purge contents in /tmp/aG7hE/etc/zfcp.conf refreshZIPL: Move stale multipath bindings and wwids if any refreshZIPL: Final rd.zfcp value is: rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19 . refreshZIPL: Refresh rhel86 zipl. refreshZIPL: zipl command: /tmp/aG7hE/usr/sbin/zipl -V -c /tmp/aG7hE/etc/zipl.conf_zipl_postfix -b /tmp/aG7hE/boot/loader/entries_zipl_postfix 2>&1 refreshZIPL: zipl.conf content: [defaultboot]#012defaultauto#012prompt=1#012timeout=5#012target=/boot#012secure=auto refreshZIPL: Successed to execute zipl on rhel86. Output: Looking for components in '/lib/s390-tools'#012Using config file '/tmp/aG7hE/etc/zipl.conf_zipl_postfix' (from command line)#012Using BLS config file '/tmp/aG7hE/boot/loader/entries_zipl_postfix/9892de908d024cbfafb5fedf97a37b2f-4.18.0-372.9.1.el8.s390x.conf'#012Using BLS config file '/tmp/aG7hE/boot/loader/entries_zipl_postfix/9892de908d024cbfafb5fedf97a37b2f-0-rescue.conf'#012Run /lib/s390-tools//zipl_helper.device-mapper /tmp/aG7hE/boot#012Target device information#012 Device..........................: fd:00 )#012 Partition.......................: fd:01#012 Device name.....................: dm-0#012 Device driver name..............: device-mapper#012 Type............................: disk partition#012 Disk layout.....................: SCSI disk layout )#012 Geometry - start................: 2048 )#012 File system block size..........: 4096#012 Physical block size.............: 512 )#012 Device size in physical blocks..: 8388608#012 *) Data provided by script.#012Building bootmap in '/tmp/aG7hE/boot'#012Building menu 'zipl-automatic-menu'#012Adding #1: IPL section 'Red Hat Enterprise Linux (4.18.0-372.9.1.el8.s390x) 8.6 (Ootpa)' (default)#012 initial ramdisk...: /tmp/aG7hE/boot/initramfs-4.18.0-372.9.1.el8.s390x.img#012 kernel image......: /tmp/aG7hE/boot/vmlinuz-4.18.0-372.9.1.el8.s390x#012 kernel parmline...: 'root=/dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 crashkernel=auto cio_ignore=all,!0.0.0009 rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19'#012 component address:#012 heap area.......: 0x00002000-0x00005fff#012 stack area......: 0x0000f000-0x0000ffff#012 internal loader.: 0x0000a000-0x0000dfff#012 parameters......: 0x00009000-0x000091ff#012 kernel image....: 0x00010000-0x0073bfff#012 parmline........: 0x0073d000-0x0073d1ff#012 initial ramdisk.: 0x00740000-0x021a03ff#012 environment blk.: 0x0073e000-0x0073efff#012Adding #2: IPL section 'Red Hat Enterprise Linux (0-rescue-9892de908d024cbfafb5fedf97a37b2f) 8.6 (Ootpa)'#012 initial ramdisk...: /tmp/aG7hE/boot/initramfs-0-rescue-9892de908d024cbfafb5fedf97a37b2f.img#012 kernel image......: /tmp/aG7hE/boot/vmlinuz-0-rescue-9892de908d024cbfafb5fedf97a37b2f#012 kernel parmline...: 'root=/dev/disk/by-id/dm-uuid-part1-mpath-3600507681080848f0800000000003b86 crashkernel=auto cio_ignore=all,!0.0.0009 rd.zfcp=0.0.1a17 rd.zfcp=0.0.1c19'#012 component address:#012 heap area.......: 0x00002000-0x00005fff#012 stack area......: 0x0000f000-0x0000ffff#012 internal loader.: 0x0000a000-0x0000dfff#012 parameters......: 0x00009000-0x000091ff#012 kernel image....: 0x00010000-0x0073bfff#012 parmline........: 0x0073d000-0x0073d1ff#012 initial ramdisk.: 0x00740000-0x032461ff#012 environment blk.: 0x0073e000-0x0073efff#012Environment block content:#012Preparing boot device: dm-0.#012Detected SCSI PCBIOS disk layout.#012Writing SCSI master boot record.#012Syncing disks...#012Done. refreshZIPL: RESULT PATHS: 1a17:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1,1c19:50050768102491d8 50050768103391d8 50050768101391e1 50050768102491e1
- after test, remember to revert the previous change