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 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands.

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).
disk_repair.sh

disk_repair.sh

Function

The disk_repair.sh command is used for disk maintenance in minisystem mode.

Format

disk_repair.sh -v

disk_repair.sh -s

disk_repair.sh -f i /dev/sd

disk_repair.sh -f C /dev/sd

disk_repair.sh -f a /dev/sd

disk_repair.sh -f u -w FILE /dev/sd

disk_repair.sh -f e /dev/sd

disk_repair.sh -f d /dev/sd.

disk_repair.sh -f o /dev/sd

disk_repair.sh -f v -a startLBA [-l length] /dev/sd

disk_repair.sh SCAN -s -d sda sdb

disk_repair.sh SCAN -x -d sda sdb

disk_repair.sh -S r /dev/sd

disk_repair.sh [-D Path] -f I -b InterfaceType -z EnterpriseType [-x MaxSize] /dev/sd

disk_repair.sh -A M -z getERC /dev/sd

disk_repair.sh -A M -z setERC -V value /dev/sd

disk_repair.sh -A M -z setAWRE -V value /dev/sd

disk_repair.sh -A M -z setARRE -V value /dev/sd

disk_repair.sh -A l /dev/sd

disk_repair.sh [-D /home] -A E [-x 30] /dev/sd

disk_repair.sh [-D /home] -A F [-z AllLogTB] /dev/sd

disk_repair.sh [-D /home] -A m /dev/sd

disk_repair.sh [-D /home] -A u /dev/sd

disk_repair.sh [-D /home] -A D /dev/sd

disk_repair.sh [-D path] -A L -i BufferID -a startOffset [-l maxLogSize] /dev/sd

disk_repair.sh -S l /dev/sd

disk_repair.sh -S f -R 1 -V value /dev/sd

disk_repair.sh -S f -R 2 -V value /dev/sd

disk_repair.sh [-D /home] -S M /dev/sd

disk_repair.sh [-D /home] -S U /dev/sd

disk_repair.sh [-D /home] -S x -z FARMLog -k Feature /dev/sd

disk_repair.sh [-D /home] -S R /dev/sd

disk_repair.sh [-D /home] -S H [-z PartLogHG] /dev/sd

disk_repair.sh [-D /home] -A T /dev/sd

disk_repair.sh [-D /home] -t log.txt -A o -z log /dev/sd

disk_repair.sh [-D /home] -t log2.txt -A o -z log2 /dev/sd

disk_repair.sh [-D /home] -t log3.txt -A o -z log3 /dev/sd

disk_repair.sh [-D /home] -t log4.txt -A o -z log4 /dev/sd

disk_repair.sh [-D /home] -t smartval.txt -A o -z smartval /dev/sd

disk_repair.sh [-D /home] -t smartthr.txt -A o -z smartthr /dev/sd

disk_repair.sh [-D /home] -t getio.txt -A o -z getio /dev/sd

disk_repair.sh -A o -z resetwatchdog /dev/sd

disk_repair.sh -A o -z restart /dev/sd

disk_repair.sh -A o -z usefullog /dev/sd

disk_repair.sh [-D /home] -t ExtendLog.txt -A o -z getExtendLog /dev/sd

disk_repair.sh -u statlog.bin -A o -z statlog /dev/sd

disk_repair.sh -A o -z startDeepRecover /dev/sd

disk_repair.sh -A N -z getfeature -c sel -k featureId /dev/nvme

disk_repair.sh -A N -z setfeature -c save -k featureId -b value /dev/nvme

disk_repair.sh -A N -z getlog -k logId /dev/nvme

disk_repair.sh -A N -z getsmart /dev/nvme

disk_repair.sh -A N -z getplist -c type /dev/nvme

disk_repair.sh -A N -z idctrl [-v] /dev/nvme

disk_repair.sh -A N -z idns [-v] /dev/nvme

disk_repair.sh -A N -z upgradefw -c slot -k action -w filepath /dev/nvme

disk_repair.sh -A N -z activatefw -c slot -k action /dev/nvme

disk_repair.sh -T u /dev/sd

disk_repair.sh -f L -a LBA /dev/sd

disk_repair.sh -f P -p 0x(Cylinder-Head-Sector) /dev/sd

Parameters

None

Modes

Minisystem mode

Usage Guidelines

This command is only used for disk maintenance. Do not run this command unless necessary. If necessary, use it under the guidance of Huawei engineers.

Example

  • Query the version number.

    Storage: minisystem> disk_repair.sh -v
    --------------------- Version P400.019.019 SVN:2285 For Linux_ARM_64bit at 2019.12.28 12:30 -------------------
  • Query basic information about all disks on a device.

    Storage: minisystem> disk_repair.sh -s
    Device           Type             Vendor    Product                                   Rev/dev/sd-64a      Disk             HUAWEI    HSSD-D6223AL1T9N                          3235/dev/sd-65a      Disk             HUAWEI    HSSD-D6223AL960N                          3235/dev/sd-66a      Disk             HUAWEI    HSSD-D6223AL960N                          3235/dev/sd-67a      Disk             HUAWEI    HSSD-D6223AL960N                          3735/dev/sd-68a      Disk             HUAWEI    HSSD-D6223AL960N                          3235/dev/sd-69a      Disk             HUAWEI    HSSD-D6223AL960N                          3235/dev/sd-70a      Disk             HUAWEI    HSSD-D6223AL960N                          3235/dev/sd-71a      Disk             HUAWEI    HSSD-D6223AL1T9N                          3235/dev/sd-72a      Disk             HUAWEI    HSSD-D6D23AL7T6N                          3235/dev/sd-73a      Disk             HUAWEI    HSSD-D6D23AL7T6N                          3735/dev/sda         Disk             ATA       MD619HXCHDE3TC                            TCS5TD 
  • Query basic information of a disk.

    Storage: minisystem> disk_repair.sh -f i /dev/sd-64a
    Device Model:     HSSD-D6223AL1T9NSerial Number:    032VUE10J6000173Firmware Version: 3235User Capacity:    1950389400960 bytes / 0xdf8fe2b0 sectors 
  • Query the sector size of a disk.

    Storage: minisystem> disk_repair.sh -f C /dev/sd-64a
    Get the block size,  success. Size=520.

System Response

The following table describes the parameter meanings.

Parameter

Meaning

Get the block size, success.

Succeeded in querying the disk sector size.

Translation
Download
Updated: 2020-01-17

Document ID: EDOC1000181602

Views: 751688

Downloads: 64

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next