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

Asset ID: 1-71-1008196.1
Update Date:2009-05-27
Keywords:

Solution Type  Technical Instruction Sure

Solution  1008196.1 :   Recreate lun mapping from show configuration on a Sun StorEdge[TM]3000 array  


Related Items
  • Sun Storage 3510 FC Array
  •  
  • Sun Storage 3310 Array
  •  
  • Sun Storage 3511 SATA Array
  •  
  • Sun Storage 3320 SCSI Array
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Modular Disk - 3xxx Arrays
  •  

PreviouslyPublishedAs
211255


Description
This procedure shows how to recreate lun mapping from a show configuration or a show lun map file on a Sun StorEdge[TM]3000 array after a failed upgrade (for example) or a reset to factory default


Steps to Follow
This document explains how to recreate mapping for a Sun StorEdge[TM]3000 array after controllers were reset to factory defaults (for example, after a failed upgrade of controller firmware)

Pre-requisite:
--------------

  • Installed sccli release ( SUNWsscs installed pkg should be compliant with the used Sun StorEdge[TM]3000 array). You can find SUNWsscs package at the following URL : http://www.sun.com/download -> Storage Management -> Sun StorEdge [tm] 3000 Family Storage Products--Related Software
  • A previous and correct show configuration output containing lun mapping informations ( or a show_lun-map from se3kxtr or explorer)
  • having targets settings for the used host channels
  • IP address of the Sun StorEdge[TM]3000 array is set
  • no remainder of a previous lun mapping to avoid duplication mapping

1)After having set the correct targets for all used host channels, extract the mapping information from show configuration (or show_lun-map) to a file (for example : lun_map.txt)

It should look like this (after removing the header) :

#cat /<path_to_file>/lun_map.txt
0 33 0 ld1 4B21FCF5-00 Secondary 210100E08B3D7B7B
0 33 0 ld1 4B21FCF5-00 Secondary 210100E08B3DDD7E
0 33 1 ld1 4B21FCF5-01 Secondary 210100E08B3D7B7B
(...)

2) Here is a script to (re-)create lun mapping as the original one

% more script_mapping
#! /bin/sh

while read LINE
do
set $LINE
PARTITION=$5
CHANNEL=$1
TARGET=$2
LUN=$3
WWPN=$7
sccli <device> map $PARTITION $CHANNEL.$TARGET.$LUN $WWPN
done

or a shorter one

% more script_mapping (compact)
#! /bin/sh

while read LINE
do
set $LINE
sccli <device> map $5 $1.$2.$3 $7
done

<device> is the IP address of the array or the appropriate /dev/rdsk/cXtYdZs2 listed after executing sccli command with no argument

3)Use the script:

#./script_mapping < /<path_to_file>/lun_map.txt

Notice :
--------
. make sure the script is executable
. Field WWPN for lun filtering is optional (depending on customer's configuration) (See help map in sccli> )



Product
Sun StorageTek 3511 SATA Array
Sun StorageTek 3510 FC Array
Sun StorageTek 3320 SCSI Array
Sun StorageTek 3310 SCSI Array

Internal Comments
This document contains normalized content and is managed by the the Domain Lead(s) of the respective domains. To notify content owners of a knowledge gap contained in this document, and/or prior to updating this document, please contact the domain engineers that are managing this document via the “Document Feedback” alias(es) listed below:

[email protected]


The Knowledge Work Queue for this article is KNO-STO-VOLUME_DISK
3310, 3510, 3511, se3310, se3510, se3511, se3x10, minnow, Minnow, sccli, lun, map, reset, factory, defaults, configuration, original, show, configuration, audited, normalized
Previously Published As
88691

Change History
Date: 2007-05-25
User Name: 31620
Action: Approved
Comment: Verified Metadata - ok
Verified Keywords - ok
Verified still correct for audience - currently set to contract
Audience left at contract as per FvF at
http://kmo.central/howto/content/voyager-contributor-standards.html
Checked review date - currently set to 2008-03-05
Checked for TM - ok as presented
Publishing under the current publication rules of 18 Apr 2005:
Checked for the word normalized - did not, had the word normaliize, added mormalize"d"
Version: 8
Date: 2007-05-22
User Name: 31620

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