报错如下:
[root@hisdg oracleasm]# oracleasm createdisk data01 /dev/sdb1
Writing disk header: done
Instantiating disk: failed
Clearing disk header: done
[root@hisdg oracleasm]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
查看oracleasm状态发现未启动,手工启动一下
[root@hisdg opt]# oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@hisdg opt]# oracleasm start
Starting oracleasm (via systemctl): [ OK ]
[root@hisdg opt]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@hisdg opt]#
再次创建磁盘成功
[root@hisdg opt]#oracleasm createdisk data01 /dev/sdb1
Marking disk "data01" as an ASM disk: [ OK ]