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:offerbar...@gmail.com]
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
<christof.schm...@de.ibm.com> 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


----------------------------------------------------------------------
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



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.709 / Virus Database: 270.14.101/2555 - Release Date: 12/09/09
21:41: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/22/09
20:22:00


----------------------------------------------------------------------
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

Reply via email to