Sun Cluster Quick Start Guide for Solaris OS

ProcedureHow to Add LUNs to Disk Sets

  1. From phys-sun, list the DID mappings.

    Output is similar to the following, where WWN stands for the unique World Wide Number (WWN) of the disk target.


    phys-sun# cldevice show | grep Device
    === DID Device Instances ===                   
    DID Device Name:                                /dev/did/rdsk/d1
      Full Device Path:                                phys-sun:/dev/rdsk/c0t0d0
    DID Device Name:                                /dev/did/rdsk/d2
      Full Device Path:                                phys-sun:/dev/rdsk/c0t6d0
    DID Device Name:                                /dev/did/rdsk/d3
      Full Device Path:                                phys-sun:/dev/rdsk/c1tWWNd0
      Full Device Path:                                phys-moon:/dev/rdsk/c1tWWNd0
    DID Device Name:                                /dev/did/rdsk/d4
      Full Device Path:                                phys-sun:/dev/rdsk/c1tWWNd0
      Full Device Path:                                phys-moon:/dev/rdsk/c1tWWNd0
    DID Device Name:                                /dev/did/rdsk/d5
      Full Device Path:                                phys-sun:/dev/rdsk/c0tWWNd0
      Full Device Path:                                phys-moon:/dev/rdsk/c0tWWNd0
    …
  2. Map LUN0, LUN1, and LUN2 to their DID device names.

    Compare the information that you saved when you created the LUNs with the output of the cldevice command. For each LUN, locate the /dev/rdsk/cNtWWNdY name that is associated with the LUN. Then find that same disk name in the cldevice output to determine the DID device name.

    These procedures assume the following mappings for the purposes of this example. Substitute your own disk names and DID names when you perform the remainder of these procedures.

    Data Service 

    LUN Name 

    Raw Disk Device Name 

    DID Name 

    Sun Cluster HA for Oracle 

    LUN0

    /dev/did/rdsk/c1tWWNd0

    dsk/d3

    Sun Cluster HA for NFS 

    LUN1

    /dev/did/rdsk/c1tWWNd0

    dsk/d4

    Sun Cluster HA for Apache 

    LUN2

    /dev/did/rdsk/c0tWWNd0

    dsk/d5

  3. Take ownership of the Oracle disk set oraset.


    phys-sun# cldevicegroup switch -n phys-sun oraset
    
  4. Add LUN0 to the Oracle disk set.

    Use the full DID path name.


    phys-sun# metaset -s oraset -a /dev/did/rdsk/d3
    
  5. Verify that the configuration of the disk set is correct.


    phys-sun# metaset -s oraset
    
  6. Repeat the process to add LUN1 to the NFS disk set nfsset.


    phys-sun# cldevicegroup switch -n phys-sun nfsset
    phys-sun# metaset -s nfsset -a /dev/did/rdsk/d4
    phys-sun# metaset -s nfsset
    
  7. Repeat the process to add LUN2 to the Apache disk set apacheset.


    phys-sun# cldevicegroup switch -n phys-sun apacheset
    phys-sun# metaset -s apacheset -a /dev/did/rdsk/d5
    phys-sun# metaset -s apacheset