给OCR加新盘,踢出旧盘
--前提,新加盘大小要与以前盘大小一样
[grid@rac02 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 901284
Used space (kbytes) : 84280
Available space (kbytes) : 817004
ID : 822995648
Device/File Name : +CRSDG
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user
[grid@rac02 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE dc5d68e5cc674fa8bffe3820f056d241 (ORCL:VOTDISK01) [CRSDG]
2. ONLINE d515debabf714fc4bfb34f2a024b711e (ORCL:VOTDISK02) [CRSDG]
3. ONLINE 16040ed056e74f44bfccfde2f627d4a5 (ORCL:VOTDISK03) [CRSDG]
Located 3 voting disk(s).
[grid@rac02 ~]$
So adding three more disks , each disk to each failgroup
New disks
/dev/oracleasm/disks/OCRVD_NEW1
/dev/oracleasm/disks/OCRVD_NEW2
/dev/oracleasm/disks/OCRVD_NEW3
Adding new disks
SQL> alter diskgroup CRSDG add
failgroup ocr1 disk 'ORCL:VOTDISK04'
failgroup ocr2 disk 'ORCL:VOTDISK05'
failgroup ocr3 disk 'ORCL:VOTDISK06' rebalance power 6;
alter diskgroup dgocr rebalance power 6;
alter diskgroup dgocr add
failgroup ocr4 disk '/dev/asm-yjzyys-disk0'
failgroup ocr5 disk '/dev/asm-yjzyys-disk14'
rebalance power 6;
1* select name,total_mb,free_mb,path,FAILGROUP_TYPE, FAILGROUP ,state from v$asm_disk
NAME TOTAL_MB FREE_MB PATH FAILGRO FAILGROUP STATE
------------------------------ ---------- ---------- -------------------- ------- ------------------------------ --------
0 0 ORCL:OCRDISK02 REGULAR NORMAL
0 0 ORCL:OCRDISK03 REGULAR NORMAL
0 0 ORCL:OCRDISK01 REGULAR NORMAL
DATADISK01 30716 26664 ORCL:DATADISK01 REGULAR DATADISK01 NORMAL
FRADISK01 28668 27680 ORCL:FRADISK01 REGULAR FRADISK01 NORMAL
VOTDISK01 2044 1824 ORCL:VOTDISK01 REGULAR VOTDISK01 NORMAL
VOTDISK02 2044 1828 ORCL:VOTDISK02 REGULAR VOTDISK02 NORMAL
VOTDISK03 2044 1824 ORCL:VOTDISK03 REGULAR VOTDISK03 NORMAL
VOTDISK04 2044 1892 ORCL:VOTDISK04 REGULAR OCR1 NORMAL
VOTDISK05 2044 1892 ORCL:VOTDISK05 REGULAR OCR2 NORMAL
VOTDISK06 2044 1892 ORCL:VOTDISK06 REGULAR OCR3 NORMAL
Drop the old disks
alter diskgroup CRSDG drop disk VOTDISK01,VOTDISK02,VOTDISK03 rebalance power 6;
[grid@rac01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE b161870a1f384f9ebf7b237f2829d1b5 (ORCL:VOTDISK04) [CRSDG]
2. ONLINE d25db8cdbbb24ff7bf2427cf9e537bda (ORCL:VOTDISK05) [CRSDG]
3. ONLINE 5469d4897e694f89bf44997165caf327 (ORCL:VOTDISK06) [CRSDG]
Located 3 voting disk(s).
[grid@rac01 ~]$
|