Вы находитесь на странице: 1из 4

3/11/2017 Add disks to ASM diskgroup

Add disks to ASM diskgroup

Oracle Database Tips by Donald BurlesonOctober 2, 2015

Question: How do I add a disk volume to an ASM diskgroup?

Answer: Adding Disks to a Disk Group is done with the "alter diskgroup" command.
Oracle provides the alter diskgroup command to adding or removing physical disks within SQL*Plus:

First we identify the ASM diskgroup where we want to add the disk:

select
group_number,
name
from
v$asm_diskgroup;

Next, we identify the disks to see which disk should be added to the diskgroup:
select
mount_status,
header_status,
mode_status,
state,
total_mb,
free_mb,
name,
path,
label
from
v$asm_disk;

Now, we can add the disk to the ASM diskgroup:


alter diskgroup
my_diskgroup
add disk
'/devices/rhdisk1';

Here are other examples of adding a disk to an ASM diskgroup:

http://www.dba-oracle.com/t_add_disks_to_asm_diskgroup.htm 1/4
3/11/2017 Add disks to ASM diskgroup
ALTER DISKGROUP
dgroup1
ADD DISK
'/devices/diska5' NAME diska5,
'/devices/diska6' NAME diska6;

ALTER DISKGROUP dgroup1 ADD DISK


'/devices/diska*';

When a disk is added to the diskgroupand it is formatted and then rebalanced.

When you don't specify a FAILGROUP clause when adding a disk to a ASM diskgroup, the disk is in its own failure group.

If you don't specify the NAME clause when adding a disk to a ASM diskgroup, Oracle assigns its own system-generated names.

If the disk already belongs to an ASM disk group, the statement will fail.

Use the FORCE clause to add a disk that is a current member of disk group.

Oracle Training from Don Burleson


The best on site "Oracle training classes" are
just a phone call away! You can get
personalized Oracle training by Donald
Burleson, right at your shop!

http://www.dba-oracle.com/t_add_disks_to_asm_diskgroup.htm 2/4
3/11/2017 Add disks to ASM diskgroup

Burleson is the American Team

http://www.dba-oracle.com/t_add_disks_to_asm_diskgroup.htm 3/4
3/11/2017 Add disks to ASM diskgroup
Note: This Oracle documentation was created as a support and Oracle training
reference for use by our DBA performance tuning consulting professionals. Feel
free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support


expert should independently investigate their credentials and experience, and
not rely on advertisements and self-proclaimed expertise. All legitimate Oracle
experts publish their Oracle qualifications.

Errata? Oracle technology is changing and we strive to update our BC Oracle


support information. If you find an error or have a suggestion for improving our
content, we would appreciate your feedback. Just e-mail:
and include the URL for the page.

http://www.dba-oracle.com/t_add_disks_to_asm_diskgroup.htm 4/4