Operating System - HP-UX
1838600 Members
3101 Online
110128 Solutions
New Discussion

master_control_script.sh[20256] Serviceguard Error

 
Jesus Fdez.
Valued Contributor

master_control_script.sh[20256] Serviceguard Error

Hello,

I obtain this error when i execute cmrunpkg

The volume group "vg02" change sucessfully
Mar 22 09:39:55 root@cluhupa1 master_control_script.sh[20256]: ###### Failed to start package for oraclu ######

I have 2 nodes, and my pkg have installed oracle.

In the syslog.log file I found:

Mar 22 09:39:55 cluhupa1 cmserviced[2398]: Service PKG*64517 terminated due to an exit(1).
Mar 22 09:39:55 cluhupa1 cmcld[2389]: Package oraclu run script exited with NO_RESTART.
Mar 22 09:39:55 cluhupa1 cmcld[2389]: Examine the file /etc/cmcluster/ORA1/oraclu.log for more details.
Mar 22 09:39:55 cluhupa1 cmcld[2389]: Switching disabled on package oraclu.
Mar 22 09:39:55 cluhupa1 cmcld[2389]: Request from node cluhupa2 to disable global switching for package oraclu.
Mar 22 09:39:55 cluhupa1 syslog: Request from root on node cluhupa1 to start package oraclu failed

The scripts to start and stop are in file .ext, copy to external_script template.

The script execute oracle start and oracle stop.

SO: 11.31 Sep09
SG: 11.19

Why I obtain this error ?

Thanks,
Jesús
11 REPLIES 11
Johnson Punniyalingam
Honored Contributor

Re: master_control_script.sh[20256] Serviceguard Error

better to check for error "pkg.cntl.log" file


Why I obtain this error ? check below pkg log file, syslog log info will not be much helpfull.

/etc/cmccluster/Pkgname/pkg.cntl.log
Problems are common to all, but attitude makes the difference
Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

The file.conf file:

Mar 22 09:39:55 root@cluhupa1 master_control_script.sh[20256]: ###### Starting package oraclu ######
Mar 22 09:39:55 root@cluhupa1 volume_group.sh[20300]: Activating volume group vg01 with exclusive option.
vgchange: El modo de activacià ³n solicitado para el grupo de volà ºmenes
"/dev/vg01" presenta un conflicto con el modo configurado.
Mar 22 09:39:55 root@cluhupa1 volume_group.sh[20300]: ERROR: Function sg_activate_volume_group
Mar 22 09:39:55 root@cluhupa1 volume_group.sh[20300]: ERROR: Failed to activate vg01
Mar 22 09:39:55 root@cluhupa1 master_control_script.sh[20256]: ##### Failed to start package oraclu, rollback steps #####
Mar 22 09:39:55 root@cluhupa1 volume_group.sh[20340]: Deactivating volume group vg01
El grupo de volà ºmenes "vg01" se ha cambiado correctamente.
Mar 22 09:39:55 root@cluhupa1 volume_group.sh[20340]: Deactivating volume group vg02
El grupo de volà ºmenes "vg02" se ha cambiado correctamente.
Mar 22 09:39:55 root@cluhupa1 master_control_script.sh[20256]: ###### Failed to start package for oraclu ######


I see that i dont access to external_script.

Thanks
Horia Chirculescu
Honored Contributor

Re: master_control_script.sh[20256] Serviceguard Error

Hello,


>"/dev/vg01" presenta un conflicto con el modo configurado.

You should return the vg01 to the cluster usage with the command:

vgchange -a e /dev/vg01

Best regards,

Horia
Best regards from Romania,
Horia.
Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

ok, the state vg is ok.

# vgchange -a e /dev/vg01

but i obtain the same error.
rariasn
Honored Contributor

Re: master_control_script.sh[20256] Serviceguard Error

Hi Jesús,

# vgchange -c y vg01

rgs,
Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

The error is not in the disk, the error i think is in the external script.

I work in a new script. I want to see the process oracle and start - stop database.
rariasn
Honored Contributor

Re: master_control_script.sh[20256] Serviceguard Error

Hi,

View next error:


vgchange: El modo de activacià  à ³n solicitado para el grupo de volà  à ºmenes
"/dev/vg01" presenta un conflicto con el modo configurado

rgs,

Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

I generated this script but not working

export ORACLE_SID=HUPASID
ps -ef | grep ora_pmon_HUPASID

if [$?=0];
then
/u01/app/oracle/OraHome_1/bin/lsnrctl stop
/u01/app/oracle/OraHome_1/bin/sqlplus /nolog << EOF
conn / as sysdba
shutdown immediate;
exit;
EOF
else
export ORACLE_SID=HUPASID
echo "arranque"
/u01/app/oracle/OraHome_1/bin/lsnrctl start listener
/u01/app/oracle/OraHome_1/bin/sqlplus /nolog << EOF
conn / as sysdba
startup;
exit;
EOF
fi


I obtain "Syntax error at line 8 : `<<' is not matched".

I am new in this, pls, how i have put this ¿?

Thanks
rariasn
Honored Contributor

Re: master_control_script.sh[20256] Serviceguard Error

Hi,

Sample script to start oracle database from "control.sh"

function oracle_defined_run_cmds
{
# ADD customer defined run commands.
# do nothing instruction, because a function must contain some command.


echo "INFO_SGUARD_SEDAS: Inicializando Base de Datos PKG_SEDAS"
su - oracle -c '
. /home/oracle/orasedas/conf/profile_sedas

# Copiamos el fichero para la administracion remota
echo $ORACLE_HOME
cp -p /oracle1/sedas/orapwSEDAS $ORACLE_HOME/dbs/
if [ $? -ne 0 ]
then
echo "Error al copiar el fichero orapwSEDAS"
fi

sqlplus /nolog <connect / as sysdba
startup pfile=/oracle1/sedas/initSEDAS.ora
exit;
EOF
'

Rgs,
Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

Thanks, the probles are in the external script, when i modified it working ok.

Jesus Fdez.
Valued Contributor

Re: master_control_script.sh[20256] Serviceguard Error

ok