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

CH222 Compute Node V100R001 User Guide 18

This document describes the appearance, functions, structure, and installation, removal, and configuration methods of the CH222 compute node.
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).
Erasing Storage Media Data

Erasing Storage Media Data

This topic describes how to erase data from storage media by running the Linux command badblocks or mounting the toolkit.

Scenarios

  • 1: If the storage medium is not configured in a RAID or is configured in a RAID without redundancy and the compute node OS is running properly, run the Linux command badblocks.
  • 2: If the storage medium is not configured in a RAID or is configured in a RAID without redundancy and the compute node OS is not running properly, mount the toolkit to the compute node.
  • 3: If the storage medium is in a RAID with redundancy, move the storage medium to an idle compute node and mount the toolkit to the idle compute node.

Prerequisites

Conditions

  • Scenario 1: The storage medium is not configured in a RAID or is configured in a RAID without redundancy and the compute node OS is running properly.
  • Scenario 2: The storage medium is not configured in a RAID or is configured in a RAID without redundancy and the compute node OS is not running properly.
  • Scenario 3: The storage medium is in a RAID with redundancy.

Data

  • Chassis number of the storage device.
  • Slot number of the storage device.
  • Position of the storage device.

Hardware

An idle compute node. This is required only for scenario 3.

Note

  • The Linux badblocks command is used to erase data from storage devices. This command erases data by writing all 0s on the storage device based on the command parameters specified.
  • The methods described in this topic are for reference only. You can also use other methods to erase storage media data.

Exercise caution when performing this operation. The data erased cannot be restored.

Procedure

  1. Erasing Data from an HDD or SSD by Running the badblocks Command.

    1. Log in to the compute node holding the hard disk to be erased.

      For details, see Logging In to the Real-Time Desktop.

    2. Open the command line interface (CLI) and run the lsscsi command to query drive letters.

      Figure 6-22 shows an example.

      Figure 6-22 Querying drive letters
    3. Run the fdisk -l command to query information about hard disks and the system disk. In Figure 6-23, the hard disk with the * symbol in the Boot column is the system disk. In Figure 6-23, sda is the system disk.
      NOTE:

      Do not directly erase system disk data. Before erasing system disk data, erase data from other storage media.

      Figure 6-23 Querying hard disk information
    4. Run the badblocks -swft 0 command to write zeros to the hard disk. For example, if you need to erase data from HD1, whose drive letter is /dev/sdb, run the badblocks -swft 0 /dev/sdb command.
      Figure 6-24 Erasing data
      NOTE:
      • HDDs, SSDs, , and USB flash drives may have different drive letters. Check the drive letter of the storage medium before running the badblocks -swft 0 command.
      • This operation may take some time.
      • If the badblocks -swft 0 command fails, contact Huawei technical support.
    5. Remove the hard disk.

      For details, see Removing a Hard Disk.

      NOTE:

      After data is erased, do not restart or remove and reinstall the compute node. Otherwise, data will be reloaded to the hard disks when the compute node restarts.

Translation
Download
Updated: 2019-08-16

Document ID: EDOC1000018075

Views: 7038

Downloads: 321

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