|
Incorrect Ownership and Permission after Relinking or Patching 11gR2 Grid Infrastructure [ID 1083982.1] |
To Bottom |
|
Modified:06-Dec-2011Type:PROBLEMStatus:PUBLISHEDPriority:3 |
|
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
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