CN111352899B - Path aggregation method, access method, communication device, and storage medium - Google Patents

Path aggregation method, access method, communication device, and storage medium Download PDF

Info

Publication number
CN111352899B
CN111352899B CN201811585036.5A CN201811585036A CN111352899B CN 111352899 B CN111352899 B CN 111352899B CN 201811585036 A CN201811585036 A CN 201811585036A CN 111352899 B CN111352899 B CN 111352899B
Authority
CN
China
Prior art keywords
path
unified
volume
file
access
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
CN201811585036.5A
Other languages
Chinese (zh)
Other versions
CN111352899A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201811585036.5A priority Critical patent/CN111352899B/en
Priority to PCT/CN2019/114423 priority patent/WO2020134530A1/en
Publication of CN111352899A publication Critical patent/CN111352899A/en
Application granted granted Critical
Publication of CN111352899B publication Critical patent/CN111352899B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a path aggregation method, an access method, communication equipment and a computer readable storage medium, wherein after equipment files generated by each access link are aggregated by multipath software to generate block equipment files, the block equipment files are converted into unified equipment files, and when the access is performed, storage volume equipment is accessed according to the unified equipment files, namely, the unified equipment files are converted according to aggregation equipment generated by various multipath software, the access paths of the storage volume equipment are uniformly managed according to new equipment files, the unified equipment files are provided for upper-layer application, so that the transparency treatment of the multipath equipment is realized when the upper-layer application is used, the access compatibility of the access equipment to different storage volume equipment is improved, and the problem that the equipment files generated by different multipath software can only be used after the adaptation parameters are required to be modified in advance is solved.

Description

Path aggregation method, access method, communication device, and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a path aggregation method, an access method, communication equipment and a storage medium.
Background
In a virtualization scene, the storage requirement on a virtual machine disk is high, and high-capacity high-concurrency IO is required. In general, a mode of externally connecting a storage disk array is used to map volumes (i.e. block devices) on the magnetic array to computing nodes where virtual machines are located, so that after computing, storage and separation, management can be effectively distinguished and managed. The magnetic array volume meets the requirement of large capacity after being mapped on a host, but high concurrency IO and high reliability are also needed, and once a network path between linked devices is disconnected, the network path can be quickly switched to other paths. Thus there are typically N physical network links between the array and the host. At this time, each path will generate a block device file on the host, and N block device files point to the same volume on the magnetic array, so that aggregation management needs to be performed on the N block devices, so as to implement functions of path selection, failover, IO load balancing, and the like, where the software for aggregation management is called multipath software.
Different vendors may use different multipath software in order to make specific optimizations for their own magnetic arrays. Such as the most common multipath (multipath software), ZTE's superpath (multipath software), hua's UltraPath (multipath software), hitachi's HDLM (Hitachi Dynamic Link Manager, dynamic link manager), EMC's PowerPath (multipath software), etc. So many multipath software, each with different aggregate path device names generated on the operating system, the upper layer application needs to adapt to various device names when in use, such as access/dev/sm-X path on ZTE storage device and access/dev/dm-X path on sequoyis magnetic array, which is very inconvenient.
Disclosure of Invention
The embodiment of the invention provides a path aggregation method, an access method, communication equipment and a storage medium, which mainly solve the technical problems that: under different storage environments, the technical problem that the application can be used only by modifying the adaptation parameters in advance due to different equipment files generated by different multipath software.
In order to solve the above technical problems, an embodiment of the present invention provides a path aggregation method, where the method includes:
acquiring block equipment files generated by each multi-path software, wherein the block equipment files are generated by the multi-path software based on equipment files generated by each access path in an aggregation way;
and generating a unified equipment file according to the block equipment file, wherein the unified equipment file is used for providing path information in a unified format for the access equipment to carry out access management on different storage volume equipment.
In order to solve the technical problem, the embodiment of the invention also provides an access method, which comprises the following steps:
reading a unified device file, wherein the unified device file is generated by the multi-path software based on block device files generated by aggregation of device files generated by each access path;
and carrying out access management on different storage volume devices according to the unified device file.
In order to solve the above technical problem, an embodiment of the present invention further provides a communication device, including: a path aggregation apparatus, the path aggregation apparatus comprising: the system comprises a detection module and a unified management module;
the detection module is used for acquiring block equipment files generated by each multi-path software, wherein the block equipment files are generated by the multi-path software based on equipment files generated by each access link in an aggregation way;
the unified management module is used for generating a unified device file according to the block device file, and the unified device file is used for providing a unified path for the access device to access and manage different storage volume devices.
In order to solve the technical problem, the embodiment of the invention also provides communication equipment, which comprises a processor, a memory, a communication unit and a communication bus;
the communication bus is used for realizing communication connection among the processor, the communication unit and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the path aggregation method as described above, or to implement the steps of the access method as described above.
To solve the above technical problem, embodiments of the present invention further provide a computer-readable storage medium storing one or more computer programs executable by one or more processors to implement steps of the path aggregation method as described above or to implement steps of the access method as described above.
The beneficial effects of the invention are as follows:
according to the path aggregation method, the access method, the communication device and the computer readable storage medium, after the device files generated by each access path are aggregated through the multipath software to generate the block device files, the block device files are converted into unified device files, and when the access is performed, the storage volume devices are accessed according to the unified device files, namely, the unified device files are converted according to aggregation devices generated by various multipath software, the access paths and the magnetic arrays of the storage volume devices are managed according to new device files, the unified device files are provided for upper-layer applications, the phenomenon that different adaptation needs to be performed when the multipath block devices are used by the upper-layer applications is avoided, and the transparency processing of the multipath devices is achieved when the upper-layer applications are used, so that the access compatibility of the access devices to the storage volume devices of different brands is improved, the problem that the device files generated by different multipath software can only be used after the adaptation parameters are modified in advance is solved, and the performance of the devices is greatly improved.
Additional features and corresponding advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention.
Drawings
FIG. 1 is a block diagram illustrating an access flow between a disk array and a host in the prior art;
FIG. 2 is a block diagram illustrating an access flow between a disk array and a host according to an embodiment of the present invention;
FIG. 3 is a flowchart of a path aggregation method according to an embodiment of the present invention;
FIG. 4 is a flow chart of an access method according to an embodiment of the present invention
Fig. 5 is a schematic structural diagram of a path aggregation device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an access device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of linking a disk array and a host according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of the management layer structure on host in FIG. 7;
FIG. 9 is a schematic diagram of a relationship between device management layers on a host according to the present embodiment;
FIG. 10 is a flowchart of a device management method for adding volumes according to an embodiment of the present invention;
FIG. 11 is a flow chart of device management after modification of a volume path provided by an embodiment of the present invention;
FIG. 12 is a flowchart of a device management for deleting volumes according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
fig. 14 is a schematic diagram of another configuration of a communication device according to an 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 detailed description of the embodiments of the present invention is given with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Embodiment one:
the generation of aggregate device files using different multi-path software based on the prior art requires adapting different parameters, which results in that the upper device cannot well communicate with each other when using multi-path block devices, as shown in fig. 1, which is an access flow block diagram between different disk arrays with unified management and hosts in the prior art, and under the condition that there is no intermediate unified device layer, an application program needs to access corresponding device paths according to different multi-path software. Such as/dev/dm-1 or/dev/sm-1, etc. Based on the above, the embodiment of the invention provides the unified device file for the upper layer application by adopting the unified management of the aggregation devices generated by various multi-path software, thereby avoiding the need of different adaptations of the upper layer when using multi-path block devices. The method also provides basic information of the magnetic array and the volume through processing the unified equipment, and comprises the following steps: the linking mode of the host and the magnetic needle, the magnetic array manufacturer, the linking ip address (if the iSCSI mode), the wwid of lun, etc.
Referring to fig. 3, the implementation steps of the path aggregation method are as follows:
s301, acquiring a block device file generated by each multi-path software.
In this step, the block device file is generated for the multi-path software based on the device file aggregate generated for each access path. A specific implementation may be that when the host connects to the disk array and can access the volume devices on the disk array, the operating system generates a device file according to each path, and then the multipath software generates an aggregate block device file according to the path information.
S302, generating a unified device file according to the block device file.
In this embodiment, the unified device file refers to a device file with a unified access path format, and even may be path information with the same name format, where the unified device file is mainly used to provide a unified path for an access device to perform access management on different storage volume devices.
In practical application, the specific implementation process of the step is to generate a unified device file path according to the volume information in the storage volume device, wherein the unified device file at least contains the identifier wwid information of the volume, so that the upper layer can find the corresponding device file conveniently.
In this embodiment, the access management specifically includes direct access and indirect access, but the access device is directly implemented through a unified device file in a unified format, which is not the adaptation of the access device corresponding to the model or manufacturer of the storage volume device in the prior art.
In practical application, the unified device file at least includes one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and volume size. That is, in the process of generating the unified device file, in addition to the same access format, specific access data, such as information of access path information, device manufacturer information, and the like, is extracted from the block device file generated by the various multi-path software, and is aggregated in the same device file in the newly generated same format.
Further, if the unified device file includes an identifier WWID of a volume in the storage volume device, the access management for different storage volume devices according to the unified device file includes:
directly accessing a volume corresponding to the WWID in the storage volume equipment through an IO interface according to the WWID, and performing read-write operation;
or determining the corresponding block equipment file according to the WWID, accessing the volume in the storage volume equipment according to the block equipment file, and performing read-write operation.
Because the new device file with the unified format is additionally generated on the basis of the existing block device file, the access device is realized through the device file with the unified format no matter what the storage device of the access device brand is, and no additional adaptation is needed, so that the compatibility and the use of the device are improved.
In practical application, besides generating a unified device file in a unified format, there may be processing such as modification, addition, deletion, etc. of a volume array performed on a storage device by a developer or a user, and for this case, in the method provided by the embodiment of the present invention, generation notification information of the unified device file is further included, that is, notification information of a block device file generated by the multipath software is obtained, where the notification information refers to one of addition, modification, and deletion notification of the access path.
In this embodiment, if the obtained notification information is an addition notification to the access path, the management method further includes:
acquiring a block device file subjected to the addition processing according to the addition notification;
and adding the corresponding volume and path information in the block equipment file subjected to the addition processing into the unified equipment file.
If the notification information is a modification notification of the access path, after the unified device file is generated according to the block device file, the method further includes:
acquiring a block device file subjected to modification processing according to the modification notification;
and modifying the corresponding volume and path information in the block equipment file after modification.
If the notification information is a deletion notification of the access path, after the unified device file is generated according to the block device file, the method further includes:
acquiring a block device file subjected to deletion processing according to the deletion notification;
and deleting the corresponding volume and path information in the unified equipment file from the block equipment file after the deletion processing.
Furthermore, besides modifying the original generated unified device file according to the above manner, the complete block device file can be obtained according to the notification information, then a new unified device file is generated according to the block device file, and finally the original unified device file is replaced by the newly generated unified device file, so that confusion in modifying data can be effectively reduced.
In this embodiment, the method further provides a query function, where the query function is convenient for a user to know parameters of storage volume devices or access parameters in advance, and specifically, after the unified device file is generated according to the block device file, the method further includes:
receiving a query request of storage volume equipment related information;
inquiring the storage volume equipment related information from the unified equipment information according to the inquiry request, wherein the related information comprises at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and volume size.
According to the path aggregation method provided by the embodiment, after the device files generated by each access path are aggregated through the multipath software to generate the block device files, the block device files are converted into the unified device files, and the storage volume devices are accessed according to the unified device files in an unified manner during access, so that the problem that the upper layer application needs to modify and adapt in advance to use the storage volume devices due to the fact that the device files generated by different multipath software are different in different storage environments is avoided, and the access efficiency and performance of the devices are greatly improved.
Embodiment two:
referring to fig. 4, an access method provided in this embodiment is an access method implemented based on the path aggregation method provided in the first embodiment, and the implementation steps of the access method are specifically as follows:
s401, reading a unified device file.
In this step, the unified device file is generated by the multi-path software based on the block device files generated by the device file aggregation generated by each access path.
S402, carrying out access management on different storage volume devices according to the unified device file.
In this embodiment, the access management specifically includes direct access and indirect access, but the access device is directly implemented through a unified device file in a unified format, which is not the adaptation of the access device corresponding to the model or manufacturer of the storage volume device in the prior art.
In practical application, the unified device file at least includes one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and volume size. That is, in the process of generating the unified device file, in addition to the same access format, specific access data, such as information of access path information, device manufacturer information, and the like, is extracted from the block device file generated by the various multi-path software, and is aggregated in the same device file in the newly generated same format.
Further, if the unified device file includes an identifier WWID of a volume in the storage volume device, the access management for different storage volume devices according to the unified device file includes:
directly accessing a volume corresponding to the WWID in the storage volume equipment through an IO interface according to the WWID, and performing read-write operation;
or determining the corresponding block equipment file according to the WWID, accessing the volume in the storage volume equipment according to the block equipment file, and performing read-write operation.
Because the new device file with the unified format is additionally generated on the basis of the existing block device file, the access device is realized through the device file with the unified format no matter what the storage device of the access device brand is, and no additional adaptation is needed, so that the compatibility and the use of the device are improved.
In practical application, besides generating a unified device file in a unified format, there may be processing such as modification, addition, deletion, etc. of a volume array performed on a storage device by a developer or a user, and for this case, in the method provided by the embodiment of the present invention, generation notification information of the unified device file is further included, that is, notification information of a block device file generated by the multipath software is obtained, where the notification information refers to one of addition, modification, and deletion notification of the access path.
In summary, according to the access method provided by the embodiment, the unified device file converted by the block device file is read, and the storage volume device is accessed according to the unified device file in a unified manner during access, so that the problem that the upper layer application needs to modify and adapt in advance to use the storage volume device due to different device files generated by different multi-path software under different storage environments is avoided, and the access efficiency and performance of the device are greatly improved.
Embodiment III:
the present embodiment provides a path aggregation apparatus, which may be applied to various base stations or terminals, as shown in fig. 5, including:
the detection module 41 is configured to obtain a block device file generated by each multi-path software, where the block device file is generated by aggregating device files generated by the multi-path software based on each access path;
and the unified management module 42 is configured to generate a unified device file according to the block device file, where the unified device file is used to provide a unified path for an access device to access and manage different storage volume devices.
In this embodiment, the unified device file includes at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, link information, device name, and volume size.
If the unified device file includes the identifier WWID of the volume in the storage volume device, when access management is performed on different storage volume devices according to the unified device file, the method specifically includes the following two ways:
according to the first mode, the volumes corresponding to the WWIDs in the storage volume equipment are directly accessed through an IO interface according to the WWIDs, and read-write operation is carried out;
and secondly, determining the corresponding block equipment file according to the WWID, accessing the volume in the storage volume equipment according to the block equipment file, and performing read-write operation.
Further, the detection module is further configured to obtain notification information of the block device file generated by the multipath software, where the notification information includes one of an addition, a modification, and a deletion notification of the access path.
When the unified management module 42 performs corresponding adjustment on the unified device file according to the received notification information, for example, when a volume is added to the magnetic array of the storage device to be mapped to the host, access path information of the corresponding volume and related information of the volume need to be added in the unified device file; and similarly, for modification or deletion, the unified device file is correspondingly processed.
In this embodiment, the apparatus further provides a query function, that is, a query request for receiving, by the query module, information related to storage volume devices; inquiring the storage volume equipment related information from the unified equipment information according to the inquiry request, wherein the related information comprises at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, link information, device name, and volume size.
Further, the specific implementation process of the modules is as follows:
multipath aggregation equipment detection module: when a host is connected to the disk array and has access to the volume devices on the disk array, the operating system generates a device file according to each path, and then the multipath software generates an aggregate block device file according to the path information. The detection module of the method captures the generation of the block device file and filters notification events of other devices (e.g., local disk devices, single-path devices). The detection module can capture the addition, modification and deletion of multiple paths and perform corresponding operations on the series of events.
Unified device file generation: and generating a unified equipment file path according to the information of the volume, wherein the file contains wwid information of the volume, so that an upper layer can find a corresponding equipment file conveniently.
And a query module: the application program can inquire some basic information of the volume through the module interface, such as manufacturer of the magnetic array, volume number, volume wwid, information of the controller and the like.
In this embodiment, for the steps and specific processes implemented by each module in the apparatus, reference may be made to the process of the path aggregation method shown in each embodiment of the present invention, which is not described herein again.
In the device provided by the embodiment, after the device files generated by each access path are aggregated by the multipath software to generate the block device files, the block device files are converted into unified device files, and when the unified device files are accessed, the storage volume devices are accessed according to the unified device files, namely, the unified device files are uniformly managed according to the access paths and the magnetic arrays of the storage volume devices generated by various multipath software, the unified device files are provided for the upper layer application, the phenomenon that the upper layer needs to be subjected to different adaptation when the multipath block devices are used is avoided, the transparency processing of the multipath devices is realized when the upper layer application is used, so that the access compatibility of the access devices to the storage volume devices of different brands is improved, the problem that the device files generated by different multipath software can only be used by modifying the adaptation parameters in advance is solved, and the performance of the device is greatly improved.
Embodiment four:
the present embodiment provides an access apparatus applicable to various base stations or terminals, as shown in fig. 6, including:
an obtaining module 61, configured to read a unified device file, where the unified device file is generated by the multi-path software based on a block device file generated by aggregating device files generated by each access path;
and the access management module 62 is used for performing access management on different storage volume devices according to the unified device file.
In this embodiment, the unified device file is generated by the multi-path software based on a block device file generated by aggregating device files generated by each access path.
In this embodiment, the access management module 62 specifically includes direct access and indirect access, but the access device is directly implemented through a unified device file in a unified format, which is not the adaptation of the access device to the model or manufacturer of the storage volume device, which is required in the prior art.
In practical application, the unified device file at least includes one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, WWID of the volume in the storage volume device, information of a controller of the storage volume device, link information, device name, and volume size. That is, in the process of generating the unified device file, in addition to the same access format, specific access data, such as information of access path information, link information, device manufacturer information, and the like, is extracted from the block device file generated by the various multi-path software, and is aggregated in the same device file in the newly generated same format.
Further, if the unified device file includes an identifier WWID of a volume in the storage volume device, the access management for different storage volume devices according to the unified device file includes:
directly accessing a volume corresponding to the WWID in the storage volume equipment through an IO interface according to the WWID, and performing read-write operation;
or determining the corresponding block equipment file according to the WWID, accessing the volume in the storage volume equipment according to the block equipment file, and performing read-write operation.
In summary, according to the access device provided by the embodiment, the unified device file converted from the block device file is read, and the storage volume device is accessed according to the unified device file in a unified manner during access, so that the problem that the upper layer application needs to modify and adapt in advance to use the storage volume device due to different device files generated by different multipath software under different storage environments is avoided, and the access efficiency and performance of the device are greatly improved.
Fifth embodiment:
the path aggregation method provided by the embodiment of the invention is described in detail below in connection with a specific application scenario.
Fig. 2 is a block diagram of an access flow between a disk array and a host after adding a unified device layer in a conventional multipath software management flow, and a specific access process is as follows:
and S01, when the most common multipath (multi-path software), the super path of ZTE (hyper path software), the ultra-path of China (multi-path software) and the PowerPath of EMC (multi-path software) exist at the same time, an application program needs to generate a block device file in a corresponding format according to different multi-path software, namely, needs to generate a device path corresponding to the device parameter and accessing the corresponding device path. Such as/dev/dm-1 or/dev/sm-1, etc.
S02: adding an intermediate unified device layer, and generating a unified device path by the intermediate unified device layer: /dev/vmc/serial-lunwwid. The application program can read and write data directly without concern of the manufacturer of the underlying magnetic array and what multi-path software is used.
Specifically, based on the link relation between the disk array and the host shown in fig. 7-9, the specific implementation method is as follows:
s21: the host and disk array are each linked to the switch by two paths, forming 4 access paths.
S22: the operating system driver layer generates a single path device, such as sda, sdb, sdc, from each access path.
S23: the multi-path software (superpath/multipath/ultrapath, etc.) generates an aggregate path device, such as dm-1, dm-2, or sm-1, sm-2, etc., from the single path device.
S24: the unified management layer system detects aggregation equipment and generates a unified equipment file, wherein the equipment file name path is as follows: v/dev/vmc/serial-lunwwid
S25: and the application program completes the read-write operation on the magnetic array upper coil by accessing the unified path.
Further, in the present embodiment, when the notification event capturing the generation of the block device file is to add a volume, a specific method is as shown in fig. 10:
s81: and adding a volume to the magnetic array to map to a host, and respectively generating single-path equipment and aggregate-path equipment by an operating system driving layer and a multipath software layer.
S82: the middleware unified device layer captures the generation of the multipath device through the kernel udev event.
S83: the unified device layer generates a unified device file/dev/vmc/serial-lunwwid.
S84, the unified device layer provides inquiry functions including link information inquiry, device name inquiry, magnetic array manufacturer information inquiry, volume size inquiry and the like.
When the notification event capturing the generation of the block device file is to delete a volume, a specific method is as shown in fig. 12:
s101: the magnetic array deletes a volume mapped to the host, and the operating system driving layer and the multipath software layer delete the single path device and the aggregate path device respectively.
S102: the middleware unified device layer captures the deletion operation of the multipath device through the kernel udev event.
S103: the unified device layer deletes the unified device file/dev/vmc/serving-lunwwid.
When the notification event capturing the generation of the block device file is to modify the volume path, a specific method is as shown in fig. 11:
s91: the magnetic array is disconnected with the path link on the host, or a new link is added, the operating system driving layer adds and deletes single path equipment according to the path change, and the multipath software layer refreshes the aggregation path equipment.
S92: the middleware unified device layer captures the modification operation of the multipath device through the kernel udev event.
S93: the IO card host caused by inaccessible paths is prevented, and the unified device layer regenerates the unified device file/dev/vmc/serial-lunwwid.
Example six:
the present embodiment provides a communication apparatus, as shown in fig. 13, which includes a path aggregation device 10, and the path aggregation device 10 specifically employs the path aggregation device described in the second embodiment.
Further, the present invention may be realized by improving an existing communication terminal by adding functional units having respective functional modules of the path aggregation device to the existing communication terminal.
In the present embodiment, there is also provided a structure of another communication apparatus, as shown in fig. 14, specifically including a processor 211, a memory 212, a communication unit 213, and a communication bus 214;
the communication bus 214 is used to implement communication connections between the processor 2111, the communication unit 213, and the memory 212;
in an example, the processor 211 is configured to execute one or more programs stored in the memory, so as to implement the steps of the path aggregation method in the foregoing embodiments, and specific implementation procedures of each step of the foregoing embodiment are referred to the description of each embodiment, which is not repeated herein.
The present embodiments also provide a computer-readable storage medium including volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media includes, but is not limited to, RAM (Random Access Memory ), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory, charged erasable programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact Disc Read-Only Memory), digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
In one example, the computer readable storage medium in the present embodiment may be used to store one or more first computer programs that may be executed by one or more processors to implement the steps of the path aggregation method as in the embodiments above.
The present embodiment also provides a computer program (or computer software) which can be distributed on a computer readable medium and executed by a computable device to implement at least one step of the path aggregation method as described in the above embodiments; and in some cases at least one of the steps shown or described may be performed in a different order than that described in the above embodiments.
The present embodiment also provides a computer program product comprising computer readable means having stored thereon a computer program as shown above. The computer readable means in this embodiment may comprise a computer readable storage medium as shown above.
It will be apparent to one skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the apparatus disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing apparatus), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, computer program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and may include any information delivery media. Therefore, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a further detailed description of embodiments of the invention in connection with the specific embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (10)

1. A method of path aggregation, the method comprising:
acquiring block equipment files generated by each multi-path software, wherein the block equipment files are generated by the multi-path software based on equipment files generated by each access path in an aggregation way;
generating a unified device file according to the block device file, wherein the unified device file is used for providing path information in a unified format for an access device to access and manage different storage volume devices, and comprises an identifier WWID of a volume in the storage volume device and at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and volume size.
2. The path aggregation method of claim 1, wherein the access management of the different storage volume devices comprises:
directly accessing a volume corresponding to the WWID in the storage volume equipment through an IO interface according to the WWID, and performing read-write operation;
or determining the corresponding block equipment file according to the WWID, accessing the volume in the storage volume equipment according to the block equipment file, and performing read-write operation.
3. The path aggregation method according to claim 1, further comprising, after the generating a unified device file from the block device file:
receiving a query request of storage volume equipment related information;
inquiring the storage volume equipment related information from the unified equipment information according to the inquiry request, wherein the storage volume equipment related information comprises at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, identifier WWID of the volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and size of the volume.
4. A path aggregation method according to any one of claims 1-3, characterised in that the method further comprises:
and acquiring notification information of the block device file generated by the multipath software, wherein the notification information comprises one of adding, modifying and deleting notification of the access path.
5. The path aggregation method according to claim 4, further comprising, after the generating a unified device file from the block device file:
acquiring a block device file subjected to the addition processing according to the addition notification; adding the corresponding volume and path information in the block equipment file after the addition processing into the unified equipment file; or,
acquiring a block device file subjected to modification processing according to the modification notification; modifying the corresponding volume and path information in the block equipment file after modification; or,
acquiring a block device file subjected to deletion processing according to the deletion notification; and deleting the corresponding volume and path information in the unified equipment file from the deleted block equipment file.
6. An access method, the method comprising:
reading a unified device file, wherein the unified device file is generated by multi-path software based on block device files generated by device file aggregation generated by each access path, the unified device file comprises an identifier WWID of a volume in storage volume devices, and at least one of the following information is included: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and size of the volume;
and carrying out access management on different storage volume devices according to the unified device file.
7. A communication device comprising path aggregation means, the path aggregation means comprising: the system comprises a detection module and a unified management module;
the detection module is used for acquiring block equipment files generated by each multi-path software, wherein the block equipment files are generated by the multi-path software based on equipment files generated by each access link in an aggregation way;
the unified management module is used for generating a unified device file according to the block device file, the unified device file is used for providing a unified path for the access device to access and manage different storage volume devices, the unified device file comprises an identifier WWID of a volume in the storage volume device, and the unified device file further comprises at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and volume size.
8. An access device, comprising:
the system comprises an acquisition module, a storage module and a storage module, wherein the acquisition module is used for reading a unified device file, the unified device file is generated by multi-path software based on a block device file generated by device file aggregation generated by each access path, the unified device file comprises an identifier WWID of a volume in storage volume equipment, and the system further comprises at least one of the following information: vendor information of the storage volume device, logical unit number lun of a volume in the storage volume device, information of a controller of the storage volume device, path information, device name, and size of the volume;
and the access management module is used for carrying out access management on different storage volume devices according to the unified device file.
9. A communication device comprising a processor, a memory, a communication unit, and a communication bus;
the communication bus is used for realizing wireless communication connection among the processor, the communication unit and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the path aggregation method according to any one of claims 1 to 5 or to implement the steps of the access method according to claim 6.
10. A computer readable storage medium storing one or more computer programs executable by one or more processors to implement the steps of the path aggregation method of any one of claims 1 to 5 or to implement the steps of the access method of claim 6.
CN201811585036.5A 2018-12-24 2018-12-24 Path aggregation method, access method, communication device, and storage medium Active CN111352899B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811585036.5A CN111352899B (en) 2018-12-24 2018-12-24 Path aggregation method, access method, communication device, and storage medium
PCT/CN2019/114423 WO2020134530A1 (en) 2018-12-24 2019-10-30 Path aggregation method and access method, communication device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811585036.5A CN111352899B (en) 2018-12-24 2018-12-24 Path aggregation method, access method, communication device, and storage medium

Publications (2)

Publication Number Publication Date
CN111352899A CN111352899A (en) 2020-06-30
CN111352899B true CN111352899B (en) 2024-04-12

Family

ID=71129652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811585036.5A Active CN111352899B (en) 2018-12-24 2018-12-24 Path aggregation method, access method, communication device, and storage medium

Country Status (2)

Country Link
CN (1) CN111352899B (en)
WO (1) WO2020134530A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100008B (en) * 2020-11-09 2021-06-18 杭州沃趣科技股份有限公司 Cross-node multilink redundancy protection method and system
CN113625944B (en) * 2021-06-25 2024-02-02 济南浪潮数据技术有限公司 Disaster recovery method and system based on multipath and remote replication technology
CN113238719B (en) * 2021-07-12 2021-10-15 苏州浪潮智能科技有限公司 Method, device and equipment for cleaning residual path of host end

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387957A (en) * 2008-09-12 2009-03-18 成都市华为赛门铁克科技有限公司 Multi-path software implementing apparatus and method
CN103150127A (en) * 2013-03-21 2013-06-12 浪潮(北京)电子信息产业有限公司 System for accessing storage in multiple paths, configuration of system, and access method
CN103577149A (en) * 2013-11-20 2014-02-12 华为技术有限公司 HBA compatibility processing method, device and system
US8732354B1 (en) * 2005-09-30 2014-05-20 Symantec Operating Corporation Method and apparatus for controlling access to a storage area network
CN105740469A (en) * 2016-03-07 2016-07-06 华为技术有限公司 Storage server and metadata access method
CN106814977A (en) * 2017-01-19 2017-06-09 郑州云海信息技术有限公司 The management method and system of the multi-path software based on many storage manufacturers

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8732354B1 (en) * 2005-09-30 2014-05-20 Symantec Operating Corporation Method and apparatus for controlling access to a storage area network
CN101387957A (en) * 2008-09-12 2009-03-18 成都市华为赛门铁克科技有限公司 Multi-path software implementing apparatus and method
CN103150127A (en) * 2013-03-21 2013-06-12 浪潮(北京)电子信息产业有限公司 System for accessing storage in multiple paths, configuration of system, and access method
CN103577149A (en) * 2013-11-20 2014-02-12 华为技术有限公司 HBA compatibility processing method, device and system
CN105740469A (en) * 2016-03-07 2016-07-06 华为技术有限公司 Storage server and metadata access method
CN106814977A (en) * 2017-01-19 2017-06-09 郑州云海信息技术有限公司 The management method and system of the multi-path software based on many storage manufacturers

Also Published As

Publication number Publication date
WO2020134530A1 (en) 2020-07-02
CN111352899A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US7689803B2 (en) System and method for communication using emulated LUN blocks in storage virtualization environments
US7343465B2 (en) Storage system
CN111352899B (en) Path aggregation method, access method, communication device, and storage medium
US8312231B1 (en) Method and system for mounting logical unit numbers (LUNS) of snapshots
US20100115332A1 (en) Virtual machine-based on-demand parallel disaster recovery system and the method thereof
US11221785B2 (en) Managing replication state for deleted objects
US11675499B2 (en) Synchronous discovery logs in a fabric storage system
US9767119B2 (en) System and method for monitoring hosts and storage devices in a storage system
WO2019231526A1 (en) Persistent version control for data transfer between heterogeneous data stores
US20180364948A1 (en) Data Processing Method, Related Device, and Storage System
CN115344197A (en) Data access method, network card and server
US20220231905A1 (en) Failover port forwarding between peer storage nodes
CN107861691B (en) Load balancing method and device of multi-control storage system
US20120317357A1 (en) System And Method For Identifying Location Of A Disk Drive In A SAS Storage System
CN114968127B (en) Object calculation storage system, data processing method, client and storage medium
CN113946291A (en) Data access method, device, storage node and readable storage medium
US9674312B2 (en) Dynamic protocol selection
CN109144403B (en) Method and equipment for switching cloud disk modes
US8886900B2 (en) Legacy data management
CN111666184B (en) Solid state drive SSD hard disk testing method and device and electronic equipment
CN112988468A (en) Method for virtualizing operating system using Ceph and computer-readable storage medium
CN107391047B (en) Method and device for managing storage system
CN114647549B (en) Heterogeneous acceleration chip management method, heterogeneous acceleration chip management device, heterogeneous acceleration chip management equipment and medium
CN110708375A (en) Data processing method, device and system
CN113849379B (en) Method, device, equipment and readable medium for collecting server asset information

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