Skip to main content

Steps to add ASM disk to existing ASM diskgroup

Steps to add disk to disk group

Please follow the below steps once disk presented and partitioned by OS team.

      1)      Create the disk using ASMLIB

For example
# /usr/sbin/oracleasm createdisk PRODDATA08 /dev/xvdq1
# (this command needs to be executed as root user)

      2)      Since this is a RAC installation, the disks would only be stamped by one node. The other node would just scan for the disks.

       For example
# /usr/sbin/oracleasm scandisks
# (this command needs to be executed as root user)

You can use the next steps to validate whether the candidate disk(s) is/are in good shape and can be accessed from each node (without harm the existing production diskgroups) before adding, as follow:

      3)      As Oracle or Grid OS user, run the next commands on each node

       For example
$> id 
$> /usr/sbin/oracleasm listdisks 
$> /usr/sbin/oracleasm querydisk <each disk from previous output>

      4)      Confirm the disks are visible (I/O) at OS level (as oracle or grid OS user) from each node

       For example
 $> id 
$> ls -l  <disk name>
$> dd if=/dev/oracleasm/disks/PRODDATA08 of=/dev/null count=100 bs=8192

       5)      Verify that kfed can read on the candidate disk(s) at OS level (as oracle or grid OS user) from each node:

       For example
kfed read /dev/oracleasm/disks/PRODDATA08 
Note: If the disk is not a FORMER disk, then kfed on new disks will return: 
 kfbh.type: 0 ; 0x002: KFBTYP_INVALID and that is expected.

       6)      Now connect to the ASM instance as sysasm and add the disk to existing diskgroup

       For example
SQL> ALTER DISKGROUP PRODDATA ADD DISK '/dev/oracleasm/disks/PRODDATA08';


Note: ASMCA UTILITY can also be used for adding, dropping, dismount ASM disk/disk groups

Comments