CRS re-install via silent install and re-link DB and ASM to CRS Stack

Below are instructions to perform the following:

1. Cleanly remove CRS Configuration from all nodes
2. Drop and Re-create Quorum Disks (Voting/OCR)
3. Re-install CRS using RSP File
4. Re-link the DB and ASM to the newly installed CRS Stack

Version: 11gR2 (11.2.0.2)

1. cd $GI_HOME
node1: ./rootcrs.pl -deconfig -force
node2: ./rootcrs.pl -deconfig -force -lastnode

2. Fix GI_HOME perm

chown -R grid:oinstall $GI_HOME

Re-present QUORUM disks to oracleasm

NODE1: Validate disks and record mpath

oracleasm querydisk -p DISK_LABEL

node1# oracleasm querydisk -p QUORUM
node2# oracleasm querydisk -p QUORUM

NODE1: Drop disks

oracleasm deletedisk DISK_LABEL

node1# oracleasm deletedisk QUORUM1
Clearing disk header: done
Dropping disk: done
node1# oracleasm deletedisk QUORUM2
Clearing disk header: done
Dropping disk: done
node1# oracleasm deletedisk QUORUM3
Clearing disk header: done
Dropping disk: done

NODE1: Re-create disks based on the mpath obtained from step (a)

oracleasm createdisk DISK_LABEL /path/to/mpath

node1# oracleasm createdisk QUORUM1 /dev/mapper/mpath
Writing disk header: done
Instantiating disk: done
node1# oracleasm createdisk QUORUM2 /dev/mapper/mpath
Writing disk header: done
Instantiating disk: done
node1# oracleasm createdisk QUORUM3 /dev/mapper/mpath
Writing disk header: done
Instantiating disk: done

NODE1: List/validate disks

oracleasm listdisks
oracleasm querydisk -p DISK_LABEL

***SHOULD BE THE SAME OUTPUT IN STEP (a)

NODE2: Scan disks and list

oracleasm scandisks
oracleasm listdisks

node2# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks…
Scanning system for ASM disks…
node2# oracleasm listdisks

3. On all nodes:
cd /ContentsXML/
cp inventory.xml inventory.xml.bk
vi inventory.xml and remove CRS/GI Entry.
cd $GRID_SOFTWARE
./runInstaller -silent -responseFile /$RSP_LOC/grid.rsp
cd $GI_HOME/cfgtoollogs/
./configToolAllCommands

4. Mount all Disk Groups except for the OCR/VOTING Disk Group since this will already be mounted due to the CRS Install.

asmcmd
mount DISKGROUP1
mount DISKGROUP2

srvctl config database -d db
srvctl add database -d db -o $ORACLE_HOME
srvctl add instance -d db -i instance1 -n node1
srvctl add instance -d db -i instance2 -n node2
srvctl modify database -d db -m domain
srvctl modify database -d db -n db_name
srvctl modify database -d db -a ‘DISKGROUP1,DISKGROUP2
srvctl modify database -d db -p ‘SPFILE_LOC/spfile.ora
crsctl pin css -n node1 node2
$GI_HOME/bin/olsnodes -t -n

crsctl stat res -p

Advertisements

About Thomas Baran

Work with the Best, Deliver nothing Less.
This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s