Well, after consulting with Redhat, they suggested the same thing. I will relay on the zoning definitions and define both site in /etc/zfcp.conf.
Thank you very much! Offer Baruch -----Original Message----- From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Romanowski, John (OFT) Sent: Wednesday, December 23, 2009 6:00 PM To: [email protected] Subject: Re: zfcp wwpn change on DR site If the production and DR site's WWPN's won't be available to the guest at same time then could you have both sets of zfcp definitions in your /etc/zfcp.conf? Only one set would come online depending on whether the guest was running at production or DR site? Avoids need for your /etc/udev/rules.d/55-local-zfcp-conf.rules and its script. > -----Original Message----- > From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Offer > Baruch > Sent: Wednesday, December 23, 2009 4:06 AM > To: [email protected] > Subject: Re: zfcp wwpn change on DR site > > Hi, > > > > After testing the solution it seems not to work. > > Looking at the log I can see that udev is started before the root file > system is in read/write mode. > > That means that none of my changes are taking affect. > > Where can I see that output of my script if it is running under udev? > > Does anyone has another idea how to change the zfcp WWPNs without editing > system delivered scripts? > > > > Thanks! > > Offer Baruch > > > > From: Offer Baruch [mailto:[email protected]] > Sent: Tuesday, December 08, 2009 3:51 PM > To: Linux on 390 Port > Subject: Re: zfcp wwpn change on DR site > > > > That is exaclty what i was looking for! > Can't thank you enough... > > Offer Baruch > > On Tue, Dec 8, 2009 at 2:12 PM, Christof Schmitt > <[email protected]> wrote: > > On Mon, Dec 07, 2009 at 03:01:43PM +0200, Offer Baruch wrote: > > > I am using redhat v5.2. > > my zfcp definitions are at /etc/zfcp.conf (just another text config file > > with the WWPNs in it). > > but i think that this file is read very early in the boot process. when? > i > > don't know. > > I would like to change the file before it is read by zfcp. > > Looking at a Redhat system here, i find that the script > /sbin/zfcpconf.sh reads the configuration file /etc/zfcp.conf. This > script is run from udev when the zfcp module is loaded in the kernel: > > # grep -r zfcpconf.sh /etc/ > /etc/udev/rules.d/56-zfcp.rules:KERNEL=="zfcp_cfdc", > RUN+="/sbin/zfcpconf.sh" > > If you wanted to change the configuration file before that step, you > could add another file in /etc/udev/rules.d/ to run your script first, > e.g. create a file /etc/udev/rules.d/55-local-zfcp-conf.rules with the > line: > KERNEL=="zfcp_cfdc", RUN+="/usr/local/sbin/update-zfcp-conf.sh" > > -- > Christof Schmitt 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. ---------------------------------------------------------------------- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.722 / Virus Database: 270.14.117/2582 - Release Date: 12/22/09 20:22:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 9.0.722 / Virus Database: 270.14.117/2582 - Release Date: 12/23/09 21:02:00 ---------------------------------------------------------------------- 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
