RDBMS 12.2.0.1
VM下的GI Standalone,重启主机后,发现ASM磁盘不能mount,但是asm实例是起来了。asm的alert log中提示:
2021-09-09T11:02:58.112574+08:00
GMON dismounting group 1 at 2 for pid 24, osid 10865
2021-09-09T11:02:58.117569+08:00
ERROR: diskgroup DATA was not mounted
ORA-15032: not all alterations performed
ORA-15017: diskgroup "DATA" cannot be mounted
ORA-15040: diskgroup is incomplete
oerr查看报错原因,从报错上看,提示asm_diskstring设置有问题
[grid@asm12c ~]$ oerr ora 15040
15040, 00000, "diskgroup is incomplete"
// *Cause: Some of the disks comprising a diskgroup were not present.
// *Action: Check the hardware to ensure that all disks are functional. Also
// check that the setting of the ASM_DISKSTRING initialization
// parameter has not changed. Alternatively, for normal or high
// redundancy diskgroups, use MOUNT FORCE to offline missing disks
// as part of mounting the diskgroup.
//
[grid@asm12c ~]$
查看asm_diskstring参数,参数为“AFD:*”
SQL> show parameter ASM_DISKSTRING
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskstring string AFD:*
SQL>
查看ASM文件的路径,并修改asm_diskstring参数,mount后正常。
[grid@asm12c trace]$ ll /dev/asm*
lrwxrwxrwx 1 root root 4 Sep 9 11:02 /dev/asm-data01 -> sdb1
[grid@asm12c trace]$
SQL> alter system set ASM_DISKSTRING='/dev/asm*';
System altered.
SQL> ALTER DISKGROUP DATA MOUNT;
Diskgroup altered.
SQL>
END