中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

ASM 平衡問題

發布時間:2020-07-06 14:43:44 來源:網絡 閱讀:1156 作者:llc018198 欄目:關系型數據庫

1.以下操作均在ASM里面進行:

SQL>  show parameter power;
NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
asm_power_limit        integer  1
SQL> alter system set asm_power_limit=8;
System altered.
 
SQL> show parameter power;
NAME         TYPE  VALUE
------------------------------------ ----------- ------------------------------
asm_power_limit        integer  8
SQL> select name,group_number from v$asm_diskgroup;
NAME          GROUP_NUMBER
------------------------------ ------------
DATA       2
CRS       1
Elapsed: 00:00:00.01

添加磁盤以前查詢v$asm_operation ,是沒有記錄的:

SQL> select INST_ID, OPERATION, STATE, POWER, SOFAR, EST_WORK, EST_RATE, EST_MINUTES from GV$ASM_OPERATION where GROUP_NUMBER=2;
no rows selected
Elapsed: 00:00:00.04

 

執行添加磁盤的操作:

SQL> select INST_ID, OPERATION, STATE, POWER, SOFAR, EST_WORK, EST_RATE, EST_MINUTES from GV$ASM_OPERATION where GROUP_NUMBER=2;
   INST_ID OPERA STAT    POWER      SOFAR   EST_WORK  EST_RATE EST_MINUTES
---------- ----- ---- ---------- ---------- ---------- ---------- -----------
  1 REBAL WAIT        8
  1 REBAL WAIT        8
  2 REBAL RUN        8  52   4407       266    16
  2 REBAL WAIT        8   0      0  0     0
Elapsed: 00:00:00.01

可以看到oracle 估算16分鐘完成

查看進程:

[root@rac12c2 ~]# ps -fu grid | grep arb

grid      7130     1  0 13:19 ?        00:00:01 asm_arb0_+ASM2

 同時看ASM 的alert日志:(刪除磁盤)

SUCCESS: ALTER DISKGROUP DATA DROP  DISK 'DATA_0002' /* ASMCA */

NOTE: Attempting voting file refresh on diskgroup DATA

NOTE: Refresh completed on diskgroup DATA. No voting file found.

Mon Aug 31 14:47:56 2015

NOTE: starting rebalance of group 2/0x8b529360 (DATA) at power 4

Starting background process ARB0

Mon Aug 31 14:47:56 2015

ARB0 started with pid=36, OS id=19042 

NOTE: assigning ARB0 to group 2/0x8b529360 (DATA) with 4 parallel I/Os

[grid@rac12c1 trace]$ tail -f alert_+ASM1.log 

Mon Aug 31 14:47:55 2015

SUCCESS: ALTER DISKGROUP DATA DROP  DISK 'DATA_0002' /* ASMCA */

NOTE: Attempting voting file refresh on diskgroup DATA

NOTE: Refresh completed on diskgroup DATA. No voting file found.

Mon Aug 31 14:47:56 2015

NOTE: starting rebalance of group 2/0x8b529360 (DATA) at power 4

Starting background process ARB0

Mon Aug 31 14:47:56 2015

ARB0 started with pid=36, OS id=19042 

NOTE: assigning ARB0 to group 2/0x8b529360 (DATA) with 4 parallel I/Os

Mon Aug 31 15:07:57 2015

NOTE: GroupBlock outside rolling migration privileged region

NOTE: requesting all-instance membership refresh for group=2

Mon Aug 31 15:07:57 2015

GMON updating for reconfiguration, group 2 at 8 for pid 38, osid 26808

Mon Aug 31 15:07:57 2015

NOTE: group 2 PST updated.

SUCCESS: grp 2 disk DATA_0002 emptied

NOTE: erasing header (replicated) on grp 2 disk DATA_0002

NOTE: erasing header on grp 2 disk DATA_0002

NOTE: process _x000_+asm1 (26808) initiating offline of disk 2.3986842548 (DATA_0002) with mask 0x7e in group 2 (DATA) without client assisting

NOTE: initiating PST update: grp 2 (DATA), dsk = 2/0xeda263b4, mask = 0x6a, op = clear

Mon Aug 31 15:07:58 2015

GMON updating disk modes for group 2 at 9 for pid 38, osid 26808

Mon Aug 31 15:07:58 2015

NOTE: stopping process ARB0

Mon Aug 31 15:07:58 2015

NOTE: PST update grp = 2 completed successfully 

NOTE: initiating PST update: grp 2 (DATA), dsk = 2/0xeda263b4, mask = 0x7e, op = clear

Mon Aug 31 15:07:58 2015

GMON updating disk modes for group 2 at 10 for pid 38, osid 26808

Mon Aug 31 15:07:58 2015

NOTE: cache closing disk 2 of grp 2: DATA_0002

Mon Aug 31 15:07:58 2015

NOTE: PST update grp = 2 completed successfully 

Mon Aug 31 15:07:58 2015

GMON updating for reconfiguration, group 2 at 11 for pid 38, osid 26808

Mon Aug 31 15:07:58 2015

NOTE: cache closing disk 2 of grp 2: (not open) DATA_0002

Mon Aug 31 15:07:58 2015

NOTE: group 2 PST updated.

Mon Aug 31 15:07:59 2015

NOTE: membership refresh pending for group 2/0x8b529360 (DATA)

Mon Aug 31 15:07:59 2015

SUCCESS: rebalance completed for group 2/0x8b529360 (DATA)

Mon Aug 31 15:07:59 2015

GMON querying group 2 at 12 for pid 22, osid 12971

GMON querying group 2 at 13 for pid 22, osid 12971

Mon Aug 31 15:07:59 2015

NOTE: Disk DATA_0002 in mode 0x0 marked for de-assignment

SUCCESS: refreshed membership for 2/0x8b529360 (DATA)

NOTE: Attempting voting file refresh on diskgroup DATA

NOTE: Refresh completed on diskgroup DATA. No voting file found.

添加磁盤:把asm_power_limit 改成2;

如果被添加磁盤的head_status 狀態為FORMER ,用以下命令清除磁盤頭:

dd  if=/dev/zero  of=/dev/oracleasm/disks/DATA3  bs=1024k  count=200

然后可以發現備用磁盤狀態CANDIDATE,再執行ADD操作。

SQL> ALTER DISKGROUP DATA ADD  DISK '/dev/oracleasm/disks/DATA3' SIZE 30719M /* ASMCA */
Mon Aug 31 15:20:07 2015
NOTE: GroupBlock outside rolling migration privileged region
NOTE: Assigning number (2,2) to disk (/dev/oracleasm/disks/DATA3)
NOTE: requesting all-instance membership refresh for group=2
NOTE: Disk 2 in group 2 is assigned fgnum=3
NOTE: discarding redo for group 2 disk 2
NOTE: initializing header (replicated) on grp 2 disk DATA_0002
NOTE: initializing header on grp 2 disk DATA_0002
NOTE: requesting all-instance disk validation for group=2
Mon Aug 31 15:20:07 2015
NOTE: skipping rediscovery for group 2/0x8b529360 (DATA) on local instance.
Mon Aug 31 15:20:08 2015
NOTE: requesting all-instance disk validation for group=2
Mon Aug 31 15:20:08 2015
NOTE: skipping rediscovery for group 2/0x8b529360 (DATA) on local instance.
Mon Aug 31 15:20:08 2015
GMON updating for reconfiguration, group 2 at 14 for pid 31, osid 17642
Mon Aug 31 15:20:08 2015
NOTE: group 2 PST updated.
Mon Aug 31 15:20:08 2015
NOTE: membership refresh pending for group 2/0x8b529360 (DATA)
Mon Aug 31 15:20:08 2015
GMON querying group 2 at 15 for pid 22, osid 12971
NOTE: cache opening disk 2 of grp 2: DATA_0002 path:/dev/oracleasm/disks/DATA3
Mon Aug 31 15:20:09 2015
NOTE: Attempting voting file refresh on diskgroup DATA
NOTE: Refresh completed on diskgroup DATA. No voting file found.
Mon Aug 31 15:20:09 2015
GMON querying group 2 at 16 for pid 22, osid 12971
Mon Aug 31 15:20:09 2015
SUCCESS: refreshed membership for 2/0x8b529360 (DATA)
Mon Aug 31 15:20:09 2015
SUCCESS: ALTER DISKGROUP DATA ADD  DISK '/dev/oracleasm/disks/DATA3' SIZE 30719M /* ASMCA */
Mon Aug 31 15:20:09 2015
NOTE: starting rebalance of group 2/0x8b529360 (DATA) at power 2
Starting background process ARB0
Mon Aug 31 15:20:09 2015
ARB0 started with pid=36, OS id=30834
NOTE: assigning ARB0 to group 2/0x8b529360 (DATA) with 2 parallel I/Os
Mon Aug 31 15:20:24 2015
NOTE: Attempting voting file refresh on diskgroup DATA
NOTE: Refresh completed on diskgroup DATA. No voting file found.
Mon Aug 31 15:37:16 2015
NOTE: GroupBlock outside rolling migration privileged region
NOTE: requesting all-instance membership refresh for group=2
Mon Aug 31 15:37:16 2015
NOTE: membership refresh pending for group 2/0x8b529360 (DATA)
Mon Aug 31 15:37:16 2015
GMON querying group 2 at 17 for pid 22, osid 12971
Mon Aug 31 15:37:16 2015
SUCCESS: refreshed membership for 2/0x8b529360 (DATA)
NOTE: Attempting voting file refresh on diskgroup DATA
NOTE: Refresh completed on diskgroup DATA. No voting file found.
Mon Aug 31 15:42:24 2015
NOTE: stopping process ARB0
Mon Aug 31 15:42:25 2015
SUCCESS: rebalance completed for group 2/0x8b529360 (DATA)

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

江北区| 石城县| 九龙坡区| 黔南| 祁连县| 岳池县| 九江县| 沅江市| 龙江县| 天气| 常德市| 梨树县| 托里县| 吴川市| 嘉善县| 阿瓦提县| 弋阳县| 宣汉县| 铜川市| 湾仔区| 广德县| 南康市| 青神县| 延安市| 麻栗坡县| 鲜城| 西盟| 天津市| 岳普湖县| 巧家县| 金寨县| 玉环县| 久治县| 盐亭县| 台前县| 抚顺县| 丁青县| 讷河市| 蒲城县| 侯马市| 许昌市|