Confirm that your system can discover the disks that are under ASMLib control:
+ASM1 - oracle: oracleasm-discover
Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
[ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
Discovered disk: ORCL:AN_GRID01_DISK1 [10475208 blocks (5363306496 bytes), maxio 256]
Discovered disk: ORCL:AN_GRID01_DISK2 [10475208 blocks (5363306496 bytes), maxio 256]
Discovered disk: ORCL:AN_GRID01_DISK3 [10475208 blocks (5363306496 bytes), maxio 256]
Discovered disk: ORCL:AN_DATA101_DISK1 [1073728213 blocks (549748845056 bytes), maxio 256]
ASMCMD> lsdsk --candidate
Path
ORCL:ORADATA_DD501_DISK01
ORCL:ORADATA_DD501_DISK02
ORCL:ORADATA_DD501_DISK03
ORCL:ORADATA_FD501_DISK01
ORCL:ORADATA_FD501_DISK02
Build an XML file to present to ASMCMD for creating the diskgroup. The mkdg (make diskgroup) command in ASMCMD requires that an XML file to be used to pass the required parameters.
Here is an example:
cat /apps/work/an/DG_DBA101.xml
<dg name="DG_DBA101" redundancy="external">
<dsk string="ORCL:ORADATA_DD501_DISK01" />
<dsk string="ORCL:ORADATA_DD501_DISK02" />
<dsk string="ORCL:ORADATA_DD501_DISK03" />
<a name="compatible.asm" value="11.2"/>
<a name="compatible.rdbms" value="11.2"/>
</dg>
To create a diskgroup:
ASMCMD > mkdg /apps/work/an/DG_DBA101.xml
As of Oracle 11.1, the au_size = 4MB is recomended. You need to setup partition aligment for your LUNs.
1MB partition alignment for ocr and vote disk diskgroup.
4MB partition alignment for DATA and FRA diskgroups
For example: To verify the partition aligment, execute the following:
sfdisk -uS -l /dev/emcpowera1Each sector is 512 bytes so you should have 8192 for 4MB and 2048 for 1MB.
To create a diskgroup with 4MB partition
<dg name="DG_DBA102" redundancy="external">
<dsk string="ORCL:ORADATA_DD501_DISK05" />
<dsk string="ORCL:ORADATA_DD501_DISK06" />
<a name="compatible.asm" value="11.2"/>
<a name="compatible.rdbms" value="11.2"/>
<a name="au_size" value="4M" />
</dg>
No comments:
Post a Comment