使用ASMCA添加磁盘组

环境:
OS:Red Hat Linux As 5
DB:11.2.0.1
 
1.查看当前磁盘情况(root用户)
[root@hxl ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *         201        2610    19358325   83  Linux
/dev/sda2               1         200     1606468+  82  Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1044     8385898+  83  Linux
Disk /dev/sdc: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        1044     8385898+  83  Linux
Disk /dev/sdd: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        1044     8385898+  83  Linux
Disk /dev/sde: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1        1044     8385898+  83  Linux
 
2.查看当前的ASM磁盘(root用户)
[root@hxl ~]# oracleasm listdisks;
VOL1
VOL2
3.添加ASM磁盘(root用户)
[root@hxl ~]# oracleasm createdisk VOL3 /dev/sdd1
Writing disk header: done
Instantiating disk: done
[root@hxl ~]# oracleasm createdisk VOL4 /dev/sde1
Writing disk header: done
Instantiating disk: done
[root@hxl ~]# oracleasm listdisks;
VOL1
VOL2
VOL3
VOL4
 
5.创建ASM磁盘组(grid用户)
[hxl.com/grid]$asmca
77311_1348189868CP4g.jpg
 
输入磁盘组名,采用外部冗余,然后选择磁盘.
77311_1348189899fN84.jpg
 
77311_1348189913qOF5.jpg
 
 
6.查看磁盘组(grid用户)
[hxl.com/grid]$echo $ORACLE_SID
+ASM
[hxl.com/grid]$sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Sep 21 03:07:27 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
SQL> connect / as sysdba
Connected.
SQL> select name,total_mb from v$asm_diskgroup;
NAME                             TOTAL_MB
------------------------------ ----------
DATA                                16378
RECDATA                             16378
-- The End --

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/14385647/viewspace-749831/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/14385647/viewspace-749831/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值