background image

28

        SHOWENV

SHOWENV

Displays the current environment variable settings.

Syntax

showenv

Description

This command displays the current value of these environment variables: ARRAYINDEX, 
TESTDEVICE, LOOPPAIR, ENCLOSURE, SLOT, RANGE, and FRU.

Example

VADIAG> showenv

ArrayIndex:

0

TestDevice:

Controller

LoopPair:

255

EnclosureID:

0

Slot:

0

Range:

NOT SET

FRU:

M/C0

Summary of Contents for StorageWorks 7110 - Virtual Array

Page 1: ...et serial number DISKINFO Displays revision information for the selected array and disks installed in each JBOD enclosure DISKSTATE Displays the state of the disks installed in the array enclosures including the Map disks DOWNLOAD Downloads the image file to the specified array controller disk or JOBOD LCC ENCLOSURE Selects the JBOD enclosure connected to the selected array FRU Selects the specifi...

Page 2: ...he selected array controller SHOWENV Displays the current settings for these variables CONTROLLER ENCLOSURE LOOPPAIR RANGE SLOT and TESTDEVICE SHUTDOWN Puts the selected array in the shutdown state SLOT Selects the specified disk for testing TESTDEVICE Selects the specified controller disk or JBOD LCC for testing UNSETVARS Unsets these variables DISK ENCLOSURE LOOPPAIR SLOT and TESTDEVICE UTILINFO...

Page 3: ...rray to be tested while the LOOPPAIR ENCLOSURE and SLOT variables select the appropriate component within the array Changing the value of ARRAYINDEX causes the value of LOOPPAIR ENCLOSURE and SLOT to be set to NOT SET You must set these variables to an appropriate value Options arrayindex A device index number returned by the dispmap command Examples To display the current value of ARRAYINDEX VADI...

Page 4: ...CLRLOG Clears device logs Syntax clrlog Description This command clears the selected device logs Use either the testdevice or fru command to select controller or disk logs within the array Example VADIAG clrlog ...

Page 5: ...ate a LUN VADIAG createlun Do you want to create a Snapshot LUN y n n Enter the number of the LUN to create 7 Enter the LUN size in the form capacity MB or capacity GB 10MB LUN 7 was successfully created To create a snapshot LUN VADIAG createlun Do you want to create a Snapshot LUN y n y Enter the number of the Snapshot LUN to create 8 Enter the number of the Snapshot Parent LUN 7 LUN 8 was succes...

Page 6: ...previously used physical storage is freed Example VADIAG deletelun Enter the number of the LUN to delete 8 D A T A L O S S W A R N I N G Continuing with DELETELUN WILL DEFINITELY RESULT IN DATA LOSS All information stored on the LUN to be deleted will be lost and the physical storage previously used will be freed LUN 8 Selected Delete selected LUN y n y LUN 8 was successfully deleted ...

Page 7: ...ruLocation d FruLocation Display disk information or display information for the disk identified by FruLocation e FruLocation Display enclosure information or display information for the enclosure identified by FruLocation f Display a summary of all elements in the array l LUN Display the current LUN information or display information for the LUN identified by LUN m Display the missing disks use v...

Page 8: ... Array State System Warning Firmware Version 38370HP01P0330010935 Product Revision IJMTU00004 CAPACITY USAGE MB 2 20 Total Disk Enclosures 1 Total Disks 7 Total Physical Size 170893 MB Allocated to Non SnapShot LUNs 15360 MB Configured as SnapShot LUNs 15360 MB Used as Active Hot Spare 68359 MB Used by Non Included Disks 0 MB Used for Redundancy 61880 MB Unallocated avail for LUNs 9934 MB THE FOLL...

Page 9: ...a list of all the firmware files found on the LIF Logical Interchange Format volume The list contains the following information File name Firmware file s name Intended Product ID Firmware file s intended product Rev New revision contained in the firmware file Size Exact byte size of the firmware image Example VADIAG dispfiles ...

Page 10: ...ct is the same as the PDC and MAPPER s path An array with dual controllers has two different logical paths Therefore two different device index numbers will access the same array Product ID Product identification This is what MAPPER displays as the product string Rev The disk drive s firmware revision Size The approximate size of the LUN in either megabytes MB gigabytes GB or terabytes TB The size...

Page 11: ...f the disk is used for user data storage US meta data storage MS Map Disk or both Example VADIAG dispvolset Fru Map User Drive State Rev Capacity Volume Set Serial Number M D7 US MS Included HPK0 34179 MB 000004F60000002A M D8 US MS Included HPK1 17089 MB 000004F60000002A M D12 US Included HPK1 17089 MB 000004F60000002A M D3 US Included HPK1 17089 MB 000004F60000002A M D4 US Included HPC2 17089 MB...

Page 12: ...lot Example VADIAG diskinfo Fru Loop Pair EID Disk Slot Map User Vendor ID Product ID Rev Capacity M D7 255 0 22 US MS HP 18 2G ST318451FC HPC4 17089 MB M D1 255 0 16 US MS HP 18 2G ST318451FC HPC4 17089 MB M D3 255 0 18 US HP 18 2G ST318451FC HPC4 17089 MB M D5 255 0 20 US HP 18 2G ST318451FC HPC4 17089 MB JA0 D1 0 0 0 US HP 18 2G ST318451FC HPC4 17089 MB JA0 D2 0 0 1 US HP 18 2G ST318451FC HPC4 ...

Page 13: ...s the selected disk slot The Initialization State column indicates the result of the controller s attempt to initialize the disk during power on or disk addition Example VADIAG diskstate Fru Loop Pair EID Disk Slot Map User Drive State Initialization State M D7 255 0 22 US MS Included Ready M D1 255 0 16 US MS Included Ready M D3 255 0 18 US Included Ready M D5 255 0 20 US Included Ready JA0 D1 0 ...

Page 14: ...ued the download This command warns you if the firmware file is not compatible with the selected array Because this command is potentially damaging if misused download always displays the following message just before performing the download WARNING This command is destructive and downloading an incorrect firmware file will render your disk drive useless Also do not switch anything on or off on th...

Page 15: ...variable which is used to access JBOD LCCs and disks The ENCLOSURE variable along with the LOOPPAIR and SLOT variables identify the component of interest The ENCLOSURE variable should always be set to a value of 0 Examples To set the enclosure ID to 0 VADIAG enclosure 0 To display the current value of ENCLOSURE VADIAG enclosure EnclosureID 0 ...

Page 16: ...subsystem or an internal disk Syntax format Description This command formats the entire array subsystem or an internal disk A subsystem format is rejected if any LUNs exist Example To format internal disk 3 VADIAG fru m d3 VADIAG format ...

Page 17: ...r the selected component it sets the correct values for the LOOPPAIR ENCLOSURE SLOT and TESTDEVICE variables You can manually set these variables but it is much easier and less error prone to use the fru command Examples To select disk 2 in the main enclosure VADIAG fru m d2 To select controller 0 VADIAG fru m c0 To display the current value of FRU VADIAG fru FRU M C1 ...

Page 18: ... inquiry Description This command returns SCSI Inquiry data on the selected FRU You can select a controller a disk or a JBOD LCC with the testdevice or fru command Example To issue an inquiry command to drive 2 in the main enclosure VADIAG fru m d2 VADIAG inquiry ...

Page 19: ...d to the array The EID column shows the enclosure ID A value of 0xFF in the Slot column indicates that the lccinfo command could not determine the LCC s slot location An asterisk in the Slot column indicates the selected LCC Example VADIAG lccinfo Fru Loop Pair EID Slot Vendor ID Product ID Rev State State Value JA0 C0 0 0 128 HP A6214A HPP1 Ready 0x01 JA0 C1 0 0 129 HP A6214A HPP1 Ready 0x01 ...

Page 20: ...hich is used to access JBOD LCCs and disks The LOOPPAIR variable along with the ENCLOSURE and SLOT variables identify the component of interest The LOOPPAIR variable should always be set to a value of 255 Examples To set the loop pair to 255 VADIAG looppair 255 To display the current value of LOOPPAIR VADIAG looppair LoopPair 255 ...

Page 21: ...cription This command selects multiple blocks for testing by the romt and wrtmt commands The value of the RANGE variable identifies the selected blocks Examples To select block 4000 and blocks 6000 through 7000 VADIAG range 4000 6000 7000 To display the value of the RANGE variable VADIAG range The selected disk has blocks from 0 to 20971519 Range NOT SET ...

Page 22: ...s Syntax readlog Description This command returns the selected internal device logs You can select controller logs or disk logs using the testdevice or fru command Example To read the logs from controller 0 VADIAG fru m c0 VADIAG readlog ...

Page 23: ...struct data mapping and array configuration information from the physical drives after the loss of NVRAM contents The recover operation also performs a parity scan to correct any drive parity inconsistencies This command is typically used when the subsystem is in the No Map state The readlog command can be used to help evaluate the results after using the recover command ...

Page 24: ...tax reqsense Description This command returns SCSI Sense data on the selected FRU You can select a controller a disk or a JBOD LCC with the testdevice or fru command Example To issue a reqsense command to controller 0 VADIAG fru m c0 VADIAG reqsense ...

Page 25: ...RESETARRAY 25 Using VADIAG on HP UX RESETARRAY Issues a hard reset to the array Syntax resetarray Description This command causes the array to perform a hard reset Example VADIAG resetarray ...

Page 26: ...sk It is designed to test only internal disks and not the array itself Use either the enclosure looppair and slot commands or the fru command to select the disk for testing Pressing either Ctrl c or Ctrl y causes the test to abort Example To execute a test on disk 2 in the main enclosure VADIAG fru m d2 VADIAG romt ...

Page 27: ...sired OFF 19 Reserved 0 4 Part OFF 20 Enable Manual Override OFF 5 Rebuild in Progress OFF 21 Manual Override Destination OFF 6 Auto Rebuild ON 22 Embedded Processor Download OFF 7 Auto Include ON 23 Language English 8 Balance in Progress OFF 24 Capacity Depletion Threshold 0 9 Optimize in Progress OFF 25 Reserved 0 10 Migrating Write Destination OFF 26 Write Working Set Interval 8640 11 LUN Secur...

Page 28: ...Syntax showenv Description This command displays the current value of these environment variables ARRAYINDEX TESTDEVICE LOOPPAIR ENCLOSURE SLOT RANGE and FRU Example VADIAG showenv ArrayIndex 0 TestDevice Controller LoopPair 255 EnclosureID 0 Slot 0 Range NOT SET FRU M C0 ...

Page 29: ...on HP UX SHUTDOWN Puts the array into the shutdown state Syntax shutdown Description This command requests that the array stop normal I O operation and save all map information to physical drive storage Example VADIAG shutdown ...

Page 30: ...e component of interest It might be easier to use the fru command to identify the component because it automatically sets the LOOPPAIR ENCLOSURE and SLOT variables In ODE the main enclosure disk slots 1 15 are in the range of 16 through 30 Examples To select the disk in slot 9 VADIAG slot 24 16 9 1 VADIAG looppair 255 main enclosure VADIAG enclosure 0 main enclosure To display the current value of...

Page 31: ...ecute the command then the TESTDEVICE variable will not have any meaning because the command will still go to the controller even if TESTDEVICE is set to the disk It might be easier to use the fru command to select the device because it automatically sets the LOOPPAIR ENCLOSURE SLOT and TESTDEVICE variables Examples To set the testdevice to the controller for a firmware download VADIAG testdevice ...

Page 32: ...mand lets you unset or clear the following environment variables TESTDEVICE LOOPPAIR ENCLOSURE SLOT RANGE and FRU The variables are changed to a NOT SET condition Example VADIAG unsetvars ArrayIndex 0 TestDevice NOT SET LoopPair NOT SET EnclosureID NOT SET Slot NOT SET Range NOT SET FRU NOT SET ...

Page 33: ...UTILINFO 33 Using VADIAG on HP UX UTILINFO Utility Information Syntax utilinfo Description This command describes how to run VADIAG in some scenarios Example VADIAG utilinfo ...

Page 34: ...t only internal disks and not the array itself Use either the enclosure looppair and slot commands or the fru command to select the disk for testing Pressing either Ctrl c or Ctrl y causes the test to abort WARNING This is a destructive command and can cause data loss Example To execute a test on disk 2 in the main enclosure VADIAG fru m d2 VADIAG wrtmt ...

Reviews: