- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mount hangs during rc3.d script in ignite build
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 02:07 AM
01-18-2008 02:07 AM
Mount hangs during rc3.d script in ignite build
Very strange problem here. I built an HP-UX 11i v3 Ignite server and have built another 11i v3 (Itanium) server from the depot I built on the Ignite Server. All works fine - tested many times.
Problem occurs when I add a post-install script to install some in-house software. The post-install file creates a S99etc script in /sbin/rc3.d so it gets run during the first reboot, then deletes itself. The S99etc script simply mounts the software from an export on the Ignite Server and installs it. That's the theory anyway. In fact the mount hangs and my system never comes up. The wierd thing is, when I get the post-install script to create S99etc as _S99etc (i.e. to bypass it) system obviously builds OK as before, but a subsequent manual invokation of _S99etc works perfectly exactly as I had intended - and installs the software!
SO, question is - what's different between the mount command in a rc3.d script being executed as part of a first reboot, and it being executed manually afterwards?
Could this be a synchronisation error? I tried to build in a 10-min delay before doing my mount, but it still hung.
Any ideas at all?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 03:05 AM
01-18-2008 03:05 AM
Re: Mount hangs during rc3.d script in ignite build
And NFS is only S100nfs.server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 03:25 AM
01-18-2008 03:25 AM
Re: Mount hangs during rc3.d script in ignite build
I'll let you know in a couple of hours :-)
Thanks Dennis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 05:35 AM
01-18-2008 05:35 AM
Re: Mount hangs during rc3.d script in ignite build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 05:51 AM
01-18-2008 05:51 AM
Re: Mount hangs during rc3.d script in ignite build
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 05:56 AM
01-18-2008 05:56 AM
Re: Mount hangs during rc3.d script in ignite build
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 06:53 AM
01-18-2008 06:53 AM
Re: Mount hangs during rc3.d script in ignite build
As for the environment yes that is a possible area for discrepancy but I have full path names for all commands. Thing I noticed is that mount is in /usr/sbin whereas all the other commands in my script are in /usr/bin. However, if the mount command was absent I'd expect an error message, not a hang. No environment variables are expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 09:54 AM
01-18-2008 09:54 AM
Re: Mount hangs during rc3.d script in ignite build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 08:19 AM
01-22-2008 08:19 AM
Re: Mount hangs during rc3.d script in ignite build
In fact, I have fixed it now, and it was a very strange problem indeed.
Since my S999etc script was going to be run only once then deleted, to install some in-house software, I didn't bother adding the case statement with the start and stop cases etc. I just had the commands I wanted to execute.
Unfortunately, what HP-UX 11i v3 seems to do, and I don't know if the same is true of earlier versions, is execute all startup scripts with a parm of "start_msg" to build the list of things it needs to start, and collects all the start_msgs which will eventually go on the console suffixed by [OK] .... BUT it found my S999etc script and executed my code way before I expected it to, and clearly well before NFS was up - hence why my Mount was failing.
When I added the case statement, it worked fine, and when you see it working OK, it becomes very obvious why it wasn't working before.
Anyway, thanks to all who responded. This may well be my first AND last attempt at messing about with rc scripts :-/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 11:58 AM
01-22-2008 11:58 AM
Re: Mount hangs during rc3.d script in ignite build
a) start with /sbin/init.d/template next time
b) its 3 digits
c) the "number" of the start and kill script should = 1000. i.e. S100xxx and K900xxx so things get started and stopped in the correct order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2008 07:36 PM
01-22-2008 07:36 PM
Re: Mount hangs during rc3.d script in ignite build
/sbin/init.d/template
This script has lots of comments describing the design of such a script. I have attached a similar script with a useful function for stopping a process or application and a lot of extra comments. Makes rc script writing a lot easier.
Bill Hassell, sysadmin