스토리지 의결 디스크의 ASM 교체

3954 단어 ASM
1.           (          )
[root@rac1 ~]# raw /dev/raw/raw6 /dev/sdg
/dev/raw/raw6:  bound to major 8, minor 96
[root@rac1 ~]# raw /dev/raw/raw7 /dev/sdh
/dev/raw/raw7:  bound to major 8, minor 112
[root@rac1 ~]# raw /dev/raw/raw8 /dev/sdi
/dev/raw/raw8:  bound to major 8, minor 128
[root@rac1 ~]#
[root@rac1 ~]# chown grid:asmadmin /dev/raw/raw6
[root@rac1 ~]# chown grid:asmadmin /dev/raw/raw7
[root@rac1 ~]# chown grid:asmadmin /dev/raw/raw8
[root@rac1 ~]# 
[root@rac1 ~]# chmod 660 /dev/raw/raw6
[root@rac1 ~]# chmod 660 /dev/raw/raw7
[root@rac1 ~]# chmod 660 /dev/raw/raw8
2.       ,         
[grid@rac1 ~]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Thu Nov 26 13:16:44 2015
Copyright (c) 1982, 2013, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL>    create diskgroup ocr_data normal redundancy
  2       failgroup fg1 disk '/dev/raw/raw6'
  3       failgroup fg2 disk '/dev/raw/raw7'
  4       quorum failgroup fg3 disk '/dev/raw/raw8'
  5       attribute 'compatible.asm'='11.2.0.0.0';
Diskgroup created.

SQL> col name for a10
SQL> select v1.name, v2.failgroup, v2.failgroup_type, v2.total_mb, v2.free_mb from                                  
  2    v$asm_diskgroup v1, v$asm_disk v2
  3      where v1.group_number = v2.group_number
  4        and v1.name = upper('ocr_data');

NAME       FAILGROUP                      FAILGRO   TOTAL_MB    FREE_MB
---------- ------------------------------ ------- ---------- ----------
OCR_DATA   FG3                            QUORUM        5120       5118
OCR_DATA   FG2                            REGULAR       5120       5067
OCR_DATA   FG1                            REGULAR       5120       5067
3.                 :
[root@rac1 bin]# ./crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   924682b9e7fb4fa5bf93e8a2a12a916f (/dev/raw/raw1) [OCR]
2. ONLINE   39d0f0108a734f32bf1aee2abf464db3 (/dev/raw/raw2) [OCR]
3. ONLINE   3e457cf73bba4f06bf92ca64e672f796 (/dev/raw/raw3) [OCR]
Located 3 voting disk(s).
[root@rac1 bin]# ./crsctl replace votedisk +OCR_DATA
Successful addition of voting disk 74692688b1184fcebf04f871a1fa0f31.
Successful addition of voting disk 1bcea48766164f79bf20752c8d54781d.
Successful addition of voting disk 4ed3c378eea04f1cbfd1d0021ebced2c.
Successful deletion of voting disk 924682b9e7fb4fa5bf93e8a2a12a916f.
Successful deletion of voting disk 39d0f0108a734f32bf1aee2abf464db3.
Successful deletion of voting disk 3e457cf73bba4f06bf92ca64e672f796.
Successfully replaced voting disk group with +OCR_DATA.
CRS-4266: Voting file(s) successfully replaced
4.     
SQL> col name for a10
SQL> select v1.name, v2.failgroup, v2.failgroup_type, v2.total_mb, v2.free_mb from
  2    v$asm_diskgroup v1, v$asm_disk v2
  3      where v1.group_number = v2.group_number
  4        and v1.name = upper('ocr_data');

NAME       FAILGROUP                      FAILGRO   TOTAL_MB    FREE_MB
---------- ------------------------------ ------- ---------- ----------
OCR_DATA   FG2                            REGULAR       5120       5035
OCR_DATA   FG1                            REGULAR       5120       5035
OCR_DATA   FG3                            QUORUM        5120       5086
[root@rac1 bin]# ./crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   74692688b1184fcebf04f871a1fa0f31 (/dev/raw/raw8) [OCR_DATA]
2. ONLINE   1bcea48766164f79bf20752c8d54781d (/dev/raw/raw6) [OCR_DATA]
3. ONLINE   4ed3c378eea04f1cbfd1d0021ebced2c (/dev/raw/raw7) [OCR_DATA]
Located 3 voting disk(s).

좋은 웹페이지 즐겨찾기