- 最后登录
- 2015-10-8
- 在线时间
- 42 小时
- 威望
- 70
- 金钱
- 476
- 注册时间
- 2012-4-23
- 阅读权限
- 50
- 帖子
- 101
- 精华
- 2
- 积分
- 70
- UID
- 382
|
5#
发表于 2014-2-10 10:53:23
DG3是从盘阵新分配给数据库两个vidisk (/dev/raw/raw10,/dev/raw/raw11)组成
是在修改ip之前干刚创建的。
当时的创建步骤如下:
su - grid
SQL> conn / as sysasm
Connected.
SQL> show sga
Total System Global Area 283930624 bytes
Fixed Size 2212656 bytes
Variable Size 256552144 bytes
ASM Cache 25165824 bytes
SQL> create diskgroup DG3 external redundancy disk '/dev/raw/raw10';
SQL> alter diskgroup DG3 add disk '/dev/raw/raw11';
SQL> col path for a30
SQL> select GROUP_NUMBER,DISK_NUMBER,MOUNT_STATUS,HEADER_STATUS,NAME,PATH from v$asm_disk;
SQL> set line 200
SQL> /
GROUP_NUMBER DISK_NUMBER MOUNT_S HEADER_STATU NAME PATH
------------ ----------- ------- ------------ ------------------------------ ------------------------------
0 1 CLOSED MEMBER /dev/raw/raw9
4 1 CACHED MEMBER DG3_0001 /dev/raw/raw11
1 2 CACHED MEMBER DG1_0002 /dev/raw/raw8
3 1 CACHED MEMBER OCRVDG_0001 /dev/raw/raw7
3 0 CACHED MEMBER OCRVDG_0000 /dev/raw/raw6
2 2 CACHED MEMBER DG2_0002 /dev/raw/raw5
2 1 CACHED MEMBER DG2_0001 /dev/raw/raw4
2 0 CACHED MEMBER DG2_0000 /dev/raw/raw3
1 1 CACHED MEMBER DG1_0001 /dev/raw/raw2
1 0 CACHED MEMBER DG1_0000 /dev/raw/raw1
4 0 CACHED MEMBER DG3_0000 /dev/raw/raw10
SQL> select disk_number, path, name, total_mb, free_mb from v$asm_disk where group_number =4;
DISK_NUMBER PATH NAME TOTAL_MB FREE_MB
----------- ------------------------------ ------------------------------ ---------- ----------
1 /dev/raw/raw11 DG3_0001 307196 307168
0 /dev/raw/raw10 DG3_0000 307196 307168
修改完集群ip地址reboot 服务器后
现在的状态如下:
SQL> select GROUP_NUMBER,DISK_NUMBER,MOUNT_STATUS,HEADER_STATUS,NAME,PATH from v$asm_disk;
GROUP_NUMBER DISK_NUMBER MOUNT_S HEADER_STATU NAME
------------ ----------- ------- ------------ ------------------------------
PATH
------------------------------
0 0 CLOSED MEMBER
/dev/raw/raw11
0 1 CLOSED MEMBER
/dev/raw/raw10
2 3 CACHED MEMBER DG1_0003
/dev/raw/raw9
GROUP_NUMBER DISK_NUMBER MOUNT_S HEADER_STATU NAME
------------ ----------- ------- ------------ ------------------------------
PATH
------------------------------
2 2 CACHED MEMBER DG1_0002
/dev/raw/raw8
1 1 CACHED MEMBER OCRVDG_0001
/dev/raw/raw7
1 0 CACHED MEMBER OCRVDG_0000
/dev/raw/raw6
GROUP_NUMBER DISK_NUMBER MOUNT_S HEADER_STATU NAME
------------ ----------- ------- ------------ ------------------------------
PATH
------------------------------
3 2 CACHED MEMBER DG2_0002
/dev/raw/raw5
3 1 CACHED MEMBER DG2_0001
/dev/raw/raw4
3 0 CACHED MEMBER DG2_0000
/dev/raw/raw3
GROUP_NUMBER DISK_NUMBER MOUNT_S HEADER_STATU NAME
------------ ----------- ------- ------------ ------------------------------
PATH
------------------------------
2 1 CACHED MEMBER DG1_0001
/dev/raw/raw2
2 0 CACHED MEMBER DG1_0000
/dev/raw/raw1
11 rows selected.
SQL>
SQL>
SQL> !
[grid@bxrac01 ~]$ ls /dev/raw* -l
crw------- 1 root root 162, 0 Feb 7 15:43 /dev/rawctl
/dev/raw:
total 0
crw-rw---- 1 grid asmadmin 162, 1 Feb 7 16:14 raw1
crw-rw---- 1 grid asmadmin 162, 10 Feb 7 15:44 raw10
crw-rw---- 1 grid asmadmin 162, 11 Feb 7 15:44 raw11
crw-rw---- 1 grid asmadmin 162, 2 Feb 7 15:48 raw2
crw-rw---- 1 grid asmadmin 162, 3 Feb 7 16:14 raw3
crw-rw---- 1 grid asmadmin 162, 4 Feb 7 16:14 raw4
crw-rw---- 1 grid asmadmin 162, 5 Feb 7 16:14 raw5
crw-rw---- 1 grid asmadmin 162, 6 Feb 10 10:40 raw6
crw-rw---- 1 grid asmadmin 162, 7 Feb 7 15:47 raw7
crw-rw---- 1 grid asmadmin 162, 8 Feb 7 15:48 raw8
crw-rw---- 1 grid asmadmin 162, 9 Feb 7 16:14 raw9
[grid@bxrac01 ~]$ exit
exit
SQL> ALTER DISKGROUP DG3 ADD DISK '/dev/raw/raw10' force;
ALTER DISKGROUP DG3 ADD DISK '/dev/raw/raw10' force
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15001: diskgroup "DG3" does not exist or is not mounted
SQL> create diskgroup DG3 external redundancy disk '/dev/raw/raw10';
create diskgroup DG3 external redundancy disk '/dev/raw/raw10'
*
ERROR at line 1:
ORA-15260: permission denied on ASM disk group
SQL> !
[grid@bxrac01 ~]$ cd /dev/raw
[grid@bxrac01 raw]$ ll raw*
crw-rw---- 1 grid asmadmin 162, 1 Feb 7 16:14 raw1
crw-rw---- 1 grid asmadmin 162, 10 Feb 7 15:44 raw10
crw-rw---- 1 grid asmadmin 162, 11 Feb 7 15:44 raw11
crw-rw---- 1 grid asmadmin 162, 2 Feb 7 15:48 raw2
crw-rw---- 1 grid asmadmin 162, 3 Feb 7 16:14 raw3
crw-rw---- 1 grid asmadmin 162, 4 Feb 7 16:14 raw4
crw-rw---- 1 grid asmadmin 162, 5 Feb 7 16:14 raw5
crw-rw---- 1 grid asmadmin 162, 6 Feb 10 10:43 raw6
crw-rw---- 1 grid asmadmin 162, 7 Feb 7 15:47 raw7
crw-rw---- 1 grid asmadmin 162, 8 Feb 7 15:48 raw8
crw-rw---- 1 grid asmadmin 162, 9 Feb 7 16:14 raw9 |
|