SLES9 SP3, my san_disc is 1.36 and san_disc -c PORT_LIST works in my environment, an IBM SVC providing scsi LUNs.
-------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of MAYER Andreas Sent: Friday, September 07, 2007 5:24 AM To: [email protected] Subject: zfcp HBA API library Hello, I'm trying to get san_disc from IBM Developerworks on SLES9 (kernel 2.6.5-7.282-s390x) working (http://www-128.ibm.com/developerworks/linux/linux390/useful_add-ons_hba api.html). Currently I'm using version 1.4 and am not able to list the configured target devices with PORT_LIST, other commands like HBA_LIST and RNID are working fine. Host adapters on z990 and target tape devices (Sun/StorageTek 9804C and T10000A) are both connected to a McData fabric. # export LIB_ZFCP_HBAAPI_LOG_LEVEL=1 # san_disc -c PORT_LIST -a 28 -V (vlib.c:100)_initvlib: libzfcphbaapi.so loaded at Sep 04 14:46:04 No. Port WWN Node WWN DID Type AssociatedType (vlib_aux.c:798)vlibErrnoToHBAStatus: ERROR: ZH_IOC_SEND_CT failed: Input/output error san_disc: HBA_SendCTPassThru failed And *sometimes* I get *one* out of 19 configured targets on each of two host adapters. # san_disc -c PORT_LIST -a 28 -V (vlib.c:100)_initvlib: libzfcphbaapi.so loaded at Sep 04 14:47:19 No. Port WWN Node WWN DID Type AssociatedType (vlib_aux.c:779)vlibErrnoToHBAStatus: ERROR: ZH_IOC_SEND_RNID failed: No such adapter 1 0x500104f00075d569 0x500104f00075d568 0x6d0f13 N_Port (not specified) (vlib_aux.c:779)vlibErrnoToHBAStatus: ERROR: ZH_IOC_SEND_CT failed: No such adapter san_disc: HBA_SendCTPassThru failed Part of strace output: write(2, "(vlib.c:100)_initvlib: ", 23(vlib.c:100)_initvlib: ) = 23 write(2, "libzfcphbaapi.so loaded at Sep 0"..., 43libzfcphbaapi.so loaded at Sep 04 15:12:28 ) = 43 open("/dev/zfcp_hbaapi", O_RDONLY) = 3 ioctl(3, 0x4018dd0c, 0x3ffffffec60) = 32 read(3, "\1\0\0\0\0\0\0\0000.0.c200\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1536) = 1536 open("/dev/zfcp_hbaapi", O_RDONLY) = 4 ioctl(4, 0xdd0e, 0) = 0 mmap(NULL, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000019a000 mprotect(0x2000019a000, 4096, PROT_NONE) = 0 clone(child_stack=0x20000399280, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYS VSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0x20000399a00, tls=0x20000399970, child_tidptr=0x20000399a00) = 8431 fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2000039a000 ioctl(3, 0xc020dd07, 0x3ffffffecf8) = -1 EIO (Input/output error) write(2, "(vlib_aux.c:798)vlibErrnoToHBASt"..., 38(vlib_aux.c:798)vlibErrnoToHBAStatus: ) = 38 write(2, "ERROR: ZH_IOC_SEND_CT failed", 28ERROR: ZH_IOC_SEND_CT failed) = 28 write(2, ": Input/output error\n", 21: Input/output error ) = 21 write(2, "san_disc: ", 10san_disc: ) = 10 write(2, "HBA_SendCTPassThru failed", 25HBA_SendCTPassThru failed) = 25 write(2, "\n", 1 ) = 1 ioctl(3, 0xdd11, 0) = 0 futex(0x20000399a00, FUTEX_WAIT, 8431, NULL) = 0 close(4) = 0 close(3) = 0 write(1, " No. Port WWN Node WW"..., 75) = 75 No. Port WWN Node WWN DID Type AssociatedType munmap(0x2000039a000, 4096) = 0 exit_group(-1) = ? Message "libfcphbaapi.so loaded" is missleading since this library is staticaly linked to san_disc. Has anybody success with san_disc -c PORT_LIST, does it work as expected in your environment, any ideas how I could find out what's going on here ? Thank you ! BTW, we are using TSM with Sun/StorageTek 9840C and T10000A drives on zLinux and TSM SAN DISCOVERY is not available on this platform. Andreas Mayer Telekom Austria ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
