[Pkg-sysvinit-devel] Bug#422546: initscripts: /etc/network/if-up.d/mountnfs doesn't mount OCFS2 volumes

Patryk Ściborek patryk at sciborek.com
Tue Dec 25 21:37:46 UTC 2007


Dnia 25-12-2007, wto o godzinie 21:31 +0100, Petter Reinholdtsen pisze:
> [Patryk Sciborek]
> > I've added few lines to my /etc/network/if-up.d/mountnfs and it
> > works for me.
> 
> The patch make sense to me, except for this line:
> 
>   PATH="/sbin:/usr/sbin:/bin:/usr/bin" /etc/init.d/o2cb start
> 
> Why do you need to set the PATH before calling o2cb?

Hello!

I had to do this because, when system starts PATH during execution
of /etc/network/if-up.d/mountnfs is only set to PATH="/sbin:/bin".
But /etc/init.d/o2cb requires seq which resides in /usr/bin/.

Without this you will see:

/etc/init.d/o2cb: line 526: seq: command not found
Starting Oracle cluster ocfs2: Failed
o2cb_ctl: Unable to access cluster service Cannot initialize cluster

Stopping Oracle cluster ocfs2: Failed
o2cb_ctl: Unable to access cluster service Cannot initialize cluster

mount.ocfs2: Unable to access cluster service Cannot initialize cluster
mount.ocfs2: Unable to access cluster service Cannot initialize cluster
done.

> Btw, does it make sense to move the code to handle o2cb from
> initscripts into a o2cb specific package?

Probably. I would be nice also if ocfs2 init scripts don't depend on
files from /usr which may be not mounted yet.

Best Regards,
Patryk Ściborek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2262 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20071225/a6ec1257/attachment.bin 


More information about the Pkg-sysvinit-devel mailing list