<<Back to Exadata Main Page
How to Drop Quorum Disks in Exadata
There are certain circumstances, you might need drop the quorum disk. Some of them are listed below.
• When recreating a guest domU
• To correct certain configuration
• If you have lost the disk
Todays post is on this topic only which describes how you can drop the quorum disk cleanly including the target, device and configuration.
So lets start without any further delay.
Step1> identify the quorum disk to be dropped
[oracle@DB01]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 7802c66d58744feebffdf3b9340dce55 (..../DATAC3_CD_02_hw_cell01) [DATAC3]
2. ONLINE 1797ab2fdeca4fc7bf9488b44760a217 (..../DATAC3_CD_02_hw_cell02) [DATAC3]
3. ONLINE 34796cba31534f7fbf0f024d248ada04 (..../DATAC3_CD_02_hw_cell03) [DATAC3]
4. ONLINE ff198b7b1ff74fbcbf8a7baedd669b22 (/dev/exadata_quorum/QD_DATAC3_DB02) [DATAC3]
5. ONLINE 3990c6fc37f44f2bbff3e31c23785803 (/dev/exadata_quorum/QD_DATAC3_DB01) [DATAC3]
Located 5 voting disk(s).
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 7802c66d58744feebffdf3b9340dce55 (..../DATAC3_CD_02_hw_cell01) [DATAC3]
2. ONLINE 1797ab2fdeca4fc7bf9488b44760a217 (..../DATAC3_CD_02_hw_cell02) [DATAC3]
3. ONLINE 34796cba31534f7fbf0f024d248ada04 (..../DATAC3_CD_02_hw_cell03) [DATAC3]
4. ONLINE ff198b7b1ff74fbcbf8a7baedd669b22 (/dev/exadata_quorum/QD_DATAC3_DB02) [DATAC3]
5. ONLINE 3990c6fc37f44f2bbff3e31c23785803 (/dev/exadata_quorum/QD_DATAC3_DB01) [DATAC3]
Located 5 voting disk(s).
In my case I have 2 quorum disk and I wanted to drop both of them. The operation can be performed online because I have 5 voting disks (3 Votedisk + 2 Quorumdisk) in my diskgroup with HIGH redundancy and therefore I can wear the loss of 2 disks at any point of time without impacting the availability of the cluster.
SQL> select a.GROUP_NUMBER, b.name group_name,a.name,a.failgroup_type from v$asm_disk a, v$asm_diskgroup b where a.group_number = b.group_number and a.group_number = 1;
GROUP_NUMBER GROUP_NAME DISK_NUMBER NAME FAILGROUP_TYPE
------------ ---------- ----------- ------------------------------ ---------------------
1 DATAC3 19 QD_DATAC3_DB02 QUORUM
1 DATAC3 18 QD_DATAC3_DB01 QUORUM
------------ ---------- ----------- ------------------------------ ---------------------
1 DATAC3 19 QD_DATAC3_DB02 QUORUM
1 DATAC3 18 QD_DATAC3_DB01 QUORUM
Step2>Force drop the quorum disk
ALTER DISKGROUP dg_name DROP QUORUM DISK disk_name FORCE;
SQL> ALTER DISKGROUP DATAC3 DROP QUORUM DISK QD_DATAC3_DB01 FORCE;
Diskgroup altered
SQL> ALTER DISKGROUP DATAC3 DROP QUORUM DISK QD_DATAC3_DB02 FORCE;
Diskgroup altered
Step3>Wait for the rebalancing operation to be completed
SQL>select * from v$asm_operation
no rows selected
ImpNote: if you are not using force option to drop the disk from asm diskgroup you will find the status of the disk dopping. In this case you have to wait until the disk is dropped or use the force option
SQL> select MOUNT_STATUS, HEADER_STATUS, MODE_STATUS, STATE, REDUNDANCY, NAME, FAILGROUP from v$asm_disk where STATE='DROPPING';
MOUNT_STATUS HEADER MODE_STATU STATE REDUNDANCY NAME FAILGROUP
-------------- ------ ---------- ---------- ------------ ---------------- ---------------
CACHED MEMBER ONLINE DROPPING UNKNOWN QD_DATAC3_DB01 DB01
Step4> list down the target , device and configuration and delete them
[root@DB01~]#/opt/oracle.SupportTools/quorumdiskmgr --list --configOwner: oracle
Group: dba
ifaces: exadata_ib0 exadata_ib1
[root@DB01~]#/opt/oracle.SupportTools/quorumdiskmgr --list --deviceDevice path: /dev/exadata_quorum/QD_DATAC3_DB02
Host name: DB02
ASM disk group name: DATAC3
Size: 128 MB
Device path: /dev/exadata_quorum/QD_DATAC3_DB01
Host name: DB01
ASM disk group name: DATAC3
Size: 128 MB
[root@DB01~]# /opt/oracle.SupportTools/quorumdiskmgr --list --targetName: iqn.2015-05.com.oracle:QD_DATAC3_DB01
Host name: DB01
ASM disk group name: DATAC3
Size: 128 MB
Visible to: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
Discovered by: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
ImpNote: if you are not using force option to drop the disk from asm diskgroup you will find the status of the disk dopping. In this case you have to wait until the disk is dropped or use the force option
SQL> select MOUNT_STATUS, HEADER_STATUS, MODE_STATUS, STATE, REDUNDANCY, NAME, FAILGROUP from v$asm_disk where STATE='DROPPING';
MOUNT_STATUS HEADER MODE_STATU STATE REDUNDANCY NAME FAILGROUP
-------------- ------ ---------- ---------- ------------ ---------------- ---------------
CACHED MEMBER ONLINE DROPPING UNKNOWN QD_DATAC3_DB01 DB01
Step4> list down the target , device and configuration and delete them
[root@DB01~]#/opt/oracle.SupportTools/quorumdiskmgr --list --configOwner: oracle
Group: dba
ifaces: exadata_ib0 exadata_ib1
[root@DB01~]#/opt/oracle.SupportTools/quorumdiskmgr --list --deviceDevice path: /dev/exadata_quorum/QD_DATAC3_DB02
Host name: DB02
ASM disk group name: DATAC3
Size: 128 MB
Device path: /dev/exadata_quorum/QD_DATAC3_DB01
Host name: DB01
ASM disk group name: DATAC3
Size: 128 MB
[root@DB01~]# /opt/oracle.SupportTools/quorumdiskmgr --list --targetName: iqn.2015-05.com.oracle:QD_DATAC3_DB01
Host name: DB01
ASM disk group name: DATAC3
Size: 128 MB
Visible to: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
Discovered by: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
[root@Db02~]# /opt/oracle.SupportTools/quorumdiskmgr --list --target
Name: iqn.2015-05.com.oracle:QD_DATAC3_DB02
Host name: DB02
ASM disk group name: DATAC3
Size: 128 MB
Visible to: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
Discovered by: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
As root user from all the nodes
Step5> delete the device
[root@DB01~]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB01
[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB01.
[root@DB02~]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB01
[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB01
[root@DB02]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB02[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB02.
[root@DB01]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB02[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB02
Name: iqn.2015-05.com.oracle:QD_DATAC3_DB02
Host name: DB02
ASM disk group name: DATAC3
Size: 128 MB
Visible to: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
Discovered by: 192.168.10.45,192.168.10.46,192.168.10.47,192.168.10.48
As root user from all the nodes
Step5> delete the device
[root@DB01~]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB01
[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB01.
[root@DB02~]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB01
[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB01
[root@DB02]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB02[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB02.
[root@DB01]# /opt/oracle.SupportTools/quorumdiskmgr --delete --device --host-name DB02[Success] Successfully deleted device /dev/exadata_quorum/QD_DATAC3_DB02
Step6> delete target
[root@DB01~]# /opt/oracle.SupportTools/quorumdiskmgr --delete --target
[Success] Successfully deleted target iqn.2015-05.com.oracle:QD_DATAC3_DB01.
[Success] Successfully deleted target iqn.2015-05.com.oracle:QD_DATAC3_DB01.
[root@DB02]# /opt/oracle.SupportTools/quorumdiskmgr --delete --target
[Success] Successfully deleted target iqn.2015-05.com.oracle:QD_DATAC3_DB02.
[Success] Successfully deleted target iqn.2015-05.com.oracle:QD_DATAC3_DB02.
Step7> delete Configuration
[root@DB01]# /opt/oracle.SupportTools/quorumdiskmgr --delete --config
'import site' failed; use -v for traceback
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Success] Successfully deleted quorum disk configurations
[root@DB02]# /opt/oracle.SupportTools/quorumdiskmgr --delete --config
'import site' failed; use -v for traceback
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Success] Successfully deleted quorum disk configurations
Note: You can ignore the above warning.
Step8> verify the existence of device, target and configuration file on all nodes
[root@DB02]# ls -lrt /dev/exadata_quorum/QD_DATAC3_DB02
ls: cannot access /dev/exadata_quorum/QD_DATAC3_DB02: No such file or directory
[root@DB02]# ls -lrt /etc/udev/rules.d/99-exadata-asmdevices.rules
ls: cannot access /etc/udev/rules.d/99-exadata-asmdevices.rules: No such file or directory
Step8> verify the voting disk status
[oracle@DB01$ crsctl query css votedisk;
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 674bb2f267934fd9bfd84eaef62774e5 (....../DATAC3_CD_00_hw_cell01) [DATAC3]
2. ONLINE ed2002bfe8644fb9bf3b857c66748262 (....../DATAC3_CD_00_hw_cell02) [DATAC3]
3. ONLINE 7802c66d58744feebffdf3b9340dce55 (....../DATAC3_CD_02_hw_cell01) [DATAC3]
4. ONLINE 1797ab2fdeca4fc7bf9488b44760a217 (....../DATAC3_CD_02_hw_cell02) [DATAC3]
5. ONLINE 34796cba31534f7fbf0f024d248ada04 (....../DATAC3_CD_02_hw_cell03) [DATAC3]
Located 5 voting disk(s).
NOTE: As you can see I still have a 5 Voting disks. Exadata automatically added 2 temporary disks to the diskgroup to keep 5 Voting disks in case of HIGH redundancy. Isn't it cool. At this moment I don't have much knowledge about this. It is just happened in my case. Please feel free to provide addition detail or explanation
[root@DB01]# /opt/oracle.SupportTools/quorumdiskmgr --delete --config
'import site' failed; use -v for traceback
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Success] Successfully deleted quorum disk configurations
[root@DB02]# /opt/oracle.SupportTools/quorumdiskmgr --delete --config
'import site' failed; use -v for traceback
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[Success] Successfully deleted quorum disk configurations
Note: You can ignore the above warning.
Step8> verify the existence of device, target and configuration file on all nodes
[root@DB02]# ls -lrt /dev/exadata_quorum/QD_DATAC3_DB02
ls: cannot access /dev/exadata_quorum/QD_DATAC3_DB02: No such file or directory
[root@DB02]# ls -lrt /etc/udev/rules.d/99-exadata-asmdevices.rules
ls: cannot access /etc/udev/rules.d/99-exadata-asmdevices.rules: No such file or directory
Step8> verify the voting disk status
[oracle@DB01$ crsctl query css votedisk;
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 674bb2f267934fd9bfd84eaef62774e5 (....../DATAC3_CD_00_hw_cell01) [DATAC3]
2. ONLINE ed2002bfe8644fb9bf3b857c66748262 (....../DATAC3_CD_00_hw_cell02) [DATAC3]
3. ONLINE 7802c66d58744feebffdf3b9340dce55 (....../DATAC3_CD_02_hw_cell01) [DATAC3]
4. ONLINE 1797ab2fdeca4fc7bf9488b44760a217 (....../DATAC3_CD_02_hw_cell02) [DATAC3]
5. ONLINE 34796cba31534f7fbf0f024d248ada04 (....../DATAC3_CD_02_hw_cell03) [DATAC3]
Located 5 voting disk(s).
NOTE: As you can see I still have a 5 Voting disks. Exadata automatically added 2 temporary disks to the diskgroup to keep 5 Voting disks in case of HIGH redundancy. Isn't it cool. At this moment I don't have much knowledge about this. It is just happened in my case. Please feel free to provide addition detail or explanation
Comments
Post a Comment