Adding support for manually configured fence_kdump v2

Vivek Goyal vgoyal at redhat.com
Fri Mar 14 21:18:36 UTC 2014


On Fri, Mar 14, 2014 at 03:29:31AM -0400, Martin Perina wrote:

[..]
> > > @@ -421,28 +421,41 @@ kdump_check_iscsi_targets () {
> > >  # also preserve '[node list]' for 2nd kernel /etc/fence_kdump_nodes
> > 						 ^^^^^^^^
> > Need to change to /etc/sysconfig/fence_kdump_nodes?
> 
> IMO it's standard directory for system configuration. And when fence_kdump
> config file is already there, why should fence_kdump_nodes be on different place?

I was referring to the fact that in the code you changed the directory
to /etc/sysconfig/ but comment was not changed to reflect that.

Actually I am not sure what's the difference between /etc/ and
/etc/sysconfig/ and which configuration file should go where. I will
try to find more about it.

> 
> But if you don't like the idea we can move both files for example to
> /etc/fence_kdump directory (RPM fence-agents-kdump doensn't include any
> info about configuration, it just contains only 2 binaries and man pages).

I think fence_kdump_send might be assuming presence of /etc/fence_kdump
for any configuration. So you probably can't change that without changing
fence_kdump_send too. 

So the question is only about fence_kdump_nodes file and whether it should
be in /etc/ or /etc/sysconfig/.

[..]
> > > -    echo "$nodes" > ${initdir}/$FENCE_KDUMP_NODES
> > > +    mkdir -p ${initdir}$FENCE_KDUMP_NODES
> > > +    rmdir ${initdir}$FENCE_KDUMP_NODES
> > > +    echo "$nodes" > ${initdir}$FENCE_KDUMP_NODES
> > 
> > What's that mkdir/rmdir magic. Also why are you not saving nodes into
> > ${initdir}/$FENCE_KDUMP_NODES file?
> 
> ${initdir}/etc/sysconfig directory doesn't exist yet
> 
> > 
> > Why don't you do.
> > 
> > mkdir -p ${initdir}/etc/sysconfig
> > echo "$nodes" > ${initdir}$FENCE_KDUMP_NODES
> 
> If I do rmdir/mkdir I don't care what's the value of variable. In your
> case I need to know that FENCE_KDUMP_NODES contains /etc/sysconfig directory
> and then filename with nodes

sorry, I did not understand what you are trying to say.

Thanks
Vivek


More information about the kexec mailing list