Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure [ID 1083982

 To BottomTo Bottom

06-Dec-2011PROBLEMPUBLISHED3
There are no commentsComments (0)Rate this documentEmail link to this documentOpen document in new windowPrintable Page

In this Document
  Symptoms
  Cause
  Solution
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

After patching or relinking Grid Infrastructure home with proper procedure, ownership and permission of certain files were not restored to pre patch value. Steps to reproduce the problem:

1. Prior to the change:

env|grep GRID_HOME
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l

drwxr-x--- 2 ogrid oinstall   4096 Mar 16 16:04 admin
drwxrwxr-t 4 root  oinstall   4096 Mar 16 16:04 agent
-rwxr-xr-x 1 ogrid oinstall 198690 Apr 13 21:28 alerteyrac2f.log
drwxr-x--- 2 ogrid oinstall   4096 Mar 16 16:06 client
drwxr-x--- 2 root  oinstall   4096 Apr 12 13:20 crsd
drwxr-x--- 2 ogrid oinstall   4096 Apr 11 05:33 cssd
drwxr-x--- 2 root  oinstall   4096 Apr 13 09:30 ctssd
drwxr-x--- 2 ogrid oinstall   4096 Apr 13 14:28 diskmon
drwxr-x--- 2 ogrid oinstall   4096 Mar 16 16:06 evmd
drwxr-x--- 2 ogrid oinstall   4096 Mar 16 16:04 gipcd
drwxr-x--- 2 root  oinstall   4096 Mar 16 16:04 gnsd
drwxr-x--- 2 ogrid oinstall   4096 Apr 13 15:18 gpnpd
drwxr-x--- 2 ogrid oinstall   4096 Mar 16 16:04 mdnsd
drwxr-x--- 2 root  oinstall   4096 Apr 11 00:04 ohasd
drwxrwxr-t 5 ogrid oinstall   4096 Mar 16 16:04 racg
drwxr-x--- 2 ogrid oinstall   4096 Apr 13 15:19 srvm

2. Unlock Grid Infrastructure home for patching or relinking, as root:

# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME

3.
As grid user, relinking:

$ $GRID_HOME/bin/relink

    Alternatively for RDS protocol:

        $ cd $GRID_HOME/rdbms/lib
        $ make -f ins_rdbms.mk ipc_rds ioracle

    For UDP protocol:

        $ cd $GRID_HOME/rdbms/lib
        $ make -f ins_rdbms.mk ipc_g ioracle

or patching:

$ $GRID_HOME/OPatch/opatch napply -oh $GRID_HOME -local <patch_file location>

4.
Lock down Grid home, as root:

# $GRID_HOME/crs/install/rootcrs.pl -patch

5.
Verify ownership and permission:

env|grep GRID_HOME
GRID_HOME=/ocw/grid
env|grep HOST
HOSTNAME=eyrac2f
cd $GRID_HOME/log/$HOST
ls -l

drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:23 admin
drwxr-xr-x 4 ogrid oinstall  4096 Mar 16 14:23 agent
-rwxr-xr-x 1 ogrid oinstall 16393 Apr 13 22:25 alerteyrac2f.log
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:57 client
drwxr-xr-x 2 ogrid oinstall  4096 Apr 13 20:17 crsd
drwxr-xr-x 2 ogrid oinstall  4096 Apr 10 22:56 cssd
drwxr-xr-x 2 ogrid oinstall  4096 Apr 12 05:05 ctssd
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 15:38 diskmon
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:28 evmd
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:24 gipcd
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:23 gnsd
drwxr-xr-x 2 ogrid oinstall  4096 Apr 13 22:24 gpnpd
drwxr-xr-x 2 ogrid oinstall  4096 Mar 16 14:24 mdnsd
drwxr-xr-x 2 ogrid oinstall  4096 Apr 13 22:24 ohasd
drwxr-xr-x 5 ogrid oinstall  4096 Apr 13 15:07 racg
drwxr-xr-x 2 ogrid oinstall  4096 Apr 13 22:25 srvm


6. In Job Role Separation environment, database may fail to start or stop:

$GRID_HOME/bin/crsctl stat res -t

..
ora.db1.db
     1        OFFLINE UNKNOWN      node1
     2        OFFLINE UNKNOWN      node2
..

srvctl stop database -d db1 -f
PRCR-1065 : Failed to stop resource ora.db1.db
CRS-2680: Clean of 'ora.db1.db' on 'node1' failed
CRS-5802: Unable to start the agent process
CRS-2680: Clean of 'ora.db1.db' on 'node2' failed
CRS-5802: Unable to start the agent process

crsctl stop res ora.testdbp.db
CRS-2679: Attempting to clean 'ora.db1.db' on 'node1'
CRS-2679: Attempting to clean 'ora.db2.db' on 'node2'
CRS-2680: Clean of 'ora.db1.db' on 'node1' failed
CRS-5802: Unable to start the agent process
CRS-2680: Clean of 'ora.db1.db' on 'node2' failed
CRS-5802: Unable to start the agent process
CRS-4000: Command Stop failed, or completed with errors.


Cause

The is due to unpublished bug 8797450

Solution

Bug 8797450 is fixed in 11.2.0.2 and 11.2.0.1.2, before the fix is ready, please use the following workaround:

cd $GRID_HOME/crs/install
cp -p crspatch.pm crspatch.pm.8797450


Edit crspatch.pm, locate and modify the following from:

   instantiate_scripts ();

   copy_wrapper_scripts ();

   set_file_perms ();

to:

   instantiate_scripts ();

   copy_wrapper_scripts ();

   create_dirs ();

   set_file_perms ();

Once crspatch.pm is modified, unlock and relock $GRID_HOME:

As root:

# $GRID_HOME/crs/install/rootcrs.pl -unlock -crshome $GRID_HOME
# $GRID_HOME/crs/install/rootcrs.pl -patch

References

BUG:9095205 - ROOTCRS -PATCH DOES NOT CHANGE PERMISSIONS IN GRIDHOME
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值