No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Advanced O&M Command Reference

OceanStor 2800 V5 V500R007

This document is applicable to OceanStor 2800 V5. Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
disktool

disktool

Function

The disktool command is used to obtain disk information to facilitate disk fault analysis and diagnosis.

Format

disktool {-h | -v | -x filesize | -t filename | -u filename | -D path | -d mode | -m mode | -s | -f a /dev/sd... | -f i /dev/sd... | -f b /dev/sd... | -f A | -f C /dev/sd... | -f R /dev/sd... | -f S /dev/sd... | -f r -a LBA -l length /dev/sd... | -f t -a LBA -l length -C bytes /dev/sd... | -f v -a LBA -l length /dev/sd... | -f d /dev/sd... | -f e /dev/sd... | -f o /dev/sd... | -f I -b SAS/SATA -z ST/WD/HG/HW/TB/SD /dev/sd… | -S r /dev/sd... | -S D /dev/sd... | -S E /dev/sd... | -f u -w FILENAME /dev/sd... | -f s /dev/sd... | -f w -a startLBA -l length -C 0x00 -I mode /dev/sd... | SCAN -h | SCAN -s -d sd... | SCAN -s -a | SCAN -x -d sd... | SCAN -x -a | -A E /dev/sd... | -A F /dev/sd... | -A m /dev/sd... | -A u /dev/sd... | -A D /dev/sd... | -A G /dev/sd... | -A S -V value /dev/sd... | -A M -z getERC /dev/sd... | -A M -z setERC -V value /dev/sd... | -A M -z setAWRE -V value /dev/sd... | -A M -z setARRE -V value /dev/sd... | -A M -z setPER -V value /dev/sd... | -A b /dev/sd... | -A c /dev/sd... | -A d /dev/sd... | -A e /dev/sd... | -A g /dev/sd... | -A l /dev/sd... | -A s /dev/sd... | -A t /dev/sd... | -f c /dev/sd... | -f l /dev/sd... | -f n -w firmware /dev/sd... | DISKFORMAT -h | DISKFORMAT -s sectorsize -d sd… | DISKFORMAT -s sectorsize -a | DISKFORMAT -q -d sd... | -f X -c CDB -i buffer_length /dev/sd... | -f X -c CDB -o buffer_length -b buffer_value /dev/sd... | -f X -c CDB /dev/sd... | -A o -z smartval /dev/sd... | -A o -z smartthr /dev/sd... | -A o -z log /dev/sd... | -A o -z log2 /dev/sd... | -A o -z log3 /dev/sd... | -A o -z log4 /dev/sd... | -A o -z queue /dev/sd... | -A o -z global /dev/sd... | -A o -z blankcnt /dev/sd... | -A o -z getio /dev/sd... | -A o -z getwwn /dev/sd... | -A o -z getsn /dev/sd... | -A o -z getmodel /dev/sd... | -A o -z getflag /dev/sd... | -A o -z getflash /dev/sd... | -A o -z getnfc /dev/sd... | -A o -z getspeed /dev/sd... | -A o -z setwwn -w wwnnumber/dev/sd... | -A o -z setsn -w snnumber/dev/sd... |-A o -z setmodel -w modelnumber/dev/sd... | -A o -z setflag -w flagnumber/dev/sd... | -A o -z startcap /dev/sd... | -A o -z setcycle -l cycle /dev/sd... | -A o -z setfreq -l freq /dev/sd... | -A o -z tempthres -l value /dev/sd... | -A o -z repaircap -l capnum -a capvalue /dev/sd... | -A o -z rwrecovery /dev/sd... | -A o -z poweroff /dev/sd... | -A o -z resetwatchdog /dev/sd... | -A o -z restart /dev/sd... | -A o -z closeinterface /dev/sd... | -A o -z retryon /dev/sd... | -A o -z retryoff /dev/sd... | -A o -z trimall /dev/sd... | -A o -z trim -a startLBA -l length /dev/sd... | -A o -z c /dev/sd... | -A o -z time /dev/sd... | -v loaderFile/firmwareFile | -A o -z loader -w loaderFile /dev/sd... | -f U -z loaderFile -w firmwareFile /dev/sd... | -A o -z getbarcode /dev/sd... | -A o -z getelabel /dev/sd... | -A o -z usefullog /dev/sd... | -A o -z getExtendLog /dev/sd... | -A o -z startDeepRecover /dev/sd... | -A o -z statlog /dev/sd... | -S s /dev/sd... | -S U /dev/sd... | -S M /dev/sd... | -S G /dev/sd... | -S P /dev/sd... | -S R /dev/sd... | -S H /dev/sd... | -S c /dev/sd... | -S C /dev/sd... | -S I /dev/sd... | -S S -V value /dev/sd... | -S d /dev/sd... | -S e /dev/sd... | -S f -R mode -V value /dev/sd... | -S g /dev/sd... | -S l /dev/sd... | -S m /dev/sd... | -S n /dev/sd... | -S o /dev/sd... | -S p /dev/sd... | -S v /dev/sd... | -S w /dev/sd... | -S 8 /dev/sd... | -f x -c CDB -i buffer_length /dev/sd... | -f x -c CDB -o buffer_length -b buffer_value /dev/sd... | -f x -c CDB /dev/sd... | -S T -z triminfo /dev/sd... | -S T -z trimall /dev/sd... | -S T -z trim -a startLBA -l length /dev/sd... | -S t -z log /dev/sd... | -S t -z log2 /dev/sd... | -S t -z tail /dev/sd... | -S t -z head /dev/sd... | -S t -z flag /dev/sd... | -S t -z wear /dev/sd... | -S t -z system /dev/sd... | -S t -z blankcnt /dev/sd... | -S t -z blank /dev/sd... | -S t -z badblock /dev/sd... | -S t -z pend /dev/sd... | -S t -z a /dev/sd... | -S t -z clean /dev/sd... | -S t -z trim /dev/sd... | -S t -z trimflag /dev/sd... | -A C /dev/sd... | -A O /dev/sd... | -A R -c mode /dev/sd... | -A W -c mode -C WWN /dev/sd... | -A f /dev/sd... | -A r /dev/sd... | -f F -w FILE /dev/sd... | -T u /dev/sd... | -T s /dev/sd... | -T B -B value /dev/sd... | -T F -B value /dev/sd... | -T L -B value /dev/sd... | -T K -B value /dev/sd... | -T P -B value /dev/sd... | -T C /dev/sd... | -f q | -T S -B value /dev/sd... | -T W -B value /dev/sd... | -f L -a LBA /dev/sd... | -f P -p CHS /dev/sd... | -f m -a LBA /dev/sd...}

Parameters

Parameter

Description

Value

-h

Obtains the help information.

-

-v

Views the version.

-

-x filesize

Limits the log size.

-

-t filename

Saves logs to a specified file.

-

-u filename

Saves binary data to a specified file.

-

-D path

Sets the default path.

-

-d mode

Sets detailed information printing.

-

-m mode

Sets the firmware download mode.

-

-s

Scans for SAS, SATA, or Fibre Channel disks connected to the device.

-

-f a /dev/sd…

Views the SMART and log information of a single disk.

-

-f i /dev/sd…

Views the basic information about disks.

-

-f b /dev/sd…

Check whether the disk supports the writesame command.

-

-f A

Collects the SMART and log information of all connected disks.

-

-f C /dev/sd…

Views the sector size of SAS disks.

-

-f R /dev/sd…

Starts the rotation of disks.

-

-f S /dev/sd…

Stops the rotation of disks.

-

-f r -a LBA -l length /dev/sd…

Writes disk information at a specific location (disabled).

-

-f t -a LBA -l length -C bytes /dev/sd…

Reads disk information at a specific location.

-

-f v -a LBA -l length /dev/sd…

Confirms the specified address of SAS disks.

-

-f d /dev/sd…

Disables the write cache of disks.

-

-f e /dev/sd…

Enables the write cache of disks.

-

-f o /dev/sd…

Views the write cache of disks.

-

-f I -b SAS/SATA -z ST/WD/HG/TB/HW/SD /dev/sd…

Collects the internal log of the specified disk.

-

-S r /dev/sd…

Views the self-scan log information of disks.

-

-S D /dev/sd…

Disables the PRE-SCAN of SAS disks.

-

-S E /dev/sd…

Enables the PRE-SCAN of SAS disks.

-

-f u -w FILENAME /dev/sd…

Upgrades disk firmware.

-

-f s /dev/sd…

Scans information about a single disk.

-

-f w -a startLBA -l length -C 0x00 -I mode /dev/sd...

Performs writesame for a specific disk area (disabled).

-

SCAN -h

Globally scans disks and obtains the help information.

-

SCAN -s -d sd…

Globally scans a specified disk. During the full scan, ensure that no service is running on the disk. Otherwise, the scanning result is inaccurate. Do not run the scan command repeatedly. The command execution will fail before the full scan is complete.

-

SCAN -s -a

Globally scans all disks of a disk array. During the full scan, ensure that no service is running on the disk. Otherwise, the scanning result is inaccurate. Do not run the scan command repeatedly. The command execution will fail before the full scan is complete.

-

SCAN -x -d sd…

Stops global scanning for a specific disk.

-

SCAN -x -a

Stops global scanning for all disks of a disk array.

-

-A E /dev/sd...

Obtains the internal logs of Hitachi SAS disks.

-

-A F /dev/sd…

Obtains the internal logs of Toshiba SAS disks.

-

-A m /dev/sd…

Views the internal Log SM2 information of Seagate SAS disks.

-

-A u /dev/sd…

Views the internal Log UDS information of Seagate SAS disks.

-

-A D /dev/sd…

Views the internal log of SanDisk SAS disks.

-

-A G /dev/sd…

Views the MRIE value of SAS disks.

-

-A S -V value /dev/sd…

Sets the MRIE value of SAS disks.

-

-A M -z getERC /dev/sd…

Obtains the ERC value of SAS disks.

-

-A M -z setERC -V value /dev/sd…

Sets the ERC value of SAS disks.

-

-A M -z setAWRE -V value /dev/sd…

Sets the AWRE value of SAS disks.

-

-A M -z setARRE -V value /dev/sd…

Sets the ARRE value of SAS disks.

-

-A M -z setPER -V value /dev/sd…

Sets the PER value of SAS disks.

-

-A b /dev/sd…

Views the BMS log information of SAS disks.

-

-A c /dev/sd…

Views the start and stop times of SAS disks.

-

-A d /dev/sd…

Views the self-check log information of SAS disks.

-

-A e /dev/sd…

Views the error counter log information of SAS disks.

-

-A g /dev/sd…

Views the G-list of SAS disks.

-

-A l /dev/sd…

Views the log information supported by SAS disks.

-

-A s /dev/sd…

Views the Internet Explorer log information of SAS disks.

-

-A t /dev/sd…

Views the temperature log information of SAS disks.

-

-f c /dev/sd…

Disables the Ready Led of disks.

-

-f l /dev/sd…

Enables the Ready Led of disks.

-

-f n -w firmware /dev/sd…

Upgrades the firmware of SAS disks whose firmware is HS0A.

-

DISKFORMAT -h

Views the help information about disk formatting.

-

DISKFORMAT -s sectorsize -d sd...

Formats a specific disk.

-

DISKFORMAT -s sectorsize -a

Formats all disks.

-

DISKFORMAT -q -d sd...

Views the formatting progress.

-

-f X -c CDB -i buffer_length /dev/sd…

Sends self-defined commands.

-

-f X -c CDB -o buffer_length -b buffer_value /dev/sd…

Sends self-defined commands.

-

-f X -c CDB /dev/sd…

Sends self-defined commands.

-

-A o -z smartval /dev/sd…

Views the SMART value of HSSD SAS disks.

-

-A o -z smartthr /dev/sd…

Views the SMART threshold of HSSD SAS disks.

-

-A o -z log /dev/sd…

Views the log information of HSSD SAS disks.

-

-A o -z log2 /dev/sd…

Views the log 2 information of HSSD SAS disks.

-

-A o -z log3 /dev/sd…

Views the log 3 information of HSSD SAS disks.

-

-A o -z log4 /dev/sd…

Views the log 4 information of HSSD SAS disks.

-

-A o -z queue /dev/sd…

Obtains the command queue information of HSSD SAS disks.

-

-A o -z global /dev/sd…

Obtains the back-end information of HSSD SAS disks.

-

-A o -z blankcnt /dev/sd...

Obtains the blank block information of HSSD SAS disks.

-

-A o -z getio /dev/sd…

Makes statistics on I/Os to an HSSD SAS disk.

-

-A o -z getwwn /dev/sd…

Views the WWN of HSSD SAS disks.

-

-A o -z getsn /dev/sd…

Views the SN of HSSD SAS disks.

-

-A o -z getmodel /dev/sd…

Views the model number of HSSD SAS disks.

-

-A o -z getflag /dev/sd…

Views the flag information of HSSD SAS disks.

-

-A o -z getflash /dev/sd…

Obtains the flash chips of HSSD SAS disks.

-

-A o -z getnfc /dev/sd…

Obtains the NFC error count of HSSD SAS disks.

-

-A o -z getspeed /dev/sd…

Views the rate of HSSD SAS disks.

-

-A o -z setwwn -w wwnnumber /dev/sd…

Sets the WWN for HSSD SAS disks.

-

-A o -z setsn -w snnumber/dev/sd…

Sets the SN for HSSD SAS disks.

-

-A o -z setmodel -w modelnumber/dev/sd…

Sets the model number of HSSD SAS disks.

-

-A o -z setflag -w flagnumber/dev/sd…

Sets the flag information of HSSD SAS disks.

-

-A o -z startcap /dev/sd…

Enables a capacitance check for HSSD SAS disks.

-

-A o -z setcycle -l cycle /dev/sd…

Sets a capacitance check cycle for HSSD SAS disks.

-

-A o -z setfreq -l freq /dev/sd…

Sets capacitance check frequency for HSSD SAS disks.

-

-A o -z tempthres -l value /dev/sd…

Sets a temperature threshold of capacitor write through for HSSD SAS disks.

-

-A o -z repaircap -l capnum -a capvalue /dev/sd…

Sets the number of capacitors and capacitance for HSSD SAS disks.

-

-A o -z rwrecovery /dev/sd…

Sets the data read and write recovery for HSSD SAS disks.

-

-A o -z poweroff /dev/sd..

Sets power failure protection for HSSD SAS disks.

-

-A o -z resetwatchdog /dev/sd…

Resets the watchdog process for HSSD SAS disks.

-

-A o -z restart /dev/sd…

Quickly restarts an HSSD SAS disk.

-

-A o -z closeinterface /dev/sd…

Disables the test port for HSSD SAS disks.

-

-A o -z retryon /dev/sd…

Enables retry for HSSD SAS disks.

-

-A o -z retryoff /dev/sd…

Disables retry for HSSD SAS disks.

-

-A o -z trimall /dev/sd…

Trims an HSSD SAS disk.

-

-A o -z trim -a startLBA -l length /dev/sd…

Trims a specific partition of an HSSD SAS disk.

-

-A o -z c /dev/sd…

Clears the SMART information of HSSD SAS disks.

-

-A o -z time /dev/sd…

Synchronizes the time of HSSD SAS disks.

-

-v loaderFile/firmwareFile

Checks the loader or firmware version of HSSD SAS disks.

-

-A o -z loader -w loaderFile /dev/sd…

Upgrades the loader of HSSD SAS disks.

-

-f U -z loaderFile -w firmwareFile /dev/sd…

Upgrades the loader and firmware of HSSD SAS disks at the same time.

-

-A o -z getbarcode /dev/sd…

Reads the barcode of HSSD SAS disks.

-

-A o -z getelabel /dev/sd…

Reads the e-label of HSSD SAS disks.

-

-A o -z usefullog /dev/sd…

Collects all useful logs of HSSD SAS disks.

-

-A o -z getExtendLog /dev/sd…

Collects the Extend Log information of 1812 HSSD SAS disks.

-

-A o -z startDeepRecover /dev/sd…

Starts deep reconstruction of 1812 HSSD SAS disks.

-

-A o -z statlog /dev/sd…

Views the statistics information of 1812 HSSD SAS disks.

-

-S s /dev/sd…

Views the SMART of SATA disks.

-

-S U /dev/sd…

Views the internal Log UDS information of Seagate SATA disks.

-

-S M /dev/sd…

Views the internal Log SM2 information of Seagate SATA disks.

-

-S G /dev/sd…

Obtains the internal G-list of Western Digital SATA disks.

-

-S P /dev/sd…

Obtains the internal P-list of Western Digital SATA disks.

-

-S R /dev/sd…

Obtains the internal SB log of Western Digital SATA disks.

-

-S H /dev/sd…

Obtains the internal log of Hitachi SATA disks.

-

-S c /dev/sd…

Views the Critical Event Log information of Seagate SATA disks.

-

-S C /dev/sd…

Views the Critical Event Log Ext information of Seagate SATA disks.

-

-S I /dev/sd…

Reads some useful information of SATA disks.

-

-S S -V value /dev/sd…

Sets the rate of Seagate SATA disks.

-

-S d /dev/sd…

Views the expansion self-check log information of SAS disks.

-

-S e /dev/sd…

Views the Error Log information of SATA disks.

-

-S f -R mode -V value /dev/sd…

Sets the ERC of SATA disks.

-

-S g /dev/sd…

Views the G-list of Seagate SATA disks.

-

-S l /dev/sd…

Checks whether Seagate SATA disks support rate setting.

-

-S m /dev/sd…

Views the Extend Error Log information of SATA disks.

-

-S n /dev/sd…

Disables SMART collection of SATA disks.

-

-S o /dev/sd…

Enables SMART collection of SATA disks.

-

-S p /dev/sd…

Views the P-list of Seagate SATA disks.

-

-S v /dev/sd…

Views the version of SATA disks.

-

-S w /dev/sd…

Views the PHY event log information of SATA disks.

-

-S 8 /dev/sd…

Obtains 8305 log information.

-

-f x -c CDB -i buffer_length /dev/sd…

Sends self-defined commands.

-

-f x -c CDB -o buffer_length -b buffer_value /dev/sd…

Sends self-defined commands.

-

-f x -c CDB /dev/sd…

Sends self-defined commands.

-

-S T -z triminfo /dev/sd…

Checks whether SSD SATA disks support the trim function.

-

-S T -z trimall /dev/sd…

Trims an SSD SATA disk.

-

-S T -z trim -a startLBA -l length /dev/sd…

Trims a specific partition of an SSD SATA disk.

-

-S t -z log /dev/sd…

Views the log information of HSSD SATA disks.

-

-S t -z log2 /dev/sd…

Views the log 2 information of HSSD SATA disks.

-

-S t -z tail /dev/sd…

Queries the tail information of HSSD SATA disks.

-

-S t -z head /dev/sd…

Queries the head information of HSSD SATA disks.

-

-S t -z flag /dev/sd…

Queries the flag information of HSSD SATA disks.

-

-S t -z wear /dev/sd…

Queries the wear information of HSSD SATA disks.

-

-S t -z system /dev/sd…

Queries the system information of HSSD SATA disks.

-

-S t -z blankcnt /dev/sd…

Queries the blankcnt information of HSSD SATA disks.

-

-S t -z blank /dev/sd…

Queries the blank information of HSSD SATA disks.

-

-S t -z badblock /dev/sd…

Queries the badblock information of HSSD SATA disks.

-

-S t -z pend /dev/sd…

Queries the pend information of HSSD SATA disks.

-

-S t -z a /dev/sd…

Views all the log information of HSSD SATA disks.

-

-S t -z clean /dev/sd…

Clears the SMART information of HSSD SATA disks.

-

-S t -z trim /dev/sd…

Trims an HSSD SATA disk.

-

-S t -z trimflag /dev/sd…

Sets the default read information after an HSSD SATA disk is trimmed.

-

-A C /dev/sd…

Disables the QAM of FATA disks.

-

-A O /dev/sd…

Enables the QAM of FATA disks.

-

-A R -c mode /dev/sd…

Views the world wide name (WWN) of FATA disks.

-

-A W -c mode -C WWN /dev/sd…

Sets the WWNs for FATA disks.

-

-A f /dev/sd…

Views the conversion board log information of FATA disks.

-

-A r /dev/sd…

Views the conversion board firmware version of FATA disks.

-

-f F -w FILE /dev/sd…

Upgrades the conversion board firmware of FATA disks.

-

-T u /dev/sd…

Performs self-scan for disks.

-

-T s /dev/sd…

Checks whether alarms exist in the disk SMART information.

-

-T B -B value /dev/sd…

Performs a butterfly test.

-

-T F -B value /dev/sd…

Performs a full stroke test.

-

-T L -B value /dev/sd…

Performs a particle sweep test.

-

-T K -B value /dev/sd…

Tests disk deployment scanning.

-

-T P -B value /dev/sd…

Performs the data test function.

-

-T C /dev/sd…

Clears the DRM log information of Western Digital SATA disks.

-

-f q

Views the health status of disks.

-

-T S -B value /dev/sd…

Obtains the BER of Seagate SATA disks.

-

-T W -B value /dev/sd…

Obtains the BER of Western Digital SATA disks.

-

-f L -a LBA /dev/sd…

Performs the LBA-to-CHS conversion for SAS disks.

-

-f P -p CHS /dev/sd…

Performs the CHS-to-LBA conversion for SAS disks.

-

-f m -a LBA /dev/sd…

Simulates disk bad sectors.

-

Modes

Minisystem mode

Usage Guidelines

Disk maintenance port. Use this port under the guidance of technical support engineers.

Example

Scan for SAS, SATA, or Fibre Channel disks connected to the device.

Storage: minisystem>disktool -s 
Device Type Vendor Product Rev 
/dev/sda Disk HUAWEI HSSD-D2200SS0050 31925  
/dev/sdg Disk HUAWEI HSSD-D322XAS0100 1402  
/dev/sdh Disk HUAWEI HSSD-D322XAS0100 1402  
/dev/sdi Disk HUAWEI HSSD-D3220AS0100 1501  
/dev/sdj Disk HUAWEI HSSD-D3220AS0200 1501  
/dev/sdk Disk HUAWEI HSSD-D3220AS0100 1501  
/dev/sdl Disk HUAWEI HSSD-D3220AS0100 1501

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181575

Views: 645513

Downloads: 30

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next