PRCR-1079 : Failed to start resource ora.scan1.vip

tolywang發表於2011-04-17

天邊月  11:19:00
我裝11G RAC的時候,沒有指定DNS,只有在節點1,2的/etc/hosts上指定了一個128 SCAN IP,在節點1上
執行root.sh沒有問題,但是在節點2上執行root.sh出現了這個錯誤

PRCR-1079 : Failed to start resource ora.scan1.vip
C
RS-5005: IP Address: 3.243.221.128 is already in use in the network
CRS-2674: Start of 'ora.scan1.vip' on
'rac2' failed
CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would
satisfy its placement policy
 
start scan ... failed
Preparing packages for installation...
cvuqdisk-1.0.7-1

Configure Oracle Grid Infrastructure for a Cluster ... failed
天邊月  11:19:42

我把節點1的SCANIP 給刪除,在節點2上執行root.sh就沒有問題,但是我想在節點1上從新建立scan ip又出現了問題
 
 
 crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                        
ora.asm
               ONLINE  ONLINE       rac1                     Started            
ora.eons
               ONLINE  ONLINE       rac1                                        
ora.gsd
               OFFLINE OFFLINE      rac1                                        
ora.net1.network
               ONLINE  ONLINE       rac1                                        
ora.ons
               ONLINE  ONLINE       rac1                                        
ora.registry.acfs
               ONLINE  ONLINE       rac1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac1                                        
ora.oc4j
      1        OFFLINE OFFLINE                                                  
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       rac1                                        
[grid@rac1 ~]$ id
uid=501(grid) gid=1000(oinstall) groups=502(dba),503(oper),504(asmadmin),505(asmoper),506(asmdba),1000
(oinstall)
[grid@rac1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node rac1

[grid@rac1 ~]$ srvctl config scan
SCAN name: rsn, Network: 1/3.0.0.0/255.0.0.0/eth0
SCAN VIP name: scan1, IP: /rsn.localdomain/3.243.221.128
[grid@rac1 ~]$ crsctl stop resource ora.LISTENER_SCAN1.lsnr
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'rac1'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'rac1' succeeded
[grid@rac1 ~]$ srvctl remove scan_listener
Remove scan listener? (y/[n]) y
[grid@rac1 ~]$ crsctl stop resource ora.scan1.vip
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'rac1'
CRS-2677: Stop of 'ora.scan1.vip' on 'rac1' succeeded

 
[grid@rac1 ~]$ srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[grid@rac1 ~]$ srvctl config scan
SCAN name: rsn, Network: 1/3.0.0.0/255.0.0.0/eth0
SCAN VIP name: scan1, IP: /rsn.localdomain/3.243.221.128
Password:
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl remove scan
Remove the scan? (y/[n]) y
[root@rac1 ~]# exit
logout
 
 
[grid@rac1 ~]$ srvctl status scan
PRCS-1025 : Could not find Single Client Access Name Virtual Internet Protocol(VIP) resources
TYPE=ora.scan_vip.type
[grid@rac1 ~]$ srvctl config scan
PRCS-1025 : Could not find Single Client Access Name Virtual Internet Protocol(VIP) resources
TYPE=ora.scan_vip.type
[grid@rac1 ~]$ su -
Password:
[root@rac1 ~]# crsctl status resource -t
-bash: crsctl: command not found
[root@rac1 ~]# crsctl status resource -t
-bash: crsctl: command not found
[root@rac1 ~]# su - grid
[grid@rac1 ~]$ crsctl status resource -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                        
ora.asm
               ONLINE  ONLINE       rac1                     Started            
ora.eons
               ONLINE  ONLINE       rac1                                        
ora.gsd
               OFFLINE OFFLINE      rac1                                        
ora.net1.network
               ONLINE  ONLINE       rac1                                        
ora.ons
               ONLINE  ONLINE       rac1                                        
ora.registry.acfs
               ONLINE  ONLINE       rac1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.oc4j
      1        OFFLINE OFFLINE                                                  
ora.rac1.vip
      1        ONLINE  ONLINE       rac1 
 
 
crs_stop -all
CRS-2500: Cannot stop resource 'ora.gsd' as it is not running
CRS-2500: Cannot stop resource 'ora.oc4j' as it is not running
Attempting to stop `ora.ons` on member `rac1`
Attempting to stop `ora.rac1.vip` on member `rac1`
Attempting to stop `ora.eons` on member `rac1`
Attempting to stop `ora.OCR_VOTE.dg` on member `rac1`
Attempting to stop `ora.registry.acfs` on member `rac1`
CRS-2789: Cannot stop resource 'ora.gsd' as it is not running on server 'rac1'
Stop of `ora.rac1.vip` on member `rac1` succeeded.
Stop of `ora.ons` on member `rac1` succeeded.
CRS-2789: Cannot stop resource 'ora.ons' as it is not running on server 'rac1'
Attempting to stop `ora.net1.network` on member `rac1`
Stop of `ora.net1.network` on member `rac1` succeeded.
Stop of `ora.registry.acfs` on member `rac1` succeeded.
Stop of `ora.eons` on member `rac1` succeeded.
Stop of `ora.OCR_VOTE.dg` on member `rac1` succeeded.
Attempting to stop `ora.asm` on member `rac1`
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
ORA-15097: cannot SHUTDOWN ASM instance with connected client
CRS-2675: Stop of 'ora.asm' on 'rac1' failed
 
CRS-0216: Could not stop resource 'ora.asm'.
 
CRS-0216: Could not stop resource 'ora.gsd'.
 
CRS-0216: Could not stop resource 'ora.oc4j'.
 
CRS-0216: Could not stop resource 'ora.ons'.
 
[grid@rac1 ~]$ crs_start -all
CRS-2501: Resource 'ora.gsd' is disabled
CRS-2501: Resource 'ora.oc4j' is disabled
CRS-2501: Resource 'ora.gsd' is disabled
Attempting to start `ora.net1.network` on member `rac1`
Attempting to start `ora.OCR_VOTE.dg` on member `rac1`
Attempting to start `ora.eons` on member `rac1`
Attempting to start `ora.registry.acfs` on member `rac1`
Start of `ora.net1.network` on member `rac1` succeeded.
Attempting to start `ora.rac1.vip` on member `rac1`
Attempting to start `ora.ons` on member `rac1`
Start of `ora.OCR_VOTE.dg` on member `rac1` succeeded.
Start of `ora.ons` on member `rac1` succeeded.
Start of `ora.registry.acfs` on member `rac1` succeeded.
Start of `ora.rac1.vip` on member `rac1` succeeded.
Start of `ora.eons` on member `rac1` succeeded.
CRS-2660: Resource 'ora.gsd' or all of its instances are disabled
 
CRS-2660: Resource 'ora.oc4j' or all of its instances are disabled
 
CRS-2660: Resource 'ora.rac1.gsd' or all of its instances are disabled
 
[grid@rac1 ~]$ su -
Password:
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl add scan -n rsn.localdomain -k 2 -S
3.243.221.134/255.0.0.0/eth0
PRCS-1016 : Failed to resolve Single Client Access Name rsn.localdomain
##我把3.243.221.34   rsn.localdomain rsn 寫到/etc/hosts中就可以了
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl add scan -n rsn.localdomain -k 2 -S
3.243.221.134/255.0.0.0/eth0
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl status scan;
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl config scan;
SCAN name: rsn.localdomain, Network: 2/3.243.221.134/255.0.0.0/eth0
SCAN VIP name: scan1, IP: /rsn.localdomain/3.243.221.134
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl add scan_listener -p 1521
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
[root@rac1 ~]# /u01/app/11.2.0/grid/bin/srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521
[root@rac1 ~]# su - grid
[grid@rac1 ~]$ crsctl status resource -t;
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                        
ora.asm
               ONLINE  ONLINE       rac1                     Started            
ora.eons
               ONLINE  ONLINE       rac1                                        
ora.gsd
               OFFLINE OFFLINE      rac1                                        
ora.net1.network
               ONLINE  ONLINE       rac1    #####琦總,這個地方不知道為什麼出現一個net2,這個導致後面的無法啟
動                                        
ora.net2.network
               OFFLINE OFFLINE      rac1                                        
ora.ons
               ONLINE  ONLINE       rac1                                        
ora.registry.acfs
               ONLINE  ONLINE       rac1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        OFFLINE OFFLINE                                                  
ora.oc4j
      1        OFFLINE OFFLINE                                                  
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                        
ora.scan1.vip
      1        OFFLINE OFFLINE                                                  
[grid@rac1 ~]$ srvctl start scan;
PRCR-1079 : Failed to start resource ora.scan1.vip
CRS-2674: Start of 'ora.net2.network' on 'rac1' failed
CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its
placement policy
 
[grid@rac1 ~]$ crsctl status resource -t;
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac1                                        
ora.asm
               ONLINE  ONLINE       rac1                     Started            
ora.eons
               ONLINE  ONLINE       rac1                                        
ora.gsd
               OFFLINE OFFLINE      rac1                                        
ora.net1.network
               ONLINE  ONLINE       rac1                                        
ora.net2.network
               ONLINE  OFFLINE      rac1          #####琦總,這個地方不知道為什麼出現一個net2,這個導致後面的
無法啟動                                
ora.ons
               ONLINE  ONLINE       rac1                                        
ora.registry.acfs
               ONLINE  ONLINE       rac1                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        OFFLINE OFFLINE                                                  
ora.oc4j
      1        OFFLINE OFFLINE                                                  
ora.rac1.vip
      1        ONLINE  ONLINE       rac1                                        
ora.scan1.vip
      1        ONLINE  OFFLINE                                                  
[grid@rac1 ~]$ srvctl start scan;
PRCR-1079 : Failed to start resource ora.scan1.vip
CRS-2674: Start of 'ora.net2.network' on 'rac1' failed
CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its
placement policy
 crs_stat -t
Name           Type           Target    State     Host       
------------------------------------------------------------
ora....N1.lsnr ora....er.type ONLINE    OFFLINE              
ora....VOTE.dg ora....up.type ONLINE    ONLINE    rac1       
ora.asm        ora.asm.type   ONLINE    ONLINE    rac1       
ora.eons       ora.eons.type  ONLINE    ONLINE    rac1       
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              
ora....network ora....rk.type ONLINE    ONLINE    rac1       
ora....network ora....rk.type ONLINE    OFFLINE              
ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE              
ora.ons        ora.ons.type   ONLINE    ONLINE    rac1       
ora....SM1.asm application    ONLINE    ONLINE    rac1       
ora.rac1.gsd   application    OFFLINE   OFFLINE              
ora.rac1.ons   application    ONLINE    ONLINE    rac1       
ora.rac1.vip   ora....t1.type ONLINE    ONLINE    rac1       
ora....ry.acfs ora....fs.type ONLINE    ONLINE    rac1       
ora.scan1.vip  ora....ip.type ONLINE    OFFLINE        
 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-692688/,如需轉載,請註明出處,否則將追究法律責任。

相關文章