Saturday, July 26, 2014

Relocate voting disk to different diskgroup

[oracle@rac1 ~]$ crsctl replace -h
Usage:
  crsctl replace {discoverystring <ds_string>| votedisk [<+diskgroup>|<vdisk> ... <vdisk>]}
where
    ds_string   comma-separated voting file paths without spaces and enclosed in quotes
    diskgroup   diskgroup where the voting files will be located in ASM
    vdisk       location of the voting files outside of ASM separated by space

SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
PL/SQL Release 11.2.0.4.0 - Production
CORE    11.2.0.4.0      Production
TNS for Linux: Version 11.2.0.4.0 - Production
NLSRTL Version 11.2.0.4.0 - Production

[oracle@rac1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   5df885510a334fe3bfb7716a32bc0511 (/dev/sdb1) [OCRVOTE]
Located 1 voting disk(s).

SQL> create diskgroup ocr_vote normal redundancy
  2  failgroup site1 disk '/dev/sde1'
  3  failgroup site2 disk '/dev/sdf1'
  4  quorum failgroup site3 disk '/dev/sdg1'
  5  attribute 'compatible.asm' = '11.2.0.0.0';

Diskgroup created.

[oracle@rac1 ~]$ crsctl replace votedisk +ocr_vote
Successful addition of voting disk a24090f028f84f0bbff82d389fbfc140.
Successful addition of voting disk 24fd01904c504f7cbf4d8478a37d15b9.
Successful addition of voting disk a1ef7dd357064f85bf6a11cbf508ebb6.
Successful deletion of voting disk 5df885510a334fe3bfb7716a32bc0511.
Successfully replaced voting disk group with +ocr_vote.
CRS-4266: Voting file(s) successfully replaced

[oracle@rac1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   a24090f028f84f0bbff82d389fbfc140 (/dev/sdg1) [OCR_VOTE]
2. ONLINE   24fd01904c504f7cbf4d8478a37d15b9 (/dev/sde1) [OCR_VOTE]
3. ONLINE   a1ef7dd357064f85bf6a11cbf508ebb6 (/dev/sdf1) [OCR_VOTE]
Located 3 voting disk(s).

No comments:

Post a Comment