CN113703676B - Calling method, device, equipment and medium for double live volumes - Google Patents

Calling method, device, equipment and medium for double live volumes Download PDF

Info

Publication number
CN113703676B
CN113703676B CN202110875879.4A CN202110875879A CN113703676B CN 113703676 B CN113703676 B CN 113703676B CN 202110875879 A CN202110875879 A CN 202110875879A CN 113703676 B CN113703676 B CN 113703676B
Authority
CN
China
Prior art keywords
dual
volume
active
active volume
host
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
CN202110875879.4A
Other languages
Chinese (zh)
Other versions
CN113703676A (en
Inventor
朱冰阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110875879.4A priority Critical patent/CN113703676B/en
Publication of CN113703676A publication Critical patent/CN113703676A/en
Application granted granted Critical
Publication of CN113703676B publication Critical patent/CN113703676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • 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/061Improving I/O performance
    • 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/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a calling method, a device, equipment and a medium of a double-active volume, which are connected with a double-active volume storage cluster to acquire a volume number of the double-active volume corresponding to an IO group; obtaining controller node information of each IO group; the controller node information is used to indicate disk locations of dual live volumes on the storage device. In order to ensure that the cloud host can realize correct disk scanning even if the volume numbers of the dual-active volumes in different IO groups are inconsistent, the corresponding relation between the controller node information and the volume numbers of the dual-active volumes can be established, so that the cloud host can conveniently realize the call of the dual-active volumes according to the corresponding relation. According to the technical scheme, the dual active volume and the corresponding controller node are bound, so that the cloud host can realize correct disc scanning depending on the volume number of the dual active volume, the virtual machine is supported to mount both the common volume and the dual active volume, and the use scene of a user is expanded.

Description

Calling method, device, equipment and medium for double live volumes
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for calling a dual active volume.
Background
The cloud computing operating system (OpenStack) manages computing, storage, and network resources of one data center. Due to the strong expansibility and usability of OpenStack, more and more enterprises and organizations currently build private clouds by using OpenStack, establish cloud hosts and deploy services of the cloud hosts. As the business scale expands, the enterprise needs to store a large amount of data, so the enterprise purchases business storage and accesses the storage to the OpenStack cloud platform, creates a data volume in the storage through the OpenStack, and mounts the data volume to the cloud host for use. Meanwhile, for data security, more and more enterprises use stored dual live volumes to store data. The dual-active volume must be provided by dual-active storage, which means that two storage devices form a dual-active relationship, and once one storage device is down, the other storage device automatically takes over, so that the service of the virtual machine in the cloud platform is not affected.
To meet different usage scenarios, volumes mounted to cloud hosts may include multiple types, such as dual live volumes, normal volumes, thin volumes, and so on. To distinguish between different volumes, the storage controller may assign a volume number (scsi_id) to each volume. The scsi_ids corresponding to different types of volumes in the same IO group are set in an incremental manner. A dual live volume occupies two IO groups, which can cause the scsi_id of the dual live volume in different IO groups to be inconsistent when multiple types of volumes exist. When the Cinder driver acquires the sci_id, only one sci_id is acquired, and meanwhile, the cloud platform os-brick module only uses one sci_id to discover devices when performing a disk scanning operation, so that a disk scanning error can occur when the cloud platform uses the sci_id to scan a disk, and the wrong path device is used, and further, the wrong volume in the storage device is used.
It can be seen that how to ensure the proper use of dual live rolls when multiple types of rolls are present is a problem that one skilled in the art would need to solve.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a device, and a computer readable storage medium for calling a dual live volume, which can ensure normal use of the dual live volume when multiple types of volumes exist.
In order to solve the above technical problems, an embodiment of the present application provides a method for calling a dual live volume, including:
connecting the dual-active volume storage clusters to obtain the volume numbers of the dual-active volumes corresponding to the IO groups;
obtaining controller node information of each IO group;
and establishing a corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to call the dual-active volume according to the corresponding relation.
Optionally, the connecting the dual active volume storage cluster to obtain the volume number of the dual active volume corresponding to the IO group includes:
acquiring a host name and host identification information of a cloud host where a virtual machine is located;
creating a virtual host resource according to the host name; binding the host identification information with the virtual host resource;
mapping the dual live volume to be mounted to the virtual host resource;
and acquiring a volume number corresponding to the dual-active volume according to the mapping relation between the dual-active volume and the virtual host resource.
Optionally, the obtaining, according to the mapping relationship between the dual-active volume and the virtual host resource, a volume number corresponding to the dual-active volume includes:
and calling a CLI command to acquire the mapping relation between the dual active volume and the virtual host resource, and resolving the volume number corresponding to the dual active volume from the mapping relation.
Optionally, the controller node information includes a node identity and a node port identity; correspondingly, the establishing the corresponding relation between the controller node information and the volume number of the dual-active volume comprises the following steps:
and establishing the corresponding relation between the volume number corresponding to the dual-active volume and the node identity and the node port identity according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
Optionally, the method further comprises:
initiating a login request according to the corresponding relation between the volume number corresponding to the dual-active volume, the node identity and the node port identity; each login request has a corresponding equipment path;
and acquiring the volume id corresponding to each device path, and aggregating the device paths with the same volume id into one multi-path device.
The embodiment of the application also provides a calling device of the double live volumes, which comprises a connecting unit, an obtaining unit and an establishing unit;
the connection unit is used for connecting the dual-active volume storage clusters to acquire the volume numbers of the dual-active volumes corresponding to the IO groups;
the acquisition unit is used for acquiring the controller node information of each IO group;
the establishing unit is used for establishing the corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to call the dual-active volume according to the corresponding relation.
Optionally, the connection unit includes a first acquisition subunit, a creation subunit, a binding subunit, a mapping subunit, and a second acquisition subunit;
the first obtaining subunit is used for obtaining the host name and the host identification information of the cloud host where the virtual machine is located;
the creation subunit is configured to create a virtual host resource according to the host name;
the binding subunit is configured to bind the host identification information with the virtual host resource;
the mapping subunit is used for mapping the dual-active volume to be mounted to the virtual host resource;
the second obtaining subunit is configured to obtain, according to the mapping relationship between the dual-active volume and the virtual host resource, a volume number corresponding to the dual-active volume.
Optionally, the second obtaining subunit is configured to invoke a CLI command to obtain a mapping relationship between the dual active volume and the virtual host resource, and parse a volume number corresponding to the dual active volume from the mapping relationship.
Optionally, the controller node information includes a node identity and a node port identity; correspondingly, the establishing unit is configured to establish a corresponding relationship between the volume number corresponding to the dual-active volume and the node identity and the node port identity according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
Optionally, the system further comprises an initiating unit and an aggregation unit;
the initiating unit is used for initiating a login request according to the corresponding relation between the volume number corresponding to the dual-active volume, the node identity and the node port identity; each login request has a corresponding equipment path;
the aggregation unit is configured to obtain a volume id corresponding to each device path, and aggregate device paths with the same volume id into a multipath device.
The embodiment of the application also provides calling equipment of the double live volumes, which comprises the following steps:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for invoking a dual live volume as described in any of the above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the calling method of the dual live volume when being executed by a processor.
According to the technical scheme, the dual-active volume storage clusters are connected to obtain the volume numbers of the dual-active volumes corresponding to the IO groups; obtaining controller node information of each IO group; the controller node information is used to indicate disk locations of dual live volumes on the storage device. In order to ensure that the cloud host can realize correct disk scanning even if the volume numbers of the dual-active volumes in different IO groups are inconsistent, the corresponding relation between the controller node information and the volume numbers of the dual-active volumes can be established, so that the cloud host can conveniently realize the call of the dual-active volumes according to the corresponding relation. In the technical scheme, the volume numbers of the dual-active volumes and the controller node information of each IO group can be acquired from the storage end, the cloud host can be ensured to realize correct disk scanning depending on the volume numbers of the dual-active volumes by binding the dual-active volumes with the corresponding controller nodes, the virtual machine is supported to mount both the common volumes and the dual-active volumes, and the use scene of a user is expanded.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for calling a dual live volume according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a calling device for dual live volumes according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a call device for dual live volumes according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The terms "comprising" and "having" and any variations thereof in the description and claims of the present application and in the foregoing drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Next, a method for calling a dual live volume provided in the embodiment of the present application will be described in detail. Fig. 1 is a flowchart of a method for calling a dual active volume according to an embodiment of the present application, where the method includes:
s101: and connecting the dual-active volume storage clusters to obtain the volume numbers of the dual-active volumes corresponding to the IO groups.
The storage end of the cloud computing operating system cannot directly acquire the volume numbers of the dual-active volumes, so that the volume numbers of the dual-active volumes corresponding to the IO group are acquired in a manner of connecting the dual-active volume storage clusters.
In a specific implementation, the storage end may call an initialization_connection function to obtain a host name and host identification information of a cloud host where the virtual machine is located.
In practical applications, iqn (iSCSI qualified name ) information of the host may be used as host identification information, where the host identification information may be used to distinguish different cloud hosts.
In order to realize the mounting of the dual live volumes, virtual host resources are required to be created according to the host names; binding the host identification information with the virtual host resource; thereby mapping the dual live volume to be mounted to the virtual host resource.
In a specific implementation, a Command Line Interface (CLI) Command may be invoked to bind host identification information with a virtual host resource, and the CLI Command may be invoked to map a dual live volume to be mounted to the virtual host resource.
After mapping the dual-active volume to the virtual host resource, the system automatically allocates the volume number for the dual-active volume, but the storage end cannot directly obtain the volume number of the dual-active volume, so that the storage end needs to obtain the volume number corresponding to the dual-active volume according to the mapping relationship between the dual-active volume and the virtual host resource.
In a specific implementation, the storage end may call the CLI command to obtain a mapping relationship between the dual active volume and the virtual host resource, and parse a volume number (scsi_id) corresponding to the dual active volume from the mapping relationship. The number of scsi_ids of the obtained dual live volumes is plural. The sci_ids corresponding to different IO groups (IO_grp) are not consistent, so that the corresponding relation between the IO_grp and the sci_id needs to be obtained and stored in the map for subsequent use.
S102: and obtaining the controller node information of each IO group.
In the embodiment of the application, in order to facilitate the cloud host to clearly acquire the corresponding relation between the IO group and the dual active volume number, the controller node information may be used to represent different IO groups.
One dual live volume corresponds to two controller nodes, each of which can be considered an IO group. In practical application, the node identity (target_ iqn) and the node port identity (target_portal) of the controller node can be used as the controller node information, and the combination mode of the node identity and the node port identity can be used for distinguishing different controller nodes.
S103: and establishing a corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to call the dual-active volume according to the corresponding relation.
When the corresponding relation between the controller node information and the volume number of the dual-active volume is established, the corresponding relation between the volume number corresponding to the dual-active volume and the node identity and the node port identity can be established according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
By feeding back the corresponding relation between the controller node information and the volume numbers of the dual active volumes to the cloud host, the cloud host logs in each link through ischiadm in sequence and scans the disk according to the corresponding relation, and even if the scsid of the storage end volume is multiple, the cloud host can ensure that the host side scans correct equipment information.
In the embodiment of the application, openStack includes two parts, which are respectively components Cinder for managing the block storage device; the component Os-bridge used to discover storage devices at the cloud host.
In practical application, to ensure that the cloud host can realize correct disk scanning, the Cinder driver and the os-bridge module are optimized.
Optimization for the Cinder driver includes modifying the initialization_connection function so that dual active storage clusters can be connected through SSH to obtain the corresponding scsi_id of dual active volumes in all IO groups. And binding the target_ iqn, target_portal and scsi_id, and returning the bound result to the cloud host of the OpenStack.
The optimization for the os-bridge module comprises obtaining the information returned by the Cinder driver to obtain the corresponding relationship of target_ iqn, target_portal and scsi_id. And logging in each link through ischiadm in turn according to the corresponding relation and sweeping the disc. Even if there are multiple scsi_ids of the storage volume, the host side can be guaranteed to scan out the correct device information.
In the embodiment of the application, through optimizing the function of the Cinder drive and the os-bridge module in the OpenStack, when the OpenStack mounts the volume, the OpenStack can mount both the dual live volume and the common volume, and the use scene of a user is expanded. For uncore data, the common volume is mounted for storage, so that the utilization rate of storage resources is improved.
According to the technical scheme, the dual-active volume storage clusters are connected to obtain the volume numbers of the dual-active volumes corresponding to the IO groups; obtaining controller node information of each IO group; the controller node information is used to indicate disk locations of dual live volumes on the storage device. In order to ensure that the cloud host can realize correct disk scanning even if the volume numbers of the dual-active volumes in different IO groups are inconsistent, the corresponding relation between the controller node information and the volume numbers of the dual-active volumes can be established, so that the cloud host can conveniently realize the call of the dual-active volumes according to the corresponding relation. In the technical scheme, the volume numbers of the dual-active volumes and the controller node information of each IO group can be acquired from the storage end, the cloud host can be ensured to realize correct disk scanning depending on the volume numbers of the dual-active volumes by binding the dual-active volumes with the corresponding controller nodes, the virtual machine is supported to mount both the common volumes and the dual-active volumes, and the use scene of a user is expanded.
In the embodiment of the application, the volume number, the node identity and the node port identity of the dual-active volume with the corresponding relation can be called as triple information.
When the cloud platform uses multiple paths, the corresponding relation fed back by the storage end to the cloud host contains multiple triple information, and each path has corresponding triple information.
In a specific implementation, the cloud host can initiate a login request according to the corresponding relation between the volume number corresponding to the dual-active volume, the node identity and the node port identity; each login request has a corresponding equipment path; until all links are logged in, multiple device paths, such as/dev/sdb,/dev/sdc, etc., may appear in the cloud computing operating system. The cloud host may acquire a volume id corresponding to each device path, and aggregate device paths with the same volume id into one multipath device.
In the embodiment of the application, the cloud host aggregates a plurality of device paths corresponding to the same volume into one multi-path device, so that other devices such as a virtual machine can conveniently access the multi-path device.
Fig. 2 is a schematic structural diagram of a call device for dual live volumes according to an embodiment of the present application, including a connection unit 21, an obtaining unit 22, and an establishing unit 23;
a connection unit 21, configured to connect the dual active volume storage clusters to obtain volume numbers of dual active volumes corresponding to the IO groups;
the connection unit 21 of the cloud computing operating system cannot directly obtain the volume numbers of each dual-active volume, so that the volume numbers of dual-active volumes corresponding to the IO group need to be obtained by connecting dual-active volume storage clusters.
In a specific implementation, the connection unit 21 may call an initialization_connection function to obtain a host name and host identification information of a cloud host where the virtual machine is located.
In practical applications, iqn (iSCSI qualified name ) information of the host may be used as host identification information, where the host identification information may be used to distinguish different cloud hosts.
An obtaining unit 22, configured to obtain controller node information of each IO group;
in the embodiment of the application, in order to facilitate the cloud host to clearly acquire the corresponding relation between the IO group and the dual active volume number, the controller node information may be used to represent different IO groups.
One dual live volume corresponds to two controller nodes, each of which can be considered an IO group. In practical application, the node identity (target_ iqn) and the node port identity (target_portal) of the controller node can be used as the controller node information, and the combination mode of the node identity and the node port identity can be used for distinguishing different controller nodes.
The establishing unit 23 is configured to establish a correspondence between the controller node information and a volume number of the dual active volume, so that the cloud host can conveniently implement call to the dual active volume according to the correspondence.
When the establishing unit 23 establishes the correspondence between the controller node information and the volume number of the dual-active volume, the corresponding relationship between the volume number corresponding to the dual-active volume and the node identity and the node port identity may be established according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
By feeding back the corresponding relation between the controller node information and the volume numbers of the dual active volumes to the cloud host, the cloud host logs in each link through ischiadm in sequence and scans the disk according to the corresponding relation, and even if the scsid of the storage end volume is multiple, the cloud host can ensure that the host side scans correct equipment information.
Optionally, the connection unit includes a first acquisition subunit, a creation subunit, a binding subunit, a mapping subunit, and a second acquisition subunit;
the first acquisition subunit is used for acquiring the host name and the host identification information of the cloud host where the virtual machine is located;
a creation subunit, configured to create a virtual host resource according to a host name;
the binding subunit is used for binding the host identification information with the virtual host resource;
the mapping subunit is used for mapping the dual-active volume to be mounted to the virtual host resource;
the second obtaining subunit is configured to obtain a volume number corresponding to the dual active volume according to a mapping relationship between the dual active volume and the virtual host resource.
Optionally, the second obtaining subunit is configured to invoke the CLI command to obtain a mapping relationship between the dual active volume and the virtual host resource, and parse a volume number corresponding to the dual active volume from the mapping relationship.
Optionally, the controller node information includes a node identity and a node port identity; correspondingly, the establishing unit is used for establishing the corresponding relation between the volume number corresponding to the dual-active volume and the node identity and the node port identity according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
Optionally, the system further comprises an initiating unit and an aggregation unit;
the initiating unit is used for initiating a login request according to the corresponding relation between the volume number corresponding to the dual-active volume, the node identity and the node port identity; each login request has a corresponding equipment path;
and the aggregation unit is used for acquiring the volume id corresponding to each device path and aggregating the device paths with the same volume id into one multipath device.
The description of the features in the embodiment corresponding to fig. 2 may be referred to the related description of the embodiment corresponding to fig. 1, and will not be repeated here.
According to the technical scheme, the dual-active volume storage clusters are connected to obtain the volume numbers of the dual-active volumes corresponding to the IO groups; obtaining controller node information of each IO group; the controller node information is used to indicate disk locations of dual live volumes on the storage device. In order to ensure that the cloud host can realize correct disk scanning even if the volume numbers of the dual-active volumes in different IO groups are inconsistent, the corresponding relation between the controller node information and the volume numbers of the dual-active volumes can be established, so that the cloud host can conveniently realize the call of the dual-active volumes according to the corresponding relation. In the technical scheme, the volume numbers of the dual-active volumes and the controller node information of each IO group can be acquired from the storage end, the cloud host can be ensured to realize correct disk scanning depending on the volume numbers of the dual-active volumes by binding the dual-active volumes with the corresponding controller nodes, the virtual machine is supported to mount both the common volumes and the dual-active volumes, and the use scene of a user is expanded.
Fig. 3 is a structural diagram of a dual active volume call device according to another embodiment of the present application, where, as shown in fig. 3, the dual active volume call device includes: a memory 30 for storing a computer program;
the processor 31 is configured to implement connection of the dual-live-volume storage cluster according to the above embodiment when executing the computer program, so as to obtain a volume number of the dual-live volume corresponding to the IO group; obtaining controller node information of each IO group; establishing a corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to realize the method for calling the dual-active volume according to the corresponding relation.
The calling device of the dual live volume provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 31 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 31 may also comprise a main processor, which is a processor for processing data in an awake state, also called CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 31 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 31 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing a computer program 301, where the computer program, when loaded and executed by the processor 31, is capable of implementing the relevant steps of the method for calling a dual live volume disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may further include an operating system 302, data 303, and the like, where the storage manner may be transient storage or permanent storage. The operating system 302 may include Windows, unix, linux, among other things. The data 303 may include, but is not limited to, a volume number of the dual active volume, controller node information, a correspondence of the controller node information to the volume number of the dual active volume, and the like.
In some embodiments, the call device of the dual active volume may further include a display screen 32, an input/output interface 33, a communication interface 34, a power supply 35, and a communication bus 36.
Those skilled in the art will appreciate that the structure shown in FIG. 3 does not constitute a limitation of the calling device of a dual live volume and may include more or fewer components than illustrated.
According to the technical scheme, the dual-active volume storage clusters are connected to obtain the volume numbers of the dual-active volumes corresponding to the IO groups; obtaining controller node information of each IO group; the controller node information is used to indicate disk locations of dual live volumes on the storage device. In order to ensure that the cloud host can realize correct disk scanning even if the volume numbers of the dual-active volumes in different IO groups are inconsistent, the corresponding relation between the controller node information and the volume numbers of the dual-active volumes can be established, so that the cloud host can conveniently realize the call of the dual-active volumes according to the corresponding relation. In the technical scheme, the volume numbers of the dual-active volumes and the controller node information of each IO group can be acquired from the storage end, the cloud host can be ensured to realize correct disk scanning depending on the volume numbers of the dual-active volumes by binding the dual-active volumes with the corresponding controller nodes, the virtual machine is supported to mount both the common volumes and the dual-active volumes, and the use scene of a user is expanded.
It will be appreciated that if a dual live volume calling method in the above embodiments is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or in a software product stored in a storage medium, performing all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), an electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, a magnetic disk, or an optical disk, etc. various media capable of storing program codes.
Based on this, the embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the calling method of any one of the above-mentioned dual live volumes.
The functions of each functional module of the computer readable storage medium according to the embodiments of the present invention may be specifically implemented according to the method in the embodiments of the method, and the specific implementation process may refer to the relevant description of the embodiments of the method, which is not repeated herein.
The foregoing describes in detail a method, an apparatus, a device, and a computer readable storage medium for calling a dual live volume according to an embodiment of the present application. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The foregoing describes in detail a method, apparatus, device and computer readable storage medium for invoking a dual live volume provided in the present application. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present invention, and such improvements and modifications fall within the scope of the claims of the present application.

Claims (6)

1. A method for calling a dual live volume, comprising:
connecting the dual-active volume storage clusters to obtain the volume numbers of the dual-active volumes corresponding to the IO groups;
obtaining controller node information of each IO group;
establishing a corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to call the dual-active volume according to the corresponding relation;
the connecting the dual active volume storage clusters to obtain the volume numbers of the dual active volumes corresponding to the IO groups includes:
acquiring a host name and host identification information of a cloud host where a virtual machine is located;
creating a virtual host resource according to the host name; binding the host identification information with the virtual host resource;
mapping the dual-active volume to be mounted to the virtual host resource;
acquiring a volume number corresponding to the dual-active volume according to the mapping relation between the dual-active volume and the virtual host resource;
wherein, according to the mapping relationship between the dual active volume and the virtual host resource, obtaining the volume number corresponding to the dual active volume includes:
and calling a CLI command to acquire the mapping relation between the dual active volume and the virtual host resource, and resolving the volume number corresponding to the dual active volume from the mapping relation.
2. The method of claim 1, wherein the controller node information includes a node identity and a node port identity; correspondingly, the establishing the corresponding relation between the controller node information and the volume number of the dual-active volume comprises the following steps:
and establishing the corresponding relation between the volume number corresponding to the dual-active volume and the node identity and the node port identity according to the IO group to which the controller node belongs and the IO group to which the dual-active volume belongs.
3. The method of claim 2, further comprising:
initiating a login request according to the corresponding relation between the volume number corresponding to the dual-active volume, the node identity and the node port identity; each login request has a corresponding equipment path;
and acquiring the volume id corresponding to each device path, and aggregating the device paths with the same volume id into one multi-path device.
4. The calling device of the double live rolls is characterized by comprising a connecting unit, an obtaining unit and an establishing unit;
the connection unit is used for connecting the dual-active volume storage clusters to acquire the volume numbers of the dual-active volumes corresponding to the IO groups;
the acquisition unit is used for acquiring the controller node information of each IO group;
the establishing unit is used for establishing a corresponding relation between the controller node information and the volume number of the dual-active volume so as to facilitate the cloud host to call the dual-active volume according to the corresponding relation;
the connection unit comprises a first acquisition subunit, a creation subunit, a binding subunit, a mapping subunit and a second acquisition subunit;
the first obtaining subunit is used for obtaining the host name and the host identification information of the cloud host where the virtual machine is located;
the creation subunit is configured to create a virtual host resource according to the host name;
the binding subunit is configured to bind the host identification information with the virtual host resource;
the mapping subunit is used for mapping the dual-active volume to be mounted to the virtual host resource;
the second obtaining subunit is configured to obtain a volume number corresponding to the dual-active volume according to a mapping relationship between the dual-active volume and the virtual host resource;
the second obtaining subunit is configured to invoke a CLI command to obtain a mapping relationship between the dual-active volume and the virtual host resource, and parse a volume number corresponding to the dual-active volume from the mapping relationship.
5. A dual live-volume recall device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the method for invoking a dual live volume as claimed in any one of claims 1 to 3.
6. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for invoking a dual live volume according to any of claims 1 to 3.
CN202110875879.4A 2021-07-30 2021-07-30 Calling method, device, equipment and medium for double live volumes Active CN113703676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110875879.4A CN113703676B (en) 2021-07-30 2021-07-30 Calling method, device, equipment and medium for double live volumes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110875879.4A CN113703676B (en) 2021-07-30 2021-07-30 Calling method, device, equipment and medium for double live volumes

Publications (2)

Publication Number Publication Date
CN113703676A CN113703676A (en) 2021-11-26
CN113703676B true CN113703676B (en) 2023-08-04

Family

ID=78651078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110875879.4A Active CN113703676B (en) 2021-07-30 2021-07-30 Calling method, device, equipment and medium for double live volumes

Country Status (1)

Country Link
CN (1) CN113703676B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635310A (en) * 2016-01-20 2016-06-01 杭州宏杉科技有限公司 Access method and device for storage resource
CN109947601A (en) * 2018-11-21 2019-06-28 北京中科同向信息技术有限公司 A kind of dual-active storage system
CN109964208A (en) * 2017-10-25 2019-07-02 华为技术有限公司 A kind of dual-active storage system and address distribution method
CN111858191A (en) * 2020-06-29 2020-10-30 广东浪潮大数据研究有限公司 Double-active storage control method, device, equipment and storage medium
CN111868676A (en) * 2018-03-15 2020-10-30 净睿存储股份有限公司 Servicing I/O operations in a cloud-based storage system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635310A (en) * 2016-01-20 2016-06-01 杭州宏杉科技有限公司 Access method and device for storage resource
CN109964208A (en) * 2017-10-25 2019-07-02 华为技术有限公司 A kind of dual-active storage system and address distribution method
CN111868676A (en) * 2018-03-15 2020-10-30 净睿存储股份有限公司 Servicing I/O operations in a cloud-based storage system
CN109947601A (en) * 2018-11-21 2019-06-28 北京中科同向信息技术有限公司 A kind of dual-active storage system
CN111858191A (en) * 2020-06-29 2020-10-30 广东浪潮大数据研究有限公司 Double-active storage control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113703676A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US10812284B2 (en) IoT provisioning service
US9667750B2 (en) Client-initiated leader election in distributed client-server systems
US20180285053A1 (en) Screenshot method and apparatus
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
US9813423B2 (en) Trust-based computing resource authorization in a networked computing environment
CN102316043B (en) Port virtualization method, switch and communication system
US20170171301A1 (en) Method, device and system for load balancing configuration
CN107666493B (en) Database configuration method and equipment thereof
CN107707622A (en) A kind of method, apparatus and desktop cloud controller for accessing desktop cloud virtual machine
CN105095023A (en) Cloud host establishing device and method and calculating equipment
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
WO2023193687A1 (en) Shared memory access method and apparatus, device, and storage medium
CN113051102B (en) File backup method, device, system, storage medium and computer equipment
CN114826749A (en) Interface access control method, device and medium
CN111078353A (en) Operation method of storage equipment and physical server
CN115913937A (en) Container multi-network-card network configuration method, device, equipment and storage medium
CN109361693B (en) Virtual device communication method and device
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN112433812A (en) Method, system, equipment and computer medium for virtual machine cross-cluster migration
US10826724B2 (en) Flexible unnumbered destination tunnels for virtual networks
CN113703676B (en) Calling method, device, equipment and medium for double live volumes
WO2020119608A1 (en) Spark shuffle-based remote direct memory access system and method
US10880360B2 (en) File transmission in a cluster
CN113886153B (en) Network card pressure testing method and device based on container

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