Sun Microsystems, Inc.  Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-79-1367602.1
Update Date:2012-07-30
Keywords:

Solution Type  Predictive Self-Healing Sure

Solution  1367602.1 :   T3/4 series system usage of internal RAID with sas2ircu  


Related Items
  • SPARC T4-1
  •  
  • SPARC T3-1
  •  
Related Categories
  • PLA-Support>Sun Systems>SPARC>CMT>SN-SPARC: T3
  •  
  • .Old GCS Categories>Sun Microsystems>Servers>CMT Servers
  •  




In this Document
Purpose
Details
 Obtain info about existing Volumes:
 Create a mirror volume:


Applies to:

SPARC T4-1 - Version Not Applicable and later
SPARC T3-1 - Version Not Applicable and later
Information in this document applies to any platform.

Purpose

Lists basic sas2ircu commands to monitor/create internal RAID volumes on T3/4 series systems.

Details

The T3 & T4 series systems no longer can access the raidctl utility that was included in Solaris.  This tool must be downloaded & placed onto the customer's system from URL:

   http://www.lsi.com/support/sun/

From this URL, choose left column link: SPARC T3 Series Platform Support , & then choose the proper server's download.  It is recommended to rename this utility to sas2ircu (removing the version indication) & place this utility in /usr/sbin.  Explorer will eventually be able to use this utility to obtain internal RAID volume information.  Help information can be obtained by entering the command with no parameters:

# sas2ircu
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

SAS2IRCU: No command specified.
  sas2ircu <controller #> <command> <parameters> ...
    where <controller #> is:
      Number between 0 and 255
    where <command> is:
      DISPLAY    - display controller, volume and physical device info
      LIST       - Lists all available LSI adapters (does not need ctlr #>
      CREATE     - create an IR volume
      DELETE     - Delete entire RAID configuration on the selected controller
      DELETEVOLUME  - Delete a specific RAID Volume on the selected controller
      HOTSPARE   - make drive a hot spare
      STATUS     - display current volume status info
      CONSTCHK   - Start Consistency Check operation on the specified IR Volume
      ACTIVATE   - Activate an Inactive IR volume
      LOCATE     - Locate a disk drive on an enclosure
      LOGIR      - Upload or Clear IR Log data
      BOOTIR     - Select an IR Boot Volume as primary boot device
      BOOTENCL   - Select an Enclosure/Bay as primary boot device
    where <parameters> are:
      Command specific values; enter "sas2ircu <controller #> <command>"
      to get command specific help


Obtain info about existing Volumes:

Information provided in the T3 server's admin guide should indicate which controller(s) can be configured with disks.  In the examples below, a Netra T3-1 has all disks on controller 1 (first parameter).  Volume status can be obtained by the following command:

# sas2ircu 1 status
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

Background command progress status for controller 1...
IR Volume 1
  Volume ID                               : 905
  Current operation                       : Background Init
  Volume status                           : Enabled
  Volume state                            : Optimal
  Physical disk I/Os                      : Not quiesced
  Volume size (in sectors)                : 583983104
  Number of remaining sectors             : 535698304
  Percentage complete                     : 8.27%
SAS2IRCU: Command STATUS Completed Successfully.
SAS2IRCU: Utility Completed Successfully.


A list of usable disks is determined by the following command:

# sas2ircu 1 display
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

Read configuration has been initiated for controller 1
------------------------------------------------------------------------
Controller information
------------------------------------------------------------------------
  Controller type                         : SAS2008
  BIOS version                            : 0.00.00.00
  Firmware version                        : 5.00.17.00
  Channel description                     : 1 Serial Attached SCSI
  Initiator ID                            : 0
  Maximum physical devices                : 831
  Concurrent commands supported           : 1871
  Slot                                    : Unknown
  Segment                                 : 0
  Bus                                     : 2816
  Device                                  : 0
  Function                                : 0
  RAID Support                            : Yes
------------------------------------------------------------------------
IR Volume information
------------------------------------------------------------------------
IR volume 1
  Volume ID                               : 905
  Status of volume                        : Okay (OKY)
  RAID level                              : RAID1
  Size (in MB)                            : 285148
  Physical hard disks                     :
  PHY[0] Enclosure#/Slot#                 : 1:2
  PHY[1] Enclosure#/Slot#                 : 1:3
------------------------------------------------------------------------
Physical device information
------------------------------------------------------------------------
Initiator at ID #0

Device is a Hard disk
  Enclosure #                             : 1
  Slot #                                  : 0
  SAS Address                             : 5000cca-0-1538-46dd
  State                                   : Ready (RDY)
  Size (in MB)/(in sectors)               : 286102/585937499
  Manufacturer                            : HITACHI
  Model Number                            : H103030SCSUN300G
  Firmware Revision                       : A2A8
  Serial No                               : 1104GZYG6E
  Protocol                                : SAS
  Drive Type                              : SAS_HDD

Device is a Hard disk
  Enclosure #                             : 1
  Slot #                                  : 1
  SAS Address                             : 5000cca-0-1537-5fed
  State                                   : Ready (RDY)
  Size (in MB)/(in sectors)               : 286102/585937499
  Manufacturer                            : HITACHI
  Model Number                            : H103030SCSUN300G
  Firmware Revision                       : A2A8
  Serial No                               : 1104GZG2EE
  Protocol                                : SAS
  Drive Type                              : SAS_HDD

Device is a Hard disk
  Enclosure #                             : 1
  Slot #                                  : 2
  SAS Address                             : 5000cca-0-1539-ea35
  State                                   : Optimal (OPT)
  Size (in MB)/(in sectors)               : 286102/585937499
  Manufacturer                            : HITACHI
  Model Number                            : H103030SCSUN300G
  Firmware Revision                       : A2A8
  Serial No                               : 001104G0VBYE
  Protocol                                : SAS
  Drive Type                              : SAS_HDD

Device is a Hard disk
  Enclosure #                             : 1
  Slot #                                  : 3
  SAS Address                             : 5000cca-0-1539-67a9
  State                                   : Optimal (OPT)
  Size (in MB)/(in sectors)               : 286102/585937499
  Manufacturer                            : HITACHI
  Model Number                            : H103030SCSUN300G
  Firmware Revision                       : A2A8
  Serial No                               : 001104G0KPEE
  Protocol                                : SAS
  Drive Type                              : SAS_HDD

Device is a Hard disk
  Enclosure #                             : 1
  Slot #                                  : 6
  SAS Address                             : 4433221-1-0600-0000
  State                                   : Available (AVL)
  Size (in MB)/(in sectors)               : ???/???
Available (AVL)
  Manufacturer                            : TEAC
  Model Number                            : DV-W28SS-R
  Firmware Revision                       : 1.0C
  Serial No                               :
  Protocol                                : SATA
  Drive Type                              : SATA_HDD
------------------------------------------------------------------------
Enclosure information
------------------------------------------------------------------------
  Enclosure#                              : 1
  Logical ID                              : 50800200:00d58789
  Numslots                                : 8
  StartSlot                               : 0
------------------------------------------------------------------------
SAS2IRCU: Command DISPLAY Completed Successfully.
SAS2IRCU: Utility Completed Successfully.

Create a mirror volume:

The following example indicates how to create a RAID volume with 2 unused disks (slots 2 & 3 from above).  First, check the status of the controller:

# ./sas2ircu-6.250.02.00 1 status
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

SAS2IRCU: there are no IR volumes on the controller!
SAS2IRCU: Error executing command STATUS.


Next, create a mirror (RAID 1) on controller 1, slots 2 & 3 as indicated in the "sas2ircu display" command above:

# ./sas2ircu-6.250.02.00 1 create raid1 MAX  1:2 1:3
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

You are about to create an IR volume.

WARNING: Proceeding with this operation may cause data loss or data
         corruption. Are you sure you want to proceed (YES/NO)? yes

WARNING: This is your last chance to abort this operation. Do you wish
         to abort (YES/NO)? no
Please wait, may take up to a minute...
Oct 13 18:17:47 nt3-1-bur09-a scsi: /pci@400/pci@2/pci@0/pci@4/scsi@0 (mpt_sas1):
Oct 13 18:17:47 nt3-1-bur09-a    Volume 0 is now , enabled, inactive
Oct 13 18:17:47 nt3-1-bur09-a scsi: /pci@400/pci@2/pci@0/pci@4/scsi@0 (mpt_sas1):
Oct 13 18:17:47 nt3-1-bur09-a    Volume 0 is now , enabled, active
Oct 13 18:17:47 nt3-1-bur09-a scsi: /pci@400/pci@2/pci@0/pci@4/scsi@0 (mpt_sas1):
Oct 13 18:17:47 nt3-1-bur09-a    Volume 0 is now , enabled, active
Oct 13 18:17:47 nt3-1-bur09-a scsi: /pci@400/pci@2/pci@0/pci@4/scsi@0 (mpt_sas1):
Oct 13 18:17:47 nt3-1-bur09-a    Volume 0 is now , enabled, active, background initialization in progress
SAS2IRCU: Volume created successfully.
SAS2IRCU: Command CREATE Completed Successfully.
SAS2IRCU: Utility Completed Successfully.
# Oct 13 18:17:48 nt3-1-bur09-a scsi: WARNING: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0 (sd7):
Oct 13 18:17:48 nt3-1-bur09-a   Corrupt label; wrong magic number
Oct 13 18:17:48 nt3-1-bur09-a scsi: /pci@400/pci@2/pci@0/pci@4/scsi@0 (mpt_sas1):
Oct 13 18:17:48 nt3-1-bur09-a   send_sep act 0: ioc status:8001
Oct 13 18:17:48 nt3-1-bur09-a scsi: WARNING: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0 (sd7):
Oct 13 18:17:48 nt3-1-bur09-a   Corrupt label; wrong magic number


The error messages above indicate that the volume must be labled, as done in the format below.  Obtain a status of the new volume:

# ./sas2ircu-6.250.02.00 1 status
LSI Corporation SAS2 IR Configuration Utility.
Version 6.250.02.00 (2010.06.30)
Copyright (c) 2009-2010 LSI Corporation. All rights reserved.

Background command progress status for controller 1...
IR Volume 1
  Volume ID                               : 905
  Current operation                       : Background Init
  Volume status                           : Enabled
  Volume state                            : Optimal
  Physical disk I/Os                      : Not quiesced
  Volume size (in sectors)                : 583983104
  Number of remaining sectors             : 577978240
  Percentage complete                     : 1.03%
SAS2IRCU: Command STATUS Completed Successfully.
SAS2IRCU: Utility Completed Successfully.


Use format to label the new volume (& repartition if needed):

# format
Searching for disks...
Oct 13 18:26:06 nt3-1-bur09-a genunix: WARNING: preconfig failed: disk@g5000cca0153967a8
Oct 13 18:26:07 nt3-1-bur09-a scsi: WARNING: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0 (sd7):
Oct 13 18:26:07 nt3-1-bur09-a   Corrupt label; wrong magic number
done

c8t39188421D0677CFDd0: configured with capacity of 277.99GB


AVAILABLE DISK SELECTIONS:
       0. c0t5000CCA015375FECd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000cca015375fec
       1. c0t5000CCA0153846DCd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000cca0153846dc
       2. c8t39188421D0677CFDd0 <LSI-LogicalVolume-3000 cyl 65533 alt 2 hd 64 sec 139>
          /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0
Specify disk (enter its number): 2
selecting c8t39188421D0677CFDd0
[disk formatted]
Disk not labeled.  Label it now?
Oct 13 18:27:03 nt3-1-bur09-a scsi: WARNING: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0 (sd7):
Oct 13 18:27:03 nt3-1-bur09-a   Corrupt label; wrong magic number
y
Oct 13 18:27:39 nt3-1-bur09-a scsi: WARNING: /pci@400/pci@2/pci@0/pci@4/scsi@0/iport@v0/disk@w39188421d0677cfd,0 (sd7):
Oct 13 18:27:39 nt3-1-bur09-a   Corrupt label; wrong magic number

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p

PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit

partition> pr
Current partition table (unnamed):
Total disk cylinders available: 65533 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0 unassigned    wm       0                0         (0/0/0)             0
  1       swap    wu       0                0         (0/0/0)             0
  2     backup    wu       0 - 65532      277.99GB    (65533/0/0) 582981568
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6        usr    wm       0 - 65532      277.99GB    (65533/0/0) 582981568
  7 unassigned    wm       0                0         (0/0/0)             0

partition> q

FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> q


Notice that partition 6 contains all blocks.  Next create a new filesystem on it, & mount it on a new mount point:

# newfs /dev/rdsk/c8t39188421D0677CFDd0s6
newfs: construct a new file system /dev/rdsk/c8t39188421D0677CFDd0s6: (y/n)? y
Warning: 4160 sector(s) in last cylinder unallocated
/dev/rdsk/c8t39188421D0677CFDd0s6:      582981568 sectors in 94887 cylinders of 48 tracks, 128 sectors
        284659.0MB in 5931 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
...............................................................................
.......................................
super-block backups for last 10 cylinder groups at:
 582062240, 582160672, 582259104, 582357536, 582455968, 582554400, 582652832,
 582751264, 582849696, 582948128

# mkdir /mirror
# mount /dev/dsk/c8t39188421D0677CFDd0s6 /mirror
# ls /mirror
lost+found


Finally, add it to vfstab so that it mounts on boot:

# cat /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t5000CCA015375FECd0s1        -       -       swap    -       no      -
/dev/dsk/c0t5000CCA015375FECd0s0        /dev/rdsk/c0t5000CCA015375FECd0s0       /       ufs     1       no      -
/devices        -       /devices        devfs   -       no      -
sharefs -       /etc/dfs/sharetab       sharefs -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/dsk/c8t39188421D0677CFDd0s6        /dev/rdsk/c8t39188421D0677CFDd0s6       /mirror ufs     2       yes     -



Attachments
This solution has no attachment
  Copyright © 2012 Sun Microsystems, Inc.  All rights reserved.
 Feedback