[go: up one dir, main page]

CN113608680A - SDS (sodium dodecyl sulfate) resource cleaning method, device and equipment in super-fusion virtualization system - Google Patents

SDS (sodium dodecyl sulfate) resource cleaning method, device and equipment in super-fusion virtualization system Download PDF

Info

Publication number
CN113608680A
CN113608680A CN202110732005.3A CN202110732005A CN113608680A CN 113608680 A CN113608680 A CN 113608680A CN 202110732005 A CN202110732005 A CN 202110732005A CN 113608680 A CN113608680 A CN 113608680A
Authority
CN
China
Prior art keywords
cleaned
sds
resource
resources
cleaning
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
CN202110732005.3A
Other languages
Chinese (zh)
Other versions
CN113608680B (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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data 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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110732005.3A priority Critical patent/CN113608680B/en
Publication of CN113608680A publication Critical patent/CN113608680A/en
Application granted granted Critical
Publication of CN113608680B publication Critical patent/CN113608680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/0638Organizing or formatting or addressing of data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

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

The invention discloses a method, a device and equipment for cleaning SDS resources in a hyper-converged virtualization system and a computer readable storage medium, wherein the method comprises the following steps: dividing an SDS resource chain of the super-fusion virtualization system into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS (system data System), a target and an LUN (logical unit number) resource creating unit, and the storage using unit comprises a physical disk, a storage pool, a virtual disk and a virtual machine; the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time; the constraint relation between the second resources to be cleaned in the storage providing units in the SDS resource chain to be cleaned is removed, and the second resources to be cleaned are cleaned at one time; the method is simple to operate and high in cleaning efficiency in the using process, and is beneficial to keeping the original virtualization environment and rebuilding SDS.

Description

SDS (sodium dodecyl sulfate) resource cleaning method, device and equipment in super-fusion virtualization system
Technical Field
The embodiment of the invention relates to the technical field of cloud computing, in particular to a method, a device and a system for cleaning SDS (sodium dodecyl sulfate) resources in a super-fusion virtualization system and a computer-readable storage medium.
Background
With the gradual maturity of current server virtualization technologies, the super-fusion virtualization has gradually become an important component in the field of cloud computing. The SDS (software defined Storage) in the super-fusion virtualization system is formed by interconnecting a series of servers through an Internet Network, provides Storage service as a whole to the outside, is resource-isolated and easy to deploy, is distributed Storage built in the super-fusion virtualization system, builds shared Storage and creates virtual machine resources and the like through the Storage service provided for each server, and can provide IP-san (IP Storage Area Network) or NAS service to the outside.
The SDS is built through a local disk of the server, storage service is uniformly provided for the outside, when the SDS is normal, the resource chain using the SDS is too long, the cleaning of each level of resources relates to two aspects of a platform (a super-fusion virtualization platform) and a bottom layer (a super-fusion virtual machine host background), the processing is complicated, the time is long, taking IP-SAN as an example, the virtual machine, the virtual disk, the storage pool, the physical disk, the LUN (Logical Unit Number device), the target and the SDS are required to be sequentially cleaned for multiple times, the cleaning of each step relates to the cleaning of the two aspects of the platform and the bottom layer, the cleaning process is long, and the complexity and the time are wasted; when the SDS fails, the layer-by-layer resources created by the storage provided by the SDS may not be cleaned due to strong coupling of resources, logic constraint and the like, for example, the current resources cannot be deleted due to the existence of the previous-level resources created based on the current resources, and finally, the possibility of re-building the SDS is extremely low, and the SDS can only be built again after the virtualization environment is redeployed, and the original virtualization environment cannot be reserved.
In view of this, how to provide a method, an apparatus, a system and a computer readable storage medium for clearing SDS resources in a hyper-converged virtualization system, which are simple in operation, high in clearing efficiency and beneficial to retain an original virtualization environment, becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, equipment and a computer readable storage medium for clearing SDS resources in a super-fusion virtualization system, which are simple to operate and high in clearing efficiency in the using process and are beneficial to reserving the original virtualization environment and rebuilding SDS.
In order to solve the above technical problem, an embodiment of the present invention provides a method for clearing SDS resources in a hyper-converged virtualization system, including:
dividing an SDS resource chain of the super-fusion virtualization system into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and LUN resources created under the target, and the storage using unit comprises a physical disk for mapping the LUN resources to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk;
the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time;
and removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and cleaning the second resources to be cleaned at one time.
Optionally, the process of removing the constraint relationship between the first resources to be cleaned in the storage use unit in the SDS resource chain to be cleaned and performing one-time cleaning on each first resource to be cleaned includes:
acquiring a first logic dependency relationship of each resource in a storage using unit in an SDS resource chain to be cleaned, and determining each first resource to be cleaned from a database according to the first logic dependency relationship; each first resource to be cleaned is a physical disk, a storage pool, a virtual disk and a virtual machine;
setting the outer key constraint between the first resources to be cleaned to be empty;
and simultaneously executing cleaning operation on each first resource to be cleaned, and cleaning each first resource to be cleaned at one time.
Optionally, after the first resource to be cleaned is cleaned once, the method further includes:
and cleaning the first bottom layer information corresponding to each first resource to be cleaned.
Optionally, the process of cleaning the first bottom layer information corresponding to each first resource to be cleaned is as follows:
generating corresponding first cleaning marks according to the first resources to be cleaned;
and determining each first bottom layer information to be cleaned from the bottom layer of the corresponding server according to each first cleaning mark, and cleaning each first bottom layer information.
Optionally, the process of removing the constraint relationship between the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned and cleaning each second resource to be cleaned at one time includes:
acquiring a second logic dependency relationship of each resource in a storage providing unit in the SDS resource chain to be cleaned, and determining each second resource to be cleaned according to the second logic dependency relationship; each second resource to be cleaned is LUN resource, target and SDS;
setting the foreign key constraint between the second resources to be cleaned to be null;
and simultaneously executing cleaning operation on each second resource to be cleaned, and cleaning each second resource to be cleaned at one time.
Optionally, after the resource to be cleaned is cleaned once, the method further includes:
and cleaning second bottom layer information corresponding to each second resource to be cleaned.
Optionally, the process of cleaning the second bottom layer information corresponding to each second resource to be cleaned is as follows:
generating each second cleaning mark according to each second resource to be cleaned;
and determining second bottom layer information to be cleaned from the corresponding SDS node bottom layer according to the second cleaning marks, and cleaning the second bottom layer information.
Optionally, after the resource to be cleaned is cleaned once, the method further includes:
sending a out-of-service notification to each of the SDS nodes in the SDS, so that each of the SDS nodes stops providing services according to the out-of-service notification.
The embodiment of the invention also correspondingly provides an SDS resource cleaning device in the super-fusion virtualization system, which comprises:
the system comprises a dividing module, a storage providing unit and a storage using unit, wherein the dividing module is used for dividing an SDS resource chain of the super-fusion virtualization system into the storage providing unit and the storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and LUN resources created under the target, and the storage using unit comprises a physical disk for mapping the LUN resources to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk;
the first cleaning module is used for removing the constraint relation among the first resources to be cleaned in the storage using unit in the SDS resource chain to be cleaned and cleaning the first resources to be cleaned at one time;
and the second cleaning module is used for removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned and cleaning the second resources to be cleaned at one time.
The embodiment of the invention also provides SDS resource cleaning equipment in a super-fusion virtualization system, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of the SDS resource cleaning method in the super-fusion virtualization system when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the SDS resource cleaning method in the hyper-fusion virtualization system are implemented as described above.
The embodiment of the invention provides a method, a device and equipment for cleaning SDS (sodium dodecyl sulfate) resources in a super-fusion virtualization system and a computer readable storage medium, wherein the method comprises the following steps: dividing an SDS resource chain of the super-fusion virtualization system into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and an LUN resource created under the target, and the storage using unit comprises a physical disk for mapping the LUN resource to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk; the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time; and removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and cleaning the second resources to be cleaned at one time.
Therefore, the SDS resource chain is divided into two units, the SDS, the target and the LUN resource form a storage providing unit, the physical disk, the storage pool, the virtual disk and the virtual mechanism form a storage using unit, when the SDS resource chain to be cleaned needs to be cleaned, the storage using unit and the storage providing unit of the SDS resource chain to be cleaned can be cleaned respectively at one time, the cleaning efficiency is improved, and the constraint relation among the resources to be cleaned is removed during cleaning, so that the cleaning of the SDS resource chain to be cleaned can be realized when the SDS fails, and the original virtual environment is reserved and the SDS is built again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating an SDS resource cleaning method in a super-fusion virtualization system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a basic composition structure of an SDS of the super-fusion virtualization system according to an embodiment of the present invention;
fig. 3 is a schematic view of an SDS resource chain of a hyper-converged virtualization system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an SDS resource cleaning apparatus in the super-fusion virtualization system according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device and equipment for clearing SDS resources in a super-fusion virtualization system and a computer readable storage medium, which are simple to operate and high in clearing efficiency in the using process and are beneficial to reserving the original virtualization environment and rebuilding SDS.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an SDS resource cleaning method in a super-fusion virtualization system according to an embodiment of the present invention. The method comprises the following steps:
s110: the SDS resource chain of the super-fusion virtualization system is divided into a storage providing unit and a storage using unit in advance.
The storage providing unit comprises an SDS, a target created under the SDS and LUN resources created under the target, and the storage using unit comprises a physical disk for mapping the LUN resources to the server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk.
It should be noted that, referring to fig. 2, the core of the super-fusion is storage virtualization and computation virtualization, that is, storage resources or services are provided for a virtual machine to use, so as to implement a computation function. The SDS is constructed by a series of servers with resources such as local disks, ten-gigabit network cards and the like, each server is used as an SDS node of the SDS, and a plurality of SDS nodes form the SDS.
Specifically, in the embodiment of the present invention, a manner of an IP-SAN is taken as an example to describe in detail, as shown in fig. 3, when an SDS is built, firstly, the SDS creates a target used by the IP-SAN, and creates LUN resources under the target, wherein a plurality of LUNs can be created under one target, a host in the SDS is connected to the target through a network, and the target and the LUNs are manners in which the SDS provides a storage service to the outside. The host in the SDS is connected with the target through the network, LUN resources are converted into physical disks of the physical server, then storage pool resources are created on the physical disks, the storage pools are used for creating virtual machines and storing the virtual disks, and one virtual machine can have a plurality of virtual disks. In the embodiment of the present invention, after the SDS is built, the SDS resource chain may be divided, the target and the LUN are divided into storage providing units, and the physical disk, the storage pool, the virtual disk and the virtual machine are divided into storage using units.
S120: the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time;
it should be noted that, when the SDS needs to be cleaned, for an SDS resource chain to be cleaned of the SDS to be cleaned, first cleaning each first resource to be cleaned in a storage usage unit in the SDS resource chain to be cleaned, and then cleaning each second resource to be cleaned in a storage providing unit, wherein, because there are logical constraints and coupling relationships between resources in the SDS resource chain, each first resource to be cleaned in the storage usage unit in the SDS resource chain to be cleaned is determined first, because there is a constraint relationship between the first resources to be cleaned, the constraint relationship among the first resources to be cleaned is removed first, because there is no constraint between the first resources to be cleaned, the first resources to be cleaned can be cleaned at one time, that is, there is no need to clean each first resource to be cleaned layer by layer, the first resources to be cleaned are cleaned at one time, and the cleaning efficiency is high.
S130: and removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and cleaning the second resources to be cleaned at one time.
Specifically, after each first resource to be cleaned in the storage using unit is cleaned, each second resource to be cleaned in the storage providing unit is cleaned, wherein after each second resource to be cleaned is found out, because a constraint relation exists between each second resource to be cleaned, the constraint relation between each second resource to be cleaned needs to be removed first in order to clean each second resource to be cleaned at one time, and after the constraint relation is removed, the second resources to be cleaned are cleaned at one time, so that the cleaning of the SDS is completed. Even if the SDS is in fault, the resources to be cleaned in the SDS can still be cleaned, which is beneficial to reserving the original virtualization environment and rebuilding the SDS.
Further, in the above S120, the process of removing the constraint relationship between the first resources to be cleaned in the storage and use unit in the SDS resource chain to be cleaned, and performing one-time cleaning on each first resource to be cleaned includes:
acquiring a first logic dependency relationship of each resource in a storage using unit in an SDS resource chain to be cleaned, and determining each first resource to be cleaned from a database according to the first logic dependency relationship; each first resource to be cleaned is a physical disk, a storage pool, a virtual disk and a virtual machine;
the external key constraint between the first resources to be cleaned is set to be null;
and simultaneously executing cleaning operation on each first resource to be cleaned, and cleaning each first resource to be cleaned at one time.
It should be noted that, according to the first logical dependency relationship of each resource in the storage usage unit in the SDS resource chain to be cleaned, each first resource to be cleaned, the physical disk, the storage pool, the virtual disk, and the virtual machine, are determined from the database, then the foreign key constraints between each first resource to be cleaned are obtained, and then the foreign key constraints are cleared, so that the foreign key constraints between each first resource to be cleaned are removed, and then the cleaning operation is performed on each first resource to be cleaned at the same time to realize one-time cleaning.
Furthermore, after the above-mentioned one-time cleaning of each first resource to be cleaned, the method further includes:
and cleaning the first bottom layer information corresponding to each first resource to be cleaned.
It should be noted that after the platform resources are cleaned, the bottom layer also needs to clean the corresponding bottom layer information. Specifically, the method comprises the following steps:
generating corresponding first cleaning marks according to the first resources to be cleaned;
and determining the first bottom layer information to be cleaned from the bottom layer of the corresponding server according to the first cleaning marks, and cleaning the first bottom layer information.
That is, in practical application, after the platform resource of the storage use unit is cleaned, each first cleaning mark may be generated according to each first resource to be cleaned, that is, one first resource to be cleaned generates one first cleaning mark, where the first cleaning mark may include an identification code uniquely corresponding to the first resource to be cleaned, and then first bottom layer information corresponding to the first resource to be cleaned is determined from a bottom layer of a corresponding server according to each first cleaning mark, where the first bottom layer information includes a corresponding bottom layer configuration file, service information, a record file, and the like, and then the first bottom layer information is cleaned, and of course, a physical disk in the corresponding server needs to be deleted, thereby completing cleaning.
Further, the process of removing the constraint relationship between the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned in S130 and cleaning each second resource to be cleaned at one time includes:
acquiring a second logic dependency relationship of each resource in a storage providing unit in the SDS resource chain to be cleaned, and determining each second resource to be cleaned according to the second logic dependency relationship; each second resource to be cleaned is LUN resource, target and SDS;
the external key constraint between the second resources to be cleaned is set to be null;
and simultaneously executing cleaning operation on each second resource to be cleaned, and cleaning each second resource to be cleaned at one time.
It should be noted that, according to the second logical dependency relationship of each resource in the storage providing unit in the SDS resource chain to be cleaned, each second resource to be cleaned, LUN resource, target, and SDS may be further determined, then the foreign key constraints between each second resource to be cleaned are obtained, and then the foreign key constraints are cleared, so that the foreign key constraints between each second resource to be cleaned are removed, and then the cleaning operation is simultaneously performed on each second resource to be cleaned, so as to implement secondary cleaning.
Optionally, after each second resource to be cleaned is cleaned once, the method further includes:
and cleaning second bottom layer information corresponding to each second resource to be cleaned.
It should be noted that after the platform resources are cleaned, the bottom layer also needs to clean the corresponding bottom layer information. Specifically, the method comprises the following steps:
generating each second cleaning mark according to each second resource to be cleaned;
and determining second bottom layer information to be cleaned from the corresponding SDS node bottom layer according to the second cleaning marks, and cleaning the second bottom layer information.
That is, in practical application, after the platform resources of the storage providing unit are cleaned, each second cleaning mark may be generated according to each second resource to be cleaned, that is, one second resource to be cleaned generates one second cleaning mark, where the second cleaning mark may include an identification code uniquely corresponding to the second resource to be cleaned, and then second bottom layer information corresponding to the first resource to be cleaned is determined from the bottom layer of the corresponding SDS node according to each second cleaning mark, where the second bottom layer information includes corresponding bottom layer configuration files, service information, record files, and the like, and then these second bottom layer information are cleaned, and of course, the physical disk in the corresponding server needs to be deleted, thereby completing cleaning. Further, after performing one-time cleaning on each second resource to be cleaned, the method further includes:
a out-of-service notification is sent to each SDS node within the SDS such that each SDS node stops providing services based on the out-of-service notification.
Specifically, after the SDS is cleared, a service stop notification may be sent to each SDS node in the SDS, and after each SDS node receives the service stop log, each SDS node stops providing the service according to the service stop notification.
Therefore, the SDS resource chain is divided into two units, the SDS, the target and the LUN resource form a storage providing unit, the physical disk, the storage pool, the virtual disk and the virtual mechanism form a storage using unit, when the SDS resource chain to be cleaned needs to be cleaned, the storage using unit and the storage providing unit of the SDS resource chain to be cleaned can be cleaned respectively at one time, the cleaning efficiency is improved, and the constraint relation among the resources to be cleaned is removed during cleaning, so that the cleaning of the SDS resource chain to be cleaned can be realized when the SDS fails, and the original virtual environment is reserved and the SDS is built again.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides an apparatus for clearing SDS resources in a super-fusion virtualization system, specifically referring to fig. 4, where the apparatus includes:
the dividing module 21 is configured to divide an SDS resource chain of the hyper-converged virtualization system into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and an LUN resource created under the target, and the storage using unit comprises a physical disk for mapping the LUN resource to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk;
the first cleaning module 22 is configured to remove a constraint relationship between each first resource to be cleaned in a storage usage unit in the SDS resource chain to be cleaned, and perform one-time cleaning on each first resource to be cleaned;
the second cleaning module 23 is configured to remove a constraint relationship between each second resource to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and clean each second resource to be cleaned at one time.
It should be noted that the SDS resource cleaning device in the super-fusion virtualization system in the embodiment of the present invention has the same beneficial effects as the SDS resource cleaning method in the super-fusion virtualization system in the above embodiment, and for a specific description of the SDS resource cleaning method in the super-fusion virtualization system designed in the embodiment of the present invention, please refer to the above embodiment, which is not described in detail herein.
On the basis of the above embodiment, an embodiment of the present invention further provides an SDS resource cleaning device in a super-fusion virtualization system, where the device includes:
a memory for storing a computer program;
and the processor is used for realizing the steps of the SDS resource cleaning method in the super-fusion virtualization system when executing the computer program.
For example, the processor in the embodiment of the present invention may be specifically configured to implement that an SDS resource chain of the hyper-converged virtualization system is divided into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and an LUN resource created under the target, and the storage using unit comprises a physical disk for mapping the LUN resource to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk; the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time; and removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and cleaning the second resources to be cleaned at one time.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the SDS resource cleaning method in the above-mentioned hyper-converged virtualization system.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method for clearing SDS resources in a super-fusion virtualization system is characterized by comprising the following steps:
dividing an SDS resource chain of the super-fusion virtualization system into a storage providing unit and a storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and LUN resources created under the target, and the storage using unit comprises a physical disk for mapping the LUN resources to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk;
the method comprises the steps of removing the constraint relation among first resources to be cleaned in a storage using unit in an SDS resource chain to be cleaned, and cleaning the first resources to be cleaned at one time;
and removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned, and cleaning the second resources to be cleaned at one time.
2. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 1, wherein the process of releasing the constraint relationship between each first resource to be cleared in the storage usage unit in the SDS resource chain to be cleared and performing one-time clearing on each first resource to be cleared is:
acquiring a first logic dependency relationship of each resource in a storage using unit in an SDS resource chain to be cleaned, and determining each first resource to be cleaned from a database according to the first logic dependency relationship; each first resource to be cleaned is a physical disk, a storage pool, a virtual disk and a virtual machine;
setting the outer key constraint between the first resources to be cleaned to be empty;
and simultaneously executing cleaning operation on each first resource to be cleaned, and cleaning each first resource to be cleaned at one time.
3. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 1, further comprising, after the one-time clearing of each of the first to-be-cleared resources:
and cleaning the first bottom layer information corresponding to each first resource to be cleaned.
4. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 3, wherein the process of clearing the first bottom layer information corresponding to each of the first to-be-cleared resources is:
generating corresponding first cleaning marks according to the first resources to be cleaned;
and determining each first bottom layer information to be cleaned from the bottom layer of the corresponding server according to each first cleaning mark, and cleaning each first bottom layer information.
5. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 1, wherein the process of releasing the constraint relationship between each second resource to be cleared in the storage providing unit in the SDS resource chain to be cleared and clearing each second resource to be cleared at one time is:
acquiring a second logic dependency relationship of each resource in a storage providing unit in the SDS resource chain to be cleaned, and determining each second resource to be cleaned according to the second logic dependency relationship; each second resource to be cleaned is LUN resource, target and SDS;
setting the foreign key constraint between the second resources to be cleaned to be null;
and simultaneously executing cleaning operation on each second resource to be cleaned, and cleaning each second resource to be cleaned at one time.
6. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 1, further comprising, after the one-time clearing of each of the second resources to be cleared:
and cleaning second bottom layer information corresponding to each second resource to be cleaned.
7. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 6, wherein the process of clearing the second bottom layer information corresponding to each of the second resources to be cleared is:
generating each second cleaning mark according to each second resource to be cleaned;
and determining second bottom layer information to be cleaned from the corresponding SDS node bottom layer according to the second cleaning marks, and cleaning the second bottom layer information.
8. The method for clearing SDS resources in a hyper-converged virtualization system according to claim 1, further comprising, after the one-time clearing of each of the second resources to be cleared:
sending a out-of-service notification to each of the SDS nodes in the SDS, so that each of the SDS nodes stops providing services according to the out-of-service notification.
9. An SDS resource cleaning device in a super-fusion virtualization system is characterized by comprising:
the system comprises a dividing module, a storage providing unit and a storage using unit, wherein the dividing module is used for dividing an SDS resource chain of the super-fusion virtualization system into the storage providing unit and the storage using unit in advance; the storage providing unit comprises an SDS, a target created under the SDS and LUN resources created under the target, and the storage using unit comprises a physical disk for mapping the LUN resources to a server, a storage pool created under the physical disk, a virtual disk created under the storage pool and a virtual machine using the virtual disk;
the first cleaning module is used for removing the constraint relation among the first resources to be cleaned in the storage using unit in the SDS resource chain to be cleaned and cleaning the first resources to be cleaned at one time;
and the second cleaning module is used for removing the constraint relation among the second resources to be cleaned in the storage providing unit in the SDS resource chain to be cleaned and cleaning the second resources to be cleaned at one time.
10. An SDS resource cleaning device in a super-fusion virtualization system is characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the SDS resource cleaning method in the hyper-converged virtualization system according to any one of claims 1 to 8 when executing the computer program.
11. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the SDS resource cleaning method of any of claims 1 to 8.
CN202110732005.3A 2021-06-29 2021-06-29 SDS resource cleaning method, device and equipment in super fusion virtualization system Active CN113608680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110732005.3A CN113608680B (en) 2021-06-29 2021-06-29 SDS resource cleaning method, device and equipment in super fusion virtualization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110732005.3A CN113608680B (en) 2021-06-29 2021-06-29 SDS resource cleaning method, device and equipment in super fusion virtualization system

Publications (2)

Publication Number Publication Date
CN113608680A true CN113608680A (en) 2021-11-05
CN113608680B CN113608680B (en) 2024-07-02

Family

ID=78303873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110732005.3A Active CN113608680B (en) 2021-06-29 2021-06-29 SDS resource cleaning method, device and equipment in super fusion virtualization system

Country Status (1)

Country Link
CN (1) CN113608680B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102147770A (en) * 2011-03-28 2011-08-10 杭州电子科技大学 Storage resource management system and method
US8364920B1 (en) * 2009-04-06 2013-01-29 Network Appliance, Inc. System and method for transferring and backing up luns and lun clones on primary and secondary servers
CA2972382A1 (en) * 2015-01-09 2016-07-14 Landmark Graphics Corporation Apparatus and methods of data synchronization
CN107967117A (en) * 2016-10-20 2018-04-27 杭州海康威视数字技术股份有限公司 A kind of data storage, reading, method for cleaning, device and cloud storage system
US20180203890A1 (en) * 2017-01-17 2018-07-19 International Business Machines Corporation Sanitizing virtualized composite services
CN109857519A (en) * 2019-01-15 2019-06-07 新华三云计算技术有限公司 The processing method and relevant apparatus of virtual disk

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8364920B1 (en) * 2009-04-06 2013-01-29 Network Appliance, Inc. System and method for transferring and backing up luns and lun clones on primary and secondary servers
CN102147770A (en) * 2011-03-28 2011-08-10 杭州电子科技大学 Storage resource management system and method
CA2972382A1 (en) * 2015-01-09 2016-07-14 Landmark Graphics Corporation Apparatus and methods of data synchronization
CN107967117A (en) * 2016-10-20 2018-04-27 杭州海康威视数字技术股份有限公司 A kind of data storage, reading, method for cleaning, device and cloud storage system
US20180203890A1 (en) * 2017-01-17 2018-07-19 International Business Machines Corporation Sanitizing virtualized composite services
CN109857519A (en) * 2019-01-15 2019-06-07 新华三云计算技术有限公司 The processing method and relevant apparatus of virtual disk

Also Published As

Publication number Publication date
CN113608680B (en) 2024-07-02

Similar Documents

Publication Publication Date Title
CN106201659B (en) A kind of method and host of live migration of virtual machine
JP5185483B2 (en) Quorum resource arbiter in the storage network
CN106406758A (en) Data processing method based on distributed storage system, and storage equipment
CN104035836B (en) Automatic disaster-tolerant recovery method and system in cluster searching platform
CN113094183B (en) Training task creating method, device, system and medium of AI (Artificial Intelligence) training platform
JP2023022831A (en) Computer system, computer-implemented method, program, and computer-implemented system (learning causality)
CN112559127B (en) Virtual machine creation method, device, host and storage medium
CN115756955A (en) Data backup and data recovery method and device and computer equipment
CN108897858B (en) Distributed cluster index fragmentation evaluation method and device and electronic equipment
CN108958991A (en) Clustered node failure business quick recovery method, device, equipment and storage medium
CN108776579A (en) A kind of distributed storage cluster expansion method, device, equipment and storage medium
CN109460345B (en) Real-time data calculation method and system
CN108776611B (en) A cloud host management method and device based on a cloud management platform
CN108429642A (en) A topology recognition method, system, device and computer storage medium
CN103150159A (en) Identifier generation using named objects
CN113608680A (en) SDS (sodium dodecyl sulfate) resource cleaning method, device and equipment in super-fusion virtualization system
CN108604231B (en) Mirror image processing method and computing device
CN111090491B (en) Virtual machine task state recovery method and device and electronic equipment
CN113535696A (en) Data cleaning method and device, electronic equipment and medium
JP6642024B2 (en) Management device, management method and management program
CN104407806A (en) Method and device for revising hard disk information of redundant array group of independent disk (RAID)
CN115114245B (en) A file deletion method and related device
CN112328487B (en) Parallel joint simulation scheduling method, device and equipment for fault injection use case
CN112269677A (en) Rollback operation device, method, equipment and medium under heterogeneous cloud platform
CN113112023A (en) Inference service management method, device, system and medium of inference platform

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