CN112463228A - Storage pool hybrid deployment method and device - Google Patents

Storage pool hybrid deployment method and device Download PDF

Info

Publication number
CN112463228A
CN112463228A CN202011309736.9A CN202011309736A CN112463228A CN 112463228 A CN112463228 A CN 112463228A CN 202011309736 A CN202011309736 A CN 202011309736A CN 112463228 A CN112463228 A CN 112463228A
Authority
CN
China
Prior art keywords
drive letter
storage pool
storage device
storage
preset form
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.)
Withdrawn
Application number
CN202011309736.9A
Other languages
Chinese (zh)
Inventor
刘进源
魏传程
陈英南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011309736.9A priority Critical patent/CN112463228A/en
Publication of CN112463228A publication Critical patent/CN112463228A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The invention provides a method and a device for hybrid storage pool deployment, wherein the method comprises the following steps: identifying the types of storage devices in the system, and judging whether the drive letter of each type of storage device is in a preset form or not; in response to the drive letter of the storage device being in the preset form, building a first storage pool using the storage device whose drive letter is in the preset form; in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building a second storage pool based on the new drive letter; the first storage pool is docked to a first application and the second storage pool is docked to a second application that is different from the first application. By using the scheme of the invention, the reasonable utilization of the storage resources can be realized to the maximum extent, and the competitiveness of the product is improved.

Description

Storage pool hybrid deployment method and device
Technical Field
The field relates to the field of computers, and more particularly to a method and apparatus for hybrid storage pool deployment.
Background
In a cloud platform environment, openstack often has an application scenario of interfacing distributed storage, and if multiple types of data disks exist locally in the distributed storage, such as an SATA disk (the SATA disk is designed to be mainly used as an interface of a mechanical hard disk drive and runs through an SATA channel) and an NVME disk (a disk with better performance supports a PCIe bus) to coexist, in an existing storage method, the various types of hard disks are used in a mixed manner, and uniform management is not performed according to the performance of the hard disks.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and a device for hybrid storage pool deployment, which can maximize reasonable utilization of storage resources and improve product competitiveness.
In view of the above, an aspect of the embodiments of the present invention provides a method for hybrid storage pool deployment, including the following steps:
identifying the types of storage devices in the system, and judging whether the drive letter of each type of storage device is in a preset form or not;
in response to the drive letter of the storage device being in the preset form, building a first storage pool using the storage device whose drive letter is in the preset form;
in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building a second storage pool based on the new drive letter;
the first storage pool is docked to a first application and the second storage pool is docked to a second application that is different from the first application.
According to one embodiment of the present invention, in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building the second storage pool based on the new drive letter comprises:
formatting storage devices of which each drive letter is not in a preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of an OSD (an OSD is called by a daemon process corresponding to a disk and the disk, wherein the daemon process is used for reading and writing data from the disk), adding a key file to the new drive letter and endowing the new drive letter with a right, and restarting an OSD node after setting a mounting point as an authority for allowing operation;
creating a rule of a CRUSH MAP (a data distribution MAP of a ceph cluster, and a CRUSH algorithm can know how data should be distributed through the MAP), and setting a root node in the rule as an OSD node of a storage device with a drive letter not in a preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node.
According to one embodiment of the invention, the first storage pool is a storage pool constructed by SATA disks and the second storage pool is a storage pool constructed by NVME disks.
According to an embodiment of the invention, the first application is a work component (image service, which is a very important component of OpenStack and provides a mirrored service for creating a virtual machine), and the second application is a computing organization controller (Nova, a computing organization controller in OpenStack cloud, all activities supporting the life cycle of an instance in OpenStack cloud are processed by Nova, so that Nova becomes a platform responsible for managing computing resources, network, authentication and needed extensibility).
According to an embodiment of the invention, the predetermined pattern is a pattern sd.
In another aspect of an embodiment of the present invention, there is also provided an apparatus for hybrid storage pool deployment, the apparatus including:
the judging module is configured to identify the types of the storage devices in the system and judge whether the drive letter of each type of storage device is in a preset form;
a building module configured to build a first storage pool using a storage device for which a drive letter is a preset form in response to the drive letter of the storage device being the preset form;
a creation module configured to create a new drive using a storage device whose drive is not in a preset form and construct a second storage pool based on the new drive, in response to the drive of the storage device not being in the preset form;
a management module configured to interface the first storage pool to a first application and the second storage pool to a second application different from the first application.
According to one embodiment of the invention, the creation module is further configured to:
formatting storage devices of which each drive letter is not in a preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of the OSD, adding a key file to the new drive letter, giving a right, setting a mounting point as the permission of operation, and then restarting an OSD node;
creating a rule of CRUSH MAP, and setting a root node in the rule as an OSD node of a storage device with a drive letter not in a preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node.
According to one embodiment of the invention, the first storage pool is a storage pool constructed by SATA disks and the second storage pool is a storage pool constructed by NVME disks.
According to one embodiment of the invention, the first application is a work component and the second application is a computational tissue controller.
According to an embodiment of the invention, the predetermined pattern is a pattern sd.
The invention has the following beneficial technical effects: the storage pool hybrid deployment method provided by the embodiment of the invention identifies the types of the storage devices in the system and judges whether the drive letter of each type of storage device is in a preset form; in response to the drive letter of the storage device being in the preset form, building a first storage pool using the storage device whose drive letter is in the preset form; in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building a second storage pool based on the new drive letter; the technical scheme of butting the first storage pool to the first application and butting the second storage pool to the second application different from the first application can maximize the reasonable utilization of storage resources and improve the competitiveness of products.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art 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 that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a method for hybrid storage pool deployment in accordance with one embodiment of the present invention;
fig. 2 is a schematic diagram of a device for hybrid storage pool deployment, according to one embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above, a first aspect of the embodiments of the present invention proposes an embodiment of a method for hybrid storage pool deployment. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1 identifying the type of the storage device in the system, and judging whether the drive letter of each type of storage device is in a preset form, wherein the system has a plurality of types of storage devices, such as SATA disks and NVME disks, wherein the drive letter of the SATA disks is defaulted to sd form, OSD can be created and deployed normally through icfs-deploy, a default CRUSH MAP is constructed, the drive letter of the NVME disks, i.e., icfs-deploy, created OSD is not identified, and the CRUSH MAP cannot be automatically created, so the type of the storage device in the system needs to be identified, different types are integrated, and different types are created respectively according to whether the drive letter can be identified;
s2 building a first storage pool using a storage device whose drive letter is a preset form, in response to the drive letter of the storage device being a preset form, the preset form of the drive letter being sd form, if the drive letter of the storage device is sd form, the storage device being a SATA disk, creating and deploying a finalized OSD through icfs-deployment, building a default CRUSH MAP to form the first storage pool;
s3, responding to the disc character of the storage device not being in the preset form, creating a new disc character by using the storage device of which the disc character is not in the preset form and constructing a second storage pool based on the new disc character, wherein if the disc character of the storage device is not in the sd form, the storage device is an NVME disc, the new disc character is constructed after the disc character is set in the system, and then the second storage pool is created;
s4, the first storage pool is connected to the first application in a butt joint mode, the second storage pool is connected to the second application different from the first application in a butt joint mode, the SATA disk is general in performance, the storage pool can be constructed to be used for connecting a gland storage cloud platform mirror image, due to the fact that the NVME disk is better in performance and more excellent in running of the virtual machine, the storage pool constructed by the NVME disk can be used for processing system activities by the cloud host back end, and therefore storage resources can be utilized to the maximum degree.
By adopting the technical scheme of the invention, the reasonable utilization of storage resources can be realized to the maximum extent, and the competitiveness of products is improved.
In a preferred embodiment of the present invention, in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building the second storage pool based on the new drive letter comprises:
formatting storage devices of which each drive letter is not in a preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of the OSD, adding a key file to the new drive letter, giving a right, setting a mounting point as the permission of operation, and then restarting an OSD node;
creating a rule of CRUSH MAP, and setting a root node in the rule as an OSD node of a storage device with a drive letter not in a preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node. The method comprises the steps of using commands such as paired or fdisk to format NVME disks one by one, formatting all storage spaces of the NVME disks into a usable state for being squeezed down for use, then creating a required icfs mount point directory, mounting the disks formatted by the user before to the created mount point after creation is completed, and then creating a new drive character of OSD. A key file is added to this new OSD script and the right is assigned. And resetting the OSD node for service after setting the whole mount point as the permission of the icfs to allow operation. A rule for creating a CRUSH MAP is provided, wherein a root node is set to be used as an OSD node of the NVME disk, and the concept of the root node is similar to a combination. A host type is set, and this is used to place the OSD of each server on a back end (i.e., bucket), for example, i have three disks on server a, and after i make the three disks into 3 OSDs, they all belong to server a. And then dividing the created host type under the created root node, and placing the OSD of which server the created OSD is under the corresponding created host. The created CRUSH RULE RULE is embodied by some configuration parameters of CRUSH MAP, which is originally default that only the default OSD node pool is searched, a RULE is newly added to the default OSD node pool to define a name, and when the pool is created, if the RULE is selected, the RULE can lead the OSD node of the manually created NVME to be found to create the needed pool.
In a preferred embodiment of the present invention, the first storage pool is a storage pool constructed by SATA disks, and the second storage pool is a storage pool constructed by NVME disks. The SATA disk has general performance, a storage pool can be constructed to be used for butting to create and storing cloud platform images, because the NVME disk has better performance and is more excellent for the operation of a virtual machine, the storage pool constructed by the NVME disk can be used for processing system activities at the back end of a cloud host, and therefore storage resources can be utilized to the maximum extent.
In a preferred embodiment of the present invention, the first application is a work component and the second application is a computational tissue controller. Storage pools may also be interfaced to specific applications based on the needs of the applications and the characteristics of the storage pools.
In a preferred embodiment of the invention, the predetermined pattern is a pattern sd.
By adopting the technical scheme of the invention, the reasonable utilization of storage resources can be realized to the maximum extent, and the competitiveness of products is improved.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for storage pool hybrid deployment, as shown in fig. 2, the apparatus 200 includes:
the judging module is configured to identify the types of the storage devices in the system and judge whether the drive letter of each type of storage device is in a preset form;
a building module configured to build a first storage pool using a storage device for which a drive letter is a preset form in response to the drive letter of the storage device being the preset form;
a creation module configured to create a new drive using a storage device whose drive is not in a preset form and construct a second storage pool based on the new drive, in response to the drive of the storage device not being in the preset form;
a management module configured to interface the first storage pool to a first application and the second storage pool to a second application different from the first application.
In a preferred embodiment of the present invention, the creation module is further configured to:
formatting storage devices of which each drive letter is not in a preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of the OSD, adding a key file to the new drive letter, giving a right, setting a mounting point as the permission of operation, and then restarting an OSD node;
creating a rule of CRUSH MAP, and setting a root node in the rule as an OSD node of a storage device with a drive letter not in a preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node.
In a preferred embodiment of the present invention, the first storage pool is a storage pool constructed by SATA disks, and the second storage pool is a storage pool constructed by NVME disks.
In a preferred embodiment of the present invention, the first application is a work component and the second application is a computational tissue controller.
In a preferred embodiment of the invention, the predetermined pattern is a pattern sd.
The embodiments described above, particularly any "preferred" embodiments, are possible examples of implementations and are presented merely to clearly understand the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure and protected by the following claims.

Claims (10)

1. A method for hybrid storage pool deployment, comprising the steps of:
identifying the types of storage devices in the system, and judging whether the drive letter of each type of storage device is in a preset form or not;
in response to the drive letter of the storage device being in the preset form, building a first storage pool using the storage device whose drive letter is in the preset form;
in response to the drive letter of the storage device not being in the preset form, creating a new drive letter using the storage device whose drive letter is not in the preset form and building a second storage pool based on the new drive letter;
the first storage pool is docked to a first application and the second storage pool is docked to a second application that is different from the first application.
2. The method of claim 1, wherein in response to the drive letter of the storage device not being in the predetermined form, creating a new drive letter using the storage device whose drive letter is not in the predetermined form and building a second storage pool based on the new drive letter comprises:
formatting each storage device with the disc character not in the preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of the OSD, adding a key file to the new drive letter, giving a right, setting a mounting point as the permission of operation, and then restarting an OSD node;
creating a rule of CRUSH MAP, and setting a root node in the rule as an OSD node of a storage device with a drive letter not in the preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node.
3. The method of claim 1, wherein the first storage pool is a storage pool built by SATA disks and the second storage pool is a storage pool built by NVME disks.
4. The method of claim 1, wherein the first application is a work component and the second application is a computational tissue controller.
5. The method according to claim 1, wherein the predetermined pattern is a pattern sd.
6. An apparatus for storage pool hybrid deployment, the apparatus comprising:
the judging module is configured to identify the types of the storage devices in the system and judge whether the drive letter of each type of storage device is in a preset form;
a building module configured to build a first storage pool using a storage device for which a drive letter is the preset form, in response to the drive letter of the storage device being the preset form;
a creation module configured to create a new drive using a storage device whose drive is not in the preset form and construct a second storage pool based on the new drive, in response to the drive being not in the preset form;
a management module configured to interface the first storage pool to a first application and the second storage pool to a second application different from the first application.
7. The device of claim 6, wherein the creation module is further configured to:
formatting each storage device with the disc character not in the preset form;
in response to the completion of the formatting, creating a required mounting point and mounting the formatted storage device on the created mounting point;
creating a new drive letter of the OSD, adding a key file to the new drive letter, giving a right, setting a mounting point as the permission of operation, and then restarting an OSD node;
creating a rule of CRUSH MAP, and setting a root node in the rule as an OSD node of a storage device with a drive letter not in the preset form;
and building a second storage pool after creating the required host type and dividing the host type under the root node.
8. The device of claim 6, wherein the first storage pool is a storage pool built by SATA disks and the second storage pool is a storage pool built by NVME disks.
9. The apparatus of claim 6, wherein the first application is a work component and the second application is a computational tissue controller.
10. The apparatus according to claim 6, characterized in that the preset form is sd form.
CN202011309736.9A 2020-11-20 2020-11-20 Storage pool hybrid deployment method and device Withdrawn CN112463228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011309736.9A CN112463228A (en) 2020-11-20 2020-11-20 Storage pool hybrid deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011309736.9A CN112463228A (en) 2020-11-20 2020-11-20 Storage pool hybrid deployment method and device

Publications (1)

Publication Number Publication Date
CN112463228A true CN112463228A (en) 2021-03-09

Family

ID=74836815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011309736.9A Withdrawn CN112463228A (en) 2020-11-20 2020-11-20 Storage pool hybrid deployment method and device

Country Status (1)

Country Link
CN (1) CN112463228A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037233A1 (en) * 2022-08-17 2024-02-22 华为云计算技术有限公司 Storage system and scheduling method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024037233A1 (en) * 2022-08-17 2024-02-22 华为云计算技术有限公司 Storage system and scheduling method

Similar Documents

Publication Publication Date Title
US20230138736A1 (en) Cluster file system-based data backup method and apparatus, and readable storage medium
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
CN109168328B (en) Virtual machine migration method and device and virtualization system
CN107666493B (en) Database configuration method and equipment thereof
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN109271172B (en) Host performance expansion method and device of sweep cluster
CN104158858A (en) Method and system for accessing distributed cluster file system
CN110633130B (en) Virtual memory management method and device based on memory hot plug technology
CN111104201A (en) System migration method and device, electronic equipment and storage medium
CN111414391A (en) Method and system for accessing multiple data sources
CN111124615A (en) Virtual machine migration method, device, equipment and computer readable storage medium
CN115794257A (en) System starting method and device, electronic equipment and storage medium
CN104517067A (en) Method, device and system for data access
CN112463228A (en) Storage pool hybrid deployment method and device
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN112083971B (en) Component processing method, device and storage medium
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
CN112711469A (en) Cloud host migration method and device, computer equipment and storage medium
CN104407808A (en) Method and device for writing in data
CN112912743B (en) Calculation force control method, device, equipment and storage medium
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
CN103475521A (en) Method and device for deploying server
CN115174596A (en) Equipment remote copying method, device and medium
CN110968852B (en) Virtual machine password management method, system, equipment and computer storage medium
US9971532B2 (en) GUID partition table based hidden data store system

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210309

WW01 Invention patent application withdrawn after publication