A testing method, system, device, and storage medium based on multi-path aliases.

CN115098311BActive Publication Date: 2026-08-14INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

但是,现有测试方法仅对正常映射的设备进行测试,忽略了已删除设备自动分配的别名对还在正常使用设备的别名设置功能的影响

Benefits of technology

[0016]对比现有技术,本发明有益效果在于:本发明提供了一种基于多路径别名的测试方法、系统、装置及存储介质,填补了对已删除设备信息对正常使用映射设备设置别名影响测试的空白。使用本发明的测试方法,能够很好地验证多路径别名功能的稳定性,确保已删除设备的自动分配别名对正常的映射设备使用别名功能无影响,进而提高多路径产品可靠性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098311B_ABST
    Figure CN115098311B_ABST
Patent Text Reader

Abstract

This invention proposes a testing method, system, device, and storage medium based on multi-path aliases. The method includes: storing two mapped devices to a server; recording the initial assigned aliases for the two mapped devices; setting aliases for the two mapped devices and checking if the alias settings are correct; if the alias settings are correct, deleting one of the mapped devices and setting the alias of the other available mapped device as the initial assigned alias of the deleted mapped device; checking if the setting was successful; if successful, remapping the deleted mapped device to the server and ending the test; if it fails, the test fails and a failure message is returned. This invention can effectively verify the stability of the multi-path alias function, ensuring that the automatic assignment of aliases for deleted devices has no impact on the use of alias functions by normally mapped devices, thereby improving the reliability of multi-path products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically to a testing method, system, apparatus, and storage medium based on multi-path aliases. Background Technology

[0002] From the operating system's perspective, each path is perceived as a physical disk, but in reality, they are simply different paths leading to the same physical disk. This can be confusing for users. Multipathing software was developed to address this issue. Multipathing technology allows the use of more than one physical path to access network storage devices. Its main function is to work with storage devices to achieve the following: failover and recovery, I / O load balancing, disk virtualization, and even finer-grained I / O scheduling strategies, providing higher availability and performance advantages for network storage systems. It has been widely adopted in storage network environments.

[0003] When configuring multipathing, block devices are automatically assigned a default name on the host side. Users can also change the alias of the block device using the block device's WWID (each SCSI disk has a unique WWID, similar to a network card's MAC address). To ensure the stability and reliability of automatically assigned aliases and user-defined aliases, many testing methods exist, but none test the difference between automatically assigned aliases for deleted devices and user-defined aliases for normally used devices.

[0004] Existing technologies only provide testing methods for alias setting rules and error mechanisms. For example, storage maps two devices to a server, checks their initial assigned names, and sets the alias of one device as the initial assigned alias of the other device to trigger the abnormal operation mechanism of multipath alias setting. When the alias of a device is set to a name outside the multipath alias setting rules, naming rule issues can be triggered. However, existing testing methods only test normally mapped devices, ignoring the impact of automatically assigned aliases of deleted devices on the alias setting function of devices still in normal use. Summary of the Invention

[0005] To address the above problems, the present invention aims to provide a testing method, system, device, and storage medium based on multi-path aliases.

[0006] To achieve the above objectives, this invention provides the following technical solution: a testing method based on multi-path aliases, comprising: The storage is mapped to the server from two devices; Record the initial aliases assigned to the two mapping devices; Set aliases for the two mapping devices and check if the alias settings are correct; If the alias is set correctly, delete one of the mapped devices and set the alias of the other available mapped device to the initial assigned alias of the deleted mapped device; Check if the settings were successful; If successful, the deleted mapped device will be remapped to the server, and the test will end. If it fails, the test fails and a failure message is returned.

[0007] Furthermore, the storage mapping between the two devices and the server includes: The storage maps two devices to the server, and uses multipath detection to view device information.

[0008] Furthermore, the step of setting aliases for the two mapping devices and checking whether the alias settings are correct also includes: If the alias is not set correctly, the test will fail and return a failure message.

[0009] Furthermore, the step of remapping the deleted mapping device to the server and ending the test includes: Check if there are any issues with the device information. If the device information is normal, remap the deleted device to the server and use multipath detection to check if there are any issues with the information of the two mapped devices. If there are no issues, end the test.

[0010] Accordingly, the present invention also discloses a testing system based on multi-path aliases, comprising: The mapping unit is used to store the mapping between two devices and the server; The recording unit is used to record the initial aliases assigned to the two mapping devices; The configuration unit is used to set aliases for the two mapped devices and check whether the alias settings are correct. The deletion unit deletes one of the mapping devices and sets the alias of the other available mapping device to the initial assigned alias of the deleted mapping device. The judgment unit is used to determine whether the alias setting was successful. The secondary mapping unit is used to remap deleted mapping devices to the server.

[0011] Furthermore, the mapping unit is specifically used for: The storage maps two devices to the server, and uses multipath detection to view device information.

[0012] Furthermore, the setting unit is specifically used for: Set aliases for the two mapped devices and check if the alias settings are correct; if the alias settings are incorrect, the test will fail and a failure message will be returned.

[0013] Furthermore, the secondary mapping unit is specifically used for: Check if there are any issues with the device information. If the device information is normal, remap the deleted device to the server and use multipath detection to check if there are any issues with the information of the two mapped devices. If there are no issues, end the test.

[0014] Accordingly, this invention discloses a testing device based on multi-path aliases, comprising: Memory used to store test programs based on multi-path aliases; A processor, configured to implement the steps of the test method based on multi-path aliases as described above when executing the test program based on multi-path aliases.

[0015] Accordingly, the present invention discloses a readable storage medium storing a test program based on multi-path aliases, wherein when the test program based on multi-path aliases is executed by a processor, it implements the steps of the test method based on multi-path aliases as described in any of the above.

[0016] Compared with existing technologies, the advantages of this invention are as follows: This invention provides a testing method, system, device, and storage medium based on multi-path aliases, filling the gap in testing the impact of deleted device information on the setting of aliases for normally used mapped devices. Using the testing method of this invention, the stability of the multi-path alias function can be effectively verified, ensuring that the automatic allocation of aliases for deleted devices has no impact on the normal use of aliases for mapped devices, thereby improving the reliability of multi-path products.

[0017] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0019] Appendix Figure 1 This is a flowchart illustrating a specific embodiment of the present invention.

[0020] Appendix Figure 2 This is a system structure diagram of a specific embodiment of the present invention. Detailed Implementation

[0021] The core of this invention is to provide a testing method based on multi-path aliases. Existing technologies only provide testing methods for alias setting rules and error mechanisms. For example, storage maps two devices to a server, checks their initial assigned names, and sets the alias of one device as the initial assigned alias of the other device to trigger the abnormal operation mechanism of multi-path alias setting. When the alias of a device is set outside the multi-path alias setting rules, a naming rule problem can be triggered. However, existing testing methods only test normally mapped devices, ignoring the impact of automatically assigned aliases of deleted devices on the alias setting function of devices still in normal use.

[0022] The multi-path alias-based testing method provided by this invention first stores the mappings of two devices to a server and records the initial aliases assigned to the two mapped devices. Then, it sets the aliases for the two mapped devices and checks if the alias settings are correct. If the alias settings are correct, it deletes one of the mapped devices and sets the alias of the other available mapped device to the initial assigned alias of the deleted mapped device. At this point, it checks if the setting was successful. If successful, it remaps the deleted mapped device to the server and ends the test; if it fails, the test fails and a failure message is returned. Therefore, this invention can effectively verify the stability of the multi-path alias function, ensuring that the automatic assignment of aliases to deleted devices does not affect the use of the alias function by normally mapped devices, thereby improving the reliability of multi-path products.

[0023] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] Example 1: like Figure 1 As shown, this embodiment provides a testing method based on multi-path aliases, including the following steps: S1: Store two devices to the server, use multipath detection to view device information.

[0025] S2: Records the initial aliases assigned to the two mapping devices.

[0026] S3: Set aliases for the two mapped devices and view the alias settings.

[0027] S4: Determine if the alias setting is normal; if normal, proceed to the next step; if not normal, the test fails and a failure message is returned.

[0028] S5: Delete one of the mapping devices and set the alias of the other available mapping device to the initial assigned alias of the deleted mapping device.

[0029] S6: Check if the setup was successful; if successful, proceed to the next step; if unsuccessful, the test failed and a failure message is returned.

[0030] S7: Check if there are any problems with the device information; if there are any abnormalities, the test will fail and a failure message will be returned; if there are no abnormalities in the device information, proceed to the next step.

[0031] S8: Remap the deleted mapping device to the server, and use multipath detection to view the information of the two mapping devices; S9: Determine if there is an abnormality in the device; if there is an abnormality, the test fails and a failure message is returned; if there is no abnormality, the test ends.

[0032] This embodiment provides a testing method based on multi-path aliases, filling the gap in testing the impact of deleting device information on setting aliases for normally used mapped devices. Using this testing method, the stability of the multi-path alias function can be effectively verified, ensuring that the automatic assignment of aliases to deleted devices has no impact on the normal use of aliases by mapped devices, thereby improving the reliability of multi-path products.

[0033] Example 2: Based on Example 1, such as Figure 2 As shown, the present invention also discloses a test system based on multi-path aliases, including: a mapping unit, a recording unit, a setting unit, a deletion unit, a judgment unit, and a secondary mapping unit.

[0034] The mapping unit is used to store mappings between two devices and the server. Specifically, the mapping unit is used to: store mappings between two devices and the server, and to detect and view device information using multipathing.

[0035] The recording unit is used to record the initial aliases assigned to the two mapping devices.

[0036] The configuration unit is used to set aliases for the two mapped devices and check if the alias settings are correct. Specifically, the configuration unit is used to: set aliases for the two mapped devices and check if the alias settings are correct; if the alias settings are incorrect, the test fails and a failure message is returned.

[0037] The deletion unit deletes one of the mapping devices and sets the alias of the other available mapping device to the initial assigned alias of the deleted mapping device.

[0038] The judgment unit is used to determine whether the alias setting was successful.

[0039] The secondary mapping unit is used to remap deleted mapping devices to the server. Specifically, the secondary mapping unit checks for issues with device information. If the device information is normal, it remaps the deleted mapping device to the server and uses multipath detection to check for anomalies in the information of both mapping devices. If no anomalies are found, the test ends.

[0040] This embodiment provides a testing system based on multi-path aliases, filling the gap in testing the impact of deleting device information on setting aliases for normally used mapped devices. Using this system, the stability of the multi-path alias function can be effectively verified, ensuring that the automatic assignment of aliases to deleted devices has no impact on the normal use of aliases by mapped devices, thereby improving the reliability of multi-path products.

[0041] Example 3: This embodiment discloses a testing device based on multi-path aliases, including a processor and a memory; wherein, when the processor executes the multi-path alias-based testing program stored in the memory, it performs the following steps: 1. Map the storage between two devices to the server; 2. Record the initial aliases assigned to the two mapping devices; 3. Set aliases for the two mapping devices and check if the alias settings are correct; 4. If the alias is set correctly, delete one of the mapped devices and set the alias of the other available mapped device to the initial assigned alias of the deleted mapped device; 5. Check if the setup was successful. If successful, remap the deleted mapping device to the server and end the test; if it fails, the test fails and a failure message is returned.

[0042] Furthermore, the testing device based on multi-path aliases in this embodiment may also include: The input interface is used to acquire test programs imported from external sources based on multi-path aliases and save the acquired test programs to the memory. It can also be used to acquire various instructions and parameters transmitted from external terminal devices and transmit them to the processor, so that the processor can perform corresponding processing using these instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, and a hard disk read interface.

[0043] An output interface is used to output various data generated by the processor to connected terminal devices, so that other terminal devices connected to the output interface can obtain the various data generated by the processor. In this embodiment, the output interface may include, but is not limited to, a USB interface, a serial interface, etc.

[0044] A communication unit is used to establish a remote communication connection between the test device based on multi-path aliases and an external server, so that the test device based on multi-path aliases can mount image files to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.

[0045] The keyboard is used to acquire various parameter data or commands input by the user through real-time keystrokes.

[0046] A monitor used for real-time display.

[0047] A mouse can be used to assist users in inputting data and simplifying user operations.

[0048] Example 4: This embodiment also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores a test program based on multi-path aliases, which, when executed by a processor, performs the following steps: 1. Map the storage between two devices to the server; 2. Record the initial aliases assigned to the two mapping devices; 3. Set aliases for the two mapping devices and check if the alias settings are correct; 4. If the alias is set correctly, delete one of the mapped devices and set the alias of the other available mapped device to the initial assigned alias of the deleted mapped device; 5. Check if the setup was successful. If successful, remap the deleted mapping device to the server and end the test; if it fails, the test fails and a failure message is returned.

[0049] In summary, this invention fills the gap in testing the impact of deleting device information on the normal use of mapped devices by setting aliases. Using the testing method of this invention, the stability of the multi-path alias function can be effectively verified, ensuring that the automatic allocation of aliases for deleted devices has no impact on the normal use of aliases by mapped devices, thereby improving the reliability of multi-path products.

[0050] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.

[0051] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0052] In the embodiments provided by this invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

[0053] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0054] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.

[0055] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.

[0056] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0057] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0058] The foregoing has provided a detailed description of the testing method, system, apparatus, and readable storage medium based on multi-path aliases provided by this invention. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.

Claims

1. A testing method based on multi-path aliases, characterized in that, include: The storage maps two devices to the server, and uses multipath detection to view device information; Record the initial aliases assigned to the two mapping devices; Set aliases for the two mapping devices and check if the alias settings are correct; If the alias is not set correctly, the test will fail and a failure message will be returned. If the alias is set correctly, delete one of the mapped devices and set the alias of the other available mapped device to the initial assigned alias of the deleted mapped device. Check if the settings were successful; If it fails, the test fails and a failure message is returned; If successful, check if there are any problems with the device information. If there are problems, the test fails and a failure message is returned. If there are no problems, remap the deleted mapped device to the server and use multipath detection to check if there are any anomalies in the information of the two mapped devices. If there are no anomalies, the test ends. If there are anomalies, the test fails and a failure message is returned. The testing method ensures that the automatic assignment of aliases to deleted devices has no impact on the use of aliases by normal mapped devices.

2. A testing system based on multi-path aliases, characterized in that, include: The mapping unit is used to store mappings between two devices to the server, and to detect and view device information using multipathing. The recording unit is used to record the initial aliases assigned to the two mapping devices; The configuration unit is used to set aliases for the two mapped devices and check if the alias settings are correct; if the alias settings are incorrect, the test fails and a failure message is returned. The deletion unit is used to delete one of the mapping devices when the alias is set correctly, and set the alias of the other available mapping device to the initial assigned alias of the deleted mapping device. The judgment unit is used to determine whether the alias setting was successful. The secondary mapping unit is used to check whether there are any problems with the device information when the judgment unit determines that the setting is successful. If there are any problems, the test fails and a failure message is returned. If there are no problems, the deleted mapping device is remapped to the server, and multi-path detection is used to check whether there are any abnormalities in the information of the two mapping devices. If there are no abnormalities, the test ends. If there are abnormalities, the test fails and a failure message is returned. The testing system ensures that the automatic assignment of aliases to deleted devices has no impact on the normal use of aliases by mapped devices.

3. A testing device based on multi-path aliases, characterized in that, include: Memory used to store test programs based on multi-path aliases; A processor, configured to implement the steps of the test method based on multiple path aliases as described in claim 1 when executing the test program based on multiple path aliases.

4. A readable storage medium, characterized in that: The readable storage medium stores a test program based on multi-path aliases, which, when executed by a processor, implements the steps of the test method based on multi-path aliases as described in claim 1.

Citation Information

Patent Citations

  • Terminal address automatic allocation method, terminal and network side server

    CN101141489A