On Fri, 17 Jul 2015 07:25:42 -0400 Jason Space <jason.sp...@fiscal.treasury.gov> wrote:
> BINGO!!! - All seems to be fine now. > > Thanks to Filipe M. for pointing me to yet another book that I had in > the library, but hadn't referenced yet. Dynamically allocating the > lun then running this script from the Virtualization Cookbook keeps > the luns persistent across a reboot: > lszfcp -D | awk '{ print $1 }' | sed -e 's/\// /g' >/etc/zfcp.conf > > There is an erroneous character in my original zfcp.conf file, which > would certainly explain the error on line 51 when trying to add the > lun withe zcfpconf.sh script. I guess it would've been nice had > linux complained upon startup, but I suppose it really didn't know > better. > > Comparing the 2 zfcp.conf files, the original has a "." at the end of > each lun address, which wasn't display until I ran it through a hex > converter in vi. > > Good > 0000000: 302e 302e 3431 3030 2030 7835 3030 3530 0.0.4100 0x50050 > 0000010: 3736 3330 3930 3063 3632 3020 3078 3430 7630900c620 0x40 > 0000020: 3039 3430 3030 3030 3030 3030 3030 0a30 09400000000000.0 > 0000030: 2e30 2e34 3230 3020 3078 3530 3035 3037 .0.4200 0x500507 > > Bad > 0000000: 302e 302e 3431 3030 2030 7835 3030 3530 0.0.4100 0x50050 > 0000010: 3736 3330 3930 3063 3632 3020 3078 3430 7630900c620 0x40 > 0000020: 3039 3430 3030 3030 3030 3030 3030 0d0a 09400000000000.. > <-- 0000030: 302e 302e 3431 3030 2030 7835 3030 3530 0.0.4100 0x50050 it is a difference between the end-of-line characters in the zfcp.conf file - 0x0a (unix style) vs 0x0d 0x0a (DOS/Win style). Wasn't the zfcp.conf file transferred from another system? I'll look why the zfcpconf script doesn't understand both of them. And if you could file a bug in http://bugzilla.redhat.com it would be great. Dan > Thanks for the help.... > > > > From: Offer Baruch <offerbar...@gmail.com> > To: LINUX-390@VM.MARIST.EDU, > Date: 07/17/2015 02:03 AM > Subject: Re: zFCP LUNs Not Persistent Across Reboot (RHEL 6.6) > Sent by: Linux on 390 Port <LINUX-390@VM.MARIST.EDU> > > > > You might have a special character between the variables... maybe copy > pasted from somewhere... > > Try rewriting the problematic lines in zfcp.conf from scratch... copy > the variables from the lszfcp output. > Just from looking at them they seem fine. > > Offer Baruch > On Jul 16, 2015 10:48 PM, "burgess, christopher" < > christopher.burg...@emc.com> wrote: > > > How about trying lsluns -a to show what luns are actually active to > > the guest? > > > > Thanks, > > Chris Burgess > > Phone: 1-800-445-2588 x42149 > > 1-508-249-2149 > > Fax: 1-508-497-8027 > > Email: christopher.burg...@emc.com > > > > -----Original Message----- > > From: Linux on 390 Port [mailto:LINUX-390@VM.MARIST.EDU] On Behalf > > Of Jason Space > > Sent: Thursday, July 16, 2015 6:44 AM > > To: LINUX-390@VM.MARIST.EDU > > Subject: zFCP LUNs Not Persistent Across Reboot (RHEL 6.6) > > > > All, > > > > I'm having trouble getting luns to be persistent across a reboot of > linux > > guest. I am able to define the luns dynamically, just not get them > > to stick. > > > > On boot messages log show: > > scsi0 : zfcp > > qdio: 0.0.4100 ZFCP on SC 3 using AI:1 QEBSM:1 PCI:1 TDD:1 SIGA: W > > AO scsi1 : zfcp > > qdio: 0.0.4200 ZFCP on SC 4 using AI:1 QEBSM:1 PCI:1 TDD:1 SIGA: W > > AO > > > > > > Output of the lszfcp: > > # lzfcp -PHD > > 0.0.4100 host0 > > 0.0.4200 host1 > > 0.0.4100/0x500507630900c620 rport-0:0-0 > > 0.0.4200/0x50050763090bc620 rport-1:0-0 > > Error: No fcp devices found. > > > > Output of the lsluns (snippet) > > # lsluns > > Scanning for LUNs on adapter 0.0.4100 > > at port 0x500507630900c620: > > 0x4009400000000000 > > 0x4009400100000000 > > 0x4009400200000000 > > . > > . > > Scanning for LUNs on adapter 0.0.4200 > > at port 0x50050763090bc620: > > 0x4009400000000000 > > 0x4009400100000000 > > 0x4009400200000000 > > > > Per RHEL manual, I have created the /etc/zfcp.conf (snippet) file > > with > all > > the required information: > > 0.0.4100 0x500507630900c620 0x4009400000000000 > > 0.0.4100 0x500507630900c620 0x4009400100000000 > > 0.0.4100 0x500507630900c620 0x4009400200000000 . > > . > > 0.0.4200 0x50050763090bc620 0x4009400000000000 > > 0.0.4200 0x50050763090bc620 0x4009400100000000 > > 0.0.4200 0x50050763090bc620 0x4009400200000000 > > > > Also found a RHEL support case saying to create a > > /etc/modprobe.d/zfcp.conf for non-root luns, but that didn't work > either. > > alias scsi_hostadapter zfcp > > > > > > Thx, > > Jason > > > > ---------------------------------------------------------------------- > > For LINUX-390 subscribe / signoff / archive access instructions, > > send email to lists...@vm.marist.edu with the message: INFO > > LINUX-390 or > visit > > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > ---------------------------------------------------------------------- > > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > > > > ---------------------------------------------------------------------- > > For LINUX-390 subscribe / signoff / archive access instructions, > > send email to lists...@vm.marist.edu with the message: INFO > > LINUX-390 or visit > > http://www.marist.edu/htbin/wlvindex?LINUX-390 > > ---------------------------------------------------------------------- > > For more information on Linux on System z, visit > > http://wiki.linuxvm.org/ > > > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 > or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to lists...@vm.marist.edu with the message: INFO LINUX-390 > or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/