How to setup scini devices for Oracle ASM use

           

   Article Number:     497679                                   Article Version: 3     Article Type:    How To 
   

 


Product:

 

ScaleIO 2.0,ScaleIO 2.0.0,ScaleIO 2.0.0.1,ScaleIO 2.0.0.2,ScaleIO 2.0.1.1,ScaleIO 2.0.1.2

 

Instructions:

 

 

   

      Description   

   

      How to setup scini devices for Oracle ASM use on a Linux host using udev rules   

   

      Steps   

   

      Assuming the back-end ScaleIO cluster is setup properly and working and the SDC has been installed already:   

   
         
  1.         Map volumes to the SDC                
               
    1.             This can be done in the GUI, Frontend --> Volumes, right-click the newly created volumes and map to the desired SDC         
    2.          
    3.             This can alse be done in the CLI:              

                    scli --map_volume_to_sdc (--volume_id <ID> |--volume_name <NAME>) (--sdc_id <ID> | --sdc_name<NAME> | --sdc_guid <GUID> | --sdc_ip <IP>) [–allow_multi_map]           

                             
    4.        
                  
  2.      
  3.         Look at the ScaleIO volumes that are now presented as LUNs to the host                
               
    1.                          

                    # ls -l /dev/scini*               
                        crw-r--r--. 1 root root 248, 0 Feb 9 12:01 /dev/scini               
                        brw-rw----. 1 root disk 252, 0 Feb 9 12:01 /dev/scinia               
                        brw-rw----. 1 root disk 252, 16 Feb 9 12:01 /dev/scinib               
                        brw-rw----. 1 root disk 252, 32 Feb 9 12:01 /dev/scinic               
                        brw-rw----. 1 root disk 252, 48 Feb 9 12:01 /dev/scinid               
                        brw-rw----. 1 root disk 252, 64 Feb 9 12:01 /dev/scinie               
                        brw-rw----. 1 root disk 252, 80 Feb 9 12:01 /dev/scinif
                 

                             
    2.        
                  
  4.      
  5.         Obtain the block device ID for each ScaleIO LUN. Below is the example for /dev/scinia                
               
    1.                          

                    # /bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/scinia               
                        021f2a8144f379a3-0d9ae2c500000011
                 

                             
    2.        
                  
  6.      
  7.         Create the udev rules file and populate the file with the results from step #3 in the RESULT parameter                
               
    1.             vi /etc/udev/rules.d/99-asm-devices.rules" (the filename must end with .rules)         
    2.          
    3.             KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c500000011", NAME="asmdisk01", OWNER="oracle", GROUP="dba", MODE="0660"         
    4.          
    5.             The NAME parameter is just an alias. Change this to whatever is desired. It will be seen as /dev/asmdisk01         
    6.          
    7.             The OWNER and GROUP parameters need to be set to whatever will be used by the Oracle processes.         
    8.          
    9.             The KERNEL parameter can be changed to accommodate differences in how the scini device will be used.              
                     
      1.                 If partitions are on the devices, eg. /dev/scinia1, change to KERNEL=="scini*[0-9]"             
      2.              
      3.                 If there are enough devices to get to /dev/sciniaa and beyond, change to KERNEL=="scini*?"             
      4.            
                             
    10.        
                  
  8.      
  9.                 

              When fully populated, it should look something like this example:       

                    
              KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c500000011", NAME="asmdisk01", OWNER="oracle", GROUP="dba", MODE="0660"KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c400000010", NAME="asmdisk02", OWNER="oracle", GROUP="dba", MODE="0660"KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c30000000f", NAME="asmdisk03", OWNER="oracle", GROUP="dba", MODE="0660"KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c20000000e", NAME="asmdisk04", OWNER="oracle", GROUP="dba", MODE="0660"KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2c00000000c", NAME="asmdisk05", OWNER="oracle", GROUP="dba", MODE="0660"KERNEL=="scini*", SUBSYSTEM=="block", PROGRAM="/bin/emc/scaleio/drv_cfg --query_block_device_id --block_device /dev/%k", RESULT=="021f2a8144f379a3-0d9ae2bf0000000b", NAME="asmdisk06", OWNER="oracle", GROUP="dba", MODE="0660"        
                  
  10.      
  11.          Reboot the host. When it comes back up, you should now have your new disk names:       
             # ll /dev/asm*         
               brw-rw----. 1 oracle dba 252, 0 Feb 10 13:38 /dev/asmdisk01         
               brw-rw----. 1 oracle dba 252, 16 Feb 10 13:38 /dev/asmdisk02         
               brw-rw----. 1 oracle dba 252, 32 Feb 10 13:38 /dev/asmdisk03         
               brw-rw----. 1 oracle dba 252, 48 Feb 10 13:38 /dev/asmdisk04         
               brw-rw----. 1 oracle dba 252, 64 Feb 10 13:38 /dev/asmdisk05         
               brw-rw----. 1 oracle dba 252, 80 Feb 10 13:38 /dev/asmdisk06           
                  
         
  12.      
  13.         At this point, the host is ready to hand over to the Oracle DBAs to install and setup Oracle and use the new /dev/asm* disks.     
  14.    
   

          

   

      Note: Further info on setting up Oracle with ScaleIO can be found in this white paper. (http://www.emc.com/collateral/white-papers/h15217-scaleio-for-oracle-database-12c-solutions-wp.pdf)