Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
1.  Installing and Maintaining Sun StorEdge 3310 SCSI RAID Array Configuring RAID Storage Arrays  Previous   Contents   Next 
   
 

ProcedureHow to Create and Map a LUN

Use this procedure to create a logical unit (LUN) from unassigned disk drives or remaining capacity. See the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide for the latest information about LUN administration.

  1. Create and partition the logical device(s).

    For more information on creating a LUN, see the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.

  2. Map the LUNs to the host channels that are cabled to the nodes.

    For more information on mapping LUNs to host channels, see Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.


    Note - You can have a maximum of 64 shared LUNs.


  3. Ensure that each LUN has an associated entry in the /kernel/drv/sd.conf file.

    For more information, see the Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual.

  4. To make the changes to the /kernel/drv/sd.conf file active, perform one of the following options.

    • On systems that run Solaris 8 Update 7 or below, perform a reconfiguration boot.

    • For Solaris 9 and above, run the update_drv --f sd command and then the devfsadm command.

  5. If necessary, label the LUNs.

  6. If the cluster is online and active, update the global device namespace.

    # scgdevs
  7. If you want a volume manager to manage the new LUN, run the appropriate Solstice DiskSuite/Solaris Volume Manager commands or VERITAS Volume Manager commands. Use these commands to incorporate the new LUN into a diskset or disk group.

    For information on administering LUNs, see your Sun Cluster system administration documentation.

    For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation.

  8. If you want the new LUN to be a quorum device, add the quorum device.

    For the procedure about how to add a quorum device, see your Sun Cluster system administration documentation.

ProcedureHow to Unmap and Delete a LUN

Use this procedure to delete a LUN(s). See the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide for the latest information about LUN administration.

This procedure assumes that the cluster is online. A cluster is online if the RAID storage array is connected to the nodes and all nodes are powered on. This procedure also assumes that you plan to telnet to the RAID storage array perform this procedure.


Caution! Caution - When you delete the LUN, you remove all data on that LUN.


  1. Identify the LUNs that you need to remove.

    # cfgadm -al
  2. Is the LUN a quorum device? This LUN is the LUN that you are removing.

    # scstat -q
    • If no, proceed to Step 3.

    • If yes, relocate that quorum device to another suitable RAID storage array.

      For procedures about how to add and remove quorum devices, see your Sun Cluster system administration documentation.

  3. Remove the LUN from disksets or disk groups.

    Run the appropriate Solstice DiskSuite/Solaris Volume Manager commands or VERITAS Volume Manager commands to remove the LUN from any diskset or disk group. For more information, see your Solstice DiskSuite/Solaris Volume Manager or VERITAS Volume Manager documentation. See the following paragraph for additional VERITAS Volume Manager commands that are required.


    Note - LUNs that were managed by VERITAS Volume Manager must be completely removed from VERITAS Volume Manager control before you can delete the LUNs from the Sun Cluster environment. After you delete the LUN from any disk group, use the following commands on both nodes to remove the LUN from VERITAS Volume Manager control.


    # vxdisk offline cNtXdY
    # vxdisk rm cNtXdY
  4. On both nodes, unconfigure the device that is associated with the LUN.

    # cfgadm -c unconfigure cx::dsk/cxtydz
  5. Unmap the LUN from both host channels.

    For the procedure about how to unmap a LUN, see the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.

  6. Delete the logical drive.

    For more information, see the Sun StorEdge 3310 SCSI RAID Firmware Version 3.25 Guide.

  7. On both nodes, remove the paths to the LUN that you are deleting.

    # devfsadm -C
  8. On both nodes, remove all obsolete device IDs (DID)s.
    # scdidadm -C

  9. If no other LUN is assigned to the target and LUN ID, remove the LUN entries from /kernel/drv/sd.conf file.

    Perform this step on both nodes to prevent extended boot time caused by unassigned LUN entries.


    Note - Do not remove default t0d0 entries.


Maintaining RAID Storage Arrays

This section contains the procedures about how to maintain a RAID storage array in a Sun Cluster environment. Maintenance tasks in Table 1-2 contain cluster-specific tasks. Tasks that are not cluster-specific are referenced in a list following the table.


Note - When you upgrade firmware on a storage device or on an enclosure, redefine the stripe size of a LUN, or perform other LUN operations, a device ID (DID) might change unexpectedly. When you perform a check of the DID configuration by running the scdidadm -c command, the following error message appears on your console if the DID changed unexpectedly.

 device id for nodename:/dev/rdsk/cXtYdZsN does not match physical 
device's id for ddecimalnumber, device may have been replaced.

To fix DIDs that report this error, run the scdidadm -R command for each affected device.


Table 1-2 Tasks: Maintaining a RAID Storage Array

Task

Information

Add a RAID storage array.

How to Add a RAID Storage Array

Remove a RAID storage array.

How to Remove a RAID Storage Array

Replace a RAID storage array.

 

To replace a RAID storage array, remove the RAID storage array. Add a new RAID storage array to the configuration.

How to Remove a RAID Storage Array

 

How to Add a RAID Storage Array

Add a JBOD as an expansion unit.

Follow the same procedure that you use in a noncluster environment.

If you plan to use the disk drives in the expansion unit to create a new LUN, see How to Create and Map a LUN

Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual

How to Create and Map a LUN

Remove a JBOD expansion unit.

Follow the same procedure that you use in a noncluster environment.

If you plan to remove a LUN in conjunction with the disk drive, see How to Unmap and Delete a LUN.

Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual

How to Unmap and Delete a LUN

Add a disk drive.

Follow the same procedure that you use in a noncluster environment.

If you plan to create a new LUN with the disk drive, see How to Create and Map a LUN.

Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual

How to Create and Map a LUN

Remove a disk drive.

Follow the same procedure that you use in a noncluster environment.

If you plan to remove a LUN in conjunction with the disk drive, see How to Unmap and Delete a LUN.

If your configuration is running in RAID level 0, take appropriate action to prepare the volume manager for the impacted disk to be inaccessible.

Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual

How to Unmap and Delete a LUN

Replace a failed controller or restore an offline controller.

How to Replace a Controller

Replace a host-to-storage array SCSI cable.

Switch the device group over to the other node before performing this procedure.

Then follow the same procedure that you use in a noncluster environment.

Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual

Replace the I/O module.

How to Replace an I/O Module

Replace the Terminator Module.

How to Replace a Terminator Module

The following is a list of administrative tasks which require no cluster-specific procedures. See the Sun StorEdge 3310 SCSI Array Installation, Operation, and Service Manual for the following procedures.

  • Replace a disk drive

  • Replace the battery unit

  • Replace a JBOD-to-RAID unit SCSI cable

  • Replace a power and fan module

  • Replace a power cord to a RAID storage array.

 
 
 
  Previous   Contents   Next