what happens to disks that are already a part of the same or another disk group?

If you use ALTER DISKGROUP … ADD DISK and specify a wildcard for the discovery string,
what happens to disks that are already a part of the same or another disk group?

If you use ALTER DISKGROUP … ADD DISK and specify a wildcard for the discovery string,
what happens to disks that are already a part of the same or another disk group?

A.
The command fails unless you specify the FORCE option.

B.
The command fails unless you specify the REUSE option.

C.
The command must be reissued with a more specific discovery string.

D.
The other disks, already part of the disk group, are ignored.

Explanation:
Refer to an Oracle Example for adding disk to diskgroup (link)
How A Disk is Discovered
While an ASM instance is initialized, ASM discovers and examines the contents of all of the
disks that are in the paths that you designated with values in the ASM_DISKSTRING
initialization parameter. Disk discovery also occurs when you:
Run the ALTER DISKGROUP…ADD DISK and ALTER DISKGROUP…RESIZE DISK
commands
Query the V$ASM_DISKGROUP and V$ASM_DISK views
Disk Discovery Rules(link)
The rules for discovering ASM disks are as follows:
ASM can discover up to 10,000 disks. That is, if more than 10,000 disks match the
ASM_DISKSTRING initialization parameter, then ASM discovers only the first 10,000.
ASM only discovers disks that contain a partition table.
Note:
ASM does not discover a disk that contains an operating system partition table, even if the
disk is in an ASM disk string search path and ASM has read and write permission for the
disk.
When adding a disk, the FORCE option must be used if ASM recognizes that the disk was
managed by Oracle. Such a disk appears in the V$ASM_DISK view with a status of
FOREIGN. In this case, you can only add the disk to a disk group by using the FORCE
keyword.
In addition, ASM identifies the following configuration errors during discovery:
Multiple paths to the same disk
In this case, if the disk is part of a disk group, then disk group mount fails. If the disk is being
added to a disk group with the ADD DISK or CREATE DISKGROUP command, then the
command fails. To correct the error, adjust the ASM_DISKSTRING value so that ASM will
not discover multiple paths to the same disk. Or if you are using multipathing software, then

ensure that you include only the pseudo-device name in the ASM_DISKSTRING value. See
“ASM and Multipathing”.
Multiple ASM disks with the same disk header
This can be caused by having copied one disk onto another. In this case, the disk group
mount operation fails.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


Mauricio

Mauricio

The correct answer is D

please see the OCP student guide page 51

OCP: Oracle Database 11g Administrator Certified Professional Study Guide …
By Robert G. Freeman, Charles A. Pack, Doug Stuns

dbr

dbr

Yes in the student guide it says so but here http://docs.oracle.com/cd/B28359_01/server.111/b31107/asmdiskgrps.htm says the oposit

Assume that disk discovery identifies the following disks in directory /devices:

/devices/diska1 — member of data1
/devices/diska2 — member of data1
/devices/diska3 — member of data1
/devices/diska4 — member of data1
/devices/diska5 — candidate disk
/devices/diska6 — candidate disk
/devices/diska7 — candidate disk
/devices/diska8 — candidate disk

/devices/diskb1 — member of data1
/devices/diskb2 — member of data1
/devices/diskb3 — member of data1
/devices/diskb4 — member of data2

/devices/diskc1 — member of data2
/devices/diskc2 — member of data2
/devices/diskc3 — member of data3
/devices/diskc4 — candidate disk

/devices/diskd1 — candidate disk
/devices/diskd2 — candidate disk
/devices/diskd3 — candidate disk
/devices/diskd4 — candidate disk
/devices/diskd5 — candidate disk
/devices/diskd6 — candidate disk
/devices/diskd7 — candidate disk
/devices/diskd8 — candidate disk

The following statement would fail because /devices/diska1 – /devices/diska4 already belong to the disk group data1.

ALTER DISKGROUP data1 ADD DISK
‘/devices/diska*’;

The following statement would fail because the search string matches disks that are contained in other disk groups. Specifically, /devices/diska4 belongs to disk group dgroup1 and /devices/diskb4 belongs to disk group dgroup2.

ALTER DISKGROUP dgroup1 ADD DISK
‘/devices/disk*4’;

Guddu

Guddu

Answer D is correct.