oracle rac扩展磁盘组,oracle 11g rac asm磁盘组增加硬盘

要增加磁盘的磁盘组为:DATA

要增加的磁盘为: /dev/sde1

在第一个节点上:

[[email protected] ~]#fdisk

/dev/sde

Device contains neither a valid DOS partition table,

nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will

remain in memory only,

until you decide to write them. After that, of course,

the previous

content won‘t be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by

w(rite)

Command (m for help): n

Command action

e   extended

p   primary partition

(1-4)

p

Partition number (1-4): 1

First cylinder

(1-391, default 1):

Using default value 1

Last cylinder or +size or

+sizeM or +sizeK (1-391, default 391):

Using default value 391

Command (m for help): w

The partition table has been

altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or

resource busy.

The kernel still uses the old table.

The new table will be

used at the next reboot.

Syncing disks.

[[email protected] ~]# ll

/dev/oracleasm/disks

total 0

brw-rw---- 1 grid oinstall 8,

49 Jan 20 16:45 CRS

brw-rw---- 1 grid oinstall 8, 17 Jan 20 16:45

DATA1

brw-rw---- 1 grid oinstall 8, 33 Jan 20 16:45 DATA2

[[email protected] ~]# /etc/init.d/oracleasm

createdisk DATA3 /dev/sde1

Marking

disk "DATA3" as an ASM

disk:

[  OK  ]

[[email protected] ~]# ll

/dev/oracleasm/disks

total 0

brw-rw---- 1 grid oinstall 8,

49 Jan 20 16:47 CRS

brw-rw---- 1 grid oinstall 8, 17 Jan 20 16:47

DATA1

brw-rw---- 1 grid oinstall 8, 33 Jan 20 16:47 DATA2

brw-rw----

1 grid oinstall 8, 65 Jan 20 16:47 DATA3

在第二个节点:

[[email protected] ~]# /etc/init.d/oracleasm scandisks

Scanning

the system for Oracle ASMLib

disks:

[  OK  ]

[[email protected] ~]# ll /dev/oracleasm/disks/

total 0

brw-rw---- 1 grid

oinstall 8, 49 Jan 20 16:54 CRS

brw-rw---- 1 grid oinstall 8, 17 Jan 20 16:54

DATA1

brw-rw---- 1 grid oinstall 8, 33 Jan 20 16:54 DATA2

brw-rw----

1 grid oinstall 8, 65 Jan 20 16:53 DATA3

[[email protected] ~]#su - grid

[[email protected] ~]$ export

ORACLE_SID=+ASM1

[[email protected] ~]$

[[email protected] ~]$

[[email protected]

~]$ sqlplus /nolog

SQL>conn / as

sysasm

SQL> alter diskgroup DATA add disk ‘/dev/oracleasm/disks/DATA3‘

name DATA_0002;

Diskgroup altered.

原文:http://www.cnblogs.com/jimeper/p/3527267.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值