您好,登錄后才能下訂單哦!
本篇內容主要講解“如何進行ASM磁盤組擴展”,感興趣的朋友不妨來看看。本文介紹的方法操作簡單快捷,實用性強。下面就讓小編來帶大家學習“如何進行ASM磁盤組擴展”吧!
今天登錄EM(虛擬機練習環境), 提示EM關閉狀態,查看數據庫,發現實例沒啟動。
startup 時提示 ORA-03113: end-of-file on communication channel
產看alter log中發現如下錯誤
-------------------------------------------------------------------
ARC0: Error 19504 Creating archive log file to '+DATA'
Errors in file /u01/app/oracle/diag/rdbms/ocpasm1/OCPASM1/trace/OCPASM1_arc1_11472.trc:
ORA-19816: WARNING: Files may exist in db_recovery_file_dest that are not known to database.
ORA-17502: ksfdcre:4 Failed to create file +DATA
ORA-15041: diskgroup "DATA" space exhausted
--------------------------------------------------------------------
startup mount 后 確認DATA group剩余空間不足:
SQL> select group_number,name,state,total_mb,free_mb from v$asm_diskgroup;
GROUP_NUMBER NAME STATE TOTAL_MB FREE_MB
------------ ---------- ---------------------- ---------- ----------
1 DATA MOUNTED 4000 6
2 FRA MOUNTED 3000 2946
3 OCR MOUNTED 3000 1880
于是查詢asm vg 發現還有剩余空間,太好了可以擴展
[root@OCPLHR ~]# vgdisplay
--- Volume group ---
VG Name vg_oraasm
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 15.00 GB
PE Size 4.00 MB
Total PE 3839
Alloc PE / Size 3584 / 14.00 GB
Free PE / Size 1020 / 1020.00 MB
VG UUID QHMkJt-XJfQ-gL9a-antn-6jfJ-OOdH-3vSll1
--------------------------
于是添加磁盤并擴展DATA group:
dd if=/dev/zero of=/asmdisk/disk9 bs=1024k count=1000
/sbin/losetup /dev/loop9 /asmdisk/disk9
raw /dev/raw/raw9 /dev/loop9
chmod 660 /dev/raw/raw9
chown oracle:dba /dev/raw/raw9
grid>sqlplus / as sysasm
alter diskgroup DATA add disk '/dev/raw/raw9';
select operation,est_minutes from v$asm_operation; #確認冗余平衡完成
重啟數據庫后,數據庫恢復正常。
SQL> select name,group_number,state,redundancy,total_mb,free_mb,path from v$asm_disk;
NAME GROUP_NUMBER STATE REDUNDANCY TOTAL_MB FREE_MB PATH
---------- ------------ ---------------- -------------- ---------- ---------- ------------------------------
FRA_0002 2 NORMAL UNKNOWN 1000 981 /dev/raw/raw8
FRA_0001 2 NORMAL UNKNOWN 1000 983 /dev/raw/raw7
FRA_0000 2 NORMAL UNKNOWN 1000 982 /dev/raw/raw6
DATA_0002 1 NORMAL UNKNOWN 1000 223 /dev/raw/raw5
DATA_0001 1 NORMAL UNKNOWN 1000 214 /dev/raw/raw4
DATA_0000 1 NORMAL UNKNOWN 1000 220 /dev/raw/raw3
OCR_0001 3 NORMAL UNKNOWN 1000 940 /dev/raw/raw2
OCR_0000 3 NORMAL UNKNOWN 1000 940 /dev/raw/raw1
DATA_0003 1 NORMAL UNKNOWN 1000 248 /dev/raw/raw9
最后發現 EM沒啟動
emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://OCPLHR:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
手動啟動EM:
emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://OCPLHR:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ..... started.
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/OCPLHR_OCPASM1/sysman/log。
到此,相信大家對“如何進行ASM磁盤組擴展”有了更深的了解,不妨來實際操作一番吧!這里是億速云網站,更多相關內容可以進入相關頻道進行查詢,關注我們,繼續學習!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。