Exadata下新建DiskGroup

Exadata下新建Asm Diskgroup 的步骤大致如下:

1.使用dcli -g /home/oracle/cell_group -l root cellcli -e list griddisk 命令找出active的griddisk

[root@dm01db01 ~]# dcli -g /home/oracle/cell_group -l root cellcli -e list griddisk
dm01cel01: DATA_DM01_CD_00_dm01cel01     active
dm01cel01: DATA_DM01_CD_01_dm01cel01     active
dm01cel01: DATA_DM01_CD_02_dm01cel01     active
dm01cel01: DATA_DM01_CD_03_dm01cel01     active
dm01cel01: DATA_DM01_CD_04_dm01cel01     active
dm01cel01: DATA_DM01_CD_05_dm01cel01     active
dm01cel01: DATA_DM01_CD_06_dm01cel01     active
dm01cel01: DATA_DM01_CD_07_dm01cel01     active
dm01cel01: DATA_DM01_CD_08_dm01cel01     active
dm01cel01: DATA_DM01_CD_09_dm01cel01     active
dm01cel01: DATA_DM01_CD_10_dm01cel01     active
dm01cel01: DATA_DM01_CD_11_dm01cel01     active
dm01cel01: DBFS_DG_CD_02_dm01cel01       active
dm01cel01: DBFS_DG_CD_03_dm01cel01       active
dm01cel01: DBFS_DG_CD_04_dm01cel01       active
dm01cel01: DBFS_DG_CD_05_dm01cel01       active
dm01cel01: DBFS_DG_CD_06_dm01cel01       active
dm01cel01: DBFS_DG_CD_07_dm01cel01       active
dm01cel01: DBFS_DG_CD_08_dm01cel01       active
dm01cel01: DBFS_DG_CD_09_dm01cel01       active
dm01cel01: DBFS_DG_CD_10_dm01cel01       active
dm01cel01: DBFS_DG_CD_11_dm01cel01       active
dm01cel01: RECO_DM01_CD_00_dm01cel01     active
dm01cel01: RECO_DM01_CD_01_dm01cel01     active
dm01cel01: RECO_DM01_CD_02_dm01cel01     active
dm01cel01: RECO_DM01_CD_03_dm01cel01     active
dm01cel01: RECO_DM01_CD_04_dm01cel01     active
dm01cel01: RECO_DM01_CD_05_dm01cel01     active
dm01cel01: RECO_DM01_CD_06_dm01cel01     active
dm01cel01: RECO_DM01_CD_07_dm01cel01     active
dm01cel01: RECO_DM01_CD_08_dm01cel01     active
dm01cel01: RECO_DM01_CD_09_dm01cel01     active
dm01cel01: RECO_DM01_CD_10_dm01cel01     active
dm01cel01: RECO_DM01_CD_11_dm01cel01     active
dm01cel02: DATA_DM01_CD_00_dm01cel02     active
dm01cel02: DATA_DM01_CD_01_dm01cel02     active
dm01cel02: DATA_DM01_CD_02_dm01cel02     active
dm01cel02: DATA_DM01_CD_03_dm01cel02     active
dm01cel02: DATA_DM01_CD_04_dm01cel02     active
dm01cel02: DATA_DM01_CD_05_dm01cel02     active
dm01cel02: DATA_DM01_CD_06_dm01cel02     active
dm01cel02: DATA_DM01_CD_07_dm01cel02     active
dm01cel02: DATA_DM01_CD_08_dm01cel02     active
dm01cel02: DATA_DM01_CD_09_dm01cel02     active
dm01cel02: DATA_DM01_CD_10_dm01cel02     active
dm01cel02: DATA_DM01_CD_11_dm01cel02     active
dm01cel02: DBFS_DG_CD_02_dm01cel02       active
dm01cel02: DBFS_DG_CD_03_dm01cel02       active
dm01cel02: DBFS_DG_CD_04_dm01cel02       active
dm01cel02: DBFS_DG_CD_05_dm01cel02       active
dm01cel02: DBFS_DG_CD_06_dm01cel02       active
dm01cel02: DBFS_DG_CD_07_dm01cel02       active
dm01cel02: DBFS_DG_CD_08_dm01cel02       active
dm01cel02: DBFS_DG_CD_09_dm01cel02       active
dm01cel02: DBFS_DG_CD_10_dm01cel02       active
dm01cel02: DBFS_DG_CD_11_dm01cel02       active
dm01cel02: RECO_DM01_CD_00_dm01cel02     active
dm01cel02: RECO_DM01_CD_01_dm01cel02     active
dm01cel02: RECO_DM01_CD_02_dm01cel02     active
dm01cel02: RECO_DM01_CD_03_dm01cel02     active
dm01cel02: RECO_DM01_CD_04_dm01cel02     active
dm01cel02: RECO_DM01_CD_05_dm01cel02     active
dm01cel02: RECO_DM01_CD_06_dm01cel02     active
dm01cel02: RECO_DM01_CD_07_dm01cel02     active
dm01cel02: RECO_DM01_CD_08_dm01cel02     active
dm01cel02: RECO_DM01_CD_09_dm01cel02     active
dm01cel02: RECO_DM01_CD_10_dm01cel02     active
dm01cel02: RECO_DM01_CD_11_dm01cel02     active
dm01cel03: DATA_DM01_CD_00_dm01cel03     active
dm01cel03: DATA_DM01_CD_01_dm01cel03     active
dm01cel03: DATA_DM01_CD_02_dm01cel03     active
dm01cel03: DATA_DM01_CD_03_dm01cel03     active
dm01cel03: DATA_DM01_CD_04_dm01cel03     active
dm01cel03: DATA_DM01_CD_05_dm01cel03     active
dm01cel03: DATA_DM01_CD_06_dm01cel03     active
dm01cel03: DATA_DM01_CD_07_dm01cel03     active
dm01cel03: DATA_DM01_CD_08_dm01cel03     active
dm01cel03: DATA_DM01_CD_09_dm01cel03     active
dm01cel03: DATA_DM01_CD_10_dm01cel03     active
dm01cel03: DATA_DM01_CD_11_dm01cel03     active
dm01cel03: DBFS_DG_CD_02_dm01cel03       active
dm01cel03: DBFS_DG_CD_03_dm01cel03       active
dm01cel03: DBFS_DG_CD_04_dm01cel03       active
dm01cel03: DBFS_DG_CD_05_dm01cel03       active
dm01cel03: DBFS_DG_CD_06_dm01cel03       active
dm01cel03: DBFS_DG_CD_07_dm01cel03       active
dm01cel03: DBFS_DG_CD_08_dm01cel03       active
dm01cel03: DBFS_DG_CD_09_dm01cel03       active
dm01cel03: DBFS_DG_CD_10_dm01cel03       active
dm01cel03: DBFS_DG_CD_11_dm01cel03       active
dm01cel03: RECO_DM01_CD_00_dm01cel03     active
dm01cel03: RECO_DM01_CD_01_dm01cel03     active
dm01cel03: RECO_DM01_CD_02_dm01cel03     active
dm01cel03: RECO_DM01_CD_03_dm01cel03     active
dm01cel03: RECO_DM01_CD_04_dm01cel03     active
dm01cel03: RECO_DM01_CD_05_dm01cel03     active
dm01cel03: RECO_DM01_CD_06_dm01cel03     active
dm01cel03: RECO_DM01_CD_07_dm01cel03     active
dm01cel03: RECO_DM01_CD_08_dm01cel03     active
dm01cel03: RECO_DM01_CD_09_dm01cel03     active
dm01cel03: RECO_DM01_CD_10_dm01cel03     active
dm01cel03: RECO_DM01_CD_11_dm01cel03     active

注意若没有符合要求的griddisk, 你可以使用’cellcli -e drop griddisk’ 和’cellcli -e create griddisk’命令重建griddisk ,但是不要轻易drop DBFS_DG开头的griddisk

2.登陆ASM实例后create disk group

如果不知道CELL的IP,可以从下面的配置文件中找到

[root@dm01db02 ~]# cat /etc/oracle/cell/network-config/cellip.ora 
cell="192.168.64.131"
cell="192.168.64.132"
cell="192.168.64.133"

SQL> create diskgroup DATA_MAC normal  redundancy 
  2  DISK
  3  'o/192.168.64.131/RECO_DM01_CD_*_dm01cel01'
  4  ,'o/192.168.64.132/RECO_DM01_CD_*_dm01cel02'
  5  ,'o/192.168.64.133/RECO_DM01_CD_*_dm01cel03'
  6  attribute
  7  'AU_SIZE'='4M',
  8  'CELL.SMART_SCAN_CAPABLE'='TRUE',
  9  'compatible.rdbms'='11.2.0.2',
 10  'compatible.asm'='11.2.0.2'
 11  /

3. MOUNT 新建的DISKGROUP

ALTER DISKGROUP DATA_MAC mount ;

4.或使用crsctl start/stop resource ora.DATA_MAC.dg 控制该资源

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

author's avatar The Maclean Liu
Advanced Customer Services
AskMaclean Logo 10g_ocm SHOUG

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today