CN109992213A - Data-erasure method, system, device and computer readable storage medium - Google Patents

Data-erasure method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109992213A
CN109992213A CN201910285640.4A CN201910285640A CN109992213A CN 109992213 A CN109992213 A CN 109992213A CN 201910285640 A CN201910285640 A CN 201910285640A CN 109992213 A CN109992213 A CN 109992213A
Authority
CN
China
Prior art keywords
data
hdd
ssd
omap
journal
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910285640.4A
Other languages
Chinese (zh)
Other versions
CN109992213B (en
Inventor
刘杰
安祥文
赵赞
罗浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910285640.4A priority Critical patent/CN109992213B/en
Publication of CN109992213A publication Critical patent/CN109992213A/en
Application granted granted Critical
Publication of CN109992213B publication Critical patent/CN109992213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on 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/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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0685Hybrid storage combining heterogeneous device types, e.g. hierarchical storage, hybrid arrays

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application discloses a kind of data-erasure methods, including according to the HDD where the determining data to be deleted of deletion instruction received;HDD corresponding journal and omap is migrated to SSD by default migration script;The data to be deleted in journal and omap are deleted by SSD;The data-erasure method is significantly larger than the characteristic of HDD based on SSD read-write efficiency, the journal of storing data in HDD and omap are migrated to SSD by default migration script, the deletion of storing data in journal and omap is realized by SSD, substantially increase the data deletion efficiency of storage system, can be highly efficient vacate memory space carry out new data storage, facilitate integration to utilize the memory space of system, effectively increases storage space utilization.Disclosed herein as well is a kind of data deletion system, device and computer readable storage mediums, all have above-mentioned beneficial effect.

Description

Data-erasure method, system, device and computer readable storage medium
Technical field
This application involves technical field of memory, in particular to a kind of data-erasure method further relates to a kind of data deletion system System, device and computer readable storage medium.
Background technique
With the continuous development of information technology, data are gradually taken seriously as a kind of precious resources, and data storage is made The period that one of key element for data resource has also welcome high speed development can be used for storing data for storage system Storage medium type it is varied, such as disk, hard disk etc..
In general, a storage system corresponds to multiple OSD (Object Storage Device, object storage device), The corresponding one group of journal and omap of each OSD, for storing data, the corresponding one piece of hard disk of each OSD, which can be SSD (Solid State Drives, solid state hard disk), or HDD (Hard Disk Drive, mechanical hard disk).For one For storage system, the quantity of HDD generally will be far more than SSD, for example, in AS13000 distributed storage, each storage Node includes 1 piece of SSD and 35 piece of HDD.However, in practical application scene, it is a large amount of old in storage system due to needing to delete Change data, to vacate storage of enough memory spaces for new generation data, and the read and write rate of HDD is well below SSD, Cause the data deletion efficiency of storage system lower, it is difficult to utilize the memory space of storage system efficiently.
Therefore, a kind of data deletion efficiency for effectively improving storage system how is provided, to further increase system storage The utilization rate in space is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the application is to provide a kind of data-erasure method, which can effectively improve storage system Data deletion efficiency further improves the utilization rate of system memory space;The another object of the application is to provide a kind of data Deletion system, device and computer readable storage medium, it may have above-mentioned beneficial effect.
In order to solve the above technical problems, this application provides a kind of data-erasure method, the data-erasure method includes:
The HDD where data to be deleted is determined according to the deletion instruction received;
The HDD corresponding journal and omap is migrated to SSD by default migration script;
The data to be deleted in the journal and omap are deleted by the SSD.
It is preferably, described to be migrated the HDD corresponding journal and omap to before SSD by default migration script, Further include:
Close the OSD service of the HDD;
It is then described to be migrated the HDD corresponding journal and omap to SSD by default migration script, also wrap It includes:
Restart the OSD service.
Preferably, after the OSD service for closing the HDD, further includes:
Refresh script for the corresponding journal of the HDD from cache flush to the HDD by journal.
Preferably, described to be migrated the HDD corresponding journal and omap to SSD, packet by default migration script It includes:
The journal established between the HDD and the SSD respectively is flexible coupling to be flexible coupling with omap;
It is flexible coupling to be flexible coupling with omap by the journal and respectively migrates the journal and the omap to institute State the preset memory locations of SSD.
Preferably, described to be migrated the HDD corresponding journal and omap to SSD, packet by default migration script It includes:
The HDD corresponding journal and omap migrated by the default migration script neighbouring to the HDD SSD or the first SSD.
Preferably, the data-erasure method further include:
Obtain the IP information of other nodes in distributed type assemblies;
According to the IP information by the default migration script remotely to other described nodes.
In order to solve the above technical problems, present invention also provides a kind of data deletion system, the data deletion system packet It includes:
Receiving module, for according to the HDD where the determining data to be deleted of deletion instruction received;
Transferring module, for being migrated the HDD corresponding journal and omap to SSD by default migration script;
Removing module, for deleting the data to be deleted in the journal and omap by the SSD.
Preferably, the data deletion system further include:
Remote synchronization module, for obtaining the IP information of other nodes in distributed type assemblies;According to the IP information by institute Default migration script is stated remotely to other described nodes.
In order to solve the above technical problems, present invention also provides a kind of data deletion apparatus, the data deletion apparatus packet It includes:
Memory, for storing computer program;
Processor, the step of any one of the above data-erasure method is realized when for executing the computer program.
In order to solve the above technical problems, the computer can present invention also provides a kind of computer readable storage medium It reads to be stored with computer program on storage medium, the computer program realizes any one of the above data when being executed by processor The step of delet method.
A kind of data-erasure method provided herein, including determining data to be deleted according to the deletion instruction received The HDD at place;The HDD corresponding journal and omap is migrated to SSD by default migration script;It is deleted by the SSD Except the data to be deleted in the journal and omap.
As it can be seen that data-erasure method provided herein, the characteristic of HDD is significantly larger than based on SSD read-write efficiency, storage System wouldn't carry out the deletion of corresponding data after receiving data and deleting instruction, but first passing through preset migration script will The journal and omap of storing data are migrated to SSD in HDD, further by SSD to the data in journal and omap It is deleted, substantially increases the data deletion efficiency of storage system, memory space of vacateing that can be highly efficient carries out new data Storage, facilitate integration utilize system memory space, effectively increase storage space utilization.
A kind of data deletion system, device and computer readable storage medium provided herein, all has above-mentioned Beneficial effect, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of data-erasure method provided herein;
Fig. 2 is the flow diagram of another data-erasure method provided herein;
Fig. 3 is the flow diagram of another data-erasure method provided herein;
Fig. 4 is a kind of structural schematic diagram of data deletion system provided herein;
Fig. 5 is a kind of structural schematic diagram of data deletion apparatus provided herein.
Specific embodiment
The core of the application is to provide a kind of data-erasure method, which can effectively improve storage system Data deletion efficiency further improves the utilization rate of system memory space;Another core of the application is to provide a kind of data Deletion system, device and computer readable storage medium, it may have above-mentioned beneficial effect.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
It is empty to vacate enough storages due to needing to delete a large amount of aging datas in storage system in prior art Between for newly generating the storage of data, and the read and write rate of HDD causes the data of storage system to be deleted and imitates well below SSD Rate is lower, it is difficult to utilize the memory space of storage system efficiently.Therefore, to solve the above problems, this application provides A kind of data-erasure method, with for realizing the deletion of the data of storage system, which can effectively improve storage system The data deletion efficiency of system, further improves the utilization rate of system memory space.
Referring to FIG. 1, Fig. 1 is a kind of flow diagram of data-erasure method provided herein, which is deleted Method may include:
S101: the HDD where data to be deleted is determined according to the deletion instruction received;
In general, to guarantee that the memory space in storage equipment can be utilized effectively, it can timing or not timing pair The historical storages data such as the stale data, the damage data that wherein store are deleted, and to save memory space, generate number convenient for new According to storage, at this point, can delete instruction by corresponding and be sent to the storage equipment, so that the storage equipment is based on deletion instruction Carry out follow-up data deletion.Further, in storage equipment, data storage is generally carried out by SSD or HDD, therefore, storage is set It is the process deleted the storing data in SSD or HDD that standby data, which delete process,.In this step, it essentially consists in Storage equipment instructs the HDD determined where corresponding data to be deleted according to the deletion after receiving deletion instruction.
Wherein, for above-mentioned deletion instruction acquisition, can by technical staff be based on actual needs by relative client into Row issues, and can also be based on certain preset conditions by storage equipment and automated to respond to, and such as can execute a number according to prefixed time interval According to delete operation, deletion instruction is automated toed respond to whenever reaching the preset time;It can also memory space occupancy to itself It is monitored in real time, when memory space is lower than preset value, automated tos respond to deletion instruction.Certainly, for above-mentioned preset time The specific value at interval and the specific value of memory space preset value, are preset according to the actual situation by technical staff , the application is without limitation.
S102: HDD corresponding journal and omap is migrated to SSD by default migration script;
Specifically, data are to be stored in HDD or SSD in the form of journal and omap, therefore, in S101 On the basis of complete data to be deleted where HDD determination after, default migration script can be started, pass through the default migration script The HDD corresponding journal and omap is migrated to SSD, to realize the delete operation of subsequent data to be deleted.
Preferably, HDD corresponding journal and omap is migrated to SSD above by default migration script, is can wrap Include: the journal established between HDD and SSD respectively is flexible coupling to be flexible coupling with omap;It is flexible coupling by journal soft with omap Connection respectively migrates journal and omap to the preset memory locations of SSD.
For the transition process of above-mentioned journal and omap, this application provides a kind of more specific migration patterns, i.e., By establishing the realization that is flexible coupling.Specifically, preferred can establish between HDD and SSD, journal is flexible coupling and omap is flexible coupling, Further, it is flexible coupling by journal and the corresponding journal of HDD is migrated into SSD corresponding preset memory locations, is passed through Omap, which is flexible coupling, migrates into SSD corresponding preset memory locations for the corresponding omap of HDD, certainly, is flexible coupling for the two The migration sequence of foundation sequence and the two, can carry out simultaneously, can also have no effect on this technology regardless of the successive progress of sequence The implementation of scheme.
Wherein, above-mentioned preset memory locations can be created on selected SSD in advance by technical staff, for example, in the application In, the file space 5G is created on SSD by dd in advance, for storing journal and omap after migrating.
In addition, it is necessary to explanation, for a storage equipment, SSD quantity therein be not uniquely, in equipment Any one SSD the delete operations of data to be deleted in above-mentioned journal and omap, therefore, the choosing for SSD can be achieved It selects, the application is not specifically limited.
Preferably, HDD corresponding journal and omap is migrated to SSD above by default migration script, is can wrap It includes: being migrated HDD corresponding journal and omap to the neighbouring SSD of the HDD or the first SSD by default migration script.
It is this application provides the selection mode of more specific SSD a kind of, i.e., by the closer SSD of distance HDD, i.e., above-mentioned Neighbouring SSD or the first SSD realizes the deletion of data to be deleted in journal and omap.Wherein, by the corresponding journal of HDD It migrates with omap to the neighbouring SSD nearest apart from the HDD, migration distance is shorter, and required time is shorter, can effectively ensure that migration Rate further increases Data Migration rate;In addition, above-mentioned first SSD refers to the SSD for storing source data, it is however generally that, It is the storage that source data is realized by first SSD in storage equipment, it is therein during storing the whole service of equipment Source data not will do it delete operation, that is to say, that and the first SSD in storage equipment not will do it data deletion generally, therefore, When HDD being corresponded to the data to be deleted in journal and omap being sent to a SSD, the first SSD need to only carry out HDD data Deletion load smaller without carrying out the deletion of itself source data, efficiency is higher.
S103: the data to be deleted in journal and omap are deleted by SSD.
This step is intended to the deletion by data to be deleted in SSD realization journal and omap, to complete complete data Delete operation, for its specific deletion process, referring to prior art, the application is not repeating herein.
Data-erasure method provided herein is significantly larger than the characteristic of HDD, storage system based on SSD read-write efficiency After receiving data and deleting instruction, the deletion of corresponding data wouldn't be carried out, but first passing through preset migration script will be in HDD The journal and omap of storing data are migrated to SSD, are further deleted by SSD to the data in journal and omap Remove, substantially increase the data deletion efficiency of storage system, can be highly efficient vacate memory space carry out new data storage, Facilitate integration to utilize the memory space of system, effectively increases storage space utilization.
On the basis of the above embodiments, referring to FIG. 2, Fig. 2 is another data-erasure method provided herein Flow diagram, the data-erasure method can include:
S201: the HDD where data to be deleted is determined according to the deletion instruction received;
S202: the OSD service of HDD is closed;
S203: HDD corresponding journal and omap is migrated to SSD by default migration script;
S204: restart OSD service;
S205: the data to be deleted in journal and omap are deleted by SSD.
This step is directed at before the migration for carrying out journal and omap, executes the shutoff operation of OSD service, and is being moved Move complete and then it is secondary restart OSD service, can guarantee in transition process the complete of data in journal and omap as a result, Property, avoid the performance compromise of hard disk.
It preferably, can also include: that script is refreshed for HDD pairs by journal after the OSD service of above-mentioned closing HDD The journal answered is from cache flush to HDD.
This step is directed at before the migration for carrying out journal and omap, executes the corresponding journal refresh operation of HDD, In general, storage equipment in normal operation, is related to the operation such as transmission, acquisition of data, for some reason may Journal is caused to be temporarily stored into caching, it, can be before carrying out Data Migration, by institute to avoid the data during deleting from omitting There are data to be returned on corresponding hard disk, i.e., refreshes the journal in caching to its corresponding HDD.
Other steps provided by the embodiment of the present application, referring to a upper embodiment, the application is no longer superfluous herein It states.
Above each embodiment realizes the data delete operation of single storage equipment, and for distributed cluster system and It says, is provided with a large amount of node device in system, in actual moving process, each node device is required to carry out data deletion Operation, therefore, during the data of entire group system are deleted, the enormous amount of data to be deleted, data delete speed pole It is undesirable.
Therefore, it to solve the above problems, on the basis of above-mentioned each embodiment, is directed to and divides this application provides another kind The data-erasure method of cloth storage system, referring to FIG. 3, Fig. 3 is another data-erasure method provided herein Flow diagram, the data-erasure method include:
S301: the HDD where data to be deleted is determined according to the deletion instruction received;
S302: the OSD service of HDD is closed;
S303: HDD corresponding journal and omap is migrated to SSD by default migration script;
S304: restart OSD service;
S305: the data to be deleted in journal and omap are deleted by SSD;
S306: the IP information of other nodes in distributed type assemblies is obtained;
S307: according to IP information by default migration script remotely to other nodes.
It should be noted that other steps in the present embodiment except S306, S307 are with reference to the S201 of second embodiment To S205, particular content refers to first embodiment and second embodiment, mainly carries out below to the content of S306, S307 It illustrates.
Specifically, when in group system some storage equipment receive deletion instruction start execute delete operation when, can Simultaneously by default migration script remote transmission to other nodes, which can be based on each node in distributed type assemblies IP information realization.Firstly, the IP information of other each node devices gone out except itself in distributed type assemblies can be obtained, as IP is arranged Table, further according to the IP information by default migration script remotely on other each node devices.
It should be noted that the execution time of above-mentioned remote transmission operation is not unique, to guarantee data deletion efficiency, It can directly be executed after storage equipment receives deletion instruction, the application does not limit this, it can be achieved that distributed cluster system Data delete.
In addition, it is only a kind of implementation provided herein that the data of the above group system, which delete mode, it can also be with By the way that default migration script is deployed in advance on each node of cluster, when some node device in cluster receives deletion When instruction, the directly long-range deletion is instructed to other node devices, is responded deletion instruction by each node device, equally may be used Realize that the data of group system are deleted.
The embodiment of the present application realizes the data delete operation of distributed cluster system, substantially increases deleting for group system Except efficiency, the utilization rate of memory space is improved, further ensures the reasonable distribution of cluster system resource.
It is specific this application provides a kind of more specifically data-erasure method on the basis of the various embodiments described above Realization process is as follows:
The script migration operation of single storage equipment:
(1) OSD:hdd_osd_list in storage equipment on all HDD is obtained;(2) first is determined in storage equipment OSD:ssd_osd on SSD;(3) OSD:hdd_osd_list on all HDD is traversed;(4) OSD service: hdd_ is successively closed osd;(5) refresh all journal in storage equipment;(6) 5G file: journal_ $ { hdd_osd_ is write with dd on SSD id};(7) pre-stored location: make journal is created to the OSD of the SSD;(8) being flexible coupling for journal is established;(9) it copies Omap to the SSD:omap_ $ { hdd_osd_id } of the upper OSD of HDD;(10) being flexible coupling for the omap is established;(11) start on HDD OSD service.
The data delete operation of distributed cluster system:
(1) IP address of each node device: ip_list is obtained from distributed type assemblies;(2) by OSD on HDD Journal and omap migration is write as script function: set_osd_journal obtains migration script;(3) data deletion is write Script transfer_osd_journal executes function set_osd_journal when inputting special parameter set;(4) it traverses IP address in ip_list;(5) the corresponding node device of copy script transfer_osd_journal to IP;(6) it remotely arrives The corresponding node device of IP executes data delete operation: sh transfer_osd_journal set.
Data-erasure method provided by the embodiment of the present application is significantly larger than the characteristic of HDD based on SSD read-write efficiency, deposited Storage system wouldn't carry out the deletion of corresponding data, but first pass through preset migration script after receiving data and deleting instruction The journal of storing data in HDD and omap are migrated to SSD, further by SSD to the number in journal and omap According to being deleted, the data deletion efficiency of storage system is substantially increased, memory space of vacateing that can be highly efficient is newly counted According to storage, facilitate integration utilize system memory space, effectively increase storage space utilization.
To solve the above problems, referring to FIG. 4, the structure that Fig. 4 is a kind of data deletion system provided herein is shown It is intended to, the data deletion system can include:
Receiving module 10, for according to the HDD where the determining data to be deleted of deletion instruction received;
Transferring module 20, for being migrated HDD corresponding journal and omap to SSD by default migration script;
Removing module 30, for deleting the data to be deleted in journal and omap by SSD.
As a kind of preferred embodiment, which can also include:
OSD closedown module, the OSD for closing HDD are serviced;
OSD restarts module, for restarting OSD service.
As a kind of preferred embodiment, which can also include:
Refresh module, for refreshing script for the corresponding journal of HDD from cache flush to HDD by journal.
As a kind of preferred embodiment, above-mentioned transferring module 20 can be specifically used for establishing between HDD and SSD respectively Journal is flexible coupling to be flexible coupling with omap;It is flexible coupling to be flexible coupling with omap by journal and respectively moves journal and omap Move to the preset memory locations of SSD.
As a kind of preferred embodiment, above-mentioned transferring module 20 can be specifically used for by default migration script that HDD is corresponding Journal and omap migrate to the neighbouring SSD of HDD or the first SSD.
As a kind of preferred embodiment, which can also include:
Remote synchronization module, for obtaining the IP information of other nodes in distributed type assemblies;It is moved according to IP information by default Script is moved remotely to other nodes.
Above method embodiment is please referred to for the introduction of system provided by the present application, this will not be repeated here by the application.
To solve the above problems, referring to FIG. 5, the structure that Fig. 5 is a kind of data deletion apparatus provided herein is shown It is intended to, the data deletion apparatus can include:
Memory 1, for storing computer program;
Processor 2, realizes following steps when for executing computer program:
The HDD where data to be deleted is determined according to the deletion instruction received;It is by default migration script that HDD is corresponding Journal and omap migrate to SSD;The data to be deleted in journal and omap are deleted by SSD.
Above method embodiment is please referred to for the introduction of device provided by the present application, this will not be repeated here by the application.
To solve the above problems, present invention also provides a kind of computer readable storage medium, the computer-readable storage It is stored with computer program on medium, can be realized when computer program is executed by processor following rapid:
The HDD where data to be deleted is determined according to the deletion instruction received;It is by default migration script that HDD is corresponding Journal and omap migrate to SSD;The data to be deleted in journal and omap are deleted by SSD.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Above method embodiment is please referred to for the introduction of computer readable storage medium provided by the present application, the application exists This is not repeated them here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Data-erasure method provided herein, system, device and computer readable storage medium are carried out above It is discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments Explanation be merely used to help understand the present processes and its core concept.It should be pointed out that for the common of the art For technical staff, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these Improvement and modification also fall into the protection scope element of the claim of this application.

Claims (10)

1. a kind of data-erasure method characterized by comprising
The HDD where data to be deleted is determined according to the deletion instruction received;
The HDD corresponding journal and omap is migrated to SSD by default migration script;
The data to be deleted in the journal and omap are deleted by the SSD.
2. data-erasure method as described in claim 1, which is characterized in that described by presetting migration script for the HDD Corresponding journal and omap are migrated to before SSD, further includes:
Close the OSD service of the HDD;
It is then described to be migrated the HDD corresponding journal and omap to SSD by default migration script, further includes:
Restart the OSD service.
3. data-erasure method as claimed in claim 2, which is characterized in that after the OSD service for closing the HDD, Further include:
Refresh script for the corresponding journal of the HDD from cache flush to the HDD by journal.
4. data-erasure method as described in claim 1, which is characterized in that described by presetting migration script for the HDD Corresponding journal and omap is migrated to SSD, comprising:
The journal established between the HDD and the SSD respectively is flexible coupling to be flexible coupling with omap;
It is flexible coupling to be flexible coupling with omap by the journal and respectively migrates the journal and the omap to the SSD Preset memory locations.
5. data-erasure method as described in claim 1, which is characterized in that described by presetting migration script for the HDD Corresponding journal and omap is migrated to SSD, comprising:
The HDD corresponding journal and omap migrated to the neighbouring SSD of the HDD by the default migration script or First SSD.
6. the data-erasure method as described in claim 1 to 5 any one, which is characterized in that further include:
Obtain the IP information of other nodes in distributed type assemblies;
According to the IP information by the default migration script remotely to other described nodes.
7. a kind of data deletion system characterized by comprising
Receiving module, for according to the HDD where the determining data to be deleted of deletion instruction received;
Transferring module, for being migrated the HDD corresponding journal and omap to SSD by default migration script;
Removing module, for deleting the data to be deleted in the journal and omap by the SSD.
8. data deletion system as claimed in claim 7, which is characterized in that further include:
Remote synchronization module, for obtaining the IP information of other nodes in distributed type assemblies;It will be described pre- according to the IP information If migrating script remotely to other described nodes.
9. a kind of data deletion apparatus characterized by comprising
Memory, for storing computer program;
Processor realizes the data deletion side as described in claim 1 to 6 any one when for executing the computer program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the data-erasure method as described in claim 1 to 6 any one when the computer program is executed by processor The step of.
CN201910285640.4A 2019-04-10 2019-04-10 Data deleting method, system, device and computer readable storage medium Active CN109992213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910285640.4A CN109992213B (en) 2019-04-10 2019-04-10 Data deleting method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910285640.4A CN109992213B (en) 2019-04-10 2019-04-10 Data deleting method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109992213A true CN109992213A (en) 2019-07-09
CN109992213B CN109992213B (en) 2022-07-22

Family

ID=67132968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910285640.4A Active CN109992213B (en) 2019-04-10 2019-04-10 Data deleting method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109992213B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021098260A1 (en) * 2019-11-22 2021-05-27 浪潮电子信息产业股份有限公司 Data deletion method, system and device, and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967172A (en) * 2017-12-21 2018-04-27 深圳大学 A kind of Spark tasks dynamic migration method and system towards isomery storage
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107967172A (en) * 2017-12-21 2018-04-27 深圳大学 A kind of Spark tasks dynamic migration method and system towards isomery storage
CN109388624A (en) * 2018-10-09 2019-02-26 郑州云海信息技术有限公司 Distributed document delet method, device, system and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021098260A1 (en) * 2019-11-22 2021-05-27 浪潮电子信息产业股份有限公司 Data deletion method, system and device, and computer readable storage medium

Also Published As

Publication number Publication date
CN109992213B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN103078933B (en) A kind of method and apparatus determining data migration time
CN104881333B (en) A kind of storage system and its method used
CN107368257B (en) Data routing inspection method and device in solid-state memory
CN107436738B (en) A kind of date storage method and system
CN107967122A (en) A kind of method for writing data of block device, device and medium
CN105389376B (en) Fragmentation-free multimedia data storage method and system based on continuous blocks
US10795579B2 (en) Methods, apparatuses, system and computer program products for reclaiming storage units
CN103617007A (en) Method and system for achieving multilevel intelligent storage
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN106383667B (en) The method and apparatus that LUN is migrated in service operation
CN106469123A (en) A kind of write buffer distribution based on NVDIMM, method for releasing and its device
CN104040512A (en) Method and device for processing storage space and non-volatile computer readable storage medium
CN109558456A (en) A kind of file migration method, apparatus, equipment and readable storage medium storing program for executing
CN109491605A (en) A kind of date storage method based on COW, device and medium
CN111580933B (en) Hardware acceleration-based virtual machine online migration method
CN107037988B (en) A kind of flash memory safety deleting method and system based on file-level granularity
CN109992213A (en) Data-erasure method, system, device and computer readable storage medium
KR102166185B1 (en) Data processing apparatus for pipeline execution acceleration and method thereof
CN106547477A (en) For the method and apparatus for reducing buffer memory device online
CN107329695B (en) Distributed storage memory management method, system and computer storage medium
CN103309625B (en) A kind of method and system storing thermophoresis based on self adaptation
CN103577349B (en) Select the method and apparatus that data carry out brush in the caches
CN112860188A (en) Data migration method, system, device and medium
CN110502457B (en) Metadata storage method and device
CN106407409A (en) A virtual file system based on DAS architecture storage servers and a file management method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant