Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Technical Instruction Sure Solution 1018618.1 : Automating "vol verify" on a Sun StorEdge[TM] T3 Array
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 - 3.x Firmware -Why is having T3 firmware 3.x "disk_scrubber" parameter set to ON strongly recommend? 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 <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 - 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 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 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 |
||||||||||||
|