Instead of rewriting cofiguration instructions, i'd like to shed some light on potential problems you may hit during CRS installation process on SUN Solaris 10 64-bit operating system.
Let's start from the begining..
Folowing documentation provided by Oracle Corporation, you set up all preinstallation parameters required to set up Clusterware software ( kernel parameters, environment variables and many other mentioned on manual pages) and you think you're done with operating system preparation? Unfortunately it is barely truth..
Oracle installer will search for SSC/SCP software in hardcoded locations, which are simply not avaliable in standard Sun Solaris 10 installation.
You have to create symlinks:
/usr/local/bin/ssh -> /usr/bin/ssh
/usr/local/bin/scp -> /usr/bin/scp
Than, if your system is 64-bit capable, you have to "tell" Oracle Universal Installer to prepare 64-bit libraries by setting up:
crle -64 -u -l $CRS_HOME/lib
Otherwise you may hit the problem with libclntsh.so. Of course it's corrigible, and it's not much complicated:
export ORACLE_HOME="/oracle/crs/"
cd $ORACLE_HOME/bin
Edit ./genclntsh file and replace:
LD="ld -m -Dfiles -i -G -z text -L${ORACLE_HOME}/${LIB}"
with:
LD="ld -m -Bsymbolic -i -G -z text -L${ORACLE_HOME}/${LIB}"
Run "relink all" again.
./genclntsh
/bin/clscfg -install -nn $CRS_NODE_NAME_LIST -pn $CRS_PRIVATE_NAME_LIST \
$HOSTNAMES_ARGS -o $CH -c $CRS_CLUSTER_NAME -l "$CRS_LANGUAGE_ID" \
-q $CRS_VOTING_DISKS $CLSCFG_MISCNT
Eg.
./clscfg -install -nn node1,1,node2,2,node3,3 -pn node1-priv,1,node2-priv,2,node3-priv,3 -hn node1,1,node2,2,node3,3 -o /oracle/crs/ -c mycluster -l "'AMERICAN_AMERICA.WE8ISO8859P1'" -q /dev/rdsk/c4t600508B400105E660001000003960000d0s6 -force
After above operations, you can check your RAC health.
root@node1:/oracle/crs/bin# ./olsnodes
node1
node2
node3
root@node1:/oracle/crs/bin# ./crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
Juppie! ;)
The last step is to configure VIP interfaces:
$CRS_HOME/bin/vipca -silent -nodelist $CRS_NODELIST -nodevips $CRS_NODEVIPS
Pokazywanie postów oznaczonych etykietą Solaris. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą Solaris. Pokaż wszystkie posty
poniedziałek, 18 lutego 2008
sobota, 22 grudnia 2007
Uninstalling Oracle CRS software?
Something went wrong ( errors during installation process? ) and you have to deinstall Oracle CRS related software? How?
Yes.., of course! You can use Universall installer to stand up the trouble.. but unfortunetly, in most circumstances it's simply unhelpful.
So, is there any possibility to completly clean up crs software from your system?
Sure, and all you have to do is ( example based on Solaris 10 OS, but you can easily port it to all kind of Unix/Linux based database systems ) to:
Stop node related applications:
srvctl stop nodeapps -n node_name
Remove files:
/etc/init.d/init.cssd
/etc/init.d/init.crs
/etc/init.d/init.crsd
/etc/init.d/init.evmd
/etc/rc3.d/K96init.crs
/etc/rc3.d/S96init.crs
/etc/inittab.crs
And directories:
/var/opt/oracle/scls_scr
/var/opt/oracle/oprocd
Replace inittab:
/etc/inittab.orig => /etc/inittab
Kill all of CRS daemons:
You can find them in processlist using
ps -ef | egrep 'crs|evm|css'
command.
Remove directories:
/var/tmp/.oracle
/tmp/.oracle
/oracle/crs
And finally, clear data on devices used for OCR ( Oracle Cluster Registry ) and VD ( Voting Disk ).
# dd if=/dev/zero of=/dev/rdsk/XXXXXXXXX count=10240
# dd if=/dev/zero of=/dev/rdsk/XXXXXXXXX count=10240
As you can see on presented example, there is no need overwrite whole devices.
Yes.., of course! You can use Universall installer to stand up the trouble.. but unfortunetly, in most circumstances it's simply unhelpful.
So, is there any possibility to completly clean up crs software from your system?
Sure, and all you have to do is ( example based on Solaris 10 OS, but you can easily port it to all kind of Unix/Linux based database systems ) to:
Stop node related applications:
srvctl stop nodeapps -n node_name
Remove files:
/etc/init.d/init.cssd
/etc/init.d/init.crs
/etc/init.d/init.crsd
/etc/init.d/init.evmd
/etc/rc3.d/K96init.crs
/etc/rc3.d/S96init.crs
/etc/inittab.crs
And directories:
/var/opt/oracle/scls_scr
/var/opt/oracle/oprocd
Replace inittab:
/etc/inittab.orig => /etc/inittab
Kill all of CRS daemons:
You can find them in processlist using
ps -ef | egrep 'crs|evm|css'
command.
Remove directories:
/var/tmp/.oracle
/tmp/.oracle
/oracle/crs
And finally, clear data on devices used for OCR ( Oracle Cluster Registry ) and VD ( Voting Disk ).
# dd if=/dev/zero of=/dev/rdsk/XXXXXXXXX count=10240
# dd if=/dev/zero of=/dev/rdsk/XXXXXXXXX count=10240
As you can see on presented example, there is no need overwrite whole devices.
Subskrybuj:
Komentarze (Atom)