TWI738739B - Hard disk data erasing method, server and system - Google Patents

Hard disk data erasing method, server and system Download PDF

Info

Publication number
TWI738739B
TWI738739B TW106108192A TW106108192A TWI738739B TW I738739 B TWI738739 B TW I738739B TW 106108192 A TW106108192 A TW 106108192A TW 106108192 A TW106108192 A TW 106108192A TW I738739 B TWI738739 B TW I738739B
Authority
TW
Taiwan
Prior art keywords
data
hard disk
disk
sas
hard
Prior art date
Application number
TW106108192A
Other languages
Chinese (zh)
Other versions
TW201740370A (en
Inventor
牛功彪
蔡進
鄒巍
張文濤
李舒
Original Assignee
香港商阿里巴巴集團服務有限公司
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 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW201740370A publication Critical patent/TW201740370A/en
Application granted granted Critical
Publication of TWI738739B publication Critical patent/TWI738739B/en

Links

Images

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

本發明提供了一種硬碟資料抹除方法、伺服器及系統,其中,所述方法包括:向磁片簇設備發送資料寫入命令;藉由所述資料寫入命令,向所述磁片簇所掛載的多個硬碟寫入第一類型資料,從而覆蓋原有資料。本發明可高效、非破壞地對硬碟進行資料抹除。 The present invention provides a hard disk data erasing method, server and system, wherein the method includes: sending a data write command to a disk cluster device; using the data write command to send a data write command to the disk cluster The mounted multiple hard disks are written with the first type data, thereby overwriting the original data. The invention can erase data from hard disks efficiently and non-destructively.

Description

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

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

機械硬碟(如硬碟驅動器,Hard Disk Drive,HDD)和固態硬碟(Solid State Drive,SSD)是資料中心常使用的儲存元件,二者各有優點。比如,固態硬碟在資料讀取速度、抗震能力、功耗、運行聲音以及發熱方面,都較具有優勢;而機械硬碟具有容量大、價位低的優點。 Mechanical hard disks (such as hard disk drives, Hard Disk Drives, HDDs) and solid state drives (Solid State Drives, SSDs) are commonly used storage components in data centers, and both have their own advantages. For example, solid-state hard disks have advantages in data reading speed, shock resistance, power consumption, operating 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 regulations, the data carried on the storage element must be effectively destroyed before being taken out of the data center to avoid data leakage. In addition, in the case of failure replacement, relocation, etc., the data also needs to be erased.

一些資料中心現行的資料銷毀採用的是永久性破壞硬碟的方式,例如對硬碟進行永久性物理損壞。在經過此類物理損壞後,磁片上的已有資料固然無法恢復,但同時,該硬碟的使用壽命終結,直接導致硬碟未能被充分利用其全部使用壽命,因而增加了資料中心的維護成本。 The current data destruction in some data centers uses permanent damage to the hard disk, such as permanent physical damage to the hard disk. After such physical damage, the existing data on the floppy disk cannot be restored, but at the same time, the life of the hard disk is ended, which directly causes the hard disk to fail to fully utilize its full 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, server and system.

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

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

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

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

可選的,還包括:向使用者提供抹除配置介面;接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 Optionally, the method further includes: providing an erasing 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 options; the configuration options include: Whether to erase the system hard disk, the model of the hard disk to be erased, and/or the erasing method.

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

可選的,還包括:在所述SAS控制模組中,配置SAS擴展器為多級級聯方式;藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 Optionally, it further includes: in the SAS control module, the SAS expander is configured in a multi-stage cascading manner; through the multi-stage cascaded multilayer SAS expander, the number of controlled hard disks and the degree of parallelism are expanded.

可選的,在資料寫入操作之前或讀校驗操作之後,還包括:根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 Optionally, before the data writing operation or after the read verification operation, the method further includes: according to the cascading mode of the multi-stage cascaded multilayer SAS expander, according to the expansion from the highest-level SAS expander to the first-level SAS expander In the order of the controllers, start the hard disks corresponding to the SAS expanders at all levels in turn.

可選的,還包括:類比與硬碟陣列佈局對應的硬碟故障識別面板;藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, it further includes: a hard disk failure identification panel analogous to the layout of the hard disk array; through the hard disk failure identification panel, the status of each hard disk is checked and the hard disk with abnormal status is located.

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

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

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

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

可選的,還包括:硬碟啟動識別模組,用於控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;以及,針對無法識別的硬碟,發出進行熱插拔更換的指示。 Optionally, it further includes: a hard disk startup identification module, which is used to control the startup of multiple hard disks mounted on the disk cluster device and determine whether there are unidentified hard disks; and, for unidentified hard disks Hard disk, issued instructions for hot-swappable replacement.

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

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

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

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

可選的,所述SAS控制模組,還用於根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 Optionally, the SAS control module is further configured to start sequentially according to the cascade mode of the multi-level cascaded multilayer SAS expander, and according to the order from the highest-level SAS expander to the first-level SAS expander Hard disks corresponding to all levels of SAS expanders.

可選的,還包括:硬碟故障識別面板模組,用於類比與硬碟陣列佈局對應的硬碟故障識別面板;以及,藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 Optionally, it further includes: a hard disk failure identification panel module, which is used to compare the hard disk failure identification panel corresponding to the hard disk array layout; and, through the hard disk failure identification panel, check the status of each hard disk and Locate the hard disk with abnormal status.

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

可選的,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 Optionally, the first type of data is preset data, repeated 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 includes the server described in any one of the above and a disk cluster device.

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

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

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

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

802‧‧‧讀校驗控制模組 802‧‧‧Reading verification control module

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

804‧‧‧操作日誌模組 804‧‧‧Operation log module

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

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

807‧‧‧故障識別模組 807‧‧‧Fault Recognition Module

藉由閱讀參照以下附圖所作的對非限制性實施例所作的詳細描述,本發明的其它特徵、目的和優點將會變得更明顯:圖1是根據本發明實施例的硬碟資料抹除方法的流程圖;圖2是根據本發明實施例的硬碟資料抹除方法中硬碟寫資料原理示意圖; 圖3是根據本發明實施例的硬碟資料抹除方法中資料抹除頂層架構示意圖;圖4是根據本發明實施例的硬碟資料抹除方法中SAS控制模組的擴展方式示意圖;圖5是根據本發明實施例的硬碟資料抹除方法中啟動抹除流程示意圖;圖6是根據本發明實施例的硬碟資料抹除方法中關閉抹除流程示意圖;圖7是根據本發明實施例的硬碟資料抹除方法中硬碟故障識別面板示意圖;圖8是根據本發明實施例的硬碟資料抹除伺服器的結構示意圖。 By reading the detailed description of the non-limiting embodiments with reference to the following drawings, the other features, purposes and advantages of the present invention will become more apparent: Figure 1 is a hard disk data erasure according to an embodiment of the present invention A flowchart of the method; FIG. 2 is a schematic diagram of the principle of writing data to a hard disk in a method for erasing hard disk data according to an embodiment of the present invention; FIG. 3 is a schematic diagram of the top-level structure of data erasing in a hard disk data erasing method according to an embodiment of the present invention; FIG. 4 is a schematic diagram of an expansion method of a SAS control module in a hard disk data erasing method according to an embodiment of the present invention; FIG. 5 Fig. 6 is a schematic diagram of the erase process in the hard disk data erasing method according to an embodiment of the present invention; Fig. 7 is a schematic diagram of the closing erase process in the hard disk data erasing method according to an embodiment of the present invention; A schematic diagram of the hard disk failure identification panel in the method for erasing hard disk data; FIG. 8 is a schematic diagram of the structure of a hard disk data erasing server according to an embodiment of the present invention.

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

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

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

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

後面所討論的方法(其中一些藉由流程圖示出)可以藉由硬體、軟體、韌體、中介軟體、微代碼、硬體描述語言或者其任意組合來實施。當用軟體、韌體、中介軟體或微代碼來實施時,用以實施必要任務的程式碼或程式碼片段可以被儲存在機器或電腦可讀媒體(比如儲存媒體)中。(一個或多個)處理器可以實施必要的任務。 The methods discussed later (some of which are shown by flowcharts) can be implemented by hardware, software, firmware, intermediary software, microcode, hardware description language, or any combination thereof. When implemented with software, firmware, intermediary software, or microcode, the code or code fragments 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 structure and function details disclosed here are only representative. And it is used for the purpose of describing exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and should not be construed as being limited only to the embodiments set forth herein.

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

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

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

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

首先對本發明實施例中出現的專業術語進行說明:SAS(Serial Attached SCSI,串列連接SCSI),是一種磁片連接技術,它總和了並行SCSI和串列連接技術的優勢,採用SCSI-3擴展指令集並相容SATA設備,是多層次的存放裝置連線協定棧。 First, the technical terms appearing in the embodiments of the present invention are explained: SAS (Serial Attached SCSI) is a disk connection technology, which combines the advantages of parallel SCSI and serial connection technology, and uses SCSI-3 to expand. 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域。 The SAS Expander (SAS Expander) is a functional module in the SAS protocol, which is used to connect multiple SAS devices, 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". Disk cluster device (JBOD device) is a storage device with multiple disk drives installed on a base plate.

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

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

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

本實施例的方法主要包括如下步驟:S100、抹除伺服器控制啟動磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;針對無法識別的硬碟,發出進行熱插拔更換的指示;S101、抹除伺服器向磁片簇設備發送資料寫入命令,藉由資料寫入命令,向磁片簇所掛載的多個硬碟並行寫入第一類型資料,從而覆蓋原有資料;S102、抹除伺服器向磁片簇設備發送校驗讀出命令,發起讀校驗操作;根據校驗讀出命令,從磁片簇所掛載的多個硬碟並行讀出資料;判斷所讀出的資料是否為第一類型資料,從而完成校驗。 The method of this embodiment mainly includes the following steps: S100, the wipe server controls and activates the multiple hard disks mounted on the disk cluster device, and determines whether there are unrecognized hard disks; for the unrecognized hard disks, issue Instructions for hot swap replacement; S101. The erase server sends a data write command to the disk cluster device, and writes the first type in parallel to the multiple hard disks mounted in the disk cluster through the data write command Data, so as to overwrite the original data; S102, the erase server sends a verification read command to the disk cluster device to initiate a read verification operation; according to the verification read command, from multiple hard drives mounted in the disk cluster The disc reads data in parallel; it is judged whether the read data is the first type of data, so as to complete 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, high-density storage devices such as a mechanical hard disk (such as a hard disk drive, Hard Disk Drive, HDD) and a solid state drive (SSD).

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

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

步驟S100是抹除資料的準備步驟,主要為了查看所有硬碟是否啟動,並確定是否有硬碟存在故障等問題而無法識別,並針對無法識別的硬碟,告知工程師進行熱插拔更換處理。可以理解,S100是可選的準備步驟,並不是必須的,也即可以省略此步驟。 Step S100 is a preparatory step for erasing data, mainly to check whether all hard disks are booted, and to determine whether any hard disks are unrecognizable due to problems such as failures, and to inform engineers to perform hot swap replacement for unrecognized hard disks. It can be understood that S100 is an optional preparation step and is not necessary, that is, this step can be omitted.

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

為了實現對硬碟進行第一類型資料的寫入控制,可以藉由在抹除伺服器中設置SAS控制模組來實現。具體的,在抹除伺服器中設置與磁片簇設備數目對應的一個或多個SAS控制模組(即每一個SAS控制模組控制一個磁片簇設備);在SAS控制模組中,藉由SAS擴展器(SAS Expander)實現所對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。其中,SAS Expander是SAS協定中的一個功能模組,其用於將多個SAS設備連接在一起,包括SAS陣列卡、SAS硬碟等,從而形成SAS域。SAS Expander可以將多個SAS連接到有限數量的主機埠上。在SAS域中,SAS Expander可以起到中心交換作用,並可直接連接終端設備。 In order to realize the writing control of the first type of data to the hard disk, it can be realized by setting the SAS control module in the erasing server. Specifically, one or more SAS control modules corresponding to the number of disk cluster devices are set in the erasing server (that is, each SAS control module controls one disk cluster device); in the SAS control module, borrow The SAS Expander (SAS Expander) realizes the hard disk array layout of multiple hard disks mounted on the corresponding disk cluster device. 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 SASs to a limited number of host ports. In the SAS domain, SAS Expander can play a central switching role and can directly connect to terminal 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 of controlled hard disks and the degree of parallelism, a multi-level cascading method of multi-layer SAS expanders can be adopted. For example, in the SAS control module, a multi-stage cascading mode of four-layer SAS expanders is configured; through the multi-stage cascaded four-layer SAS expander, the number of controlled hard drives and the degree of parallelism are expanded. In the multi-level cascade mode of multi-level SAS expander, before the data write operation or after the read verification operation, the order of starting the SAS expander and the corresponding hard disk at each level is: according to the multi-level cascade multi-level SAS expansion The cascading method of the SAS expander is based on the order from the highest-level SAS expander to the first-level SAS expander, and the hard disks corresponding to each level of the SAS expander are activated in turn. For example, assuming that four-layer SAS expanders are used: level1, level2, level3, and level4, where level4 is the highest level, then the startup sequence 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 data after the data erasure is completed. It can be seen that this step is mainly to determine the correctness of the data erasure, and is an optional step, not a necessary step.

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

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

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

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

本發明以並行寫入多塊硬碟以覆蓋硬碟面上的已有內容。因此,選用的固定的資料模式如全零模式或亂數模式把磁片記錄的內容改變為無意義的資料。而此動作包括被抹除硬碟的所有磁區,以避免任何內容殘留而導致的資訊洩露。 In the present invention, multiple hard disks are written in parallel to cover the 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 on the disk into meaningless data. This action includes erasing all sectors of the hard disk to avoid information leakage caused by any content remaining.

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

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

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

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

(2)外掛JBOD設備:抹除伺服器藉由SAS線纜連 接外部的JBOD設備,每個JBOD設備內部掛載多塊機械硬碟。所有硬碟均以“塊”設備的形式呈現在伺服器機頭。伺服器機頭直接控制每一塊硬碟並進行相應操作。 (2) External JBOD device: Wipe the server through the SAS cable connection Connect to external JBOD devices, and each JBOD device is equipped with multiple mechanical hard disks. All hard disks are presented on the server head in the form of "block" devices. The server 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 dual-channel structure is adopted, and two SAS cards (SAS control modules) are installed inside the erasing server to expand to each level of hard disks in their respective external JBOD devices in parallel. The SAS card is connected to the server CPU and memory system through the PCIe bus. The bandwidth of a single channel is the PCIe bus bandwidth. For example, PCIe 3.0 x 8 can achieve a maximum bandwidth of 8GB/sec. For mechanical hard drives, this Similar to devices with lower throughput performance, it can effectively increase concurrency to write to a large number of hard disk devices at the same time.

下面取一路SAS擴展進行介紹。 Let's take one SAS expansion for introduction.

參見圖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級聯方式,其目的是增大可連接的硬碟數目,從而增大並行度。 Refer to FIG. 4, which is a schematic diagram of the expansion method of the SAS control module in the hard disk data erasing method according to the embodiment of the present invention. Figure 4 shows the expansion architecture of the present invention. In the figure, for simplification, A represents the SAS expander A, and B represents the SAS expander B. The SAS expander B is connected to multiple hard disks. With the SAS expander, the interconnection of the present invention continues to extend downward. A single SAS control module drives two paths in parallel, and each path is expanded in four levels. SAS expander A has N SAS 3.0 channels, and SAS expander B has M SAS 3.0 channels, where N>M. With the four-layer SAS expander cascade as shown in Figure 4, the purpose is to increase the number of connectable hard disks, 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 the process of starting the erasing in the hard disk data erasing method according to an embodiment of the present invention. It includes the following steps: S501: Start the hard disk with the highest level, that is, level 4 (level 4); S502: Start the hard disk with the second highest level, namely the third level (level3); S503: Start the hard disk with the next lower level, the second level (level2); S504: Start the hard disk with the lowest level, the first level (level1); S505 : Start the erasing server; S506: Write the first type of data to all visible hard disks in parallel.

參見圖6,是根據本發明實施例的硬碟資料抹除方法中關閉抹除流程示意圖。 Referring to FIG. 6, it is a schematic diagram of a closing 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 disks are erased and the read verification is completed; S602: the hard disk with the highest booting level is the fourth (level4); S603: the hard disk with the second highest booting is the third level (level3); S604: the hard disk is booted again The lower level is the second (level2) hard disk; S605: the lowest level is the first level (level1) hard disk; S606: the wipe server is started.

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

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

在資料抹除中,對應每個被抹除的硬碟,在抹除伺服器可產生操作日誌。操作日誌可詳細記錄近千塊硬碟在各自抹除中所執行的命令以及任務完成情況等資訊,保證每次操作都保留有記錄。而該操作日誌記錄將在後續多個環節被用到,例如,在儲存硬碟拿出資料中心時,結合每塊硬碟的序號(serial number),相關的操作日誌會被掃描以確認該硬碟已被正確有效地抹除。 In data erasing, corresponding to each erased hard disk, an operation log can be generated on the erasing server. The operation log can record in detail the commands executed by nearly a thousand hard disks in their respective erasing and the completion of tasks, ensuring that records are kept for each operation. The operation log record will be used in many subsequent links. For example, when the storage hard disk is taken out of the data center, combined with the serial number of each hard disk, the related operation log will be scanned to confirm the hard disk. 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, a hard disk failure identification panel implemented by software can be used to observe. Refer to FIG. 7, which is a schematic diagram of a hard disk failure 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. Hard disks are 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 on this panel. Based on clear instructions, on-site engineers can quickly locate the problematic hard drive and replace it accordingly. The fault identification panel receives the control signals transmitted by the SAS card and its SAS expanders at all levels, 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 solutions suitable for parallel erasing of original data on hard disks by applying relatively stable SAS interconnection technology. This program can be used for data erasure in data centers. The invention has the advantage of high parallelism. With SAS expansion, nearly a thousand mechanical hard disks and solid state hard disks can be written in parallel, thereby realizing effective and rapid erasing of data. Specifically, the erasing server directly issues SAS commands to the hard disk to the disk cluster device, and controls the erasing process by the SAS card, which avoids always using the operating system and the hard disk to perform I/O during the erasing process. O communication greatly saves system resources and is also a manifestation of the aforementioned high concurrency.

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

本發明支援使用者自訂抹除模式,使用者可以根據自己的業務場景選擇適合自己的抹除模式如:是否抹除SDA系統磁片、需要抹除硬碟的型號、抹除方式等。 The invention supports users to customize the erasing mode, and the user can choose the erasing mode suitable for them according to their own business scenarios, such as whether to erase the SDA system disk, the model of the hard disk that needs to be erased, and the erasing method.

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

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

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

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

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

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

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

可選的,所述SAS控制模組806,還用於配置SAS擴展器為多級級聯方式,藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 Optionally, the SAS control module 806 is also used to configure the SAS expander in a multi-stage cascading manner, through the multi-stage cascaded multilayer SAS expander, the number of controlled hard disks and the parallelism are expanded.

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

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

此外,本發明還提供一種硬碟資料抹除系統,該系統包括圖8所述的伺服器以及磁片簇設備,其中,所述伺服器藉由SAS協議控制一個或多個外掛的所述磁片簇設備,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 In addition, the present invention also provides a hard disk data wiping system, which includes the server and disk cluster device as described in FIG. 8, wherein the server controls one or more external disks through the SAS protocol. A cluster device is used to erase data of multiple hard disks mounted on the disk cluster device in batches.

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

另外,本發明的一部分可被應用為電腦程式產品,例如電腦程式指令,當其被電腦執行時,藉由該電腦的操作,可以調用或提供根據本發明的方法和/或技術方案。而調用本發明的方法的程式指令,可能被儲存在固定的或可移動的記錄媒體中,和/或藉由廣播或其他信號承載媒體中的資料流程而被傳輸,和/或被儲存在根據所述程式指令運行的電腦設備的工作記憶體中。在此,根據本發明的一個實施例包括一個裝置,該裝置包括用於儲存電腦程式指令的記憶體和用於執行程式指令的處理器,其中,當該電腦程式指令被該處理器執行時,觸發該裝置運行基於前述根據本發明的多個實施例的方法和/或技術方案。 In addition, a part of the present invention can be applied as a computer program product, such as a computer program instruction. When it is executed by a computer, the method and/or technical solution according to the present invention can be invoked or provided by the 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 be transmitted by data flow in broadcast or other signal-bearing media, and/or be stored in accordance with the The program instructions run in the working memory of the computer equipment. Here, an embodiment according to 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, Triggering the operation of the device is based on the aforementioned methods and/or technical solutions according to multiple embodiments of the present invention.

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

Claims (21)

一種硬碟資料抹除方法,其特徵在於,包括:向磁片簇設備發送資料寫入命令;向使用者提供抹除配置介面;接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式;及藉由所述資料寫入命令,向所述磁片簇所掛載的硬碟寫入第一類型資料,從而覆蓋原有資料。 A method for erasing hard disk data, comprising: sending a data write command to a disk cluster device; providing a user with an erasing configuration interface; receiving configuration options entered by the user on the erasing configuration interface, Perform erasure control according to the information of the configuration options; the configuration options include: whether to erase the system hard disk, the model of the hard disk to be erased, and/or the erasing method; and by the data writing command , To write the first type of data to the hard disk mounted on the disk cluster, thereby overwriting the original data. 如請求項1所述的方法,其中,在資料寫入操作之後,還包括:向所述磁片簇設備發送校驗讀出命令;根據所述校驗讀出命令,從所述磁片簇所掛載的多個硬碟並行讀出資料;判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 The method according to claim 1, wherein, after the data writing operation, the method further comprises: sending a verification read command to the disk cluster device; according to the verification read command, from the disk cluster Multiple mounted hard disks read data in parallel; determine whether the read data is the repeated data or random data, thereby completing the verification. 如請求項1所述的方法,其中,在發起資料寫入操作之前,還包括:控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;針對無法識別的硬碟,發出進行熱插拔更換的指示。 The method according to claim 1, wherein, 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 are unrecognized hard disks; For unrecognized hard disks, instructions for hot-swappable replacement are issued. 如請求項1所述的方法,其中,還包 括:針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 The method according to claim 1, wherein Including: For each controlled hard disk, an operation log is generated and saved, and the operation log records the execution of the command and task completion status of the hard disk during the operation. 如請求項1-4中之任一項所述的方法,其中,還包括:設置與所述一個或多個磁片簇設備分別對應的一個或多個SAS控制模組;在所述SAS控制模組中,藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 The method according to any one of claim items 1-4, further comprising: setting one or more SAS control modules corresponding to the one or more disk cluster devices; In the module, the SAS expander is used to implement the hard disk array layout of the multiple hard disks mounted on the disk cluster device corresponding to the SAS control module. 如請求項5所述的方法,其中,還包括:在所述SAS控制模組中,配置SAS擴展器為多級級聯方式;藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 The method according to claim 5, which further includes: configuring the SAS expander in the SAS control module in a multi-stage cascading manner; and expanding the controlled The number of hard drives and the degree of parallelism. 如請求項6所述的方法,其中,在資料寫入操作之前或讀校驗操作之後,還包括:根據所述多級級聯的多層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 The method according to claim 6, wherein, before the data write operation or after the read verification operation, the method further includes: according to the cascade mode of the multi-level cascaded multilayer SAS expander, according to the highest level SAS expansion In the sequence of the first-level SAS expander, start the hard disks corresponding to each level of SAS expander in turn. 如請求項5所述的方法,其中,還包括: 類比與硬碟陣列佈局對應的硬碟故障識別面板;藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 The method according to claim 5, which further includes: Analogous to the hard disk failure identification panel corresponding to the hard disk array layout; through the hard disk failure identification panel, the status of each hard disk is checked and the hard disk with abnormal status is located. 如請求項1所述的方法,其中,藉由SAS協定控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 The method according to claim 1, wherein one or more external disk cluster devices are controlled by the SAS protocol to write the first type of data to the hard disks mounted in the disk cluster in parallel, so that all The data of multiple hard disks mounted on the disk cluster device are erased in batches. 如請求項1所述的方法,其中,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 The method according to claim 1, wherein the first type of data is preset data, repeated data, random data, or template data. 一種硬碟資料抹除伺服器,其特徵在於,所述伺服器包括:寫操作控制模組,用於向磁片簇設備發送資料寫入命令;以及,根據所述資料寫入命令,控制向所述磁片簇所掛載的多個硬碟寫入第一類型資料,從而覆蓋原有資料;抹除配置介面模組,用於向使用者提供抹除配置介面;以及,接收使用者在所述抹除配置介面上輸入的配置選項,根據所述配置選項的資訊進行抹除控制;所述配置選項包括:是否抹除系統硬碟、待抹除硬碟的型號,和/或,抹除方式。 A hard disk data erasing server, characterized in that, the server includes: a write operation control module for sending a data write command to a disk cluster device; and, according to the data write command, control to The multiple hard disks mounted in the disk cluster are written with the first type data so as to overwrite the original data; the erasing configuration interface module is used to provide the user with the erasing configuration interface; and, receiving the user's The configuration options entered on the erase configuration interface are erased according to the information of the configuration options; the configuration options include: whether to erase the system hard disk, the model of the hard disk to be erased, and/or erase In addition to the way. 如請求項11所述的伺服器,其中,還包括:讀校驗控制模組,用於向所述磁片簇設備發送校驗讀出命令;根據所述校驗讀出命令,從所述磁片簇所掛載的 多個硬碟並行讀出資料;以及,判斷所讀出的資料是否為所述重復資料或隨機資料,從而完成校驗。 The server according to claim 11, further comprising: a read verification control module for sending a verification read command to the disk cluster device; according to the verification read command, from the Disk cluster mounted Multiple hard disks read data in parallel; and determine whether the read data is the repeated data or random data, so as to complete the verification. 如請求項11所述的伺服器,其中,還包括:硬碟啟動識別模組,用於控制啟動所述磁片簇設備上所掛載的多個硬碟,並判斷是否存在無法識別的硬碟;以及,針對無法識別的硬碟,發出進行熱插拔更換的指示。 The server according to claim 11, which further includes: a hard disk startup identification module, which is used to control the startup of multiple hard disks mounted on the disk cluster device and determine whether there are unidentified hard disks. And, for unrecognized hard disks, issue instructions for hot-swappable replacement. 如請求項11所述的伺服器,其中,還包括:操作日誌模組,用於針對每個被控制的硬碟,產生並保存操作日誌,所述操作日誌記錄有該硬碟在操作過程中被執行的命令、任務完成情況。 The server according to claim 11, which further includes: an operation log module for generating and saving an operation log for each controlled hard disk, and the operation log records the operation of the hard disk The execution of the command and the completion of the task. 如請求項11-14中之任一項所述的伺服器,其中,還包括:一個或多個SAS控制模組,與所述一個或多個磁片簇設備分別對應的,用於藉由SAS擴展器實現該SAS控制模組對應的磁片簇設備所掛載的多個硬碟的硬碟陣列佈局。 The server according to any one of claim 11-14, further comprising: one or more SAS control modules, respectively corresponding to the one or more disk cluster devices, for The SAS expander implements the hard disk array layout of multiple hard disks mounted on the disk cluster device corresponding to the SAS control module. 如請求項15所述的伺服器,其中,所述SAS控制模組,還用於配置SAS擴展器為多級級聯方式,藉由多級級聯的多層SAS擴展器,擴展所控制的硬碟數目和並行度。 The server according to claim 15, wherein the SAS control module is also used to configure the SAS expander in a multi-level cascade mode, and the multi-level cascade multi-layer SAS expander expands the controlled hardware The number of dishes and the degree of parallelism. 如請求項16所述的伺服器,其中,所述SAS控制模組,還用於根據所述多級級聯的多 層SAS擴展器的級聯方式,依據從最高級SAS擴展器向第一級SAS擴展器的順序,依次啟動各級SAS擴展器對應的硬碟。 The server according to claim 16, wherein the SAS control module is further configured to be cascaded according to the multiple The cascading mode of the SAS expander at each level is based on the order from the highest-level SAS expander to the first-level SAS expander, and the hard disks corresponding to the SAS expanders at each level are sequentially activated. 如請求項15所述的伺服器,其中,還包括:故障識別模組,用於類比與硬碟陣列佈局對應的硬碟故障識別面板;以及,藉由所述硬碟故障識別面板,查看各個硬碟的狀態並定位狀態異常的硬碟。 The server according to claim 15, which further includes: a fault identification module for analogy with a hard disk fault identification panel corresponding to the layout of the hard disk array; and, through the hard disk fault identification panel, view each The status of the hard disk and locate the abnormal hard disk. 如請求項11所述的伺服器,其中,所述伺服器藉由SAS協議控制一個或多個外掛的磁片簇設備,向所述磁片簇所掛載的硬碟並行寫入第一類型資料,從而對所述磁片簇設備上掛載的多個硬碟的資料進行批量抹除。 The server according to claim 11, wherein the server controls one or more external disk cluster devices through the SAS protocol to write the first type in parallel to the hard disks mounted on the disk cluster Data, so that the data of multiple hard disks mounted on the disk cluster device are erased in batches. 如請求項11所述的伺服器,其中,所述第一類型資料為預設資料、重復資料、隨機資料或者範本類資料。 The server according to claim 11, wherein the first type of data is preset data, repeated data, random data, or template data. 一種硬碟資料抹除系統,其特徵在於,包括磁片簇設備以及如請求項11-20中之任一項所述的伺服器。 A hard disk data erasing system, which is characterized by comprising a disk cluster device and the server according to any one of claims 11-20.
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 TW201740370A (en) 2017-11-16
TWI738739B true 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)

Families Citing this family (12)

* 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
TWI700636B (en) * 2018-09-07 2020-08-01 神雲科技股份有限公司 Data erasing method for cluster storage system
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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102511044A (en) * 2011-09-06 2012-06-20 华为技术有限公司 Method for deleting the data and device thereof
CN103140827A (en) * 2010-09-29 2013-06-05 国际商业机器公司 Managing ownership of redundant data in storage system
US20140250129A1 (en) * 2010-09-29 2014-09-04 International Business Machines Corporation Managing ownership of redundant data
US20160124663A1 (en) * 2014-10-29 2016-05-05 Commvault Systems, Inc. Accessing a file system using tiered deduplication

Family Cites Families (9)

* 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
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
CN104657316B (en) * 2015-03-06 2018-01-19 北京百度网讯科技有限公司 Server
CN105045336A (en) * 2015-06-25 2015-11-11 北京百度网讯科技有限公司 JBOD (Just Bunch of Disks)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103140827A (en) * 2010-09-29 2013-06-05 国际商业机器公司 Managing ownership of redundant data in storage system
US20140250129A1 (en) * 2010-09-29 2014-09-04 International Business Machines Corporation Managing ownership of redundant data
CN102511044A (en) * 2011-09-06 2012-06-20 华为技术有限公司 Method for deleting the data and device thereof
US20160124663A1 (en) * 2014-10-29 2016-05-05 Commvault Systems, Inc. Accessing a file system using tiered deduplication

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI738739B (en) Hard disk data erasing method, server and system
US8380922B1 (en) Data storage device comprising host interface state machine blocking on target logical block address
US8589724B2 (en) Rapid rebuild of a data set
US8707076B2 (en) System and method for power management of storage resources
JP6024296B2 (en) Information processing apparatus, copy control program, and copy control method
JP2014500542A (en) Hierarchical data storage system with data management and operating method thereof
KR20150037002A (en) Non-mounted storage test device based on fpga
US8849966B2 (en) Server image capacity optimization
JP5853649B2 (en) Storage device, control device and program
EP2555106A2 (en) Method and apparatus of sanitizing storage device
JP2005276196A (en) System and method for performing drive recovery subsequent to drive failure
US8904119B2 (en) Method and structures for performing a migration of a logical volume with a serial attached SCSI expander
EP3627334B1 (en) Extended storage device based on pcie bus
JP2008065433A (en) Computer system and performance tuning method
TWI386922B (en) Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods
CN105700817A (en) Just Bunch of Discs JBOD apparatus
US20080178049A1 (en) Power Failure Warning in Logically Partitioned Enclosures
US20120215966A1 (en) Disk array unit and control method thereof
WO2015196820A1 (en) Method and apparatus for creating jbod file system
KR102659829B1 (en) Methods and systems for controlling Redundant Array of Inexpensive Disks (RAID) operations
JP2007323377A (en) Recording apparatus, method for writing management data and method for repairing management data
CN103064803A (en) Data read-write method and device of NAND Flash storage device
JP2018190192A (en) Storage device and storage control program
US9274709B2 (en) Indicators for storage cells
JP6558275B2 (en) Information processing apparatus, information processing method, and information processing program