LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-18-2008, 10:34 AM   #1
kardster
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Question boot sequence reverts back to original links


I have a SLES 9 configuration that boots from hard disk and also uses LVM SAN space for Oracle partitions. For this to work, I had to ensure that LVM was started before raw and Oracle in the run level 3 boot sequence. The modifications made to support this were:

cd /etc/init.d/rc3.d/
1. Delete existing S12raw symbolic link
2. Delete existing S13oracle symbolic link
3. Create new S16lvm link: ln -s ../boot.lvm S16lvm
4. Create new S17raw link: ln -s ../raw S17raw
5. Create new S18oracle link: ln -s ../oracle S18oracle

After rebooting, all works as expected.

However, I've been finding that after subsequent maintenance reboots the original S12raw and S13oracle links have been reestablished and the S17raw and S18oracle links have vanished. The S16lvm link remains, but it now runs after Oracle, so the LV partitions Oracle expects to find are not yet instantiated and Oracle fails to load properly.

I have rebooted the system multiple times in a row and the new links remain in place - they are automagically changing later. I've checked all crontab files and there's nothing that reverts to the original links.

Any idea what is reverting these links or how to make them persistent?
 
Old 07-18-2008, 10:39 AM   #2
kardster
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
As one possible solution, can I perform the same symbolic link changes noted in the original post in the file /etc/init.d/boot.local to ensure that the expected boot sequence links are in place prior to starting the run level scripts?

Will /etc/init.d/rc3.d/ be available for manipulation at that point in the boot process?
 
Old 07-18-2008, 11:20 AM   #3
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
You must not do the modifications manually for the runlevels.
Use update-rc.d or sysv-rc-conf
sysv-rc-conf is the easy way to do it.

Last edited by ddaemonunics; 07-18-2008 at 11:21 AM.
 
Old 07-18-2008, 03:53 PM   #4
kardster
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Unfortunately, update-rc.d nor sysv-rc-conf are SLES 9 utilities. sysv-rc-conf will work for /etc/rc?.d, not /etc/init.d/rc?.d. I've run yast's Runlevel Editor, but it only allows turning services on/off and assigning run levels - not specifying init's script execution ordering.

Perhaps all I really needed to do was add dependencies for boot.lvm to both raw and oracle scripts?
 
Old 07-19-2008, 09:43 AM   #5
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
well red hat usses similar runlevel configuration.
try red hat utilities ..
http://www.redhat.com/docs/manuals/l...down-sysv.html
 
Old 07-23-2008, 07:25 PM   #6
kardster
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
I was able to determine that insserv was reordering the service script symlinks and altered the order using the service script header parameters. For some reason, adding a required startup dependecy for boot.lvm to the raw script had no effect, but adding a dependency for dhcpd to the raw script forced raw and oracle symlinks to move to after the LVM symlink I had created.
 
  


Reply

Tags
boot, san, sles9


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
startx command in FC7 reverts me back to the command prompt sriram87 Linux - Newbie 5 01-03-2008 11:18 PM
vsftpd reverts to original MTU mid-stream spacerailroad Red Hat 2 11-13-2007 08:22 PM
Network Issues - IP Reverts back to previous setting! brokenpromises Linux - Networking 6 04-14-2007 10:40 PM
Fedora i686/2.4.27-0.3um - Server hostname reverts to original upon server reboot foxhosting Linux - Newbie 2 02-25-2006 03:39 AM
Mouse action reverts when logging back on tetpt Linux - Newbie 1 01-12-2006 10:44 AM


All times are GMT -5. The time now is 08:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration