2/7發生了一件弔詭事情
客戶在重啟Oracle Rac 後 ,發現開啟不了兩邊節點,
由於Oracle 必須透過很多機制才能啟用grid,例如,ohasd.bin是否有啟動,到哪邊開始掛掉的都是察看重點
這邊必須要查看最初的守護進程ohasd.bin
>>ps -ef|grep ohasd --發現這個進程是活著的,所以必須往下查看(通常是察看log ohasd.log)
發現是cssd.bin進程有問題,原來是Voting Disk有問題(日誌是這麼寫的)
2018-04-07 11:53:43.765: [ CSSD][2728875776]clssnmFindVF: Duplicate voting file found in the queue of previously discovered disks queued(/dev/mapper/Quorum1|[0b66cab3-ce2f4f20-bfbaacc6-51992d81]), found(/dev/oracleasm/disks/OCR1|[0b66cab3-ce2f4f20-bfbaacc6-51992d81]), is not corrupted
2018-04-07 11:53:43.765: [ CSSD][2728875776]clssnmvDiskCreate: Found a duplicate voting file /dev/mapper/Quorum1 in the discovery queue which appears to be the same physical device as the newly discovered disk /dev/oracleasm/disks/OCR1. Rejecting both these files
很明顯是因為Voting問題,透過關鍵字去查看發現原因是 官方:(ID1274309.1)
因為Oracle在重啟後去將裸硬碟當成Voting來使用 但是無法使用所報出的錯誤
解決方是:修改裸硬碟權限
[root@rac1 ~]# ls -lrt /dev/mapper/*
rwxrwxrwx 1 root root 7 Apr 7 16:18 /dev/mapper/Quorum1 -> ../dm-2
1. chown root:sys ../dm-2
2. chmod 600 ../dm-2
3. crsctl stop crs -f
4. crsctl start crs
即可恢復......
