InfoDoc ID   Synopsis   Date
17736   RM6 - Reset configuration in Sun StorEdge[TM] A1000 /Sun StorEdge[TM] A3000 to factory LUN defaults   22 Nov 2002

Status Issued

Description
DISTRIBUTION:  For internal distribution only.


KEYWORDS:  Sonoma, RSM2000, A3000, A1000, SYMBIOS, LSI, StorEdge, LUN, RM6, Storage


PROBLEM:  Occasionally an A1000 or A3000 disk-array needs to have
	the LUN configuration completely reset, either because of
	non-factory settings in the drive or other configuration
	problem.

NOTE:  The following procedure wipes clean the configuration,
	including deleting all information on all LUNS.
	
	!! This procedure should only be used after all customer data on
	all LUNS have been backed up to offline storage (e.g. tape).  The
	customer data will need to be restored from offline storage after
	the Reset-configuration has been performed and LUNS have been
	rebuilt. !!

	The procedure resets the configuration on an A1000/A3X00 back to
	it's original factory-shipped state, with one LUN, LUN 0, which is 10MB
        in size.
	
	Reset config will work as long as the raid module is in optimal
	status without failed controller or dead/degraded LUNs.
	
	
PROCEDURE:  

GUI: Choose "Reset Configuration" under the file menu

CLI: Use "raidutil -c c#t#d# -X" from the command-line.

IF THE ABOVE PROCEDURE FAILS:

Under certain situation the above procedure(s) fail(s).  Known reasons for
this procedure failing include having non-optimal status e.g.
dead/degraded LUNS.  (Note that a customer would be unable to backup the
data on a LUN if the LUN is in a dead state, so engineers should be quite
certain that the customer-data has been previously satisfactorily backed
up and that the LUN can therefore safely be wiped/deleted, before
proceeding).


 FOR A1000:

If more than one lun was originally created on the A1000, we'll see these luns referenced
in "probe-scsi-all" by "Disk":

 ok probe-scsi-all
 /pci@1f,0/pci@1/pci@1/scsi@f,1
 Target 5
   Unit 0   Disk     Symbios StorEDGE A1000  0301  <-------------- LUN0
   Unit 1   Disk     Symbios StorEDGE A1000  0301  <-------------- LUN1
   Unit 2   Disk     Symbios StorEDGE A1000  0301  <-------------- LUN2
   Unit 3   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 4   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 5   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 6   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 7   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured

After the reset configuration procedures below, we'll see the default LUN 0 only:

 ok probe-scsi-all
 /pci@1f,0/pci@1/pci@1/scsi@f,1
 Target 5
   Unit 0   Disk     Symbios StorEDGE A1000  0301  <-------------- Default Lun0
   Unit 1   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 2   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 3   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 4   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 5   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 6   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured
   Unit 7   Device type 20     Symbios StorEDGE A1000  0301 <----- No lun configured

Note: If only one LUN was originally created on the A1000, unfortunatly there will be 
no way to tell via the OBP if the default configuration has been restored.  You will 
have to boot the system after step 9 and verify the 10MB default LUN0 has been restored, 
repeating steps 4-9 if it hasn't.


Reset Configuration Procedures:

1. Bring system down to OBP

2. "setenv auto-boot? false" and "reset-all"

3. "setenv auto-boot? true"

4. Run probe-scsi-all, note the luns seen currently

5. Power the A1000 down 

6. Remove all of the drives but the one in slot 0 (far left)

7. Remove the battery unit from the back

8. Wait at least 60 seconds and put battery back in

9. Power on A1000 and run probe-scsi-all

10a. If you do not see *ONLY* Unit 0 showing "Disk   Symbios StorEDGE A1000" the 
configuration has not been reset.  Repeat steps 4-9 but trying the next disk to 
the right (slot 1).  Since the DACStore (Config info) is located on 3 RANDOM disks 
in the A1000, this procedure will have to be performed at least 4 times, looking 
for the disk that does NOT contain the DACStore.

10b. If *ONLY* Unit 0 is showing "Disk   Symbios" you have successfully reset the 
configuration to factory defaults.  Continue with step 11

11. Boot system with "boot -r"

12. Run /usr/sbin/osa/lad (note the c#t#d#)
  # /usr/sbin/osa/lad    
  c3t5d0 1T81410730 LUNS: 0 

13. Run /usr/sbin/osa/drivutil -i c#t#d#

14. Note that all disks are optimal and push in the next disk on A1000.  If a disk 
comes up as "failed", bring up /usr/sbin/osa/rm6 and reset the configuration for 
the A1000.  (rm6->Configuration->File->Reset configuration or 
/usr/lib/osa/raidutil -c c#t#d# -X).  Verify all disks return to optimal and 
continue.

15. Repeat 13-14 until all disks are pushed in and all come up as optimal.  


FOR A3X00:

The only way to reset the configuration if the GUI/raidutil commands
fail, is to issue a command through the serial port.   The A3000 has a
serial-cable for A3000 only.  (There is a different cable for A1000,
though the A1000-cable is not needed for this reset-config operation as
detailed above).

The cable and detailed instructions on how to use the cable and issue the
command, are available for usage by Sun Field Engineers only.  Sun Field
Engineers can obtain the cable and documentation from Sun Storage Aces
and Area SSE's. 


--                                                      
SUBMITTER: Bede Seymour APPLIES TO: Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge A1000, Hardware/Disk Storage Subsystem/StorEdge Disk Array/StorEdge A3000, Storage/RAID Manager, AFO Vertical Team Docs/Storage ATTACHMENTS:


Copyright (c) 1997-2003 Sun Microsystems, Inc.