[go: nahoru, domu]

CN110502371B - CFS storage domain recovery method, device, equipment and readable storage medium - Google Patents

CFS storage domain recovery method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110502371B
CN110502371B CN201910784509.2A CN201910784509A CN110502371B CN 110502371 B CN110502371 B CN 110502371B CN 201910784509 A CN201910784509 A CN 201910784509A CN 110502371 B CN110502371 B CN 110502371B
Authority
CN
China
Prior art keywords
storage domain
cfs
disk
identification information
heartbeat
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
CN201910784509.2A
Other languages
Chinese (zh)
Other versions
CN110502371A (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.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur 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 Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN201910784509.2A priority Critical patent/CN110502371B/en
Publication of CN110502371A publication Critical patent/CN110502371A/en
Application granted granted Critical
Publication of CN110502371B publication Critical patent/CN110502371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1471Saving, restoring, recovering or retrying involving logging of persistent data for recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a CFS storage domain recovery method, which comprises the following steps: if a virtualization system is deployed in a host in a CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in storage equipment according to disk identification information in the storage equipment; adding a heartbeat disk and a data disk to a CFS storage domain; and configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain. According to the method and the device, the recovery efficiency of the CFS storage domain can be improved, and the consistency of the CFS storage domain before and after recovery can be guaranteed, so that the high reliability and the high availability of the CFS storage domain are guaranteed. Accordingly, the CFS storage domain restoring apparatus, device and readable storage medium disclosed in the present application also have the above technical effects.

Description

CFS storage domain recovery method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a CFS storage domain recovery method, apparatus, device, and readable storage medium.
Background
The CFS (Cluster File System) is also called a CFS storage domain. When a host in the CFS storage domain is severely damaged, the CFS storage domain needs to be restored in time. When the CFS storage domain is recovered, the host needs to be repaired or replaced, and the virtualization system is redeployed on the repaired or replaced host, so that the disk in the original storage equipment is added to the CFS storage domain; resetting the heartbeat disc and configuring corresponding configuration information in the heartbeat disc.
When the heartbeat disc is set and corresponding configuration information is configured in the heartbeat disc, a certain disc added to the CFS storage domain needs to be formatted, and corresponding configuration information is manually added thereto, so that the disc is set as the heartbeat disc in the CFS storage domain. Therefore, in the prior art, when the CFS storage domain is restored, the heartbeat disc needs to be set for the CFS storage domain again, and corresponding configuration information needs to be added again manually, so that the restoration efficiency is reduced, and it is difficult to ensure that the restored CFS storage domain is completely the same as the original CFS storage domain, thereby reducing the accuracy of restoring data.
Therefore, how to improve the recovery efficiency of the CFS storage domain and ensure the consistency of the CFS storage domain before and after recovery is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device and a readable storage medium for recovering a CFS storage domain, so as to improve the recovery efficiency of the CFS storage domain and ensure the consistency of the CFS storage domain before and after recovery. The specific scheme is as follows:
in a first aspect, the present application provides a CFS storage domain recovery method, including:
if a virtualization system is deployed in a host in a CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in storage equipment according to disk identification information in the storage equipment;
adding a heartbeat disk and a data disk to a CFS storage domain;
and configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain.
Preferably, distinguishing the heartbeat disc from the data disc in the storage device according to the disc identification information in the storage device includes:
scanning the storage device to read the disk identification information; the disk identification information includes at least: first identification information and second identification information;
if the first identification information is read, determining the magnetic disk corresponding to the first identification information as a heartbeat disk;
and if the second identification information is read, determining the magnetic disk corresponding to the second identification information as a data disk.
Preferably, the method further comprises the following steps:
after the CFS storage domain is established for the first time, first identification information is established for a heartbeat disk in the CFS storage domain, and second identification information is established for a data disk in the CFS storage domain;
and storing the first identification information and the second identification information as disk identification information to a storage device.
Preferably, after recovering the CFS storage domain, the method further includes:
and if the CFS storage domain needs to be newly added with a heartbeat disc or a data disc, adding the disc without the disc identification information in the storage device into the CFS storage domain to serve as the newly added heartbeat disc or data disc.
Preferably, before adding the heartbeat disk and the data disk to the CFS storage domain, the method further includes:
judging whether the heartbeat disc and the data disc both belong to a CFS storage domain;
if yes, the step of adding the heartbeat disc and the data disc to the CFS storage domain is executed.
Preferably, the method further comprises the following steps:
if the heartbeat disc and the data disc have the disc which does not belong to the CFS storage domain, determining the disc which belongs to the CFS storage domain from the heartbeat disc and the data disc, and adding the disc which belongs to the CFS storage domain; and determining the heartbeat disc in the magnetic disc belonging to the CFS storage domain, and executing the step of configuring the CFS storage domain according to the configuration information in the heartbeat disc.
Preferably, configuring the CFS storage domain according to the configuration information in the heartbeat disk includes:
and reading the configuration information in the heartbeat disk, updating the configuration information into a configuration file in a CFS storage domain, and loading the configuration file.
In a second aspect, the present application provides a CFS storage domain restoration apparatus, including:
the distinguishing module is used for distinguishing a heartbeat disc and a data disc in the storage device according to the disc identification information in the storage device if a virtualization system is deployed in a host in the CFS storage domain to be recovered;
the adding module is used for adding the heartbeat disc and the data disc to the CFS storage domain;
and the recovery module is used for configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain.
In a third aspect, the present application provides a CFS storage domain restoring apparatus, including:
a memory for storing a computer program;
a processor for executing a computer program to implement the CFS storage domain restoration method disclosed in the foregoing.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the CFS storage domain restoration method disclosed in the foregoing.
By the above scheme, the present application provides a CFS storage domain recovery method, including: if a virtualization system is deployed in a host in a CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in storage equipment according to disk identification information in the storage equipment; adding a heartbeat disk and a data disk to a CFS storage domain; and configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain.
Therefore, when the CFS storage domain is recovered, the heartbeat disc and the data disc in the storage device can be distinguished according to the disc identification information in the storage device, and the heartbeat disc and the data disc in the storage device are the original heartbeat disc and the original data disc in the CFS storage domain. Since the heartbeat disc and the data disc are distinguished, the heartbeat disc does not need to be reset, and the configuration information in the heartbeat disc can be directly configured to the CFS storage domain, so that the CFS storage domain is recovered. Therefore, in the scheme disclosed by the application, the original heartbeat disc and the original data disc of the CFS storage domain to be recovered can be directly distinguished, so that the original heartbeat disc and the original data disc of the CFS storage domain to be recovered can be directly added to the CFS storage domain, and the CFS storage domain is configured by using the configuration information in the original heartbeat disc, thereby completing the recovery of the CFS storage domain. Wherein no formatting of the disk is required; the effect of formatting the disk is: and deleting the original data in the disk so that the disk is used as a heartbeat disk in a brand-new state. In the prior art, since it is unclear which disks are originally heartbeat disks and which disks are originally data disks, when resetting heartbeat disks, the disks need to be formatted. According to the method and the device, the recovery efficiency of the CFS storage domain can be improved, and the consistency of the CFS storage domain before and after recovery can be guaranteed, so that the high reliability and the high availability of the CFS storage domain are guaranteed.
Accordingly, the CFS storage domain restoring apparatus, device and readable storage medium provided by the present application also have the above technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a first CFS storage domain recovery method disclosed in the present application;
FIG. 2 is a flowchart illustrating a second CFS storage domain recovery method disclosed in the present application;
FIG. 3 is a schematic diagram of a CFS storage domain structure disclosed in the present application;
FIG. 4 is a schematic diagram of a CFS storage domain recovery apparatus disclosed in the present application;
fig. 5 is a schematic diagram of a CFS storage domain restoration device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
At present, when a CFS storage domain is recovered, a heartbeat disc needs to be set for the CFS storage domain again, corresponding configuration information needs to be added manually again, so that the recovery efficiency is reduced, and it is difficult to ensure that the recovered CFS storage domain is completely the same as the original CFS storage domain, so that the accuracy of data recovery is reduced. Therefore, the CFS storage domain recovery scheme is provided, the recovery efficiency of the CFS storage domain can be improved, and the consistency of the CFS storage domain before and after recovery is guaranteed.
Referring to fig. 1, an embodiment of the present application discloses a first CFS storage domain recovery method, including:
and S101, if a virtualization system is deployed in a host in the CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in the storage device according to disk identification information in the storage device.
In this embodiment, distinguishing the heartbeat disc and the data disc in the storage device according to the disc identification information in the storage device includes: scanning the storage device to read the disk identification information; the disk identification information includes at least: first identification information and second identification information; if the first identification information is read, determining the magnetic disk corresponding to the first identification information as a heartbeat disk; and if the second identification information is read, determining the magnetic disk corresponding to the second identification information as a data disk. The discriminated heartbeat disc and data disc may be recorded in a list form.
That is to say, after the CFS storage domain is initially created, first identification information is constructed for the heartbeat disk in the CFS storage domain, and second identification information is constructed for the data disk in the CFS storage domain; and storing the first identification information and the second identification information as disk identification information to a storage device. Therefore, the storage device can store the disk identification information belonging to the CFS storage domain, and when the CFS storage domain needs to be recovered, the heartbeat disk and the data disk belonging to the CFS storage domain are distinguished according to the disk identification information stored in advance, so that formatting operation is avoided.
The heartbeat disc is used for storing relevant configuration information and parameters of the CFS storage domain. Data disks are used to store data.
S102, adding a heartbeat disk and a data disk to a CFS storage domain;
and S103, configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain.
The structural composition of the CFS storage domain is shown in fig. 3, and in fig. 3, 3 hosts are included: HostA, HostB, HostC; the heartbeat disc can ensure the survival state of each host in the storage domain, and the data disc can be used for creating shared storage for the virtual machine in the virtualization system to use; on each host. The normal operation of the CFS storage domain is maintained by configuration files and parameters and corresponding services.
When a CFS storage domain is created for the first time, a heartbeat disc needs to be formatted, corresponding identification information (namely first identification information) is written on the heartbeat disc, and meanwhile configuration information of an original storage domain is recorded; when the data disc added to the CFS storage field is formatted, the data disc is also written with some identification information (i.e., the second identification information).
When the CFS storage domain is severely damaged, the virtualization system may completely lose the related records of the previous CFS storage domain due to the reinstallation of the virtualization system, and then the recovery may be performed according to the method provided in this embodiment. That is, the heartbeat disc and the data disc are distinguished according to the first identification information written on the heartbeat disc and the second identification information written on the data disc, and the CFS storage domain is recovered accordingly, and the corresponding disc is added to the latest CFS storage domain without formatting the disc in the recovery process. If new configuration information needs to be added in the CFS storage domain, the new configuration information is added on the basis of the configuration information in the heartbeat disc.
It can be seen that, in the present embodiment, when a CFS storage domain is restored, an original heartbeat disc and a data disc of the CFS storage domain to be restored can be directly distinguished, so that the original heartbeat disc and the data disc of the CFS storage domain to be restored can be directly added to the CFS storage domain, and the CFS storage domain is configured by using configuration information in the original heartbeat disc, thereby completing the restoration of the CFS storage domain. The scheme can improve the recovery efficiency of the CFS storage domain, and can ensure the consistency of the CFS storage domain before and after recovery, thereby ensuring the high reliability and high availability of the CFS storage domain.
Referring to fig. 2, an embodiment of the present application discloses a second CFS storage domain recovery method, including:
s201, if a virtualization system is deployed in a host in a CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in a storage device according to disk identification information in the storage device;
s202, judging whether the heartbeat disc and the data disc both belong to a CFS storage domain; if yes, go to S203; if not, executing S205;
s203, adding the heartbeat disc and the data disc to a CFS storage domain, and executing S204;
s204, configuring a CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain;
s205, determining a disk belonging to a CFS storage domain from the heartbeat disk and the data disk, adding the disk belonging to the CFS storage domain, and determining a heartbeat disk from the disks belonging to the CFS storage domain; and S204 is performed.
In this embodiment, after recovering the CFS storage domain, the method further includes: and if the CFS storage domain needs to be newly added with a heartbeat disc or a data disc, adding the disc without the disc identification information in the storage device into the CFS storage domain to serve as the newly added heartbeat disc or data disc.
In this embodiment, configuring the CFS storage domain according to the configuration information in the heartbeat disc includes: and reading the configuration information in the heartbeat disk, updating the configuration information into a configuration file in a CFS storage domain, and loading the configuration file. The configuration files of the CFS storage domain correspond to the hosts in the CFS storage domain in a one-to-one mode, and the hosts can be servers.
The method provided according to the present embodiment may implement the following recovery procedure.
Assume that there are three hosts (A, B, C), three heartbeats (H1, H2, H3), five blocks (D1, D2, D3, D4, D5) in the CFS storage domain, where four of the five blocks (D1, D2, D3, D5) create a shared storage pool. In this CFS storage domain, 8 disks on the storage device are mapped on each host.
If the CFS storage domain is severely damaged, the recovery process is as follows: firstly, repairing the hosts (A, B and C), reinstalling the virtualization system on the hosts, and remapping 8 disks in the storage device to the three hosts, namely adding the 8 disks to the CFS storage domain; further, the 8 disks are scanned to distinguish three heartbeats (H1, H2, H3) and four blocks (D1, D2, D3, D5), where the reason why D4 is not scanned is: the data disks used to create the shared storage pool, in which the associated identification information is recorded, are added to the CFS storage domain but are not used to create the shared storage pool, and there is no associated identification information, so D4 cannot be scanned. Where the data disks added to the CFS storage domain that were not used to create the shared storage pool also have no substantive data, D4 may be re-added to the CFS storage domain after the CFS storage domain is restored to serve as a heartbeat disk or a data disk.
Furthermore, three heartbeats (H1, H2, H3) and four blocks (D1, D2, D3, D5) are used for recovering the CFS storage domain by the host, and the three heartbeats do not need to be formatted and can be directly used in the recovery process. After the CFS storage domain recovery is complete, shared storage pool creation work may be performed for the four block data disks (D1, D2, D3, D5).
It should be noted that other implementation steps in this embodiment are the same as or similar to those in the above embodiment, and therefore, the description of this embodiment is omitted here.
As can be seen from the above, in the embodiment, when the CFS storage domain is restored, the original heartbeat disc and the original data disc of the CFS storage domain to be restored can be directly distinguished, so that the original heartbeat disc and the original data disc of the CFS storage domain to be restored can be directly added to the CFS storage domain, and the CFS storage domain is configured by using the configuration information in the original heartbeat disc, thereby completing the restoration of the CFS storage domain. The scheme can improve the recovery efficiency of the CFS storage domain, and can ensure the consistency of the CFS storage domain before and after recovery, thereby ensuring the high reliability and high availability of the CFS storage domain. And can also provide a reliable basis for recovery of post-disaster stored data or recovery of other data.
In the following, a CFS storage domain restoring apparatus provided in an embodiment of the present application is introduced, and a CFS storage domain restoring apparatus described below and a CFS storage domain restoring method described above may be referred to each other.
Referring to fig. 4, an embodiment of the present application discloses a CFS storage domain restoration apparatus, including:
a distinguishing module 401, configured to distinguish, if a virtualization system is deployed in a host in a CFS storage domain to be recovered, a heartbeat disk and a data disk in a storage device according to disk identification information in the storage device;
an adding module 402, configured to add the heartbeat disk and the data disk to the CFS storage domain;
a recovering module 403, configured to configure the CFS storage domain according to the configuration information in the heartbeat disc, so as to recover the CFS storage domain.
In one embodiment, the distinguishing module comprises:
a scanning unit for scanning the storage device to read the disk identification information; the disk identification information includes at least: first identification information and second identification information;
the first determining unit is used for determining the magnetic disk corresponding to the first identification information as a heartbeat disk if the first identification information is read;
and the second determining unit is used for determining the magnetic disk corresponding to the second identification information as the data disk if the second identification information is read.
In a specific embodiment, the method further comprises the following steps:
the building module is used for building first identification information for the heartbeat disk in the CFS storage domain and building second identification information for the data disk in the CFS storage domain after the CFS storage domain is built for the first time;
and the storage module is used for storing the first identification information and the second identification information as the magnetic disk identification information to the storage device.
In a specific embodiment, the method further comprises the following steps:
and the newly-added module is used for adding the disk without the disk identification information in the storage device to the CFS storage domain to serve as the newly-added heartbeat disk or data disk if the CFS storage domain needs to be newly added with the heartbeat disk or data disk.
In a specific embodiment, the method further comprises the following steps:
the judging module is used for judging whether the heartbeat disc and the data disc both belong to a CFS storage domain;
and the execution module is used for executing the step of adding the heartbeat disc and the data disc to the CFS storage domain if the heartbeat disc and the data disc both belong to the CFS storage domain.
In a specific embodiment, the method further comprises the following steps:
the determining module is used for determining the disk belonging to the CFS storage domain from the heartbeat disk and the data disk and adding the disk belonging to the CFS storage domain if the disk not belonging to the CFS storage domain exists in the heartbeat disk and the data disk; and determining the heartbeat disc in the magnetic disc belonging to the CFS storage domain, and executing the step of configuring the CFS storage domain according to the configuration information in the heartbeat disc.
In a specific embodiment, the recovery module is specifically configured to:
and reading the configuration information in the heartbeat disk, updating the configuration information into a configuration file in a CFS storage domain, and loading the configuration file.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a CFS storage domain recovery apparatus, which can improve recovery efficiency of a CFS storage domain and ensure consistency of the CFS storage domain before and after recovery, thereby ensuring high reliability and high availability of the CFS storage domain. And a reliable basis can be provided for the recovery of the post-disaster stored data or the recovery of other data.
In the following, a CFS storage domain restoring device provided in an embodiment of the present application is introduced, and a CFS storage domain restoring device described below and a CFS storage domain restoring method and apparatus described above may refer to each other.
Referring to fig. 5, an embodiment of the present application discloses a CFS storage domain restoring apparatus, including:
a memory 501 for storing a computer program;
a processor 502 for executing the computer program to implement the method disclosed by any of the embodiments described above.
In the following, a readable storage medium provided by an embodiment of the present application is introduced, and a readable storage medium described below and a CFS storage domain restoration method, apparatus, and device described above may be referred to each other.
A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the CFS storage domain restoration method disclosed in the foregoing embodiments. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Moreover, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A CFS storage domain recovery method is characterized by comprising the following steps:
if a virtualization system is deployed in a host in a CFS storage domain to be recovered, distinguishing a heartbeat disk and a data disk in storage equipment according to disk identification information in the storage equipment;
adding the heartbeat disk and the data disk to the CFS storage domain;
configuring the CFS storage domain according to the configuration information in the heartbeat disc so as to recover the CFS storage domain;
the distinguishing a heartbeat disc and a data disc in the storage device according to the disc identification information in the storage device includes:
scanning the storage device to read the disk identification information; the disk identification information at least includes: first identification information and second identification information;
if the first identification information is read, determining a magnetic disk corresponding to the first identification information as the heartbeat disk;
if the second identification information is read, determining the magnetic disk corresponding to the second identification information as the data disk;
wherein, still include:
after the CFS storage domain is initially created, constructing the first identification information for a heartbeat disk in the CFS storage domain, and constructing the second identification information for a data disk in the CFS storage domain;
and storing the first identification information and the second identification information as the disk identification information to the storage device.
2. The CFS storage domain restoration method according to claim 1, further comprising, after restoring the CFS storage domain:
and if the CFS storage domain needs to be newly added with the heartbeat disk or the data disk, adding the disk without disk identification information in the storage device to the CFS storage domain to serve as the newly added heartbeat disk or the data disk.
3. The CFS storage domain restoration method according to claim 1, wherein before adding the heartbeat disk and the data disk to the CFS storage domain, further comprising:
judging whether the heartbeat disc and the data disc both belong to the CFS storage domain;
and if so, executing the step of adding the heartbeat disc and the data disc to the CFS storage domain.
4. The CFS storage domain restoration method according to claim 3, further comprising:
if the heartbeat disc and the data disc have discs which do not belong to the CFS storage domain, determining the discs which belong to the CFS storage domain from the heartbeat disc and the data disc, and adding the discs which belong to the CFS storage domain; and determining the heartbeat disc in the magnetic disc belonging to the CFS storage domain, and executing the step of configuring the CFS storage domain according to the configuration information in the heartbeat disc.
5. The CFS storage domain restoration method according to any one of claims 1 to 4, wherein the configuring the CFS storage domain according to the configuration information in the heartbeat disk includes:
and reading the configuration information in the heartbeat disc, updating the configuration information into a configuration file in the CFS storage domain, and loading the configuration file.
6. A CFS storage domain restoration apparatus, comprising:
the distinguishing module is used for distinguishing a heartbeat disc and a data disc in the storage equipment according to the disc identification information in the storage equipment if a virtualization system is deployed in a host in the CFS storage domain to be recovered;
an adding module, configured to add the heartbeat disc and the data disc to the CFS storage domain;
a recovery module, configured to configure the CFS storage domain according to configuration information in the heartbeat disc, so as to recover the CFS storage domain;
wherein, distinguish the module and include:
a scanning unit, configured to scan the storage device to read the disk identification information; the disk identification information at least includes: first identification information and second identification information;
a first determining unit, configured to determine, if the first identification information is read, a magnetic disk corresponding to the first identification information as the heartbeat disk;
a second determining unit, configured to determine, if the second identification information is read, a disk corresponding to the second identification information as the data disk;
wherein, still include:
the construction module is used for constructing the first identification information for the heartbeat disk in the CFS storage domain and constructing the second identification information for the data disk in the CFS storage domain after the CFS storage domain is initially created;
and the storage module is used for storing the first identification information and the second identification information as the magnetic disk identification information to the storage device.
7. A CFS storage domain restoration device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the CFS storage domain restoration method according to any one of claims 1 to 5.
8. A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the CFS storage domain restoration method according to any one of claims 1 to 5.
CN201910784509.2A 2019-08-23 2019-08-23 CFS storage domain recovery method, device, equipment and readable storage medium Active CN110502371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910784509.2A CN110502371B (en) 2019-08-23 2019-08-23 CFS storage domain recovery method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910784509.2A CN110502371B (en) 2019-08-23 2019-08-23 CFS storage domain recovery method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110502371A CN110502371A (en) 2019-11-26
CN110502371B true CN110502371B (en) 2022-05-10

Family

ID=68589256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910784509.2A Active CN110502371B (en) 2019-08-23 2019-08-23 CFS storage domain recovery method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110502371B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395602A (en) * 2005-12-29 2009-03-25 亚马逊科技公司 Method and apparatus for a distributed file storage and indexing service
CN101488104A (en) * 2009-02-26 2009-07-22 北京世纪互联宽带数据中心有限公司 System and method for implementing high-efficiency security memory
WO2017070644A1 (en) * 2015-10-22 2017-04-27 Netapp, Inc. Implementing automatic switchover
CN106873918A (en) * 2017-02-27 2017-06-20 郑州云海信息技术有限公司 Storage method to set up and device in a kind of virtualization system
CN109062504A (en) * 2018-07-13 2018-12-21 郑州云海信息技术有限公司 Storage system dispositions method and device under a kind of virtual platform
CN109240855A (en) * 2018-09-11 2019-01-18 郑州云海信息技术有限公司 A kind of method and device for realizing dual-active disaster tolerance for server virtualization system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101395602A (en) * 2005-12-29 2009-03-25 亚马逊科技公司 Method and apparatus for a distributed file storage and indexing service
CN101488104A (en) * 2009-02-26 2009-07-22 北京世纪互联宽带数据中心有限公司 System and method for implementing high-efficiency security memory
WO2017070644A1 (en) * 2015-10-22 2017-04-27 Netapp, Inc. Implementing automatic switchover
CN106873918A (en) * 2017-02-27 2017-06-20 郑州云海信息技术有限公司 Storage method to set up and device in a kind of virtualization system
CN109062504A (en) * 2018-07-13 2018-12-21 郑州云海信息技术有限公司 Storage system dispositions method and device under a kind of virtual platform
CN109240855A (en) * 2018-09-11 2019-01-18 郑州云海信息技术有限公司 A kind of method and device for realizing dual-active disaster tolerance for server virtualization system

Also Published As

Publication number Publication date
CN110502371A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
JP2007012058A (en) File system for storing transaction records in flash-like media
JP2007012056A (en) File system having authentication of postponed data integrity
JP2007012054A (en) Startup authentication of optimized file system integrity
TW201131351A (en) System and method for optimizing redundancy restoration in distributed data layout environments
JP2007012060A (en) File system having inverted hierarchical structure
US8019953B2 (en) Method for providing atomicity for host write input/outputs (I/Os) in a continuous data protection (CDP)-enabled volume using intent log
CN106527992A (en) Method and device for destroying data in storage equipment
CN112052121B (en) Hard disk data recovery method and system
EP3336702A1 (en) Metadata recovery method and device
CN102662799A (en) Data backup method, server and hot backup system
CN101996109A (en) Computer system, control method thereof and recording medium storing computer program thereof
CN114138192A (en) Storage node online upgrading method, device, system and storage medium
CN106775481A (en) Method for reading data and equipment
CN100514305C (en) System and method for implementing safety control of operation system
CN112463880B (en) Block chain data storage method and related device
CN110502371B (en) CFS storage domain recovery method, device, equipment and readable storage medium
CN111813604B (en) Data recovery method, system and related device of fault storage equipment
CN109992527B (en) Bitmap management method of full flash memory system
CN110879764B (en) Bitmap setting method, device and equipment and readable storage medium
CN110704244B (en) Disk offline processing method, device and equipment and readable storage medium
CN112650444A (en) Data reconstruction method, system, device and medium
CN112307022A (en) Metadata repairing method and related device
CN110865772A (en) Method and device for protecting system data physical block erasure count value, computer equipment and storage medium
CN114564456B (en) Distributed storage file recovery method and device
US9286936B1 (en) Zone based band mapping

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