Operating System - HP-UX
1826378 Members
4325 Online
109692 Solutions
New Discussion

Re: How to speed up boot when networking isn't working?

 
Geoff Wild
Honored Contributor

How to speed up boot when networking isn't working?

This has been bothering me for 12 years now...

Had to reboot a 11.31 server today - and now it looks like something is misconfigured in the networking....

Configure LAN interfaces ...................................... FAIL *

then it arrives at:

Starting sendmail [Done] Starting sm-client [Done] ............

and taks about 20 minuts or so to time out...

then:

Start Runner ..................................................

and that's been waithing now for over 20 minutes...

Why does HP-UX take so long to boot if networking isn't working?

Why can't something be added to any package that if networking isn't available - then it won't attempt to start?

Maybe I answered my own question - just add a check in every /sbin/init.d/ script to see if networking was OK on startup...

Sigh....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
15 REPLIES 15
Geoff Wild
Honored Contributor

Re: How to speed up boot when networking isn't working?

Well - runner took about 40 minutes....
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: How to speed up boot when networking isn't working?

Historically, NFS and sendmail (especially current versions) will hang for a very long time when the primary LAN doesn't work. I've seen this since the days of 10.20. Since there isn't a list of hang-safe tests, I would try adding lanscan, netstat -in and perhaps lanadmin tests to these common networked-based rc scripts. Probably DCE too.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: How to speed up boot when networking isn't working?

Did you want to do this automatically? Or is a manual process ok?
You could try hitting control shift \ to abort the current step.
Geoff Wild
Honored Contributor

Re: How to speed up boot when networking isn't working?

ctrl shift \

Never tried that before...

Currently I't at the last rc script - but that has been hanging for about 20 minutes now...

Usage: /sbin/rc3.d/S900sapinit {start|stop|status|restart} ....


Looks like that script isn't clean...

Unfortunately - "ctrl shift \" doesn't seem to do anything....

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Dennis Handly
Acclaimed Contributor

Re: How to speed up boot when networking isn't working?

>Unfortunately - "ctrl shift \" doesn't seem to do anything.

You may have to do it multiple times?
John Payne_2
Honored Contributor

Re: How to speed up boot when networking isn't working?

(crtl shirt \) will only skip the current step if that step is listening for a signal. If it's stuck waiting on something else, and not listening, your results will vary.

You could try a couple of times, spaced apart, it's possible for the script to be in a piece of code that is ignoring you for the moment, you might come back to it when it's ready to pay attention to you...

Hope it helps
John
Spoon!!!!
Geoff Wild
Honored Contributor

Re: How to speed up boot when networking isn't working?

Had to:

vparreset -p vpar1104 -h

then

vparboot -p vpar1104 -o "-is"

Then in single user, fix the typo in the netconf, and reboot...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.

Re: How to speed up boot when networking isn't working?

I would like to add that Ctrl-| actually works and really got things moving when LAN is misconfigured! Kudos to John for this tip

(Sorry for not giving away points since I'm not the initiator of the tread)

cheers,
Lars C
Yong Mann Wai
New Member

Re: How to speed up boot when networking isn't working?

hi Geoff,

i am currently facing the same problem with that slow boot up. i usually hit Enter several times in the hope to accelerate the boot.

i also have the problem with netconf. didn't restart the server before doing network configuration changes and netconf was screwed up with similar entries of IP addresses in different interfaces.

what's worse: server hung while trying to get into CDE

got to use Ctrl + Shift + | to edit netconf.

i'm waiting for the server to boot up successfully while i'm typing this.
Steven E. Protter
Exalted Contributor

Re: How to speed up boot when networking isn't working?

Shalom,

boot to single user and disable network and network services in /etc/rc.config.d

Thats how I would do it.

I like your check for networking. Can we see the code. PLEASE!!!!

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yong Mann Wai
New Member

Re: How to speed up boot when networking isn't working?

i can now see my CDE, but i get "the desktop messaging system could not be started" error.

looks like lots of trouble.
Jeeshan
Honored Contributor

Re: How to speed up boot when networking isn't working?

first you can disable the network services and also with LAN interface to sppedup the system.

then check if any services left which are system hungry or need to resolve any other dependencies.
a warrior never quits
Yong Mann Wai
New Member

Re: How to speed up boot when networking isn't working?

i've read somewhere about looking at dr_dt.

time is running today so i'll try tomorrow.
Geoff Wild
Honored Contributor

Re: How to speed up boot when networking isn't working?

Solution was single user mode.
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bakari
New Member

Re: How to speed up boot when networking isn't working?

my work is sap basis. i have same perplexity.
i find solution in sap Official Website .

Post Installation/Fix an already installed SAP system:

Edit /home/adm/.login and comment out (with #) the following line:

#eval `tset -s -Q -m ':?hp' `

Pre-Installation/Update HP-UX OS before installing SAP system

Edit the .login template file /etc/skel/.login and comment out the following line:

#eval `tset -s -Q -m ':?hp' `



Installing SAP after this should create a correct version of /home/adm/.login