CN110703988A - Storage pool creating method, system, terminal and storage medium for distributed storage - Google Patents

Storage pool creating method, system, terminal and storage medium for distributed storage Download PDF

Info

Publication number
CN110703988A
CN110703988A CN201910819745.3A CN201910819745A CN110703988A CN 110703988 A CN110703988 A CN 110703988A CN 201910819745 A CN201910819745 A CN 201910819745A CN 110703988 A CN110703988 A CN 110703988A
Authority
CN
China
Prior art keywords
hard disk
osd
storage pool
storage
occupied
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
CN201910819745.3A
Other languages
Chinese (zh)
Other versions
CN110703988B (en
Inventor
李军站
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910819745.3A priority Critical patent/CN110703988B/en
Publication of CN110703988A publication Critical patent/CN110703988A/en
Application granted granted Critical
Publication of CN110703988B publication Critical patent/CN110703988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • 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
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The invention provides a method, a system, a terminal and a storage medium for creating a storage pool of distributed storage, wherein the method comprises the following steps: acquiring all hard disk information of a system, wherein the hard disk information comprises a hard disk OSD ID; checking the OSD ID of the hard disk occupied by the storage pool of the storage system; removing the OSD ID of the hard disk occupied by the storage pool from the OSD IDs of all the hard disks, and taking the rest OSD IDs of the hard disks as the OSD IDs of the alternative hard disks; the hard disk creation storage pool is selected from the OSD IDs of the alternative hard disks. The invention can meet various requirements of different clients on using the storage pool, improves the robustness and reliability of the storage system and enhances the competitiveness of distributed block storage products.

Description

Storage pool creating method, system, terminal and storage medium for distributed storage
Technical Field
The invention relates to the technical field of storage system management, in particular to a storage pool creating method, a storage pool creating system, a storage pool creating terminal and a storage medium for distributed storage.
Background
The distributed block storage system is widely applied to the fields of IT enterprises, cloud computing, big data, virtualization and the like, and meanwhile, the reliability requirements of the fields on the storage system are higher and higher. The data of the distributed block storage system is finally stored on the hard disk, and the probability of hard disk damage in practical application is very high; when a hard disk crash occurs, all storage pools in the storage system are affected. Therefore, in order to reduce the influence of the damage of the hard disk on the storage system, it is increasingly important that the distributed block storage system can flexibly select the hard disk creation storage pool. Because the existing distributed block storage system can not flexibly select the disk when establishing the storage pool, the robustness and the reliability of the storage system are reduced, and the competitiveness of distributed block storage products is seriously influenced.
Disclosure of Invention
In view of the above disadvantages in the prior art, the present invention provides a method, a system, a terminal and a storage medium for creating a storage pool of distributed storage, so as to solve the above technical problems.
In a first aspect, the present invention provides a storage pool creating method for distributed storage, including:
acquiring all hard disk information of a system, wherein the hard disk information comprises a hard disk OSD ID;
checking the OSD ID of the hard disk occupied by the storage pool of the storage system;
removing the OSD ID of the hard disk occupied by the storage pool from the OSD IDs of all the hard disks, and taking the rest OSD IDs of the hard disks as the OSD IDs of the alternative hard disks;
the hard disk creation storage pool is selected from the OSD IDs of the alternative hard disks.
Further, the acquiring of all hard disk information of the system includes:
acquiring OSD IDs and hard disk types of all hard disks of a system;
and generating an alternative hard disk information table in which the OSD IDs correspond to the hard disk types one by one according to the collected OSD IDs and the hard disk types of the hard disks.
Further, the selecting a hard disk creation storage pool from the OSD IDs of the alternative hard disks includes:
determining the number of hard disks to be occupied according to a redundancy rule for creating a storage pool;
determining the hard disk type to be occupied according to the type of the created storage pool;
selecting a corresponding hard disk OSD ID from an alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and occupying a corresponding hard disk according to the selected OSD ID of the hard disk to create a storage pool, and setting an association relation between the storage pool and the occupied hard disk in a flush map.
Further, the method further comprises:
and changing the OSD ID of the hard disk occupied by the deleted storage pool into the OSD ID of the alternative hard disk.
In a second aspect, the present invention provides a storage pool creation system for distributed storage, comprising:
the information acquisition unit is configured for acquiring all hard disk information of the system, wherein the hard disk information comprises a hard disk OSD ID;
the occupancy checking unit is used for configuring the OSD ID of the hard disk occupied by the storage pool of the checking storage system;
the hard disk screening unit is configured to remove the hard disk OSD IDs occupied by the storage pool from all the hard disk OSD IDs, and the rest hard disk OSD IDs are used as alternative hard disk OSD IDs;
and the creation execution unit is configured for selecting the hard disk creation storage pool from the OSD IDs of the alternative hard disks.
Further, the information collecting unit includes:
the information acquisition module is configured for acquiring OSD IDs and hard disk types of all hard disks of the system;
and the list generation module is configured and used for generating an alternative hard disk information list in one-to-one correspondence with the OSD ID and the hard disk type according to the collected OSD ID and the hard disk type of the hard disk.
Further, the creating execution unit includes:
the quantity determining module is configured to determine the quantity of hard disks to be occupied according to the redundancy rule for creating the storage pool;
the type determining module is configured to determine the hard disk type to be occupied according to the type of the created storage pool;
the hard disk selection module is configured to select a corresponding hard disk OSD ID from the alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and the storage creating module is configured to occupy a storage pool created by the corresponding hard disk according to the selected OSD ID of the hard disk, and set the association relationship between the storage pool and the occupied hard disk in the pause map.
Further, the system further comprises:
and the hard disk release module is configured to change the OSD ID of the hard disk occupied by the deleted storage pool into an OSDID of the alternative hard disk.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the storage pool creating method, the system, the terminal and the storage medium for distributed storage provided by the invention, the hard disk OSD ID occupied by the storage pool is removed from all the hard disk OSD IDs by acquiring all the hard disk information of the system and the hard disk OSD ID occupied by the storage pool of the storage system, the rest hard disk OSD IDs are used as the alternative hard disk OSD IDs, and the corresponding hard disk is selected from the alternative hard disks to create the storage pool, so that the influence of the damaged hard disks on the storage system is avoided, and the crossing of the same hard disk and different storage pools is also avoided. The invention can meet various requirements of different clients on using the storage pool, improves the robustness and reliability of the storage system and enhances the competitiveness of distributed block storage products.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all 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 invention.
The following explains key terms appearing in the present invention.
HDD Hard Disk Drive.
SSD Solid State Drive, commonly known as Solid State disk.
And the OSD Object Storage Devices provide data Storage service.
The grow map defines the rules for the distribution of data in the distributed storage system.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. Wherein, the fig. 1 implementation subject may be a storage pool creation system for a distributed storage.
As shown in fig. 1, the method 100 includes:
step 110, collecting all hard disk information of a system, wherein the hard disk information comprises a hard disk OSD ID;
step 120, checking the OSD ID of the hard disk occupied by the storage pool of the storage system;
step 130, removing the OSD ID of the hard disk occupied by the storage pool from the OSD IDs of all the hard disks, and taking the remaining OSDID of the hard disks as the OSD ID of the alternative hard disks;
in step 140, a hard disk creation storage pool is selected from the OSD IDs of the alternative hard disks.
Optionally, as an embodiment of the present invention, the acquiring information of all hard disks of the system includes:
acquiring OSD IDs and hard disk types of all hard disks of a system;
and generating an alternative hard disk information table in which the OSD IDs correspond to the hard disk types one by one according to the collected OSD IDs and the hard disk types of the hard disks.
Optionally, as an embodiment of the present invention, the selecting a hard disk creation storage pool from OSD IDs of alternative hard disks includes:
determining the number of hard disks to be occupied according to a redundancy rule for creating a storage pool;
determining the hard disk type to be occupied according to the type of the created storage pool;
selecting a corresponding hard disk OSD ID from an alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and occupying a corresponding hard disk according to the selected OSD ID of the hard disk to create a storage pool, and setting an association relation between the storage pool and the occupied hard disk in a flush map.
Optionally, as an embodiment of the present invention, the method further includes:
and changing the OSD ID of the hard disk occupied by the deleted storage pool into the OSD ID of the alternative hard disk.
In order to facilitate understanding of the present invention, the storage pool creation method for distributed storage provided by the present invention is further described below with reference to the principle of the storage pool creation method for distributed storage according to the present invention and the process of creating a storage pool in the embodiments.
Specifically, the method for creating the storage pool of the distributed storage includes:
and S1, acquiring all hard disk information of the system, wherein the hard disk information comprises the OSD ID of the hard disk.
Determining the OSD and the hard disk type corresponding to the hard disk in the system through a command icfs-system-disk-list-checkosd-checktype, recording and storing the OSD ID corresponding to the hard disk, and acquiring and storing the OSD list under rootdefault through an icfs OSD tree command.
And S2, checking the OSD ID of the hard disk occupied by the storage pool of the storage system.
And checking all storage pools in the storage system through icfs os pool ls and icfs os pool tree pool _ name commands, and recording OSD IDs occupied by all storage pools.
S3, the OSD ID of the hard disk occupied by the storage pool is removed from all the OSD IDs of the hard disks, and the rest OSD IDs of the hard disks are used as the OSD IDs of the alternative hard disks.
The hard disk OSD ID occupied in step S2 is removed from the list of all hard disk OSD IDs obtained in step S1. And generating an OSD ID list of the alternative hard disks by the OSD IDs of the rest hard disks.
And S4, selecting a hard disk creation storage pool from the OSD IDs of the alternative hard disks.
Determining the number of hard disks to be occupied according to the redundancy rule for creating the storage pool, determining the type of the hard disks to be occupied according to the type of the created storage pool, and selecting the corresponding hard disk OSD ID from the alternative hard disk information table according to the determined number and type of the hard disks.
And occupying a corresponding hard disk according to the selected OSD ID of the hard disk to create a storage pool, and setting an association relation between the storage pool and the occupied hard disk in a flush map. When a storage pool is created, a pause map of a storage system needs to be modified, a root role is newly added, and an OSD corresponding to a selected hard disk is moved from a default root to the newly added root; the storage pool is associated to the newly added root through a grow map, and data is stored on all OSD under the root name of the storage pool. When the hard disk is damaged, only the storage pool to which the hard disk belongs is affected, and other storage pools are not affected.
And S5, changing the OSD ID of the hard disk occupied by the deleted storage pool into the OSD ID of the alternative hard disk.
When the storage pool is deleted, the pause map of the storage system needs to be modified, and the OSD under the root corresponding to the storage pool is restored to the default root.
As shown in fig. 2, the system 200 includes:
the information acquisition unit 210 is configured to acquire all hard disk information of the system, where the hard disk information includes a hard disk OSDID;
an occupation checking unit 220 configured to check the hard disk OSD ID occupied by the storage pool of the storage system;
a hard disk screening unit 230 configured to remove the hard disk OSDID occupied by the storage pool from all the hard disk OSD IDs, and the remaining hard disk OSD IDs are used as alternative hard disk OSD IDs;
and a creation execution unit 240 configured to select a hard disk creation storage pool from the OSD IDs of the alternative hard disks.
Optionally, as an embodiment of the present invention, the information collecting unit includes:
the information acquisition module is configured for acquiring OSD IDs and hard disk types of all hard disks of the system;
and the list generation module is configured and used for generating an alternative hard disk information list in one-to-one correspondence with the OSD ID and the hard disk type according to the collected OSD ID and the hard disk type of the hard disk.
Optionally, as an embodiment of the present invention, the creating execution unit includes:
the quantity determining module is configured to determine the quantity of hard disks to be occupied according to the redundancy rule for creating the storage pool;
the type determining module is configured to determine the hard disk type to be occupied according to the type of the created storage pool;
the hard disk selection module is configured to select a corresponding hard disk OSD ID from the alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and the storage creating module is configured to occupy a storage pool created by the corresponding hard disk according to the selected OSD ID of the hard disk, and set the association relationship between the storage pool and the occupied hard disk in the pause map.
Optionally, as an embodiment of the present invention, the system further includes:
and the hard disk release module is configured to change the OSD ID of the hard disk occupied by the deleted storage pool into an OSDID of the alternative hard disk.
Fig. 3 is a schematic structural diagram of a terminal system 300 according to an embodiment of the present invention, where the terminal system 300 may be configured to execute the storage pool creating method for distributed storage according to the embodiment of the present invention.
The terminal system 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention eliminates the hard disk OSD ID occupied by the storage pool from all the hard disk OSD IDs by acquiring all the hard disk information of the system and the hard disk OSDID occupied by the storage pool of the storage system, the rest hard disk OSD IDs are used as the standby hard disk OSD IDs, and the corresponding hard disk is selected from the standby hard disk to create the storage pool, thereby avoiding the influence of the damaged hard disk on the storage system and avoiding the intersection of the same hard disk and different storage pools. The invention can meet various requirements of different clients for using the storage pool, improves the robustness and reliability of the storage system, and improves the competitiveness of the distributed block storage product.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, 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, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for creating a storage pool for distributed storage, comprising:
acquiring all hard disk information of a system, wherein the hard disk information comprises a hard disk OSD ID;
checking the OSD ID of the hard disk occupied by the storage pool of the storage system;
removing the hard disk OSDID occupied by the storage pool from all the hard disk OSDIDs, and taking the remaining hard disk OSDIDs as the OSD ID of the alternative hard disks;
the hard disk creation storage pool is selected from the OSD IDs of the alternative hard disks.
2. The storage pool creation method for distributed storage according to claim 1, wherein said collecting all system hard disk information comprises:
acquiring OSD IDs and hard disk types of all hard disks of a system;
and generating an alternative hard disk information table in which the OSD IDs correspond to the hard disk types one by one according to the collected OSD IDs and the hard disk types of the hard disks.
3. The method for creating a storage pool in distributed storage according to claim 2, wherein said selecting a hard disk creation storage pool from OSD IDs of alternative hard disks comprises:
determining the number of hard disks to be occupied according to a redundancy rule for creating a storage pool;
determining the hard disk type to be occupied according to the type of the created storage pool;
selecting a corresponding hard disk OSDID from an alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and establishing a storage pool according to the occupation of the selected hard disk OSDID on the corresponding hard disk, and setting the association relationship between the storage pool and the occupied hard disk in the flush map.
4. The storage pool creation method for distributed storage according to claim 1, said method further comprising:
and changing the OSD ID of the hard disk occupied by the deleted storage pool into the OSD ID of the alternative hard disk.
5. A storage pool creation system for distributed storage, comprising:
the information acquisition unit is configured for acquiring all hard disk information of the system, wherein the hard disk information comprises a hard disk OSD ID;
the occupancy checking unit is used for configuring the OSD ID of the hard disk occupied by the storage pool of the checking storage system;
the hard disk screening unit is configured to remove the hard disk OSD IDs occupied by the storage pool from all the hard disk OSD IDs, and the rest hard disk OSD IDs are used as alternative hard disk OSD IDs;
and the creation execution unit is configured for selecting the hard disk creation storage pool from the OSD IDs of the alternative hard disks.
6. The storage pool creation system for distributed storage according to claim 5, wherein said information collection unit comprises:
the information acquisition module is configured for acquiring OSD IDs and hard disk types of all hard disks of the system;
and the list generation module is configured to generate an alternative hard disk information table in which OSDIDs correspond to hard disk types one to one according to the collected OSDIDs and hard disk types.
7. The storage pool creation system for distributed storage according to claim 6, wherein said creation execution unit comprises:
the quantity determining module is configured to determine the quantity of hard disks to be occupied according to the redundancy rule for creating the storage pool;
the type determining module is configured to determine the hard disk type to be occupied according to the type of the created storage pool;
the hard disk selection module is configured to select a corresponding hard disk OSD ID from the alternative hard disk information table according to the number of hard disks to be occupied and the type of the hard disks;
and the storage creating module is configured to create a storage pool according to the occupation of the selected OSDID on the corresponding hard disk, and set the association relationship between the storage pool and the occupied hard disk in the crushmap.
8. The storage pool creation system for distributed storage according to claim 5, said system further comprising:
and the hard disk release module is configured to change the hard disk OSDID occupied by the deleted storage pool into the OSD ID of the alternative hard disk.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201910819745.3A 2019-08-31 2019-08-31 Storage pool creating method, system, terminal and storage medium for distributed storage Active CN110703988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910819745.3A CN110703988B (en) 2019-08-31 2019-08-31 Storage pool creating method, system, terminal and storage medium for distributed storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910819745.3A CN110703988B (en) 2019-08-31 2019-08-31 Storage pool creating method, system, terminal and storage medium for distributed storage

Publications (2)

Publication Number Publication Date
CN110703988A true CN110703988A (en) 2020-01-17
CN110703988B CN110703988B (en) 2022-07-22

Family

ID=69193838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910819745.3A Active CN110703988B (en) 2019-08-31 2019-08-31 Storage pool creating method, system, terminal and storage medium for distributed storage

Country Status (1)

Country Link
CN (1) CN110703988B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363674A (en) * 2020-11-12 2021-02-12 新华三技术有限公司成都分公司 Data writing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503237A (en) * 2016-11-04 2017-03-15 郑州云海信息技术有限公司 A kind of PG member selections method, device, storage pool and distributed file system
CN107506437A (en) * 2017-08-23 2017-12-22 郑州云海信息技术有限公司 A kind of OSD choosing methods and device based on crushmap structures
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN109542342A (en) * 2018-11-09 2019-03-29 锐捷网络股份有限公司 Metadata management and data reconstruction method, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503237A (en) * 2016-11-04 2017-03-15 郑州云海信息技术有限公司 A kind of PG member selections method, device, storage pool and distributed file system
CN107506437A (en) * 2017-08-23 2017-12-22 郑州云海信息技术有限公司 A kind of OSD choosing methods and device based on crushmap structures
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN109542342A (en) * 2018-11-09 2019-03-29 锐捷网络股份有限公司 Metadata management and data reconstruction method, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363674A (en) * 2020-11-12 2021-02-12 新华三技术有限公司成都分公司 Data writing method and device
CN112363674B (en) * 2020-11-12 2022-04-22 新华三技术有限公司成都分公司 Data writing method and device

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109445690B (en) RAID card performance optimization method, device, terminal and storage medium
CN113625945A (en) Distributed storage slow disk processing method, system, terminal and storage medium
CN110569154B (en) Chip interface function testing method, system, terminal and storage medium
CN111007987A (en) Memory management method, system, terminal and storage medium for raid io
CN111147331A (en) Server network card interaction test method, system, terminal and storage medium
CN111475106A (en) RAID customization creating method, system, terminal and storage medium
CN110703988B (en) Storage pool creating method, system, terminal and storage medium for distributed storage
CN110554917A (en) method, system, terminal and storage medium for efficiently traversing large data volume set
CN112003730A (en) Method, system, terminal and storage medium for rapid cluster deployment
CN111049913B (en) Data file transmission method and device, storage medium and electronic equipment
CN108459960A (en) Method of automatic configuration, device, equipment and the storage medium of test environment
CN110928492A (en) Hard disk replacement method, system, terminal and storage medium of distributed file system
CN111124772A (en) Cloud platform storage performance testing method, system, terminal and storage medium
CN113220368B (en) Storage client resource isolation method, system, terminal and storage medium
CN112463195B (en) Method, system, terminal and storage medium for cluster grouping online upgrade
CN114020214A (en) Storage cluster capacity expansion method and device, electronic equipment and readable storage medium
CN111858590B (en) Storage system metadata organization method, system, terminal and storage medium
CN111966286A (en) Multi-data pool hierarchical migration method and system
CN107203392A (en) A kind of many stipulations implementation methods of mini system end product
CN113076111A (en) Customized cluster configuration method, system, terminal and storage medium
CN113656378A (en) Server management method, device and medium
CN111124890A (en) Distributed database performance test method, system, terminal and storage medium
CN110908817A (en) Cluster capacity-reducing fault domain detection method, system, terminal and storage medium
CN111124854A (en) Method, system, terminal and storage medium for distributing smoking test cases
CN111475335A (en) Method, system, terminal and storage medium for fast recovery of database

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