- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Package is in starting stage
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
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
11-28-2001 11:57 PM
11-28-2001 11:57 PM
I have started a package after modifying the scripts. I found that the package status is in "starting" for a long time. By pressing Ctrl+C button, the cmrunpkg command is terminated. Now, I can not stop the package or stop the cluster. Could you help me to stop and restart the package/cluster.
The following is the command is included in the scripts. Any problem on this command?
function start_cronjobs
{
if [[ -f /pids_tz/cron/pids.cron ]]
then
su - pids_tz -c "cd /pids_tz/cron; /usr/bin/crontab pids.cron"
su - pids_tz -c "/pids_tz/scripts/pids/pids_start"
echo "Tarzan processes are started Sucessfully"
fi
}
Thanks
Senthil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 12:46 AM
11-29-2001 12:46 AM
Re: Package is in starting stage
I am not sure what your question is but,
I am not sure why you are trying to start the cronjobs.
make sure your scripts which you require to run periodically are there in the cronjob file.
make sure your crond is running.
you can edit your crontab file using
crontab -e
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 12:59 AM
11-29-2001 12:59 AM
Re: Package is in starting stage
One thing I did notice is that you are doing an 'su -'...
By using the 'su -' option, you are also going to be running the contents of /etc/profile and ~pids_tz/.profile (assuming the pids_tz shell is posix or korn) - have you checked the contents of those files to make sure there isn't something which would cause the process to change?
I try to avoid using 'su -' within scripts, as when people change .profiles, they don't tend to think about the consequences of this on scripts. If you need to have a bunch of environment variables set for your app, pop then in a seperate file. These can then be sourced in the .profile, and can also be sourced by other scripts.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 01:33 AM
11-29-2001 01:33 AM
Re: Package is in starting stage
The package control file is logged in as pids_tz but it does not execute the scripts.
This is my systemlog file
Nov 29 17:28:48 ijmsia01 CM-CMD[29371]: cmrunpkg -n ijmsia01 tarzan
Nov 29 17:28:48 ijmsia01 cmcld: Request from node ijmsia01 to start package tarz
an on node ijmsia01.
Nov 29 17:28:48 ijmsia01 cmcld: Executing '/etc/cmcluster/tarzan/tarzan.sh star
t' for package tarzan, as service PKG*52481.
Nov 29 17:28:49 ijmsia01 LVM[29382]: vgchange -a e vg_tz02
Nov 29 17:28:49 ijmsia01 LVM[29385]: vgchange -a e vg_tz01
Nov 29 17:28:50 ijmsia01 CM-tarzan[29421]: cmmodnet -a -i 15.85.27.128 15.85.24.
0
Nov 29 17:28:51 ijmsia01 : su : + tty?? root-infx_tz
Nov 29 17:29:17 ijmsia01 : su : + tty?? root-pids_tz
My scripts
function halt_cronjobs
{
if [[ -f /pids_tz/cron/pids.cron ]]
then
su - pids_tz -c "/usr/bin/crontab -r"
su - pids_tz -c "/pids_tz/scripts/pids/pids_stop"
echo "Tarzan pids processes are KILLED sucessfully"
fi
}
function start_cronjobs
{
if [[ -f /pids_tz/cron/pids.cron ]]
then
su - pids_tz -c "cd /pids_tz/cron; /usr/bin/crontab pids.cron"
su - pids_tz -c "/pids_tz/scripts/pids/pids_start"
echo "Tarzan processes are started Sucessfully"
fi
}
case $1 in
stop)
halt_cronjobs
;;
start)
start_cronjobs
;;
*)
DATE=`date +'%b %e %X'`
print "Usage: ${0} [ start | stop ]"
;;
esac
exit
What are the modification needs to be done?
Senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 01:40 AM
11-29-2001 01:40 AM
Re: Package is in starting stage
/etc/cmcluster/tarzan/tarzan.sh.log
File?
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 02:21 AM
11-29-2001 02:21 AM
Re: Package is in starting stage
Attached is the tarzan.sh.log file
Thanks
Senthil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 02:31 AM
11-29-2001 02:31 AM
Re: Package is in starting stage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2001 02:35 AM
11-29-2001 02:35 AM
SolutionNote near the bottom of your log file the lines:
warning: commands will be executed using /usr/bin/sh
logout
This is the output from the crontab command, followed by exiting from the interactive shell generated by the 'su -' command. So we know that the line in your script
su - pids_tz -c "cd /pids_tz/cron; /usr/bin/crontab pids.cron"
Works OK, however if you now look dow to the bottom of your log file, you'll see that there is no 'logout' line... SO we can deduce that the second 'su -' , i.e. :
su - pids_tz -c "/pids_tz/scripts/pids/pids_start"
Is *not* exiting - also note that there is no
'Tarzan processes are started Sucessfully' line in the log file, so it looks like the problem is somewhere in the script or binary /pids_tz/scripts/pids/pids_start
I am assuming that all this stuff is originally called from the 'customer_defined_run_cmds' function in the cluster control script... This function must return for the cluster to be considered as started.
HTH
Duncan
I am an HPE Employee