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).
erase_disk_data.sh
Function
The erase_disk_data.sh command is used to show the progress of disk data erasure and re-execute an unfinished data erasure task in minisystem mode.
Parameters
Parameter |
Description |
Value |
---|---|---|
sdId | Physical ID of a disk, which can be obtained by running the showdiskinfo command in minisystem mode. | - |
Example
-
Show the progress of disk data erasure.
Storage: minisystem> erase_disk_data.sh -m showprogress -i 71 admin:/diagnose>attach 12 Attach AppId<12> success admin:/diagnose>sddebug geteraseprogress 71 get progress(100%), sdid 71. admin:/diagnose>exit Storage: minisystem>
-
Re-execute an unfinished data erasure task.
Storage: minisystem> erase_disk_data.sh -m erasediskdata -i 71 DANGER: You are about to erase data on disks in a specified list. This operation will erase data on disks in the list. The erased data cannot be restored and the disks may fail to be reconnected with the system. To obtain the final data erasure result, export data erasure records or view data erasure operation logs. Suggestion: Before running the command, confirm that you need to erase the data on disks in the list and check whether the disks are still in use. Are you sure you really want to perform the operation?(y/n)y admin:/diagnose>attach 12 Attach AppId<12> success admin:/diagnose>sddebug erasediskdata 71 Start data erasing succeed, sdid(71). admin:/diagnose>exit Storage: minisystem>