I’m trying to ensure that nfs is up and ready before trying to mount an NFS filesystem on a Solaris box. I was having problems mounting an NFS filesystem after bringing a machine up in single user mode (with a reboot – -s) and then starting NFS. So, I created the following task to wait until the nfsmapid process was started, and then gave it another 2 minutes just to play it safe:
parameter "startTime_000"="{now}"
// Wait until the nfsmapid process starts, but don't wait for more than 8 minutes.
pause while { ( (now-time(parameter "startTime_000") < 480*second) AND not exist(process "nfsmapid") ) }
parameter "startTime_001"="{now}"
// Wait an additional 2 minutes just to be sure.
pause while { (now-time(parameter "startTime_001") < 120*second) }
Now, when I place this in a baseline between the reboot – -s task and the Critical Patch Update in which I use the NFS option, it sometimes comes back as Complete, and sometimes as Failed. Is there anything I can do to make sure this task shows as completed when it finishes, and why might this be showing up as failed at times.
Thanks,
BobK