如何在linux 10gR2 rac 新增ASM磁碟組
1.需要對新增加的裝置在每個節點進行授權 使oracle使用者能操作
[root@rac1 oracle]# chown oracle:dba /dev/raw/raw6
[root@rac1 oracle]# chmod 660 /dev/raw/raw6
[root@rac2 oracle]# chown oracle:dba /dev/raw/raw6
[root@rac2 oracle]# chmod 660 /dev/raw/raw6
2.oracle使用者掃描磁碟路徑 能讓asm認到裝置
select path from v$asm_disk;
設定asm裝置搜尋路徑
alter system set asm_diskstring='ORCL:VOL*','/dev/raw/raw*';
3.在rac1節點進行操作
[oracle@rac1 ~]$ export ORACLE_SID=+ASM1
[oracle@rac1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 27 09:03:28 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> select group_number,name,state,total_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB
------------ ------------------------------ ----------- ----------
2 DATA MOUNTED 3057
SQL> create diskgroup testdg external redundancy disk '/dev/raw/raw6';
Diskgroup created.
SQL> select group_number,name,state,total_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB
------------ ------------------------------ ----------- ----------
1 TESTDG MOUNTED 2047
2 DATA MOUNTED 3057
SQL> exit
4.在rac2節點進行操作
[oracle@rac2 dbs]$ export ORACLE_SID=+ASM2
[oracle@rac2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 27 09:08:26 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> select group_number,name,state,total_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB
------------ ------------------------------ ----------- ----------
2 DATA MOUNTED 3057
SQL> alter diskgroup testdg mount;
alter diskgroup testdg mount
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup
"TESTDG"
這是因為沒在節點2進行授權 所以報這個錯 按照1點 進行授權後就正常了
SQL> select group_number,name,state,total_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB
------------ ------------------------------ ----------- ----------
0 TESTDG DISMOUNTED 0
2 DATA MOUNTED 3057
SQL> alter diskgroup testdg mount;
Diskgroup altered.
SQL> select group_number,name,state,total_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB
------------ ------------------------------ ----------- ----------
1 TESTDG MOUNTED 2047
2 DATA MOUNTED 3057
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-366108/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- 一次ASM新增新的磁碟組ASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- ASM磁碟組限制ASM
- 遷移ASM磁碟組ASM
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- 【ASM】Oracle asm刪除磁碟組注意事項ASMOracle
- ASM磁碟組更換磁碟的操作方法ASM
- ASM磁碟簡單維護,新增,刪除ASM
- ASM磁碟組擴容操作文件ASM
- ASM 磁碟組的建立及擴容ASM
- ORACLE ASM磁碟組空間溢位OracleASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- goldengate + asm + racGoASM
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- ASM磁碟組ORA-15042 ORA-15096ASM
- Oracle 11.2.0.4 rac for aix acfs異常環境的克隆環境ASM磁碟組掛載緩慢OracleAIASM
- 如何檢視Oracle RAC的asm磁碟的udev對應關係OracleASMdev
- RAC+ASM+DATAGUARDASM
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- ASM重新命名包含OCR/vote file的磁碟組ASM
- oracle RAC+DG 擴容ASM和表空間(Linux)OracleASMLinux
- linux 新增磁碟 分割槽掛載Linux
- 基於裸裝置的ASM磁碟組擴容方案ASM
- 遷移OCR和VotingDisk並刪除原ASM磁碟組ASM
- 【RAC】asm_diskgroups 引數ASM
- 【ASM】ASM磁碟頭被重寫,如何修復ASM
- linux新增新磁碟和建立分割槽Linux
- oracle rac 增加磁碟Oracle
- RAC安裝【AIX 7 + 11.2.0.4 + ASM】AIASM
- RAC+DG(asm單例項)ASM單例
- 從定位資料塊所在ASM磁碟到ASM strippingASM
- (grid重灌後圖形介面報錯)ASM磁碟組字元介面配置ASM字元
- 問題:未清空磁碟被新增到磁碟組觸發壞塊
- 如何在 Linux 桌面新增使用者Linux
- 在ASM磁碟組中刪除歸檔日誌報ORA-15028ASM
- 【ARCH】Oracle 判斷asm磁碟組大小,超過閾值清理指令碼OracleASM指令碼