Operating System - HP-UX
1830150 Members
14305 Online
109999 Solutions
New Discussion

Unable to start the Package

 
SOLVED
Go to solution
Ghazanfar_2
Frequent Advisor

Unable to start the Package

Hi experts,
There is an issue regarding running a package.

Please see the below details whcih I have tried
#
#
# cmviewcl
CLUSTER STATUS
BOCODB up

NODE STATUS STATE
ihabdb01 up running

PACKAGE STATUS STATE AUTO_RUN NODE
Pkg_TPMDB up running enabled ihabdb01

NODE STATUS STATE
ihabdb02 up running
ihabap01 up running

UNOWNED_PACKAGES

PACKAGE STATUS STATE AUTO_RUN NODE
Pkg_TPMApp down halted disabled unowned
Pkg_TPMDB_EMPTY down halted disabled unowned

_____________________________________

# cmrunpkg Pkg_TPMApp
Running package Pkg_TPMApp on node ihabap01
The package script for Pkg_TPMApp failed with no restart. Pkg_TPMApp should not be restarted
Unable to run package Pkg_TPMApp on node ihabap01
Check the syslog and pkg log files for more detailed information
cmrunpkg: Unable to start some package or package instances


_____________________________________

SYSLOG

May 24 12:16:36 ihabap01 syslog: Request from root on node ihabap01 to start package

Pkg_TPMApp
May 24 12:16:36 ihabap01 cmcld[4018]: Request from root on node ihabap01 to start package

Pkg_TPMApp
May 24 12:16:36 ihabap01 cmcld[4018]: Request from node ihabap01 to start package Pkg_TPMApp

on node ihabap01.
May 24 12:16:36 ihabap01 cmcld[4018]: Executing '/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl

start' for package Pkg_TPMApp, as service PKG*27906.
May 24 12:16:46 ihabap01 LVM[8740]: vgchange -a e vgeva_d01_TPMApp
May 24 12:16:46 ihabap01 syslog: cmmodnet -a -i 172.31.71.55 172.31.71.0
May 24 12:16:46 ihabap01 syslog: cmhaltserv BOCO_APP
May 24 12:16:46 ihabap01 syslog: cmmodnet -r -i 172.31.71.55 172.31.71.0
May 24 12:16:47 ihabap01 LVM[8818]: vgchange -a n vgeva_d01_TPMApp
May 24 12:16:47 ihabap01 cmcld[4018]: Service PKG*27906 terminated due to an exit(1).
May 24 12:16:47 ihabap01 cmcld[4018]: Package Pkg_TPMApp run script exited with NO_RESTART.
May 24 12:16:47 ihabap01 cmcld[4018]: Examine the file

/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.log for more details.
May 24 12:16:47 ihabap01 cmcld[4018]: Switching disabled on package Pkg_TPMApp.
May 24 12:16:47 ihabap01 cmcld[4018]: Request from node ihabap01 to disable global switching

for package Pkg_TPMApp.
May 24 12:16:47 ihabap01 cmcld[4018]: Unable to start package Pkg_TPMApp. Node ihabap01 is

not able to run it.
May 24 12:16:47 ihabap01 syslog: Request from root on node ihabap01 to start package

Pkg_TPMApp failed

_____________________

PKG_TPMAPP.LOG

May 24 12:16:36 - Node "ihabap01": Activating volume group vgeva_d01_TPMApp with exclusive

option.
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t1d0":
The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
vgchange: The path of the physical volume refers to a device that does not
exist, or is not configured into the kernel.
Volume group "/dev/vgeva_d01_TPMApp" is already active in requested mode.
May 24 12:16:46 - Node "ihabap01": WARNING: File system "/appdata/d01" was already mounted.
May 24 12:16:46 - Node "ihabap01": WARNING: File system "/appdata/d02" was already mounted.
May 24 12:16:46 - Node "ihabap01": Adding IP address 172.31.71.55 to subnet 172.31.71.0
Customer defined run commands
/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl[5]: /home/ppnms/bin/start.sh: not found.
ERROR: Function customer_defined_run_cmds
ERROR: Failed to RUN customer commands
May 24 12:16:46 - Node "ihabap01": Halting service BOCO_APP
cmhaltserv: Service name BOCO_APP is not running.
Customer halt run command
/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl[5]: /home/ppnms/bin/stop.sh: not found.
ERROR: Function customer_defined_halt_cmds
ERROR: Failed to HALT customer commands
May 24 12:16:46 - Node "ihabap01": Remove IP address 172.31.71.55 from subnet 172.31.71.0
May 24 12:16:46 - Node "ihabap01": Unmounting filesystem on /dev/vgeva_d01_TPMApp/lv02
May 24 12:16:46 - Node "ihabap01": Unmounting filesystem on /dev/vgeva_d01_TPMApp/lv01
May 24 12:16:47 - Node "ihabap01": Deactivating volume group vgeva_d01_TPMApp
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The volume group is not activated
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t1d0":
The volume group is not activated
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t1d0":
The volume group is not activated
vgchange: Warning: couldn't query physical volume "/dev/dsk/c4t1d0":
The volume group is not activated
vgchange: Warning: couldn't query all of the physical volumes.
Deactivated volume group in Exclusive Mode.
Volume group "vgeva_d01_TPMApp" has been successfully changed.

_________________________

# cmviewcl -v -p Pkg_TPMApp

UNOWNED_PACKAGES

PACKAGE STATUS STATE AUTO_RUN NODE
Pkg_TPMApp down halted disabled unowned

Policy_Parameters:
POLICY_NAME CONFIGURED_VALUE
Failover configured_node
Failback manual

Script_Parameters:
ITEM STATUS NODE_NAME NAME
Subnet up ihabap01 172.31.71.0
Subnet up ihabdb02 172.31.71.0

Node_Switching_Parameters:
NODE_TYPE STATUS SWITCHING NAME
Primary up enabled ihabap01
Alternate up enabled ihabdb02

____________________

# cmmodpkg -e Pkg_TPMApp
cmmodpkg: Completed successfully on all packages specified


# cmrunpkg Pkg_TPMApp
Running package Pkg_TPMApp on node ihabap01
The package script for Pkg_TPMApp failed with no restart. Pkg_TPMApp should not be restarted
Unable to run package Pkg_TPMApp on node ihabap01
Check the syslog and pkg log files for more detailed information
cmrunpkg: Unable to start some package or package instances
5 REPLIES 5
atul2701
Frequent Advisor
Solution

Re: Unable to start the Package

>Customer defined run commands
/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl[5]: /home/ppnms/bin/start.sh: not found.
ERROR: Function customer_defined_run_cmds
ERROR: Failed to RUN customer commands
May 24 12:16:46 - Node "ihabap01": Halting service BOCO_APP
cmhaltserv: Service name BOCO_APP is not running.
Customer halt run command
/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl[5]: /home/ppnms/bin/stop.sh: not found.
ERROR: Function customer_defined_halt_cmds
ERROR: Failed to HALT customer commands


Looks there is some issue with the scripts which are called by custer defiend run and halt commands.
Please check /home/ppnms/bin/start.sh & /home/ppnms/bin/stop.sh are exists or not.
Atul Gupta
g3jza
Esteemed Contributor

Re: Unable to start the Package

There are lots of errors:

vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t1d0": --> Can you see this disk via #ioscan -fnCdisk ?

May 24 12:16:46 - Node "ihabap01": WARNING: File system "/appdata/d01" was already mounted.
How come your FS was already mounted?

Then another error in your customer_run_cmds:

/etc/cmcluster/Pkg_TPMApp/Pkg_TPMApp.cntl[5]: /home/ppnms/bin/start.sh: not found.
The script stated here is probably not there....







Ghazanfar_2
Frequent Advisor

Re: Unable to start the Package

start.sh and stop.sh path doesn't exist.

The physical volume is not visible in ioscan.

I manually mounted the FS to check the FS. Also tried it after umount but result was same.

Ghazanfar_2
Frequent Advisor

Re: Unable to start the Package

Also check the *.cntl file and found below script



function customer_defined_run_cmds
{
# ADD customer defined run commands.
: # do nothing instruction, because a function must contain some command.
echo "Customer defined run commands"
/home/ppnms/bin/start.sh
test_return 51
}

function customer_defined_halt_cmds
{
# ADD customer defined halt commands.
: # do nothing instruction, because a function must contain some command.
echo "Customer halt run command "
/home/ppnms/bin/stop.sh
test_return 52
}
Ghazanfar_2
Frequent Advisor

Re: Unable to start the Package

Thanks Guys,

Issue resolved. Made some changes in .conf and .cntl. And now its running fine.