I can start the LSNRCTL Manually,but can't it with ocf:heartbeat:oralsnr .

[oracle@node16 ~]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.5.0 - Production on 31-OCT-2012 12:25:30

Copyright (c) 1991, 2010, Oracle.  All rights reserved.

Starting /oracle/db/10.2/exec/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.5.0 - Production
System parameter file is /oracle/db/10.2/exec/network/admin/listener.ora
Log messages written to /oracle/db/10.2/exec/network/log/listener.log
Listening on: 
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.20.17)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=vip_oracle)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 10.2.0.5.0 - Production
Start Date                31-OCT-2012 12:25:30
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /oracle/db/10.2/exec/network/admin/listener.ora
Listener Log File         /oracle/db/10.2/exec/network/log/listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.20.17)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "oral" has 1 instance(s).
  Instance "oral", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

Oct 31 12:01:36 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:probe:stderr) 2012/10/31_12:01:36 INFO: LISTENER status failed:
Oct 31 12:01:36 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:probe:stderr) 2012/10/31_12:01:36 INFO: Listener LISTENER not 
running
Oct 31 12:01:36 node16 crmd: [7454]: info: process_lrm_event: LRM operation 
oralsnr_oral_monitor_0 (call=14, rc=7, cib-update=37, confirmed=true) not 
running
Oct 31 12:01:36 node16 crmd: [7454]: info: match_graph_event: Action 
oralsnr_oral_monitor_0 (16) confirmed on node16 (rc=0)
Oct 31 12:01:36 node16 pengine: [7453]: notice: native_print: oralsnr_oral      
(ocf::heartbeat:oralsnr):       Stopped
Oct 31 12:01:36 node16 pengine: [7453]: notice: RecurringOp:  Start recurring 
monitor (10s) for oralsnr_oral on node16
Oct 31 12:01:36 node16 pengine: [7453]: notice: LogActions: Start   
oralsnr_oral        (node16)
Oct 31 12:01:37 node16 crmd: [7454]: info: te_rsc_command: Initiating action 
82: start oralsnr_oral_start_0 on node16 (local)
Oct 31 12:01:37 node16 crmd: [7454]: info: do_lrm_rsc_op: Performing 
key=82:1:0:2e0ca45b-1b26-4a51-baf2-3d791097639f op=oralsnr_oral_start_0 )
Oct 31 12:01:37 node16 lrmd: [7451]: info: rsc:oralsnr_oral:15: start
Oct 31 12:01:40 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) 2012/10/31_12:01:40 INFO: 
/oracle/db/10.2/exec/bin/tnsping oral failed:
Oct 31 12:01:40 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) TNS-12560: TNS:protocol adapter error
Oct 31 12:01:46 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) 2012/10/31_12:01:46 INFO: 
/oracle/db/10.2/exec/bin/tnsping oral failed:
Oct 31 12:01:46 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) 2012/10/31_12:01:46 ERROR: Listener LISTENER 
appears to have started, but is not running properly:
Oct 31 12:01:46 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) 2012/10/31_12:01:46 ERROR: Probable Oracle 
configuration error
Oct 31 12:01:49 node16 lrmd: [7451]: info: RA output: 
(oralsnr_oral:start:stderr) 2012/10/31_12:01:49 ERROR: Oracle 
/oracle/db/10.2/exec/bin/tnsping output:
Oct 31 12:01:49 node16 crmd: [7454]: info: process_lrm_event: LRM operation 
oralsnr_oral_start_0 (call=15, rc=1, cib-update=48, confirmed=true) unknown 
error
Oct 31 12:01:49 node16 crmd: [7454]: WARN: status_from_rc: Action 82 
(oralsnr_oral_start_0) on node16 failed (target: 0 vs. rc: 1): Error
Oct 31 12:01:49 node16 crmd: [7454]: WARN: update_failcount: Updating failcount 
for oralsnr_oral on node16 after failed start: rc=1 (update=INFINITY, 
time=1351656109)
Oct 31 12:01:49 node16 crmd: [7454]: info: abort_transition_graph: 
match_graph_event:299 - Triggered transition abort (complete=0, tag=lrm_rsc_op, 
id=oralsnr_oral_start_0, magic=0:1;82:1:0:2e0ca45b-1b26-4a51-baf2-3d791097639f, 
cib=0.213.28) : Event failed
Oct 31 12:01:49 node16 crmd: [7454]: info: match_graph_event: Action 
oralsnr_oral_start_0 (82) confirmed on node16 (rc=4)
Oct 31 12:01:49 node16 attrd: [7452]: info: find_hash_entry: Creating hash 
entry for fail-count-oralsnr_oral
Oct 31 12:01:49 node16 attrd: [7452]: info: attrd_trigger_update: Sending flush 
op to all hosts for: fail-count-oralsnr_oral (INFINITY)
Oct 31 12:01:49 node16 attrd: [7452]: info: attrd_perform_update: Sent update 
16: fail-count-oralsnr_oral=INFINITY
Oct 31 12:01:49 node16 attrd: [7452]: info: find_hash_entry: Creating hash 
entry for last-failure-oralsnr

[root@node16 ~]# crm configure show oralsnr_oral
primitive oralsnr_oral ocf:heartbeat:oralsnr \
        params sid="oral" home="/oracle/db/10.2/exec" user="oracle" 
listener="LISTENER" \
        op monitor interval="10" timeout="30" depth="0" \
        meta target-role="Started"

[root@node16 ~]# cat /oracle/db/10.2/exec/network/admin/tnsnames.ora
# tnsnames.ora Network Configuration File: 
/oracle/db/10.2/exec/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

oral =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = vip_oracle)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oral)
    )
  )

[root@node16 ~]# cat /oracle/db/10.2/exec/network/admin/listener.ora
# listener.ora Network Configuration File: 
/oracle/db/10.2/exec/network/admin/listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /oracle/db/10.2/exec)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (SID_NAME = oral)
      (ORACLE_HOME = /oracle/db/10.2/exec)
      (GLOBAL_DBNAME = oral)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = vip_oracle)(PORT = 1521))
      #(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

I try to modify  "/usr/lib/ocf/resource.d/heartbeat/oralsnr"  in 
oralsnr_start() 
use only "$lsnrctl start "
but it say:

Oct 19 15:25:02 node16 lrmd: [11983]: info: RA output: 
(oralsnr_oral:start:stdout) TNS-12546: TNS:permission denied
  TNS-00516: Permission denied
   Linux Error: 13: Permission denied



alonerhu
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to