CN110381121B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN110381121B
CN110381121B CN201910563515.5A CN201910563515A CN110381121B CN 110381121 B CN110381121 B CN 110381121B CN 201910563515 A CN201910563515 A CN 201910563515A CN 110381121 B CN110381121 B CN 110381121B
Authority
CN
China
Prior art keywords
hard disk
cloud hard
deletion
mark corresponding
logic value
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.)
Active
Application number
CN201910563515.5A
Other languages
Chinese (zh)
Other versions
CN110381121A (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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910563515.5A priority Critical patent/CN110381121B/en
Publication of CN110381121A publication Critical patent/CN110381121A/en
Application granted granted Critical
Publication of CN110381121B publication Critical patent/CN110381121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data processing method and a data processing device, wherein the method comprises the following steps: when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request; if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value; when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk; and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false. According to the method and the device, the data are not deleted violently, so that subsequent data recovery can be realized.

Description

Data processing method and device
Technical Field
The invention relates to the field of cloud computing, in particular to a data processing method and device.
Background
The sender provides a block storage service for a cloud platform OpenStack (an open source cloud computing management platform project), and can provide a persistent storage resource for Nova (a service for providing a virtual machine in the cloud platform OpenStack) and Glance (a service for providing an image in the cloud platform OpenStack). The block storage is actually that after a cloud service provider constructs large-scale physical storage, the large-scale physical storage is logically split and then distributed to hard disks mounted by users.
The block storage is an indispensable part of an OpenStack platform, in OpenStack, the block storage is a service used for creating a cloud hard disk, and the block storage can be used as a system disk for storing an image file to start a virtual machine and can also be used as a data disk of the virtual machine to naturally support later-stage capacity expansion and addition.
The chunk store is created by a shader service, and the work done by the shader service mainly includes: 1. storing the information stored in the chunk in a sender database for maintenance; 2. and issuing the creation task to a driver of a corresponding manufacturer to complete the division of the space of the underlying storage (such as Ceph (a back-end shared storage)). And writing data into the cloud hard disk by a user, wherein the actual data is stored in the bottom storage.
The existing OpenStack deletion block storage process mainly comprises two steps: 1. the sender service marks the record of the block stored in the database as deleted-1; 2. and issuing a deletion task to the corresponding driver to complete the release of the space on the bottom storage.
The deletion of the block storage is violent, and once the deletion is successful, the data stored on the underlying storage device is formatted and can never be recovered.
Disclosure of Invention
The technology to be solved by the application is to provide a data processing method and device, which can not delete data violently, thereby realizing subsequent data recovery.
In order to solve the above technical problem, the present application provides a data processing method, including:
when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request;
if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false.
Optionally, the performing soft deletion operation on the cloud hard disk includes:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
Optionally, the method further comprises:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
Optionally, the method further comprises:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
Optionally, after receiving a delete request of the cloud hard disk and before processing the delete request, the method further includes:
performing authority verification on the deletion request;
after receiving the recovery request of the cloud hard disk and before processing the recovery request, the method further comprises:
and carrying out authority verification on the recovery request.
The present application also provides a data processing apparatus, comprising: a memory and a processor;
the memory is used for storing programs for data processing;
the processor is used for reading and executing the program for data processing, and executing the following operations:
when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request;
if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false.
Optionally, the performing soft deletion operation on the cloud hard disk includes:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
Optionally, the processor is configured to read and execute the program for data processing, and further perform the following operations:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
Optionally, the processor is configured to read and execute the program for data processing, and further perform the following operations:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
Optionally, the processor is configured to read and execute the program for data processing, and further perform the following operations:
after receiving a deletion request of a cloud hard disk and before processing the deletion request, performing permission verification on the deletion request;
after receiving a recovery request of the cloud hard disk, and before processing the recovery request, performing permission verification on the recovery request.
Compared with the prior art, this application includes: when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request; if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value; when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk; and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false. According to the method and the device, the data are not deleted violently, so that subsequent data recovery can be realized.
Drawings
The accompanying drawings are included to provide an understanding of the present disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the examples serve to explain the principles of the disclosure and not to limit the disclosure.
FIG. 1 is a flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a data processing apparatus according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating another data processing method according to a first embodiment of the invention.
Detailed Description
The present application describes embodiments, but the description is illustrative rather than limiting and it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are possible. Any feature or element of any embodiment may be used in combination with or instead of any other feature or element in any other embodiment, unless expressly limited otherwise.
The present application includes and contemplates combinations of features and elements known to those of ordinary skill in the art. The embodiments, features and elements disclosed in this application may also be combined with any conventional features or elements to form a unique inventive concept as defined by the claims. Any feature or element of any embodiment may also be combined with features or elements from other inventive aspects to form yet another unique inventive aspect, as defined by the claims. Thus, it should be understood that any of the features shown and/or discussed in this application may be implemented alone or in any suitable combination. Accordingly, the embodiments are not limited except as by the appended claims and their equivalents. Furthermore, various modifications and changes may be made within the scope of the appended claims.
Further, in describing representative embodiments, the specification may have presented the method and/or process as a particular sequence of steps. However, to the extent that the method or process does not rely on the particular order of steps set forth herein, the method or process should not be limited to the particular sequence of steps described. Other orders of steps are possible as will be understood by those of ordinary skill in the art. Therefore, the particular order of the steps set forth in the specification should not be construed as limitations on the claims. Further, the claims directed to the method and/or process should not be limited to the performance of their steps in the order written, and one skilled in the art can readily appreciate that the sequences may be varied and still remain within the spirit and scope of the embodiments of the present application.
Example one
As shown in fig. 1, the present embodiment provides a data processing method, including:
step S101, when a deleting request of a cloud hard disk is received, a deleting type of the deleting request is obtained;
step S102, if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
step S103, when the logic value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logic value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false.
According to the technical scheme, the data are not deleted violently, so that subsequent data recovery can be realized.
Optionally, the performing soft deletion operation on the cloud hard disk may include:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
Optionally, the method may further include:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
Optionally, the method may further include:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
Optionally, after receiving the delete request of the cloud hard disk and before processing the delete request, the method may further include:
performing authority verification on the deletion request;
after receiving the recovery request of the cloud hard disk and before processing the recovery request, the method further comprises:
and carrying out authority verification on the recovery request.
Through the technical scheme, the data can be recovered when the user deletes the data by mistake due to various reasons or wants to retrieve the deleted important data, so that the usability and the convenience of the user in the using process are effectively improved.
As shown in fig. 2, the present embodiment further provides a data processing apparatus, including: a memory and a processor;
the memory 10 is used for storing programs for data processing;
the processor 11 is configured to read and execute the program for data processing, and perform the following operations:
when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request;
if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
and the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false.
According to the technical scheme, the data are not deleted violently, so that subsequent data recovery can be realized.
Optionally, the performing soft deletion operation on the cloud hard disk may include:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
Optionally, the processor 11 is configured to read and execute the program for data processing, and may further perform the following operations:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
Optionally, the processor 11 is configured to read and execute the program for data processing, and may further perform the following operations:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
Optionally, the processor 11 is configured to read and execute the program for data processing, and may further perform the following operations:
after receiving a deletion request of a cloud hard disk and before processing the deletion request, performing permission verification on the deletion request;
after receiving a recovery request of the cloud hard disk, and before processing the recovery request, performing permission verification on the recovery request.
Through the technical scheme, the data can be recovered when the user deletes the data by mistake due to various reasons or wants to retrieve the deleted important data, so that the usability and the convenience of the user in the using process are effectively improved.
The data processing method of the present application is further described below, and as shown in fig. 3, the data processing method of the present application may include:
step S201, after receiving a cloud hard disk deletion request issued by a user, acquiring that the type of the deletion request is soft deletion;
step S202, acquiring the ID of the cloud hard disk to be deleted from the deletion request;
the deletion request may carry a cloud disk identifier, and the corresponding cloud disk record may be found according to the cloud disk identifier.
Step S203, checking the user authority and the like of the deletion request, and executing step S204 if the user authority and the like pass the verification; if the verification is not passed, the flow is ended;
step S204, in the render database, according to the ID of the cloud hard disk to be deleted, setting the value of a soft deleted mark (soft _ deleted) of the cloud hard disk record to be deleted as True (or 1), and not modifying the value of an original deleted mark (deleted) of the cloud hard disk record;
in this example, the default value of the original deletion flag may be set to False (or 0), and in this step, since the value of the original deletion flag is not modified, the value of the original deletion flag is also False (or 0).
It should be noted that, in this example, the logical values of the soft deletion flag and the original deletion flag may be set in the form of True/False, or may be set in the form of 1/0. In other examples, other rules may be set to identify whether to perform a complete deletion.
Step S205, executing soft deletion operation of the cloud hard disk;
in this example, the soft deletion operation of the cloud hard disk includes: and releasing the quota corresponding to the item (or tenant) to which the cloud hard disk belongs, and reserving the data on the bottom storage device corresponding to the cloud hard disk.
Where a quota may include the amount and capacity of resources allocated to an item.
In an example, after the soft deletion is performed on the cloud hard disk, when a user views data in the OpenStack system, the information of the cloud hard disk may not be displayed any more, or the corresponding information of the cloud hard disk may be displayed by adding a mark or a special color (e.g., grayscale), and at this time, although the information of the soft deleted cloud hard disk is displayed, the data of the cloud hard disk is unavailable.
Step S206, after receiving a cloud hard disk recovery request issued by a user, acquiring the ID of the cloud hard disk to be recovered from the recovery request;
step S207, checking the user authority and the like of the recovery request, and executing step S208 if the user authority and the like pass the verification; if the verification is not passed, the flow is ended;
step S208, if the logic value of the soft deletion mark corresponding to the cloud hard disk is True (or 1) and the logic value of the original deletion mark corresponding to the cloud hard disk is False, setting the logic value of the soft deletion mark corresponding to the cloud hard disk to be False (or 0), keeping the current logic value of the original deletion mark corresponding to the cloud hard disk unchanged, and performing recovery operation on the cloud hard disk;
the recovery request may carry a cloud disk identifier, and the corresponding cloud disk record may be found according to the cloud disk identifier.
Step S209, after receiving a cloud hard disk deletion request issued by a user, acquiring that the type of the deletion request is forced deletion;
step S210, acquiring the ID of the cloud hard disk to be deleted from the deletion request;
step S211, checking the user authority and the like of the deletion request, and executing step S212 if the user authority and the like pass the verification; if the verification is not passed, the flow is ended;
step S212, in a render database, setting the value of an original deletion identifier (deleted) of the cloud hard disk record to be deleted as True (or 1) according to the ID of the cloud hard disk to be deleted;
and step S213, executing forced deletion operation of the cloud hard disk.
In this example, the forced deletion operation of the cloud hard disk includes: and releasing the quota corresponding to the item to which the cloud hard disk belongs, and deleting the data on the bottom storage device corresponding to the cloud hard disk.
In the application, the soft deletion of the cloud hard disk can be realized by only setting a soft deletion mark for the cloud hard disk record in the database without cleaning the bottom-layer stored data, so that the recovery of subsequent data can be supported. The soft deletion mechanism of the cloud hard disk may be that when the cloud hard disk is deleted, a field, that is, a soft deletion flag, is added to each cloud hard disk record subjected to soft deletion in the sender database, and the value of the soft deletion flag is set to True (True or 1) to identify that the cloud hard disk has been soft deleted, but the cloud hard disk data on the underlying storage device is temporarily retained.
If the user needs to restore the data within a period of time, the value of the soft deletion flag recorded by the cloud hard disk which is subjected to soft deletion can be modified to be False (False or 0), so that the cloud hard disk can receive the management of the sender service again.
If the user really needs to thoroughly clean the cloud hard disk, the data can be forcibly deleted, and the bottom data can be really cleaned.
It should be noted that the execution steps of the above operations are only examples, and in other embodiments, the execution sequence of steps S201, S205, and S207 is not limited, and the execution sequence of steps S202 to S204, step S206, and step S208 to step S210 is not limited. In other embodiments, a request for soft deletion, a request for forced deletion, or a request for recovery may be received in any order according to a specific scenario, and an operation corresponding to the request may be started after the request is received.
By the technical scheme, the deleted cloud hard disk data can be effectively recovered, the mistaken deletion is avoided, and therefore the usability and the convenience of a user in the using process are effectively improved.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method of data processing, the method comprising:
when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request;
if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false;
after the soft deletion operation is performed on the cloud hard disk, the method further includes: when the data of the cloud hard disk is viewed, one of the following modes is executed: not displaying the information of the cloud hard disk; displaying the information of the cloud hard disk by setting a mark or a color, wherein the mark or the color is used for identifying that the data of the cloud hard disk is unavailable.
2. The data processing method of claim 1, wherein the performing of the soft deletion operation on the cloud hard disk comprises:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
3. The data processing method of claim 1, wherein the method further comprises:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
4. The data processing method of claim 1, wherein the method further comprises:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
5. The data processing method according to any one of claims 1 to 4, wherein after receiving a deletion request of the cloud hard disk and before processing the deletion request, the method further comprises:
performing authority verification on the deletion request;
after receiving the recovery request of the cloud hard disk and before processing the recovery request, the method further comprises:
and carrying out authority verification on the recovery request.
6. A data processing apparatus comprising: a memory and a processor; the method is characterized in that:
the memory is used for storing programs for data processing;
the processor is used for reading and executing the program for data processing, and executing the following operations:
when a deleting request of a cloud hard disk is received, acquiring a deleting type of the deleting request;
if the deletion type is soft deletion, setting the logic value of the soft deletion mark corresponding to the cloud hard disk in the database to be true, and keeping the logic value of the original deletion mark corresponding to the cloud hard disk as a default value;
when the logical value of the soft deletion mark corresponding to the cloud hard disk in the database is set to be true and the logical value of the original deletion mark corresponding to the cloud hard disk is false, performing soft deletion operation on the cloud hard disk;
the default value of the logic value of the original deletion mark corresponding to the cloud hard disk is false;
the processor is used for reading and executing the program for data processing, and further performs the following operations: after the soft deletion operation is performed on the cloud hard disk, when the data of the cloud hard disk is checked, one of the following modes is executed: not displaying the information of the cloud hard disk; displaying the information of the cloud hard disk by setting a mark or a color, wherein the mark or the color is used for identifying that the data of the cloud hard disk is unavailable.
7. The data processing apparatus of claim 6, wherein the performing a soft delete operation on the cloud hard disk comprises:
releasing a quota corresponding to the item to which the cloud hard disk belongs, and reserving data on bottom storage equipment corresponding to the cloud hard disk, wherein the virtual resource of the cloud hard disk comprises mapping data of the cloud hard disk on the bottom storage equipment in a database.
8. The data processing apparatus of claim 6, wherein the processor, configured to read and execute the program for data processing, further performs the following operations:
when a recovery request of a cloud hard disk is received, the logic value of the soft deletion mark corresponding to the cloud hard disk at present is true, and the logic value of the original deletion mark corresponding to the cloud hard disk is false, the logic value of the soft deletion mark corresponding to the cloud hard disk is set to be false, the current logic value of the original deletion mark corresponding to the cloud hard disk is kept unchanged, and the recovery operation is carried out on the cloud hard disk.
9. The data processing apparatus of claim 6, wherein the processor, configured to read and execute the program for data processing, further performs the following operations:
if the deletion type is forced deletion, setting the logic value of an original deletion mark corresponding to the cloud hard disk in the database to be true;
and when the logic value of the cloud hard disk in the database corresponding to the original deletion mark is set to be true, releasing the cloud hard disk virtual resources in the database, and deleting the cloud hard disk data on the bottom-layer storage equipment.
10. A data processing apparatus as claimed in any one of claims 7 to 9, wherein the processor, when executing the program for data processing, further performs the operations of:
after receiving a deletion request of a cloud hard disk and before processing the deletion request, performing permission verification on the deletion request;
after receiving a recovery request of the cloud hard disk, and before processing the recovery request, performing permission verification on the recovery request.
CN201910563515.5A 2019-06-26 2019-06-26 Data processing method and device Active CN110381121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910563515.5A CN110381121B (en) 2019-06-26 2019-06-26 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910563515.5A CN110381121B (en) 2019-06-26 2019-06-26 Data processing method and device

Publications (2)

Publication Number Publication Date
CN110381121A CN110381121A (en) 2019-10-25
CN110381121B true CN110381121B (en) 2022-03-22

Family

ID=68250949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910563515.5A Active CN110381121B (en) 2019-06-26 2019-06-26 Data processing method and device

Country Status (1)

Country Link
CN (1) CN110381121B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750204A (en) * 2012-06-07 2012-10-24 深圳市万兴软件有限公司 Data recovery method and device
CN106354884A (en) * 2016-10-09 2017-01-25 郑州云海信息技术有限公司 Data object deleting method and device based on distributed file system
CN107391308A (en) * 2017-07-27 2017-11-24 珠海市魅族科技有限公司 Data processing method and device, terminal and computer-readable recording medium
CN109491598A (en) * 2018-10-19 2019-03-19 浪潮电子信息产业股份有限公司 Method and device for deleting logical volume

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8635250B2 (en) * 2010-04-26 2014-01-21 Vinod Mehra Methods and systems for deleting large amounts of data from a multitenant database
US8924664B2 (en) * 2012-12-13 2014-12-30 Infinidat Ltd. Logical object deletion

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750204A (en) * 2012-06-07 2012-10-24 深圳市万兴软件有限公司 Data recovery method and device
CN106354884A (en) * 2016-10-09 2017-01-25 郑州云海信息技术有限公司 Data object deleting method and device based on distributed file system
CN107391308A (en) * 2017-07-27 2017-11-24 珠海市魅族科技有限公司 Data processing method and device, terminal and computer-readable recording medium
CN109491598A (en) * 2018-10-19 2019-03-19 浪潮电子信息产业股份有限公司 Method and device for deleting logical volume

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"实时主动数据仓库中的变化数据捕捉研究综述";林子雨;《计算机研究与发展》;20071231;全文 *

Also Published As

Publication number Publication date
CN110381121A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN108647151A (en) It is a kind of to dodge system metadata rule method, apparatus, equipment and storage medium entirely
CN107704203B (en) Deletion method, device and equipment for aggregated large file and computer storage medium
WO2019218976A1 (en) Data processing method and apparatus, and computer-readable storage medium
CN109240607B (en) File reading method and device
CN113568582B (en) Data management method, device and storage equipment
CN111414424B (en) Method, system, medium and equipment for automatically synchronizing redis of configuration data
CN110597762A (en) File processing method, device, equipment and storage medium
US20060112083A1 (en) Object relation information management program, method, and apparatus
CN111190537B (en) Method and system for managing sequential storage disk in additional writing scene
CN115114232A (en) Method, device and medium for enumerating historical version objects
CN109144403B (en) Method and equipment for switching cloud disk modes
CN112596949B (en) High-efficiency SSD (solid State disk) deleted data recovery method and system
CN108304144B (en) Data writing-in and reading method and system, and data reading-writing system
CN110381121B (en) Data processing method and device
CN114089912B (en) Data processing method and device based on message middleware and storage medium
CN109669623A (en) A kind of file management method, document management apparatus, electronic equipment and storage medium
CN111399774B (en) Data processing method and device based on snapshot under distributed storage system
CN113254273A (en) Method, system, device and medium for real-time recovery of principal metadata
CN111190549A (en) Method, device, equipment and medium for acquiring available capacity of shared volume
CN111309526A (en) File backup and recovery method and device
CN111090396A (en) File processing method and device and electronic equipment
CN116540949B (en) Dynamic allocation method and device for storage space of redundant array of independent disks
CN112052217B (en) Snapshot implementation method and device
CN108984128B (en) Data reading method and device
CN109102754B (en) Data map generation method and device

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