Migrating Oracle Automatic Storage Management (ASM) disk groups on operating system devices to Dynamic Multi-Pathing (DMP) devices

When an existing ASM disk group uses operating system native devices as disks, you can migrate these devices to Veritas Dynamic Multi-Pathing control. If the OS devices are controlled by other multi-pathing drivers, this operation requires system downtime to migrate the devices to DMP control.

After this procedure, the ASM disk group uses the migrated DMP devices as its disks.

"From ASM" indicates that you perform the step as the user running the ASM instance.

"As root user" indicates that you perform the step as the root user.

To migrate an ASM disk group from operating system devices to DMP devices

  1. From ASM, identify the ASM disk group that you want to migrate, and identify the disks under its control.
  2. From ASM, dismount the ASM disk group.
  3. If the devices are controlled by other multi-pathing drivers such as PowerPath, migrate the devices to DMP control. Perform these steps as root user.

  4. As root user, enable DMP support for the ASM disk group identified in step 1.
    # vxdmpraw enable username
    			groupname [devicename ...]

    Where username represents the ASM user running the ASM instance, and groupname represents the UNIX groupname of the specified user-id. If you specify one or more devicenames, DMP support for ASM is enabled for those devices. If you do not specify a devicename, DMP support is enabled for all devices in the system that have an ASM signature.

  5. From ASM, set ASM_DISKSTRING to the value /dev/vx/rdmp/*
  6. From ASM, confirm that the devices are available to ASM.
  7. From ASM, mount the ASM disk groups. The disk groups are mounted on DMP devices.

Example: To migrate an ASM disk group from operating system devices to DMP devices

  1. From ASM, identify the ASM disk group that you want to migrate, and identify the disks under its control.
    SQL> select name, state from v$asm_diskgroup; 
    NAME                           STATE 
    ------------------------------ ----------- 
    ASM_DG1                        MOUNTED 
    SQL> select name,path,header_status from v$asm_disk; 
    NAME		       PATH		            HEADER_STATU 
    -------------------------------------------- 
    ASM_DG1_0000	/dev/c2t5d9	      MEMBER 
    ASM_DG1_0001	/dev/c2t5d1      	MEMBER 
    ASM_DG1_0002	/dev/c2t5d3	      MEMBER 
  2. From ASM, dismount the ASM disk group.
    SQL> alter diskgroup ASM_DG1 dismount; 
    Diskgroup altered. 
    
    SQL> select name , state from v$asm_diskgroup; 
    NAME                           STATE 
    ------------------------------ ----------- 
    ASM_DG1                        DISMOUNTED
  3. If the devices are controlled by other multi-pathing drivers, migrate the devices to DMP control. Perform these steps as root user.

    Note:

    This step requires planned downtime of the system.

    See "Setting up DMP to manage native devices"

  4. As root user, enable DMP support for the ASM disk group identified in step 1, in one of the following ways:
    • To migrate selected ASM diskgroups, use the vxdmpadm command to determine the DMP nodes that correspond to the OS devices.

      # vxdmpadm getdmpnode nodename=c2t5d9 
      NAME       STATE   ENCLR-TYPE PATHS ENBL DSBL ENCLR-NAME
      ========================================================
      eva4k6k0_0 ENABLED EVA4K6K    4     4    0    EVA4K6K0

      Use the device name in the command below:

      # vxdmpraw enable oracle dba eva4k6k0_0 \ 
           eva4k6k0_9 emc_clariion0_243
    • If you do not specify a devicename, DMP support is enabled for all devices in the disk group that have an ASM signature. For example:

      # vxdmpraw enable oracle dba
  5. From ASM, set ASM_DISKSTRING to the value /dev/vx/rdmp/*.
    SQL> alter system set ASM_DISKSTRING='/dev/vx/rdmp/*';
    System altered. 	
    SQL> show parameter ASM_DISKSTRING; 	
    NAME                       TYPE      VALUE 	
    -------------------------- --------- -------------------
    asm_diskstring             string    /dev/vx/rdmp/* 
  6. From ASM, confirm that the devices are available to ASM.
    SQL> select name,path,header_status from v$asm_disk where 
    header_status='MEMBER'; 	
    NAME	     PATH	                              HEADER_STATU 
    ----------------------------------------------------------
              /dev/vx/rdmp/emc_clariion0_243	    MEMBER
              /dev/vx/rdmp/eva4k6k0_9			         MEMBER 		
              /dev/vx/rdmp/eva4k6k0_1			         MEMBER
  7. From ASM, mount the ASM disk groups. The disk groups are mounted on DMP devices.
    SQL> alter diskgroup ASM_DG1 mount; 	
    Diskgroup altered.
     	
    SQL> select name, state from v$asm_diskgroup; 
    NAME                           STATE 	
    ------------------------------ ----------- 	
    ASM_DG1                        MOUNTED 
    SQL>  select name,path,header_status from v$asm_disk where 
    header_status='MEMBER'; 
    NAME		        PATH								                   HEADER_STATU 
    ----------------------------------------------------------- 
    ASM_DG1_0002	/dev/vx/rdmp/emc_clariion0_243		MEMBER 
    ASM_DG1_0000	/dev/vx/rdmp/eva4k6k0_1				     MEMBER 
    ASM_DG1_0001	/dev/vx/rdmp/eva4k6k0_9	        MEMBER

More Information

About setting up DMP to manage native devices