/etc/init.d/oracleasm createdisk錯誤

whyun1984發表於2013-11-21
failed之後檢視日誌 /var/log/oracleasm

錯誤1:Device "/dev/sdb" is not a partition
命令:/etc/init.d/oracleasm createdisk OCR_VOTE01 /dev/sdb
需要對/dev/sdb分割槽/dev/sdb1
fdisk /dev/sdb
n-p-1-回車-回車-p-w
fdisk -l

錯誤2:Unable to create ASM disk "OCR_VOTE01": Permission denied
命令:/etc/init.d/oracleasm createdisk OCR_VOTE01 /dev/sdb1
[root@rac02 ~]# getenforce
Enforcing
[root@rac02 ~]# setenforce 0
[root@rac02 ~]# cat /etc/sysconfig/selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
reboot生效

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26972107/viewspace-777208/,如需轉載,請註明出處,否則將追究法律責任。

相關文章