Oracleasm deletedisk failed with error:
/usr/sbin/oracleasm deletedisk DATA01 Disk "DATA01" defines an unmarked device Dropping disk: failed Unable to delete disk "DATA01"
Here I'll show you step by step how to solve this problem :
/usr/sbin/oracleasm deletedisk DATA01 Disk "DATA01" defines an unmarked device Dropping disk: failed Unable to delete disk "DATA01" -bash-3.2$ /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Cleaning disk "DATA01" Scanning system for ASM disks... -bash-3.2$ /usr/sbin/oracleasm deletedisk DATA01 Disk "DATA01" defines an unmarked device Dropping disk: failed Unable to delete disk "DATA01" -bash-3.2$ /etc/init.d/oracleasm scandisks -bash: /etc/init.d/oracleasm: Permission denied -bash-3.2$ -bash-3.2$ -bash-3.2$ -bash-3.2$ id uid=501(grid) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1300(asmdba),1301(asmoper) -bash-3.2$ -bash-3.2$ -bash-3.2$ logout [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# /usr/sbin/oracleasm listdisks DATA01 DATA02 [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# [root@test-db ~]# /usr/sbin/oracleasm deletedisk DATA01 Disk "DATA01" defines an unmarked device Dropping disk: done [root@test-db ~]# /usr/sbin/oracleasm listdisks DATA02 [root@test-db ~]# /usr/sbin/oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... [root@test-db ~]# /usr/sbin/oracleasm listdisks DATA02
Problem was that I tried to delete disk with grid user and it doesn't have permission to do that, therefore delete must use with root user.
No comments:
Post a Comment