There was an incident where /u01 was lost.
This means having to reinstall and patch software again.
When installing grid and I encountered:
CRS is already configured on this node for crshome=/u01/app/oracle/product/11.2.0/grid
Ah Crap! This is me being melodramatic.
The system was using Oracle Restart, it needs to be removed.
# /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose
In hindsight, it would have been much easier to delete from /etc/oracle.
Guess what? ASM will need to be recreated and there’s a post for that.
++++++++++ # /u01/app/oracle/product/11.2.0/grid/perl/bin/perl -I/u01/app/oracle/product/11.2.0/grid/perl/lib -I/u01/app/oracle/product/11.2.0/grid/crs/install /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation /u01/app/oracle/product/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=-1 with message: Failure in execution (rc=-1, 0, No such file or directory) for command /u01/app/oracle/product/11.2.0/grid/bin/crsctl query crs activeversion CRS is already configured on this node for crshome=/u01/app/oracle/product/11.2.0/grid Cannot configure two CRS instances on the same cluster. Please deconfigure before proceeding with the configuration of new home. # ps -ef|grep pmon root 143547 143405 0 15:22 pts/2 00:00:00 grep pmon ++++++++++ # /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params Failure in execution (rc=-1, 256, No such file or directory) for command /u01/app/oracle/product/11.2.0/grid/bin/crsctl stop resource ora.cssd -f Failure in execution (rc=-1, 256, No such file or directory) for command /u01/app/oracle/product/11.2.0/grid/bin/crsctl delete resource ora.cssd -f Failure in execution (rc=-1, 256, No such file or directory) for command /u01/app/oracle/product/11.2.0/grid/bin/crsctl stop has -f You must kill ohasd processes or reboot the system to properly cleanup the processes started by Oracle clusterware Successfully deconfigured Oracle Restart stack # ++++++++++ # /u01/app/oracle/product/11.2.0/grid/perl/bin/perl -I/u01/app/oracle/product/11.2.0/grid/perl/lib -I/u01/app/oracle/product/11.2.0/grid/crs/install /u01/app/oracle/product/11.2.0/grid/crs/install/roothas.pl Using configuration parameter file: /u01/app/oracle/product/11.2.0/grid/crs/install/crsconfig_params User ignored Prerequisites during installation LOCAL ADD MODE Creating OCR keys for user 'oracle', privgrp 'oinstall'.. Operation successful. LOCAL ONLY MODE Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. CRS-4664: Node arrow successfully pinned. Adding Clusterware entries to inittab arrow 2016/07/26 15:30:21 /u01/app/oracle/product/11.2.0/grid/cdata/arrow/backup_20160726_153021.olr Successfully configured Oracle Grid Infrastructure for a Standalone Server # ++++++++++ $ ll /etc/oracle total 2256 drwxrwx--- 2 oracle oinstall 4096 Jul 26 15:29 lastgasp -rw-r----- 1 oracle oinstall 92 Jul 26 15:29 ocr.loc -rw-r--r-- 1 root root 16 Jul 26 15:29 ocr.loc.orig -rw-r----- 1 root oinstall 125 Jul 26 15:29 olr.loc -rw-r--r-- 1 root root 0 Jul 26 15:29 olr.loc.orig drwxrwx--- 5 root oinstall 4096 Jul 26 15:29 oprocd drwxr-x--- 3 root oinstall 4096 Jul 26 15:29 scls_scr -rws--x--- 1 root oinstall 2280039 Jul 26 15:59 setasmgid +++++++++ ASM disk creation failed because it's already a MEMBER. SQL> alter system set asm_diskstring='ORCL:*' scope=both; System altered. SQL> CREATE DISKGROUP REDO01 EXTERNAL REDUNDANCY DISK 'ORCL:REDO*'; CREATE DISKGROUP REDO01 EXTERNAL REDUNDANCY DISK 'ORCL:REDO*' * ERROR at line 1: ORA-15018: diskgroup cannot be created ORA-15033: disk 'ORCL:REDO01_002' belongs to diskgroup "REDO01" ORA-15033: disk 'ORCL:REDO01_001' belongs to diskgroup "REDO01" SQL> CREATE DISKGROUP DATA01 EXTERNAL REDUNDANCY DISK 'ORCL:DATA*'; CREATE DISKGROUP DATA01 EXTERNAL REDUNDANCY DISK 'ORCL:DATA*' * ERROR at line 1: ORA-15018: diskgroup cannot be created ORA-15033: disk 'ORCL:DATA01_002' belongs to diskgroup "DATA01" ORA-15033: disk 'ORCL:DATA01_001' belongs to diskgroup "DATA01" SQL> select HEADER_STATUS||','||path from v$asm_disk; HEADER_STATUS||','||PATH -------------------------------------------------------------------------------- MEMBER,ORCL:DATA01_001 MEMBER,ORCL:DATA01_002 MEMBER,ORCL:DATA01_003 MEMBER,ORCL:DATA01_004 MEMBER,ORCL:REDO01_005 MEMBER,ORCL:REDO01_001 MEMBER,ORCL:REDO01_002 MEMBER,ORCL:REDO01_003 MEMBER,ORCL:REDO01_004 MEMBER,ORCL:DATA01_005 10 rows selected. SQL>
