TW201740370A - Hard disk data wiping method, server and system - Google Patents

Hard disk data wiping method, server and system Download PDF

Info

Publication number
TW201740370A
TW201740370A TW106108192A TW106108192A TW201740370A TW 201740370 A TW201740370 A TW 201740370A TW 106108192 A TW106108192 A TW 106108192A TW 106108192 A TW106108192 A TW 106108192A TW 201740370 A TW201740370 A TW 201740370A
Authority
TW
Taiwan
Prior art keywords
data
hard disk
sas
disk
server
Prior art date
Application number
TW106108192A
Other languages
Chinese (zh)
Other versions
TWI738739B (en
Inventor
Gong-Biao Niu
Jin Cai
Wei Zou
Wen-Tao Zhang
Shu Li
Original Assignee
Alibaba Group Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Services Ltd filed Critical Alibaba Group Services Ltd
Publication of TW201740370A publication Critical patent/TW201740370A/en
Application granted granted Critical
Publication of TWI738739B publication Critical patent/TWI738739B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Storage Device Security (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

A hard disk data wiping method, a server and a system, the method comprising: transmitting a data write command to a disk cluster device; writing first-type data to the plurality of hard disks mounted on the disk cluster to overwrite original data. The method can be used for wiping data from a hard disk in an efficient and non-destructive way.

Description

硬碟資料抹除方法、伺服器及系統 Hard disk data erasing method, server and system

本發明涉及電腦技術領域,尤其涉及一種硬碟資料抹除方法、伺服器及系統。 The present invention relates to the field of computer technologies, and in particular, to a hard disk data erasing method, a server, and a system.

機械硬碟(如硬碟驅動器,Hard Disk Drive,HDD)和固態硬碟(Solid State Drive,SSD)是資料中心常使用的儲存元件,二者各有優點。比如,固態硬碟在資料讀取速度、抗震能力、功耗、運行聲音以及發熱方面,都較具有優勢;而機械硬碟具有容量大、價位低的優點。 Mechanical hard drives (such as Hard Disk Drives, HDDs) and Solid State Drives (SSDs) are storage components commonly used in data centers, each with its own advantages. For example, solid-state hard disks have advantages in data reading speed, seismic resistance, power consumption, running sound, and heat generation; mechanical hard disks have the advantages of large capacity and low price.

因各類原因,儲存元件需要拿出資料中心。而鑒於資料安全及相關規範,該儲存元件上承載的資料必須在拿出資料中心之前有效地破壞,以避免資料洩漏。另外,在故障替換、搬遷等情況下,也需要對資料進行抹除處理。 For various reasons, storage components need to be taken out of the data center. In view of data security and related specifications, the data carried on the storage element must be effectively destroyed before the data center is taken out to avoid data leakage. In addition, in the case of fault replacement, relocation, etc., it is also necessary to erase the data.

一些資料中心現行的資料銷毀採用的是永久性破壞硬碟的方式,例如對硬碟進行永久性物理損壞。在經過此類物理損壞後,磁片上的已有資料固然無法恢復,但同時,該硬碟的使用壽命終結,直接導致硬碟未能被充分利用其全部使用壽命,因而增加了資料中心的維護成本。 The current data destruction in some data centres uses permanent destruction of hard drives, such as permanent physical damage to hard drives. After such physical damage, the existing data on the magnetic disk cannot be recovered, but at the same time, the end of the life of the hard disk directly leads to the failure of the hard disk to fully utilize its entire service life, thus increasing the maintenance of the data center. cost.

本發明解決的技術問題之一是提供一種硬碟資料抹除方法、伺服器及系統。 One of the technical problems solved by the present invention is to provide a hard disk data erasing method, a server and a system.

根據本發明一方面的一個實施例,提供了一種硬碟資料抹除方法,所述方法包括:向所述磁片簇設備發送資料寫入命令;藉由所述資料寫入命令,向所述磁片簇所掛載的多個硬碟寫入第一類型資料,從而覆蓋原有資料。 According to an embodiment of an aspect of the present invention, a hard disk data erasing method is provided, the method comprising: transmitting a data write command to the disk cluster device; and by using the data write command, A plurality of hard disks mounted on the disk cluster write the first type of data to cover the original data.

可選的,在資料寫入操作之後,還包括:向所述磁片簇設備發送校驗讀出命令,發起讀校驗操作;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 Optionally, after the data writing operation, the method further includes: sending a verify read command to the disk cluster device to initiate a read verify operation; and according to the verify read command, from the magnetic cluster The mounted plurality of hard disks read the data in parallel; and judge whether the read data is the duplicate data or the random data, thereby completing the verification.

可選的,在發起資料寫入操作之前,還包括:控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;針對無法識別的硬碟,發出進行熱插拔更換的指示。 Optionally, before initiating the data writing operation, the method further includes: controlling to start a plurality of hard disks mounted on the disk cluster device, and determining whether there is an unrecognizable hard disk; for an unrecognizable hard disk, Issue an indication for hot swap replacement.

可選的,還包括:針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 Optionally, the method further includes: generating and saving an operation log for each controlled hard disk, where the operation log records the command and task completion status of the hard disk being executed during the operation.

可選的,還包括:向使用者提供抹除配置介面;接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 Optionally, the method further includes: providing an erasing configuration interface to the user; receiving a configuration option input by the user on the erasing configuration interface, and performing erasing control according to the information of the configuration option; the configuration options include: Whether to erase the system hard disk, the model of the hard disk to be erased, and / or erase mode.

可選的,還包括:設置與所述一個或多個磁片簇設備分別對應的一個或多個SAS控制模組;在所述SAS控制模組中,藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 Optionally, the method further includes: setting one or more SAS control modules respectively corresponding to the one or more magnetic chip cluster devices; and implementing, in the SAS control module, the SAS control module by using a SAS expander The hard disk array layout of multiple hard disks mounted by the corresponding disk cluster device.

可選的,還包括:在所述SAS控制模組中,配置SAS擴展器為多級級聯方式;藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 Optionally, the method further includes: configuring, in the SAS control module, the SAS expander to be a multi-stage cascading mode; and expanding the number of controlled hard disks and the parallelism by using a multi-level cascaded multi-layer SAS expander.

可選的,在資料寫入操作之前或讀校驗操作之後,還包括:根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 Optionally, before the data write operation or after the read verify operation, the method further includes: expanding from the highest-level SAS expander to the first-level SAS according to the cascading manner of the multi-level cascaded multi-layer SAS expander The order of the devices, in turn, starts the hard disk corresponding to each level of the SAS expander.

可選的,還包括:類比與硬碟陣列佈局對應的硬碟故障識別面板;藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, the method further includes: analogizing a hard disk fault recognition panel corresponding to the hard disk array layout; and viewing the status of each hard disk and locating the hard disk with abnormal status by using the hard disk fault recognition panel.

可選的,所述方法藉由SAS協議控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 Optionally, the method controls one or more external magnetic cluster device devices by using the SAS protocol, and writes the first type of data to the hard disk mounted by the magnetic disk cluster in parallel, so that the magnetic disk cluster is The data of multiple hard disks mounted on the device is erased in batches.

可選的,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 Optionally, the first type of data is preset data, duplicate data, random data, or template data.

根據本發明另一方面的一個實施例,提供了一種硬碟資料抹除伺服器,所述伺服器包括:寫操作控制模組,用於向所述磁片簇設備發送資料寫入命令;以及,藉由所述資料寫入命令,控制向所述磁片簇所掛載的多個硬碟寫入 第一類型資料,從而覆蓋原有資料。 According to an embodiment of another aspect of the present invention, a hard disk data erasing server is provided, the server comprising: a write operation control module, configured to send a data write command to the disk cluster device; Controlling writing to a plurality of hard disks mounted by the slice cluster by the data write command The first type of information, thus covering the original data.

可選的,還包括:讀校驗控制模組,用於向所述磁片簇設備發送校驗讀出命令,發起讀校驗操作;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;以及,判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 Optionally, the method further includes: a read verification control module, configured to send a verification read command to the magnetic chip cluster device, initiate a read verify operation; and according to the verify read command, from the magnetic disk The plurality of hard disks mounted by the cluster read the data in parallel; and, determining whether the read data is the duplicate data or the random data, thereby completing the verification.

可選的,還包括:硬碟啟動識別模組,用於控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;以及,針對無法識別的硬碟,發出進行熱插拔更換的指示。 Optionally, the method further includes: a hard disk boot recognition module, configured to control a plurality of hard disks mounted on the magnetic disk cluster device, and determine whether there is an unrecognizable hard disk; and, for unrecognizable A hard disk that issues an indication for hot swap replacement.

可選的,還包括:操作日誌模組,用於針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 Optionally, the method further includes: an operation log module, configured to generate and save an operation log for each controlled hard disk, where the operation log records a command executed by the hard disk during the operation, and a task completion status. .

可選的,還包括:抹除配置介面模組,用於向使用者提供抹除配置介面;以及,接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 Optionally, the method further includes: erasing the configuration interface module, configured to provide an erase configuration interface to the user; and receiving configuration options input by the user on the erase configuration interface, according to the configuration option information The erase control is performed; the configuration options include: whether to erase the system hard disk, the model of the hard disk to be erased, and/or the erase mode.

可選的,還包括:一個或多個SAS控制模組,與所述一個或多個磁片簇設備分別對應的,用於藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 Optionally, the method further includes: one or more SAS control modules respectively corresponding to the one or more magnetic chip cluster devices, and configured to implement a magnetic chip cluster device corresponding to the SAS control module by using a SAS expander The hard disk array layout of multiple hard disks mounted.

可選的,所述SAS控制模組,還用於配置SAS擴展器為多級級聯方式,藉由多級級聯的多層SAS擴展器, 擴展所控制的硬碟數目和並行度。 Optionally, the SAS control module is further configured to configure the SAS expander to be a multi-stage cascading mode, and the multi-level cascading multi-layer SAS expander is used. Expand the number of hard disks and parallelism controlled.

可選的,所述SAS控制模組,還用於根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 Optionally, the SAS control module is further configured to start according to the cascading manner of the multi-level cascaded multi-layer SAS expander according to the sequence from the highest-level SAS expander to the first-level SAS expander. The hard disk corresponding to each level of SAS expander.

可選的,還包括:硬碟故障識別面板模組,用於類比與硬碟陣列佈局對應的硬碟故障識別面板;以及,藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, the method further includes: a hard disk fault recognition panel module for analogizing a hard disk fault recognition panel corresponding to the hard disk array layout; and viewing the state of each hard disk by using the hard disk fault recognition panel A hard disk with an abnormal positioning status.

可選的,所述伺服器藉由SAS協議控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 Optionally, the server controls one or more external magnetic disk cluster devices by using the SAS protocol, and writes the first type of data to the hard disk mounted by the magnetic disk cluster in parallel, so that the magnetic disk is The data of multiple hard disks mounted on the cluster device is bulk erased.

可選的,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 Optionally, the first type of data is preset data, duplicate data, random data, or template data.

根據本發明再一方面的一個實施例,提供了一種硬碟資料抹除系統,該系統包括上述任一項所述的伺服器以及磁片簇設備。 According to an embodiment of still another aspect of the present invention, a hard disk data erasing system is provided, the system comprising the server of any of the above, and a magnetic disk cluster device.

可見,本發明藉由應用較為穩定的SAS互聯技術,設計並構建了一套適於硬碟原有資料的並行抹除的方案。該方案可用於資料中心的資料抹除工作。本發明具有高並行度的優勢,藉由SAS擴展,可並行寫入近千塊機械硬碟和固態硬碟,從而實現資料的有效快速抹除。具體的,藉由抹除伺服器對硬碟直接下發SAS命令到磁片簇設 備,藉由SAS卡控制抹除過程,避免了在抹除過程中一直藉由作業系統與硬碟進行I/O通信,極大的節約了系統資源,也是前面提到的高併發的體現。 It can be seen that the present invention designs and constructs a set of parallel erasing methods suitable for the original data of the hard disk by applying the relatively stable SAS interconnection technology. This program can be used for data erasing in data centers. The invention has the advantage of high parallelism. With the SAS extension, nearly one thousand mechanical hard disks and solid state hard disks can be written in parallel, thereby realizing effective and effective erasing of data. Specifically, the SAS command is directly sent to the disk cluster by the erase server. By means of the SAS card control erasing process, the I/O communication with the hard disk by the operating system is avoided in the erasing process, which greatly saves system resources, and is also a manifestation of the high concurrency mentioned above.

本發明只需要一台普通伺服器作為機頭,即可完成相應的資料寫入,抹除校驗,日誌分析和壞硬碟記錄等相應功能。整體投入可控,且可在短時間內完成近千塊大容量硬碟的非破壞性資料銷毀。所謂非破壞是指硬碟的非破壞,而資料是永久銷毀,不殘留任何資料片段。與現有永久性物理損壞硬碟的方式相比,本發明方案可保證原有資料被有效覆蓋,從而使得被抹除的機械硬碟和固態硬碟仍可使用。 The invention only needs one ordinary server as the machine head, and can complete corresponding data writing, erasing verification, log analysis and bad hard disk recording and the like. The overall investment is controllable, and non-destructive data destruction of nearly a thousand large-capacity hard disks can be completed in a short time. The so-called non-destructive means that the hard disk is non-destructive, and the data is permanently destroyed, and no data fragments remain. Compared with the existing permanent physical damage of the hard disk, the solution of the invention can ensure that the original data is effectively covered, so that the erased mechanical hard disk and the solid state hard disk can still be used.

本領域普通技術人員將瞭解,雖然下面的詳細說明將參考圖示實施例、附圖進行,但本發明並不僅限於這些實施例。而是,本發明的範圍是廣泛的,且意在僅藉由後附的申請專利範圍限定本發明的範圍。 Those skilled in the art will appreciate that although the following detailed description is made with reference to the illustrated embodiments and drawings, the invention is not limited to these embodiments. Rather, the scope of the present invention is intended to be limited only by the scope of the appended claims.

801‧‧‧寫操作控制模組 801‧‧‧Write operation control module

802‧‧‧讀校驗控制模組 802‧‧‧ read calibration control module

803‧‧‧硬碟啟動識別模組 803‧‧‧ Hard disk boot recognition module

804‧‧‧操作日誌模組 804‧‧‧Operation Log Module

805‧‧‧抹除配置介面模組 805‧‧‧Erase the configuration interface module

806‧‧‧SAS控制模組 806‧‧‧SAS control module

807‧‧‧故障識別模組 807‧‧‧Fault identification module

藉由閱讀參照以下附圖所作的對非限制性實施例所作的詳細描述,本發明的其它特徵、目的和優點將會變得更明顯:圖1是根據本發明實施例的硬碟資料抹除方法的流程圖;圖2是根據本發明實施例的硬碟資料抹除方法中硬碟寫資料原理示意圖; 圖3是根據本發明實施例的硬碟資料抹除方法中資料抹除頂層架構示意圖;圖4是根據本發明實施例的硬碟資料抹除方法中SAS控制模組的擴展方式示意圖;圖5是根據本發明實施例的硬碟資料抹除方法中啟動抹除流程示意圖;圖6是根據本發明實施例的硬碟資料抹除方法中關閉抹除流程示意圖;圖7是根據本發明實施例的硬碟資料抹除方法中硬碟故障識別面板示意圖;圖8是根據本發明實施例的硬碟資料抹除伺服器的結構示意圖。 Other features, objects, and advantages of the present invention will become more apparent from the aspects of the description of the embodiments illustrated in the claims < FIG. 2 is a schematic diagram showing the principle of hard disk writing data in a hard disk data erasing method according to an embodiment of the present invention; FIG. 3 is a schematic diagram of a data erase top layer architecture in a hard disk data erasing method according to an embodiment of the present invention; FIG. 4 is a schematic diagram of an extended manner of a SAS control module in a hard disk data erasing method according to an embodiment of the present invention; FIG. 6 is a schematic diagram showing a process of erasing and erasing a hard disk data erasing method according to an embodiment of the present invention; FIG. 7 is a schematic diagram of a shutdown erasing process in a hard disk data erasing method according to an embodiment of the present invention; FIG. 8 is a schematic structural diagram of a hard disk data erasing server according to an embodiment of the present invention. FIG.

本領域普通技術人員將瞭解,雖然下面的詳細說明將參考圖示實施例、附圖進行,但本發明並不僅限於這些實施例。而是,本發明的範圍是廣泛的,且意在僅藉由後附的申請專利範圍限定本發明的範圍。 Those skilled in the art will appreciate that although the following detailed description is made with reference to the illustrated embodiments and drawings, the invention is not limited to these embodiments. Rather, the scope of the present invention is intended to be limited only by the scope of the appended claims.

在更加詳細地討論示例性實施例之前應當提到的是,一些示例性實施例被描述成作為流程圖描繪的處理或方法。雖然流程圖將各項操作描述成順序的處理,但是其中的許多操作可以被並行地、併發地或者同時實施。此外,各項操作的順序可以被重新安排。當其操作完成時所述處理可以被終止,但是還可以具有未包括在附圖中的附加步 驟。所述處理可以對應於方法、函數、規程、子常式、副程式等等。 Before discussing the exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as a process or method depicted as a flowchart. Although the flowcharts describe various operations as a sequential process, many of the operations can be implemented in parallel, concurrently or concurrently. In addition, the order of operations can be rearranged. The process may be terminated when its operation is completed, but may also have additional steps not included in the drawing Step. The processing may correspond to methods, functions, procedures, sub-routines, sub-programs, and the like.

所述電腦設備包括使用者設備與網路設備。其中,所述使用者設備包括但不限於電腦、智慧手機、PDA等;所述網路設備包括但不限於單個網路伺服器、多個網路伺服器組成的伺服器組或基於雲計算(Cloud Computing)的由大量電腦或網路伺服器構成的雲,其中,雲計算是分散式運算的一種,由一群鬆散耦合的電腦集組成的一個超級虛擬電腦。其中,所述電腦設備可單獨運行來實現本發明,也可接入網路並藉由與網路中的其他電腦設備的交互操作來實現本發明。其中,所述電腦設備所處的網路包括但不限於網際網路、廣域網路、都會區網路、局域網、VPN網路等。 The computer device includes a user device and a network device. The user equipment includes, but is not limited to, a computer, a smart phone, a PDA, etc.; the network device includes but is not limited to a single network server, a server group composed of multiple network servers, or a cloud-based computing system ( Cloud Computing is a cloud of computers or web servers. Cloud computing is a kind of decentralized computing. It is a super virtual computer composed of a group of loosely coupled computers. Wherein, the computer device can be operated separately to implement the present invention, and can also access the network and implement the present invention by interacting with other computer devices in the network. The network where the computer device is located includes, but is not limited to, an internet, a wide area network, a metropolitan area network, a local area network, a VPN network, and the like.

需要說明的是,所述使用者設備、網路設備和網路等僅為舉例,其他現有的或今後可能出現的電腦設備或網路如可適用於本發明,也應包含在本發明保護範圍以內,並以引用方式包含於此。 It should be noted that the user equipment, the network equipment, the network, and the like are merely examples, and other existing or future computer equipment or networks may be applicable to the present invention, and should also be included in the scope of the present invention. Within, and by reference.

後面所討論的方法(其中一些藉由流程圖示出)可以藉由硬體、軟體、韌體、中介軟體、微代碼、硬體描述語言或者其任意組合來實施。當用軟體、韌體、中介軟體或微代碼來實施時,用以實施必要任務的程式碼或程式碼片段可以被儲存在機器或電腦可讀媒體(比如儲存媒體)中。(一個或多個)處理器可以實施必要的任務。 The methods discussed below (some of which are illustrated by flowcharts) may be implemented by hardware, software, firmware, mediation software, microcode, hardware description language, or any combination thereof. When implemented in software, firmware, mediation software, or microcode, the code or code segments used to perform the necessary tasks can be stored in a machine or computer readable medium (such as a storage medium). The processor(s) can perform the necessary tasks.

這裡所公開的具體結構和功能細節僅僅是代表性的, 並且是用於描述本發明的示例性實施例的目的。但是本發明可以藉由許多替換形式來具體實現,並且不應當被解釋成僅僅受限於這裡所闡述的實施例。 The specific structural and functional details disclosed herein are merely representative. It is also an object for describing an exemplary embodiment of the present invention. The present invention may, however, be embodied in many alternative forms and should not be construed as being limited to the embodiments set forth herein.

應當理解的是,雖然在這裡可能使用了術語“第一”、“第二”等等來描述各個單元,但是這些單元不應當受這些術語限制。使用這些術語僅僅是為了將一個單元與另一個單元進行區分。舉例來說,在不背離示例性實施例的範圍的情況下,第一單元可以被稱為第二單元,並且類似地第二單元可以被稱為第一單元。這裡所使用的術語“和/或”包括其中一個或更多所列出的相關聯專案的任意和所有組合。 It should be understood that although the terms "first," "second," etc. may be used herein to describe the various elements, these elements should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, a first unit could be termed a second unit, and similarly a second unit could be termed a first unit, without departing from the scope of the exemplary embodiments. The term "and/or" used herein includes any and all combinations of one or more of the associated listed items.

應當理解的是,當一個單元被稱為“連接”或“耦合”到另一單元時,其可以直接連接或耦合到所述另一單元,或者可以存在中間單元。與此相對,當一個單元被稱為“直接連接”或“直接耦合”到另一單元時,則不存在中間單元。應當按照類似的方式來解釋被用於描述單元之間的關係的其他詞語(例如“處於...之間”相比於“直接處於...之間”,“與...鄰近”相比於“與...直接鄰近”等等)。 It will be understood that when a unit is referred to as "connected" or "coupled" to another unit, it can be directly connected or coupled to the other unit, or an intermediate unit can be present. In contrast, when a unit is referred to as being "directly connected" or "directly coupled" to another unit, there is no intermediate unit. Other words used to describe the relationship between the units should be interpreted in a similar manner (eg "between" and "directly between" and "adjacent to" Than "directly adjacent to", etc.).

這裡所使用的術語僅僅是為了描述具體實施例而不意圖限制示例性實施例。除非上下文明確地另有所指,否則這裡所使用的單數形式“一個”、“一項”還意圖包括複數。還應當理解的是,這裡所使用的術語“包括”和/或“包含”規定所陳述的特徵、整數、步驟、操作、單元和 /或元件的存在,而不排除存在或添加一個或更多其他特徵、整數、步驟、操作、單元、元件和/或其組合。 The terminology used herein is for the purpose of describing the particular embodiments, The singular forms "a", "an", It will also be understood that the terms "comprising" and / or "comprising", as used herein, are intended to mean the stated features, integers, steps, operations, units and The existence of elements or components, without the exclusion or addition of one or more other features, integers, steps, operations, units, elements and/or combinations thereof.

還應當提到的是,在一些替換實現方式中,所提到的功能/動作可以按照不同於附圖中標示的順序發生。舉例來說,取決於所涉及的功能/動作,相繼示出的兩幅圖實際上可以基本上同時執行或者有時可以按照相反的順序來執行。 It should also be noted that, in some alternative implementations, the functions/acts noted may occur in a different order than that illustrated in the drawings. For example, two figures shown in succession may in fact be executed substantially concurrently or sometimes in the reverse order, depending on the function/acts involved.

首先對本發明實施例中出現的專業術語進行說明:SAS(Serial Attached SCSI,串列連接SCSI),是一種磁片連接技術,它總和了並行SCSI和串列連接技術的優勢,採用SCSI-3擴展指令集並相容SATA設備,是多層次的存放裝置連線協定棧。 First, the terminology that appears in the embodiment of the present invention is explained: SAS (Serial Attached SCSI) is a magnetic disk connection technology that combines the advantages of parallel SCSI and serial connection technology, and adopts SCSI-3 extension. The instruction set is compatible with SATA devices and is a multi-level storage device connection protocol stack.

SAS擴展器(SAS Expander)是SAS協定中的一個功能模組,其用於將多個SAS設備連接在一起,包括SAS陣列卡、SAS硬碟等,從而形成SAS域。 SAS Expander (SAS Expander) is a functional module in the SAS protocol. It is used to connect multiple SAS devices together, including SAS array cards, SAS hard disks, etc., to form a SAS domain.

磁片檔儲存管理的最小單位叫做“簇”,磁片簇設備(JBOD設備)是在一個底板上安裝的帶有多個磁碟機的存放裝置。 The smallest unit of disk file storage management is called "cluster", and the disk cluster device (JBOD device) is a storage device with multiple disk drives installed on one bottom plate.

第一類型資料,用於覆蓋原有資料實現資料抹除,包括但不限於預設資料、重復資料、隨機資料或者範本類資料。例如,重復資料可以是全0的資料,隨機資料是機器自動隨機產生的資料,預設資料是預先設置的資料,範本類資料是根據預置範本產生的資料。第一類型資料一般是無意義資料,只要覆蓋掉原有資料實現資料抹除即可,對 於資料的具體形式不做限制。 The first type of data is used to cover the original data to achieve data erasure, including but not limited to preset data, duplicate data, random data or template data. For example, the duplicate data may be all zero data, the random data is data automatically generated by the machine, the preset data is pre-set data, and the template data is data generated according to the preset template. The first type of data is generally meaningless data, as long as the original data is overwritten to achieve data erasure, There are no restrictions on the specific form of the information.

下面結合附圖對本發明的技術方案作進一步詳細描述。 The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings.

圖1是根據本發明實施例的硬碟資料抹除方法的流程圖,該方法用於對多個固態硬碟或機械硬碟的資料進行批量抹除,其中,抹除伺服器藉由SAS(Serial Attached SCSI,串列連接SCSI)協定控制一個或多個外掛的磁片簇(Just a Bunch Of Disks,JBOD)設備,從而對磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 1 is a flow chart of a method for erasing a hard disk data according to an embodiment of the present invention, which is used for batch erasing data of a plurality of solid state hard disks or mechanical hard disks, wherein the erase server is by SAS ( Serial Attached SCSI (Serial Attached SCSI) protocol controls one or more Just a Bunch Of Disks (JBOD) devices to batch wipe the data of multiple hard disks mounted on the disk cluster device. except.

本實施例的方法主要包括如下步驟:S100、抹除伺服器控制啟動磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;針對無法識別的硬碟,發出進行熱插拔更換的指示;S101、抹除伺服器向磁片簇設備發送資料寫入命令,藉由資料寫入命令,向磁片簇所掛載的多個硬碟並行寫入第一類型資料,從而覆蓋原有資料;S102、抹除伺服器向磁片簇設備發送校驗讀出命令,發起讀校驗操作;根據校驗讀出命令,從磁片簇所掛載的多個硬碟並行讀出資料;判斷所讀出的資料是否為第一類型資料,從而完成校驗。 The method of this embodiment mainly includes the following steps: S100, the erasing server controls a plurality of hard disks mounted on the boot disk cluster device, and determines whether there is an unrecognizable hard disk; for the unrecognizable hard disk, issues Instructing to perform hot swap replacement; S101, the erase server sends a data write command to the disk cluster device, and writes the first type to the plurality of hard disks mounted by the disk cluster in parallel by the data write command Data, thereby covering the original data; S102, the erasing server sends a verification read command to the magnetic chip cluster device, initiates a read verify operation; according to the check read command, multiple hard loads are mounted from the magnetic disk cluster The disc reads the data in parallel; determines whether the read data is the first type of data, thereby completing the verification.

本發明實施例中,硬碟包括但不限於機械硬碟(如硬碟驅動器,Hard Disk Drive,HDD)和固態硬碟(Solid State Drive,SSD)等高密度存放裝置。 In the embodiment of the present invention, the hard disk includes, but is not limited to, a high-density storage device such as a mechanical hard disk (such as a hard disk drive, a Hard Disk Drive, HDD) and a solid state disk (SSD).

本實施例中,抹除伺服器藉由SAS協定與掛載硬碟 的磁片簇進行通信,實現對磁片簇所掛載的硬碟進行資料抹除操作。SAS是一種磁片連接技術,它總和了並行SCSI和串列連接技術的優勢,採用SCSI-3擴展指令集並相容SATA設備,是多層次的存放裝置連線協定棧。磁片簇(JBOD)設備是儲存領域中一類重要的存放裝置。JBOD設備是在一個底板上安裝的帶有多個磁碟機的存放裝置。通常又稱為Span。和RAID陣列不同,JBOD沒有前端邏輯來管理磁片上的資料分佈,相反,每個磁片進行單獨定址,作為分開的儲存資源,或者基於主機軟體的一部分,或者是RAID組的一個適配器卡。 In this embodiment, the erase server uses the SAS protocol and mounts the hard disk. The magnetic disk cluster communicates to perform data erasing operation on the hard disk mounted on the magnetic disk cluster. SAS is a magnetic disk connection technology that combines the advantages of parallel SCSI and serial connection technology. It uses a SCSI-3 extended instruction set and is compatible with SATA devices. It is a multi-layer storage device connection protocol stack. Magnetic chip cluster (JBOD) devices are an important type of storage device in the storage field. A JBOD device is a storage device with multiple disk drives mounted on a backplane. Also commonly known as Span. Unlike RAID arrays, JBOD has no front-end logic to manage the distribution of data on the disk. Instead, each disk is individually addressed as a separate storage resource, either as part of the host software or as an adapter card for the RAID group.

具體的,抹除伺服器負責故障硬碟識別(S100)、發起資料寫入從而實現資料抹除(S101)、讀校驗(S102)等。 Specifically, the erasing server is responsible for the faulty hard disk identification (S100), initiating data writing to implement data erasing (S101), reading verification (S102), and the like.

步驟S100是抹除資料的準備步驟,主要為了查看所有硬碟是否啟動,並確定是否有硬碟存在故障等問題而無法識別,並針對無法識別的硬碟,告知工程師進行熱插拔更換處理。可以理解,S100是可選的準備步驟,並不是必須的,也即可以省略此步驟。 Step S100 is a preparation step of erasing the data, mainly for checking whether all the hard disks are started, determining whether there is a problem such as a failure of the hard disk, and being unrecognizable, and informing the engineer of the hot swap replacement process for the unrecognized hard disk. It can be understood that S100 is an optional preparation step, which is not necessary, that is, this step can be omitted.

步驟S101是完成資料抹除的步驟。抹除伺服器向磁片簇設備發送資料寫入命令,發起資料寫入操作;根據資料寫入命令,向磁片簇所掛載的多個硬碟並行寫入第一類型資料,從而覆蓋原有資料。這裡的第一類型資料,比如可以是全0的資料,或者是隨機資料,只要覆蓋掉原有資料實現資料抹除即可,對於第一類型資料的具體形式不做 限制。 Step S101 is a step of completing the data erasing. The erase server sends a data write command to the disk cluster device to initiate a data write operation; according to the data write command, the first type of data is written in parallel to the plurality of hard disks mounted by the disk cluster, thereby overwriting the original There is information. The first type of information here, for example, may be all 0 data, or random data, as long as the original data is overwritten to achieve data erasure, the specific form of the first type of data is not made. limit.

為了實現對硬碟進行第一類型資料的寫入控制,可以藉由在抹除伺服器中設置SAS控制模組來實現。具體的,在抹除伺服器中設置與磁片簇設備數目對應的一個或多個SAS控制模組(即每一個SAS控制模組控制一個磁片簇設備);在SAS控制模組中,藉由SAS擴展器(SAS Expander)實現所對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。其中,SAS Expander是SAS協定中的一個功能模組,其用於將多個SAS設備連接在一起,包括SAS陣列卡、SAS硬碟等,從而形成SAS域。SAS Expander可以將多個SAS連接到有限數量的主機埠上。在SAS域中,SAS Expander可以起到中心交換作用,並可直接連接終端設備。 In order to implement write control of the first type of data on the hard disk, it can be implemented by setting a SAS control module in the erase server. Specifically, one or more SAS control modules corresponding to the number of disk cluster devices are set in the erasing server (ie, each SAS control module controls one disk cluster device); in the SAS control module, The hard disk array layout of the plurality of hard disks mounted by the corresponding disk cluster device is implemented by the SAS expander (SAS Expander). Among them, SAS Expander is a functional module in the SAS protocol, which is used to connect multiple SAS devices together, including SAS array cards, SAS hard disks, etc., to form a SAS domain. SAS Expander can connect multiple SAS to a limited number of hosts. In the SAS domain, SAS Expander can serve as a central exchange and can directly connect to end devices.

為了實現對被控硬碟數量和並行度的擴展,可以採取多層SAS擴展器的多級級聯方式。例如,在SAS控制模組中,配置四層SAS擴展器的多級級聯方式;藉由多級級聯的四層SAS擴展器,擴展所控制的硬碟數目和並行度。在採取多層SAS擴展器的多級級聯方式中,在資料寫入操作之前或讀校驗操作之後,啟動各級SAS擴展器及對應硬碟的順序是:根據多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。例如,假設採用四層SAS擴展器:level1、level2、level3、level4,其中level4為最高級,那麼,啟動的順序就是, level4、level3、level2到level1的順序。 In order to achieve the expansion of the number and parallelism of the controlled hard disk, a multi-level cascading manner of a multi-layer SAS expander can be adopted. For example, in the SAS control module, a multi-level cascading mode of a four-layer SAS expander is configured; and a multi-level cascading four-layer SAS expander is used to expand the number and parallelism of the controlled hard disks. In the multi-stage cascading mode in which the multi-layer SAS expander is adopted, before the data write operation or after the read verify operation, the order of starting the SAS expanders and the corresponding hard disks at each level is: multi-level SAS expansion according to multi-level cascade The cascading mode of the device starts the hard disk corresponding to each level of the SAS expander in sequence according to the order from the highest-level SAS expander to the first-stage SAS expander. For example, suppose you use a four-layer SAS expander: level1, level2, level3, level4, where level4 is the highest level, then the order of startup is The order of level4, level3, level2 to level1.

步驟S102主要是在完成資料抹除之後,為了校驗寫入的資料是否為預先定義的第一類型資料。可見,該步驟主要為了確定資料抹除的正確性,是可選步驟,而非必須的步驟。 Step S102 is mainly to verify whether the written data is a predefined first type of data after the data erasing is completed. It can be seen that this step is mainly for determining the correctness of the data erasing, and is an optional step, not an essential step.

可選的,還可以類比出一個與硬碟陣列佈局對應的硬碟故障識別面板(例如軟體操控介面);藉由該硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, a hard disk fault recognition panel corresponding to the layout of the hard disk array (such as a software control interface) can be analogized; the hard disk fault recognition panel is used to view the status of each hard disk and locate the hard disk with abnormal status. .

可選的,還可以針對每個被控制的硬碟,產生並保存操作日誌,操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況等。 Optionally, an operation log may also be generated and saved for each controlled hard disk, and the operation log records commands executed by the hard disk during the operation, task completion, and the like.

可選的,還可以支援使用者自訂抹除模式,使用者可以根據自己的業務場景選擇適合的抹除模式。具體的,向使用者提供抹除配置介面;接收使用者在抹除配置介面上輸入的配置選項,所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 Optionally, the user can also customize the erase mode, and the user can select a suitable erase mode according to his business scenario. Specifically, the user is provided with an erasing configuration interface; receiving configuration options input by the user on the erasing configuration interface, including: erasing the system hard disk, the model of the hard disk to be erased, and/or , erase the way.

本發明中的硬碟包括但不限於機械硬碟、固態硬碟等高密度存放裝置。為了直觀,下面以機械硬碟為例子,對本發明方法實施例進行詳細介紹。 The hard disk in the present invention includes, but is not limited to, a high-density storage device such as a mechanical hard disk or a solid state hard disk. For the sake of intuition, the embodiment of the method of the present invention will be described in detail below by taking a mechanical hard disk as an example.

本發明以並行寫入多塊硬碟以覆蓋硬碟面上的已有內容。因此,選用的固定的資料模式如全零模式或亂數模式把磁片記錄的內容改變為無意義的資料。而此動作包括被抹除硬碟的所有磁區,以避免任何內容殘留而導致的資訊洩露。 The present invention writes multiple hard disks in parallel to cover existing content on the hard disk surface. Therefore, the selected fixed data mode, such as the all-zero mode or the random number mode, changes the content recorded by the disk to meaningless data. This action includes erasing all the magnetic regions of the hard disk to avoid any information leakage caused by content residue.

參見圖2,是根據本發明實施例的硬碟資料抹除方法中硬碟寫資料原理示意圖。如圖2所示,在硬碟面上覆蓋了軟磁性材料,該材料可將儲存媒體顆粒磁化為N->S或者S->N兩周不同的磁場走向,並以此分別表示所記錄的bit為0或1。磁化過程藉由改變圖中磁頭上所纏繞的通電線圈的電流方向來實現不同方向的磁場。因此,機械硬碟寫資料為直接保持或翻轉媒體合理的磁化方向而直接用新資料來覆蓋原有資料,整個過程無需抹除。因此,硬碟抹除就是將現有資料改寫為無真實意義資料,例如全零資料或隨機資料,就相當於原有資訊無法被恢復。當整個硬碟的全部磁區均被改寫後,該硬碟可成功宣告已滿足資料安全的要求,不會存在資料洩露的可能。如此處理的機械硬碟,相當於整個硬碟寫滿一遍,對於硬碟自身無不良損傷,從而可以保持其可用性。 2 is a schematic diagram showing the principle of hard disk writing data in the hard disk data erasing method according to an embodiment of the invention. As shown in FIG. 2, the hard disk surface is covered with a soft magnetic material, which can magnetize the storage medium particles into N->S or S->N two-week different magnetic field directions, and respectively represent the recorded The bit is 0 or 1. The magnetization process achieves magnetic fields in different directions by changing the direction of the current of the energized coil wound on the head in the figure. Therefore, the mechanical hard disk writes the data to directly maintain or reverse the reasonable magnetization direction of the media and directly overwrite the original data with new data, and the entire process does not need to be erased. Therefore, hard disk erasure is to rewrite existing data into unrealistic data, such as all-zero data or random data, which means that the original information cannot be recovered. When the entire magnetic area of the entire hard disk is rewritten, the hard disk can successfully declare that the data security requirements have been met, and there is no possibility of data leakage. The mechanical hard disk thus processed is equivalent to the entire hard disk being written once, and the hard disk itself is not damaged, so that the usability can be maintained.

參見圖3,是根據本發明實施例的硬碟資料抹除方法中資料抹除頂層架構示意圖。 3 is a schematic diagram of a top-level architecture of data erasing in a hard disk data erasing method according to an embodiment of the invention.

本發明提供的資料抹除頂層架構,主要由兩部分組成: The data provided by the present invention erases the top-level architecture and is mainly composed of two parts:

(1)抹除伺服器(機頭):抹除伺服器(機頭)作為資料寫入的發起端、抹除操作的控制端、校驗管理端以及故障記錄端。本發明可僅採用一台物理伺服器,實現對近千塊機械硬碟的同時抹除以及相關工作,具有較高的資源利用效率。 (1) Wipe the server (head): Erasing the server (head) as the initiator of the data write, the control end of the erase operation, the check management end, and the fault record end. The invention can use only one physical server to realize simultaneous erasure of nearly one thousand mechanical hard disks and related work, and has high resource utilization efficiency.

(2)外掛JBOD設備:抹除伺服器藉由SAS線纜連 接外部的JBOD設備,每個JBOD設備內部掛載多塊機械硬碟。所有硬碟均以“塊”設備的形式呈現在伺服器機頭。伺服器機頭直接控制每一塊硬碟並進行相應操作。 (2) Plug-in JBOD device: erase server via SAS cable Connect to an external JBOD device, and each JBOD device internally mounts multiple mechanical hard disks. All hard drives are presented in the form of "block" devices on the servo head. The servo head directly controls each hard disk and performs corresponding operations.

在該例子中,採用雙路結構,在抹除伺服器內部安裝了兩塊SAS卡(SAS控制模組)以並行拓展到各自外掛的JBOD設備中的各級硬碟。SAS卡藉由PCIe匯流排連接到伺服器CPU和記憶體系統,單路的頻寬即為PCIe匯流排頻寬,例如,PCIe 3.0 x 8可實現最高8GB/秒頻寬,對於機械硬碟此類吞吐性能較低的設備,可有效增大併發度來同時寫入大量硬碟設備。 In this example, a two-way structure is used, and two SAS cards (SAS control modules) are installed inside the erasing server to expand to each of the hard disks of the respective external JBOD devices. The SAS card is connected to the server CPU and memory system through the PCIe bus. The bandwidth of the single channel is the bandwidth of the PCIe bus. For example, PCIe 3.0 x 8 can achieve a bandwidth of up to 8GB/sec. For mechanical hard disks. A device with low throughput performance can increase the concurrency to write to a large number of hard disk devices at the same time.

下面取一路SAS擴展進行介紹。 Let's take a look at the SAS extension.

參見圖4,是根據本發明實施例的硬碟資料抹除方法中SAS控制模組的擴展方式示意圖。圖4表示了本發明的拓展架構,圖中為了簡化,以A代表SAS擴展器A,以B代表SAS擴展器B,SAS擴展器B下面連接的是多個硬碟。藉由SAS expander,本發明的互聯不斷向下延伸。單個SAS控制模組又並行驅動兩條路徑,每條路徑分四級擴展。SAS expander A具有N路SAS 3.0通道,而SAS expander B帶有M路SAS 3.0通道,此處,N>M。藉由如圖4所示的四層SAS expander級聯方式,其目的是增大可連接的硬碟數目,從而增大並行度。 Referring to FIG. 4, it is a schematic diagram of an extended manner of a SAS control module in a hard disk data erasing method according to an embodiment of the present invention. 4 shows an expanded architecture of the present invention. For the sake of simplicity, A represents SAS expander A, B represents SAS expander B, and SAS expander B is connected to a plurality of hard disks. With the SAS expander, the interconnect of the present invention continues to extend downward. A single SAS control module drives two paths in parallel, each of which is extended in four stages. SAS expander A has N-way SAS 3.0 channels, while SAS expander B has M-way SAS 3.0 channels, where N>M. By means of the four-layer SAS expander cascading mode as shown in FIG. 4, the purpose is to increase the number of hard disks that can be connected, thereby increasing the degree of parallelism.

參見圖5,是根據本發明實施例的硬碟資料抹除方法中啟動抹除流程示意圖。包括以下步驟:S501:啟動最高級即第四級(level4)的硬碟; S502:啟動次高級即第三級(level3)的硬碟;S503:啟動再低一級即第二級(level2)的硬碟;S504:啟動最低級即第一級(level1)的硬碟;S505:啟動抹除伺服器;S506:並行寫入第一類型資料至所有可見的硬碟。 Referring to FIG. 5, it is a schematic diagram of a boot erase process in a hard disk data erasing method according to an embodiment of the present invention. The method includes the following steps: S501: booting the highest level, that is, the fourth level (level 4) hard disk; S502: start a secondary level, that is, a third level (level 3) hard disk; S503: start a lower level, that is, a second level (level 2) of the hard disk; S504: start the lowest level, that is, the first level (level 1) of the hard disk; S505 : Start the erase server; S506: Write the first type of data to all visible hard disks in parallel.

參見圖6,是根據本發明實施例的硬碟資料抹除方法中關閉抹除流程示意圖。 Referring to FIG. 6, which is a schematic diagram of a shutdown erasing process in a hard disk data erasing method according to an embodiment of the present invention.

S601:所有硬碟抹除完成且讀校驗完成;S602:啟動最高級即第四級(level4)的硬碟;S603:啟動次高級即第三級(level3)的硬碟;S604:啟動再低一級即第二級(level2)的硬碟;S605:啟動最低級即第一級(level1)的硬碟;S606:啟動抹除伺服器。 S601: all hard disk erasing is completed and the read verification is completed; S602: booting the highest level, that is, the fourth level (level 4) hard disk; S603: starting the secondary high level, ie, the third level (level 3) hard disk; S604: starting again The lower level is the second level (level 2) hard disk; S605: the lowest level is the first level (level 1) hard disk; S606: the erasing server is started.

在方法實施過程中,還有如下方面需要考慮。逐級開啟外掛的JBOD設備並啟動抹除伺服器後,第一輪將檢測伺服器中無法識別的硬碟。如有任何硬碟不可操作,則做熱插拔更換,以便開始寫入資料以覆蓋原有資訊。而熱插拔替換的硬碟也將做線下複硬碟測試,標定為不可正常工作的壞硬碟。由於寫入資料為全0資料,寫入資料固定,因而,從伺服器的用戶資料傳輸量很低,主要傳輸資訊為中繼資料等控制資訊。寫入資料則可直接緩存在硬碟內部的緩存模組。 In the implementation of the method, there are also the following aspects to be considered. After the plug-in JBOD device is turned on step by step and the erase server is started, the first round will detect the unrecognized hard disk in the server. If any hard disk is inoperable, do a hot swap replacement to start writing data to overwrite the original information. The hot-swappable replacement hard disk will also be tested for offline hard disk and labeled as a bad hard disk that is not working properly. Since the written data is all 0 data, the written data is fixed. Therefore, the amount of user data transmitted from the server is very low, and the main transmission information is control information such as relay data. Write data can be directly cached in the cache module inside the hard disk.

為確保全零欄位順利寫入硬碟的所有磁區以覆蓋已有內容,可在寫入資料後進行讀校驗操作。具體的,資料寫 入後,伺服器啟動讀資料操作,直接檢驗寫入磁區的資料是否為全零。讀校驗與寫覆蓋同步進行,二者刻意地錯落開一定的物理區間。因此,在寫滿全硬碟之後,讀校驗也將在很短的時間內完成。寫覆蓋和讀校驗均採取順序寫入和順序讀出的方式,以最大限度提高被操作硬碟的吞吐,從而縮短資料抹除的時間。 To ensure that all zero fields are successfully written to all the magnetic areas of the hard disk to overwrite the existing content, the read verification operation can be performed after the data is written. Specifically, the data is written After entering, the server starts the read data operation and directly checks whether the data written to the magnetic area is all zero. The read check is performed synchronously with the write cover, and the two deliberately staggered a certain physical interval. Therefore, after writing a full hard disk, the read verification will also be completed in a short time. Both write overwrite and read verify take sequential write and sequential readout to maximize the throughput of the hard disk being manipulated, thus reducing the time for data erase.

在資料抹除中,對應每個被抹除的硬碟,在抹除伺服器可產生操作日誌。操作日誌可詳細記錄近千塊硬碟在各自抹除中所執行的命令以及任務完成情況等資訊,保證每次操作都保留有記錄。而該操作日誌記錄將在後續多個環節被用到,例如,在儲存硬碟拿出資料中心時,結合每塊硬碟的序號(serial number),相關的操作日誌會被掃描以確認該硬碟已被正確有效地抹除。 In the data erasing, corresponding to each erased hard disk, an operation log can be generated by erasing the server. The operation log records in detail the commands executed by the nearly one thousand hard disks in the respective erases and the completion of the tasks, ensuring that records are retained for each operation. The operation log record will be used in subsequent steps. For example, when the storage disk is taken out of the data center, combined with the serial number of each hard disk, the relevant operation log will be scanned to confirm the hard. The disc has been erased correctly and effectively.

為了對抹除過程進行有效監控,特別是識別出抹除過程中出現故障的硬碟,可以藉由一個由軟體實現的硬碟故障識別面板來觀察。參見圖7,是根據本發明實施例的硬碟資料抹除方法中硬碟故障識別面板示意圖。行數Nch表示通道數,列數Ndr表示每個通道中的被抹除硬碟的數目。硬碟用小圓點表示。在整個資料抹除過程中,因為任何原因在任何時刻發生在任何硬碟上的非正常情況均會藉由此面板反應。現場工程師基於清晰明瞭的指示,可以快速定位到有問題的硬碟,做相應替換。此故障識別面板接收來自於SAS卡及其各級SAS expander所傳輸的控制信號,並產生相應的動態更新的使用者介面。 In order to effectively monitor the erasing process, especially to identify the hard disk that has failed during the erasing process, it can be observed by a hard disk fault recognition panel implemented by software. FIG. 7 is a schematic diagram of a hard disk fault identification panel in a hard disk data erasing method according to an embodiment of the present invention. The number of rows Nch represents the number of channels, and the number of columns Ndr represents the number of erased hard disks in each channel. The hard disk is indicated by small dots. During the entire data erasing process, any abnormal situation that occurs on any hard disk at any time for any reason will be reflected by this panel. Based on clear instructions, field engineers can quickly locate the problematic hard drive and replace it accordingly. The fault identification panel receives control signals transmitted from the SAS card and its various levels of SAS expanders and generates a corresponding dynamically updated user interface.

可見,本發明藉由應用較為穩定的SAS互聯技術,設計並構建了一套適於硬碟原有資料的並行抹除的方案。該方案可用於資料中心的資料抹除工作。本發明具有高並行度的優勢,藉由SAS擴展,可並行寫入近千塊機械硬碟和固態硬碟,從而實現資料的有效快速抹除。具體的,藉由抹除伺服器對硬碟直接下發SAS命令到磁片簇設備,藉由SAS卡控制抹除過程,避免了在抹除過程中一直藉由作業系統與硬碟進行I/O通信,極大的節約了系統資源,也是前面提到的高併發的體現。 It can be seen that the present invention designs and constructs a set of parallel erasing methods suitable for the original data of the hard disk by applying the relatively stable SAS interconnection technology. This program can be used for data erasing in data centers. The invention has the advantage of high parallelism. With the SAS extension, nearly one thousand mechanical hard disks and solid state hard disks can be written in parallel, thereby realizing effective and effective erasing of data. Specifically, the SAS command is directly sent to the disk cluster device by the erasing server, and the erasing process is controlled by the SAS card, thereby avoiding the I/O being performed by the operating system and the hard disk during the erasing process. O communication, which greatly saves system resources, is also a manifestation of the high concurrency mentioned above.

本發明具有高併發高效率的特點,可以並行寫入近千塊硬碟。同時,只需要一台普通伺服器作為機頭,即可完成相應的資料寫入,抹除校驗,日誌分析和壞硬碟記錄等相應功能。整體投入可控,且可在短時間內完成近千塊大容量硬碟的非破壞性資料銷毀。所謂非破壞是指硬碟的非破壞,而資料是永久銷毀,不殘留任何資料片段。與現有永久性物理損壞硬碟的方式相比,本發明方案可保證原有資料被有效覆蓋,從而使得被抹除的機械硬碟和固態硬碟仍可使用。 The invention has the characteristics of high concurrency and high efficiency, and can write nearly 1000 hard disks in parallel. At the same time, only one ordinary server is needed as the head, and the corresponding data writing, erasing verification, log analysis and bad hard disk recording can be completed. The overall investment is controllable, and non-destructive data destruction of nearly a thousand large-capacity hard disks can be completed in a short time. The so-called non-destructive means that the hard disk is non-destructive, and the data is permanently destroyed, and no data fragments remain. Compared with the existing permanent physical damage of the hard disk, the solution of the invention can ensure that the original data is effectively covered, so that the erased mechanical hard disk and the solid state hard disk can still be used.

本發明支援使用者自訂抹除模式,使用者可以根據自己的業務場景選擇適合自己的抹除模式如:是否抹除SDA系統磁片、需要抹除硬碟的型號、抹除方式等。 The invention supports the user self-ordering erasing mode, and the user can select an appropriate erasing mode according to his own business scene, such as whether to erase the SDA system disk, the type of the hard disk to be erased, and the erasing mode.

本發明實施例提供一種與上述方法相對應的一種硬碟資料抹除的伺服器,藉由SAS協議控制一個或多個外掛的磁片簇設備,從而對所述磁片簇設備上掛載的多個硬碟 的資料進行批量抹除。 An embodiment of the present invention provides a hard disk data erasing server corresponding to the foregoing method, wherein one or more external magnetic disk cluster devices are controlled by the SAS protocol, thereby being mounted on the magnetic disk cluster device. Multiple hard drives The data is bulk erased.

參見圖8,該伺服器包括:寫操作控制模組801,用於向所述磁片簇設備發送資料寫入命令,發起資料寫入操作;以及,藉由所述資料寫入命令,控制向所述磁片簇所掛載的多個硬碟並行寫入第一類型資料,從而覆蓋原有資料。 Referring to FIG. 8, the server includes: a write operation control module 801, configured to send a data write command to the disk cluster device to initiate a data write operation; and, by using the data write command, control The plurality of hard disks mounted by the cluster of magnetic disks write the first type of data in parallel to cover the original data.

可選的,該伺服器還包括:讀校驗控制模組802,用於向所述磁片簇設備發送校驗讀出命令,發起讀校驗操作;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;以及,判斷所讀出的資料是否為所述第一類型資料,從而完成校驗。 Optionally, the server further includes: a read verification control module 802, configured to send a verify read command to the magnetic chip cluster device, initiate a read verify operation; and according to the check read command, And storing, by the plurality of hard disks mounted by the cluster of magnetic disks, data in parallel; and determining whether the read data is the first type of data, thereby completing verification.

可選的,該伺服器還包括:硬碟啟動識別模組803,用於控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;以及,針對無法識別的硬碟,發出進行熱插拔更換的指示。 Optionally, the server further includes: a hard disk boot recognition module 803, configured to control a plurality of hard disks mounted on the magnetic disk cluster device, and determine whether there is an unrecognizable hard disk; and An indication for hot swap replacement is issued for an unrecognized hard drive.

可選的,該伺服器還包括:操作日誌模組804,用於針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 Optionally, the server further includes: an operation log module 804, configured to generate and save an operation log for each controlled hard disk, where the operation log records a command that the hard disk is executed during the operation. , task completion.

可選的,該伺服器還包括:抹除配置介面模組805,用於向使用者提供抹除配置介面;以及,接收使用者在所述抹除配置介面上輸入的配 置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 Optionally, the server further includes: an erase configuration interface module 805, configured to provide a wipe configuration interface to the user; and receive a user input on the erase configuration interface. The option is to perform erasing control according to the information of the configuration option; the configuration options include: whether to erase the system hard disk, the model of the hard disk to be erased, and/or the erasing mode.

可選的,該伺服器還包括:一個或多個SAS控制模組806,與所述一個或多個磁片簇設備分別對應的,用於藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 Optionally, the server further includes: one or more SAS control modules 806 respectively corresponding to the one or more magnetic chip cluster devices, configured to implement the SAS control module by using a SAS expander A hard disk array layout of multiple hard disks mounted by a disk cluster device.

可選的,所述SAS控制模組806,還用於配置SAS擴展器為多級級聯方式,藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 Optionally, the SAS control module 806 is further configured to configure the SAS expander to be a multi-stage cascading mode, and expand the controlled number of hard disks and the parallelism by using a multi-level cascaded multi-layer SAS expander.

可選的,所述SAS控制模組806,還用於根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 Optionally, the SAS control module 806 is further configured to perform, according to the cascading manner of the multi-level cascaded multi-layer SAS expander, according to the order from the highest-level SAS expander to the first-level SAS expander. Start the hard disk corresponding to each level of SAS expander.

可選的,該伺服器還包括:故障識別模組807,用於類比與硬碟陣列佈局對應的硬碟故障識別面板;以及,藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, the server further includes: a fault identification module 807 for analogizing a hard disk fault identification panel corresponding to the hard disk array layout; and viewing the state of each hard disk by using the hard disk fault recognition panel And locate the hard disk with abnormal status.

此外,本發明還提供一種硬碟資料抹除系統,該系統包括圖8所述的伺服器以及磁片簇設備,其中,所述伺服器藉由SAS協議控制一個或多個外掛的所述磁片簇設備,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 In addition, the present invention also provides a hard disk data erasing system, the system comprising the server and the magnetic disk cluster device of FIG. 8, wherein the server controls one or more external magnetic devices by a SAS protocol The chip cluster device performs bulk erase of the data of the plurality of hard disks mounted on the disk cluster device.

需要注意的是,本發明可在軟體和/或軟體與硬體的組合體中被實施,例如,可採用專用積體電路(ASIC)、通用目的電腦或任何其他類似硬體設備來實現。在一個實施例中,本發明的軟體程式可以藉由處理器執行以實現上文所述步驟或功能。同樣地,本發明的軟體程式(包括相關的資料結構)可以被儲存到電腦可讀記錄媒體中,例如,RAM記憶體,磁或光驅動器或軟碟及類似設備。另外,本發明的一些步驟或功能可採用硬體來實現,例如,作為與處理器配合從而執行各個步驟或功能的電路。 It should be noted that the present invention can be implemented in a combination of software and/or software and hardware, for example, using a dedicated integrated circuit (ASIC), a general purpose computer, or any other similar hardware device. In one embodiment, the software program of the present invention may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including related material structures) of the present invention can be stored in a computer readable recording medium such as a RAM memory, a magnetic or optical drive or a floppy disk and the like. Additionally, some of the steps or functions of the present invention may be implemented in hardware, for example, as a circuit that cooperates with a processor to perform various steps or functions.

另外,本發明的一部分可被應用為電腦程式產品,例如電腦程式指令,當其被電腦執行時,藉由該電腦的操作,可以調用或提供根據本發明的方法和/或技術方案。而調用本發明的方法的程式指令,可能被儲存在固定的或可移動的記錄媒體中,和/或藉由廣播或其他信號承載媒體中的資料流程而被傳輸,和/或被儲存在根據所述程式指令運行的電腦設備的工作記憶體中。在此,根據本發明的一個實施例包括一個裝置,該裝置包括用於儲存電腦程式指令的記憶體和用於執行程式指令的處理器,其中,當該電腦程式指令被該處理器執行時,觸發該裝置運行基於前述根據本發明的多個實施例的方法和/或技術方案。 Additionally, a portion of the present invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide a method and/or solution in accordance with the present invention by operation of the computer. The program instructions for invoking the method of the present invention may be stored in a fixed or removable recording medium and/or transmitted by a data stream in a broadcast or other signal bearing medium, and/or stored in accordance with The program instructions are executed in the working memory of the computer device. Herein, an embodiment of the present invention includes a device including a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, The device is triggered to operate based on the aforementioned methods and/or technical solutions in accordance with various embodiments of the present invention.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此, 無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附申請專利範圍而不是上述說明限定,因此旨在將落在申請專利範圍的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將申請專利範圍中的任何附圖標記視為限制所涉及的申請專利範圍。此外,顯然“包括”一詞不排除其他單元或步驟,單數不排除複數。系統申請專利範圍中陳述的多個單元或裝置也可以由一個單元或裝置藉由軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 It is apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and the present invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. therefore, The embodiments are to be considered as illustrative and not restrictive, and the scope of the invention is defined by the scope of the appended claims rather than the description All changes in the meaning and scope of equivalent elements are included in the present invention. Any reference signs in the scope of the patent application should not be construed as limiting the scope of the claimed patent. In addition, it is to be understood that the word "comprising" does not exclude other elements or steps. A plurality of units or devices recited in the scope of the system patent application may also be implemented by a unit or device by software or hardware. The first, second, etc. words are used to denote names and do not denote any particular order.

Claims (23)

一種硬碟資料抹除方法,其特徵在於,包括:向磁片簇設備發送資料寫入命令;藉由所述資料寫入命令,向所述磁片簇所掛載的硬碟寫入第一類型資料,從而覆蓋原有資料。 A hard disk data erasing method, comprising: sending a data write command to a magnetic disk cluster device; and writing, by the data write command, a first hard disk mounted on the magnetic disk cluster Type information to cover the original data. 如申請專利範圍第1項所述的方法,其中,在資料寫入操作之後,還包括:向所述磁片簇設備發送校驗讀出命令;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 The method of claim 1, wherein, after the data writing operation, further comprising: transmitting a verification read command to the magnetic chip cluster device; according to the verify read command, from the A plurality of hard disks mounted on the magnetic disk cluster read data in parallel; and determining whether the read data is the duplicate data or random data, thereby completing verification. 如申請專利範圍第1項所述的方法,其中,在發起資料寫入操作之前,還包括:控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;針對無法識別的硬碟,發出進行熱插拔更換的指示。 The method of claim 1, wherein before the initiating the data writing operation, the method further comprises: controlling to start a plurality of hard disks mounted on the disk cluster device, and determining whether there is an unrecognizable Hard disk; for hot-swap replacement instructions for unrecognized hard drives. 如申請專利範圍第1項所述的方法,其中,還包括:針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 The method of claim 1, further comprising: generating and saving an operation log for each controlled hard disk, the operation log recording a command that the hard disk is executed during the operation, Task completion. 如申請專利範圍第1項所述的方法,其中,還包括: 向使用者提供抹除配置介面;接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 The method of claim 1, wherein the method further comprises: Providing a wiping configuration interface to the user; receiving configuration options input by the user on the erasing configuration interface, and performing erasing control according to the information of the configuration option; the configuration options include: whether to erase the system hard disk, The model of the hard disk to be erased, and / or erased. 如申請專利範圍第1-5項中之任一項所述的方法,其中,還包括:設置與所述一個或多個磁片簇設備分別對應的一個或多個SAS控制模組;在所述SAS控制模組中,藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 The method of any one of claims 1-5, further comprising: setting one or more SAS control modules respectively corresponding to the one or more magnetic chip cluster devices; In the SAS control module, the hard disk array layout of the plurality of hard disks mounted by the disk cluster device corresponding to the SAS control module is implemented by the SAS expander. 如申請專利範圍第6項所述的方法,其中,還包括:在所述SAS控制模組中,配置SAS擴展器為多級級聯方式;藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 The method of claim 6, further comprising: configuring the SAS expander to be a multi-stage cascading mode in the SAS control module; and expanding by using a multi-level cascaded multi-layer SAS expander The number of hard disks and the degree of parallelism controlled. 如申請專利範圍第7項所述的方法,其中,在資料寫入操作之前或讀校驗操作之後,還包括:根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 The method of claim 7, wherein before the data writing operation or after the reading verifying operation, the method further comprises: according to the cascading manner of the multi-level cascaded multi-layer SAS expander, according to the most The order of the advanced SAS expander to the first-stage SAS expander sequentially starts the hard disk corresponding to each level of the SAS expander. 如申請專利範圍第6項所述的方法,其中,還包 括:類比與硬碟陣列佈局對應的硬碟故障識別面板;藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 The method of claim 6, wherein the package is further included The analog disk fault recognition panel corresponding to the hard disk array layout; the hard disk fault recognition panel is used to view the status of each hard disk and locate the hard disk with abnormal status. 如申請專利範圍第1項所述的方法,其中,藉由SAS協定控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 The method of claim 1, wherein the one or more external magnetic cluster devices are controlled by the SAS protocol, and the first type of data is written in parallel to the hard disk mounted by the magnetic cluster. Thereby, the data of the plurality of hard disks mounted on the disk cluster device is bulk erased. 如申請專利範圍第1項所述的方法,其中,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 The method of claim 1, wherein the first type of data is preset data, duplicate data, random data, or template data. 一種硬碟資料抹除伺服器,其特徵在於,所述伺服器包括:寫操作控制模組,用於向磁片簇設備發送資料寫入命令;以及,根據所述資料寫入命令,控制向所述磁片簇所掛載的多個硬碟寫入第一類型資料,從而覆蓋原有資料。 A hard disk data erasing server, characterized in that: the server comprises: a write operation control module, configured to send a data write command to the magnetic chip cluster device; and, according to the data write command, control The plurality of hard disks mounted by the cluster of magnetic disks write the first type of data to cover the original data. 如申請專利範圍第12項所述的伺服器,其中,還包括:讀校驗控制模組,用於向所述磁片簇設備發送校驗讀出命令;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;以及,判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 The server of claim 12, further comprising: a read verification control module, configured to send a verification read command to the magnetic chip cluster device; and according to the verification read command, And reading data from a plurality of hard disks mounted by the cluster of magnetic disks; and determining whether the read data is the duplicate data or random data, thereby completing verification. 如申請專利範圍第12項所述的伺服器,其中,還包括: 硬碟啟動識別模組,用於控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;以及,針對無法識別的硬碟,發出進行熱插拔更換的指示。 The server of claim 12, wherein the method further comprises: a hard disk boot recognition module, configured to control a plurality of hard disks mounted on the disk cluster device, and determine whether there is an unrecognizable hard disk; and, for an unrecognizable hard disk, issue a hot plug Pull out the replacement instructions. 如申請專利範圍第12項所述的伺服器,其中,還包括:操作日誌模組,用於針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 The server of claim 12, further comprising: an operation log module, configured to generate and save an operation log for each controlled hard disk, wherein the operation log records the hard disk in the Commands and tasks completed during the operation. 如申請專利範圍第12項所述的伺服器,其中,還包括:抹除配置介面模組,用於向使用者提供抹除配置介面;以及,接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 The server of claim 12, further comprising: an erase configuration interface module, configured to provide a wipe configuration interface to the user; and the receiving user inputs the erase configuration interface The configuration option is to perform erasing control according to the information of the configuration option; the configuration options include: whether to erase the system hard disk, the model of the hard disk to be erased, and/or the erasing mode. 如申請專利範圍第12-16項中之任一項所述的伺服器,其中,還包括:一個或多個SAS控制模組,與所述一個或多個磁片簇設備分別對應的,用於藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 The server of any one of claims 12-16, further comprising: one or more SAS control modules respectively corresponding to the one or more magnetic chip cluster devices, The hard disk array layout of the plurality of hard disks mounted by the disk cluster device corresponding to the SAS control module is implemented by the SAS expander. 如申請專利範圍第17項所述的伺服器,其中,所述SAS控制模組,還用於配置SAS擴展器為多級級聯方式,藉由多級級聯的多層SAS擴展器,擴展所控 制的硬碟數目和並行度。 The server of claim 17, wherein the SAS control module is further configured to configure the SAS expander to be a multi-stage cascade manner, and expand the station by using a multi-level cascaded multi-layer SAS expander. control The number of hard disks and the degree of parallelism. 如申請專利範圍第18項所述的伺服器,其中,所述SAS控制模組,還用於根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 The server of claim 18, wherein the SAS control module is further configured to: according to the cascade manner of the multi-level cascaded multi-layer SAS expander, according to the highest-level SAS expander The order of the first level SAS expander sequentially starts the hard disk corresponding to each level of the SAS expander. 如申請專利範圍第17項所述的伺服器,其中,還包括:故障識別模組,用於類比與硬碟陣列佈局對應的硬碟故障識別面板;以及,藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 The server of claim 17, further comprising: a fault identification module for analogizing a hard disk fault recognition panel corresponding to the hard disk array layout; and, by the hard disk fault recognition panel , view the status of each hard disk and locate the hard disk with abnormal status. 如申請專利範圍第12項所述的伺服器,其中,所述伺服器藉由SAS協議控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 The server of claim 12, wherein the server controls one or more external magnetic cluster device by the SAS protocol, and writes to the hard disk mounted by the magnetic cluster in parallel. The first type of data is used to bulk erase the data of the plurality of hard disks mounted on the disk cluster device. 如申請專利範圍第12項所述的伺服器,其中,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 The server of claim 12, wherein the first type of data is preset data, duplicate data, random data or template data. 一種硬碟資料抹除系統,其特徵在於,包括磁片簇設備以及如申請專利範圍第12-22項中之任一項所述的伺服器。 A hard disk data erasing system, comprising a magnetic disk cluster device and a server according to any one of claims 12-22.
TW106108192A 2016-05-06 2017-03-13 Hard disk data erasing method, server and system TWI738739B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610299332.3 2016-05-06
CN201610299332.3A CN107346210B (en) 2016-05-06 2016-05-06 Hard disk data erasing method, server and system

Publications (2)

Publication Number Publication Date
TW201740370A true TW201740370A (en) 2017-11-16
TWI738739B TWI738739B (en) 2021-09-11

Family

ID=60202768

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106108192A TWI738739B (en) 2016-05-06 2017-03-13 Hard disk data erasing method, server and system

Country Status (3)

Country Link
CN (1) CN107346210B (en)
TW (1) TWI738739B (en)
WO (1) WO2017190578A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI700636B (en) * 2018-09-07 2020-08-01 神雲科技股份有限公司 Data erasing method for cluster storage system

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943419A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of SSD secure erase automated testing methods and device
CN109213448B (en) * 2018-08-30 2022-04-05 东信和平科技股份有限公司 Method, device, equipment and storage medium for erasing and writing data of smart card
CN110321082B (en) * 2019-07-09 2023-05-30 上海万物新生环保科技集团有限公司 Data clearing method and device for computer
CN110797052B (en) 2019-10-21 2021-10-01 北京工业大学 Rapid demagnetization method based on magnetic medium characteristics
CN110989921B (en) * 2019-10-24 2023-05-26 西安艾可萨科技有限公司 Configurable memory array system, control method thereof and communication equipment
CN111158608B (en) * 2019-12-31 2021-11-23 云和恩墨(北京)信息技术有限公司 Hard disk fault processing method and device and distributed system
CN111240800B (en) * 2020-01-03 2022-12-27 华云数据有限公司 Hardware acceleration equipment mounting method and cloud platform
US11379156B2 (en) * 2020-08-19 2022-07-05 Micron Technology, Inc. Write type indication command
CN112181310A (en) * 2020-10-14 2021-01-05 北京安石科技有限公司 Deep erasing/self-destruction method and system for hard disk data
CN113535084B (en) * 2021-06-22 2024-06-21 杭州华澜微电子股份有限公司 Implementation method of high-capacity SAS hard disk
CN114816269B (en) * 2022-05-31 2024-06-21 苏州浪潮智能科技有限公司 Method, device, system, server and medium for erasing server data

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101339869B1 (en) * 2008-09-22 2013-12-10 삼성전자주식회사 Image forming apparatus and method of overwriting for storage unit in image forming apparatus
CN101465164B (en) * 2009-01-12 2013-04-17 成都市华为赛门铁克科技有限公司 Method, device and system for obliterating data
US8645636B2 (en) * 2010-09-29 2014-02-04 International Business Machines Corporation Methods for managing ownership of redundant data and systems thereof
US20120078931A1 (en) * 2010-09-29 2012-03-29 International Business Machines Corporation Methods for managing ownership of redundant data and systems thereof
CN102511044B (en) * 2011-09-06 2013-10-02 华为技术有限公司 Method for deleting the data and device thereof
US8943258B2 (en) * 2011-11-04 2015-01-27 Lsi Corporation Server direct attached storage shared through virtual SAS expanders
CN103135669A (en) * 2011-11-28 2013-06-05 鸿富锦精密工业(深圳)有限公司 Storage device and work method and data transmission method thereof
CN103902468B (en) * 2012-12-27 2018-02-23 华为技术有限公司 The data clearing method and device of storage system
WO2014101186A1 (en) * 2012-12-31 2014-07-03 华为技术有限公司 Data erasure method, device and system
CN103729321B (en) * 2013-12-27 2017-01-18 华为技术有限公司 Management device and multi-expander chip management method
US9575673B2 (en) * 2014-10-29 2017-02-21 Commvault Systems, Inc. Accessing a file system using tiered deduplication
CN104657316B (en) * 2015-03-06 2018-01-19 北京百度网讯科技有限公司 Server
CN105045336A (en) * 2015-06-25 2015-11-11 北京百度网讯科技有限公司 JBOD (Just Bunch of Disks)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI700636B (en) * 2018-09-07 2020-08-01 神雲科技股份有限公司 Data erasing method for cluster storage system

Also Published As

Publication number Publication date
WO2017190578A1 (en) 2017-11-09
CN107346210A (en) 2017-11-14
TWI738739B (en) 2021-09-11
CN107346210B (en) 2020-08-14

Similar Documents

Publication Publication Date Title
TW201740370A (en) Hard disk data wiping method, server and system
CN103562878B (en) Memory check point in mirror image dummy machine system is set
JP5523468B2 (en) Active-active failover for direct attached storage systems
US20120144110A1 (en) Methods and structure for storage migration using storage array managed server agents
US8707076B2 (en) System and method for power management of storage resources
US8631200B2 (en) Method and system for governing an enterprise level green storage system drive technique
TW200540623A (en) System and method for drive recovery following a drive failure
US20170177225A1 (en) Mid-level controllers for performing flash management on solid state drives
EP3627334B1 (en) Extended storage device based on pcie bus
CN112379825B (en) Distributed data storage method and device based on data feature sub-pools
CN104035731B (en) Storage head node of blade server
US11288197B2 (en) Method and apparatus for performing pipeline-based accessing management in a storage server
CN105700817A (en) Just Bunch of Discs JBOD apparatus
US20160011791A1 (en) Storage control apparatus, storage system, and program
US7774650B2 (en) Power failure warning in logically partitioned enclosures
KR101147186B1 (en) Home storage device and software
US8468298B2 (en) Management device and management method
CN111857576B (en) Storage system for Ethernet management
US9836359B2 (en) Storage and control method of the same
CN113805809A (en) Storage micro-array equipment based on QSFP interface
KR101273552B1 (en) Data converting system
WO2015196820A1 (en) Method and apparatus for creating jbod file system
JP2012174037A (en) Disk array device and control method thereof
KR102659829B1 (en) Methods and systems for controlling Redundant Array of Inexpensive Disks (RAID) operations
CN104461394A (en) RAID (redundant array of independent disk) and method for reading data from same