Clearcase runs at S14. Ive been trying running the mount at S13 and S20. However for some strange reason SUSE doesn't bother even calling it if it is manually created. So I added the LSB info:
### BEGIN INIT INFO
# Provides: mountVOBS
# Required-Start: $ALL
# Default-Start: 3
# Description: Remote Mounting of VOBs
### END INIT INFO
This then creates the rc3.d/S20mountvobs link. HOWEVER that being said, even though it is at S20, it still happens straight away when runlevel 3 is initiated as one of the first things.
I have since changed "# Required-Start: $ALL" to:
# Required-Start: $network $remote_fs
It is now being created as S11 and is also running before the S14 clearcase init. I think basically what caught me was that even though insserv had created the S20 link, it was still running at S01 or so. Why? I have no clue.
In regards to using the _netdev option, there are other things happening right after the mount that I wanted to take place, before clearcase loaded.
From: ilug-bounces at linux.ie [mailto:ilug-bounces at linux.ie] On Behalf Of CP Hennessy
Sent: Friday, October 08, 2010 11:53 AM
To: ilug at linux.ie
Subject: Re: [ILUG] Suse init scripts
So clearcase starts after the network is up ?
Have a look at your /etc/init.d/rc.<runlevel>.d/ directory and make sure that
the network starts before clearcase. Then make sure that your mount happens
between these 2. As I'm sure in most distros you can change the numbering on
these scripts by doing an "mv" to get the exact ordering you want.
On Friday 08 October 2010 11:23:15 Brian O'Mahony wrote:
> I could be wrong, but I remember when I was setting this up on solaris,
> that netdev loads the remote filesystems as pretty close to the end of the
> init phase. These disks need to be mounted at a certain point, as
> clearcase needs them to be live before it starts mounting it VOBs. Hence
> using init.
>> Ill go try netdev and see the outcome.
>> -----Original Message-----
> From: Kevin Lyda [mailto:kevin at ie.suberic.net]
> Sent: Friday, October 08, 2010 10:55 AM
> To: Brian O'Mahony
> Cc: ilug at linux.ie> Subject: Re: [ILUG] Suse init scripts
>> On Fri, Oct 8, 2010 at 10:27, Brian O'Mahony
>> <brian.omahony at curamsoftware.com> wrote:
> > Ok I don't use Suse a whole lot, generally being Debian or RedHat myself.
> > I posted this on linuxforums.org. 60 views, no responses. Thought I
> > might try here:
> > So ive got a Suse server up and running. It is connecting to a clearcase
> > server, so i want to mount the remote filesystem as part of startup, as
> > this is generally rebooted when im not around.
> > I would normally add something to /etc/init.d and put the shortcut to it
> > in the appropriate runlevel (in this case 3). Tried that. Didnt work.
>> I don't follow your reasoning. You have a remote fs you want to mount
> therefore you write an init script - that doesn't follow. If you want
> an fs mounted, put it in /etc/fstab. That's what it's there for.
> Alternatively you can use autofs. Either make more sense than an init
>> For nfs you'll want to use the bg option (and possibly others).
Irish Linux Users' Group mailing list
About this list : http://mail.linux.ie/mailman/listinfo/ilug
Who we are : http://www.linux.ie/
Where we are : http://www.linux.ie/map/
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!