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-1018618.1
Update Date:2010-10-08
Keywords:

Solution Type  Technical Instruction Sure

Solution  1018618.1 :   Automating "vol verify" on a Sun StorEdge[TM] T3 Array  


Related Items
  • Sun Storage T3 Array
  •  
  • Sun Storage T3+ Array
  •  
Related Categories
  • GCS>Sun Microsystems>Storage - Disk>Modular Disk - Other
  •  

PreviouslyPublishedAs
230313


Description
"vol verify" on the Sun StorEdge[TM] T3 using firmware 2.x may be automated by using a shell
script and cron.
NOTE

- 2.x Firmware
The appropriate method of automating the run of "vol verify" on 2.x or lower
firmware is through StorADE.

- 3.x Firmware
Sun strongly recommends having T3 firmware 3.x "disk_scrubber" parameter set to ON.

-Why is having T3 firmware 3.x "disk_scrubber" parameter set to ON strongly recommend?
The whole point of 3.x having disk_scrubber is to prevent a much bigger issue
of data loss due to multiple disk failure "before" it's too late. The "disk_scrubber" should
NOT be switched off.



Steps to Follow
1. Create a shell script on the host that has access to the T3.
Locate this script in a safe directory on the host.
 ----------------------------------------------------------------
#!/bin/sh
# t3-auto.sh  -- Script to automate the vol verify vix procedure
 (sleep 5;echo "root";\
sleep 5;echo "[t3 password]";\
sleep 5;echo "vol verify $1 fix rate 8";\
sleep 5;echo "y";\
sleep 5;echo "exit")| telnet [T3 HostName] >> [Log file on Host]
----------------------------------------------------------------

2.Edit the crontab file for the user that has access to the T3
Edit crontab to be execute the shell script created in step 1 above.

<example>
In the following example, the T3 in question has two volumes, v0 and v1.
the goal is to automate a "vol verify" for these two volumes.  The shell
script t3-auto.sh was created as shown above.
- t3-auto.sh
----------------------------------------------------------------
#!/bin/sh
# t3-auto.sh  -- Script to automate the vol verify fix procedure
 (sleep 5;echo "root";\
sleep 5;echo "root";\
sleep 5;echo "vol verify $1 fix rate 8";\
sleep 5;echo "y";\
sleep 5;echo "exit")| telnet t3 >> /var/tmp/t3-verify.log
----------------------------------------------------------------

The following two lines (one for each volume) have been added to
the crontab file.

- crontab

 ----------------------------------------------------------------
00 00 * * * /var/tmp/shima/t3-auto.sh v0
00 03 * * * /var/tmp/shima/t3-auto.sh v1
----------------------------------------------------------------

After the script runs, you can see the following vol verify messages
in the T3 syslog.

 Nov 18 15:58:36 sh06[1]: N: vol verify v0 fix rate 8
Nov 18 15:58:42 sh06[1]: N: Vol verify started for volume (Raid set) v0
Nov 18 17:01:18 sh06[1]: N: Vol verify ended for volume (Raid set) v0
Nov 18 18:58:36 sh07[1]: N: vol verify v1 fix rate 8
Nov 18 18:58:42 sh07[1]: N: Vol verify started for volume (Raid set) v1
Nov 18 20:01:21 sh07[1]: N: Vol verify ended for volume (Raid set) v1

This procedure will be helpful because a check has been added to T3A(New firmware) and
T3B which requires the operator to confirm the 'vol verify' with a "y" prior to execution. The procedure
above provides a means to script the process and provide the answer to the check question below.

 t3:/:<20>vol verify v0 fix rate 8
WARNING - Volume verification can take a significant amount of time.
Continue ? [N]:      <--- need to input "y"


Product
Sun StorageTek T3+ Array
Sun StorageTek T3 Array
Sun StorageTek T3+/6X20 Controller Firmware 3.1
Sun StorageTek T3+ Array Controller FW 2.1

T3, T3+, vol verify, Automation, Automatic, cron, crontab, Auto, 2.x, 3.x
Previously Published As
79242

Change History
Date: 2005-06-19
User Name: 7058
Action: Approved
Comment: Corrected grammar in a few places in the document.
Reformatted using STM for clarity.
Updated review date.
OK to republish.

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