How to move ocr and voting disks to a new directory in OCFS?
Moving OCR (Oracle Cluster Registry)
1. Login
as root user and check for a recent backup of the ocr file.
#ocrconfig –showbackup
2. If
the backup does not exists then take a backup
#ocrconfig –export –s online
3. Check
whether the crs and its processes are running
#crsctl check crs
4. Check
the location of the crs files
#ocrcheck
5. To
move the ocr file to a new location - /u01/oradata/racdb
#ocrconfig –replace ocr /u01/oradata/racdb/OCRFile
6. Check
whether the crs is pointed to new location
#ocrcheck
#cat /etc/oracle/ocr.loc
#Device/file /u02/oradata/racdb/OCRFile getting replaced
by device /u01/oradata/racdb
ocrconfig_loc=/u01/oradata/racdb/OCRFile
ocrmirrorconfig_loc=/u02/oradata/racdb/OCRFile_mirror
7. Check
the privilege and permissions of OCR file. It should be owned by root and group
dba/oinstall. If not change as below
#chown root:oinstall /u01/oradata/racdb/OCRFile
Moving voting disks to a new location
1. Login
as root
2. Stop
the clusterware
#crsctl stop crs
3. Check
the voting disks
#crsctl query crs votedisk
4. Take
a backup of the voting disk
#dd if=voting_disk_name
of=backup_file_name
5. Add
the voting disk to a new location
#crsctl add css votedisk
/u01/oradata/racdb/CSSFile –force
6. Delete
the old voting disk
#crsctl delete css votedisk
/u02/oradata/racdb/CSSFile –force
7. Check
the voting disk file permission
The css file should be owned
by oracle with oinstall / dba group depends on your primary group
8. Start
the cluster
#crsctl start crs
9. Check
the voting disk new location
#crsctl query crs votedisk