A simulation test method and system for storage capacity virtualization

By virtualizing the hard disk capacity in the storage device and using iSCSI network storage technology, a storage test virtualization environment of PB or EB level or above is built, the problem of building a massive storage system test environment is solved, and cost and manpower investment is reduced.

CN115691644BActive Publication Date: 2025-08-15BEIJING ZUNGUAN TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211125668.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2025-08-15
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

Building a mass storage system test environment requires a large amount of physical equipment and sites, and is low in reliability. The construction process is cumbersome, time-consuming and error-prone, and consumes a lot of resources and manpower.

Method used

The hard disk is expanded hundreds of times in storage devices by using virtualization technology, encapsulating the iSCSI-target into an iSCSI server container, and mapping the storage device to the local area through iSCSI-initiator to build a storage test virtualization simulation environment of PB level or EB level or above.

Benefits of technology

It reduces the demand for physical equipment, simplifies the construction process of mass storage testing environments, and reduces testing costs and manpower investment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115691644B_ABST
    Figure CN115691644B_ABST
Patent Text Reader

Abstract

The present invention provides a storage capacity virtualization simulation test method and system. This method uses virtualization technology to expand the hard disk capacity of a storage device by hundreds of times. The iSCSI-target service then transforms the storage device into an iSCSI network storage device. The storage system under test can map the iSCSI network storage device to the local storage via an iSCSI-initiator, thereby simulating a petabyte-level (or even exabyte-level or higher) storage test virtualization simulation environment. This solves the problem of difficulty in constructing a massive storage system test environment due to the limited capacity of the storage system under test. The present invention uses container technology to encapsulate the iSCSI-target into an iSCSI server-side container. While effectively providing a petabyte-level (or even exabyte-level or higher) iSCSI network storage device for massive storage testing, it also reduces the steps required to restore the storage device, simplifying the process of setting up a massive storage test environment, reducing labor investment, and lowering testing costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtual storage technology, and in particular to a simulation test method and system for storage capacity virtualization. Background Art

[0002] Storage system testing is a crucial foundation for storage system research and application. However, establishing a mass storage system test environment requires not only a large number of storage devices and physical hard drives, but also a large space for placement and a high-capacity power supply. Furthermore, mass storage systems are composed of numerous hardware and software components, resulting in low reliability. The setup process is cumbersome, time-consuming, and error-prone, requiring specialized technical personnel. Therefore, building a real-world mass storage system consumes significant resources, including capital, space, and electricity, and also requires significant manpower. Summary of the Invention

[0003] In view of this, an object of the present invention is to provide a simulation test method and system for storage capacity virtualization, which can achieve the goal of reducing the physical equipment required for testing and lowering testing costs.

[0004] A simulation test method for storage capacity virtualization, comprising:

[0005] Collect device information of all registered storage devices in the tested storage system;

[0006] receiving a virtualization simulation request;

[0007] Determine whether the virtualization simulation request is met:

[0008] When the virtualization simulation request is met, the virtualization simulation of the large-capacity hard disk is performed; otherwise, the feedback is that the requirement is not met;

[0009] The virtualization simulation method includes:

[0010] Determine whether the target capacity is greater than 4PB;

[0011] If the target capacity is less than 4PB, a new primary partition is created in the target storage device, and the capacity of the primary partition is the target capacity; if the target capacity is greater than 4PB, two new primary partitions are created in the target storage device, and the capacity of the primary partition is half of the target capacity;

[0012] Creating a virtual volume for each primary partition; associating the name of the virtual volume with the name of the storage system under test and the name of the primary partition;

[0013] Creating an iSCSI server container, whose name is associated with the name of the storage system under test and the name of the target storage device; encapsulating an iSCSI-target script in the iSCSI server container, and associating the iSCSI-target script name with the name of the iSCSI server container and the name of the virtual volume; and configuring the virtual volume as the underlying storage of the iSCSI server container;

[0014] Execute the iSCSI connection script preset on the storage system under test, query the iSCSI-target script associated with the storage system under test according to its name, and establish a connection;

[0015] Map the virtual volume of the iSCSI server container corresponding to the queried iSCSI-target script to the storage system under test.

[0016] Preferably, the device information includes: IP addresses of registered storage devices, names of all hard disks, available capacities of all hard disks, partitions of all hard disks, etc.; the device pool is a collection of device information.

[0017] Preferably, the virtualization simulation request includes the IP address of the target storage device, the target hard disk name on the target storage device, the target capacity and the name of the storage system to be tested.

[0018] Preferably, determining whether the virtualization simulation request is met includes: confirming whether the IP address of the target storage device exists in the device information pool; when confirming that the IP address of the target storage device exists in the device information pool, calculating the required physical volume capacity based on the target capacity, and obtaining the target hard disk available capacity on the target storage device, and determining whether the required physical volume capacity exceeds the target hard disk available capacity.

[0019] Preferably, when the IP address of the target storage device does not exist in the device information in the database or the physical volume capacity is larger than the available capacity of the target hard disk, the virtualization simulation request is not satisfied.

[0020] A simulation test system for a simulation test method for storage capacity virtualization, comprising a management module, a judgment module, a simulation module and a collection module;

[0021] The acquisition module is used to regularly collect device information of registered storage devices and feed it back to the management module;

[0022] The management module is configured to receive a virtualization simulation request for a target storage device and forward the virtualization simulation request to the determination module;

[0023] The judgment module is used to judge whether the target storage device meets the simulation request, and parse the virtualization simulation request into the name of the storage system under test displayed by the simulation parameters and iSCSI connection parameters and send them to the virtualization simulation module;

[0024] The virtualization simulation module is used to perform virtualization simulation of the storage capacity of the tested storage system according to the simulation parameters.

[0025] Preferably, the virtualization simulation module includes a capacity virtualization simulation module and a capacity expansion module;

[0026] The capacity virtualization simulation module is used to: create a primary partition on the physical hard disk of the target storage device, then create a virtual volume based on the primary partition, and finally create an iSCSI server container and configure the target's underlying storage;

[0027] The expansion module is used to execute the iSCSI-target script on the tested storage system, so that the iSCSI-initiator client on the tested storage system connects to the iSCSI-target script on the iSCSI-target server container on the target storage device, and maps the virtual volume to the tested storage system.

[0028] Preferably, the management module is also used for visual display of the tested storage device information and interaction with the user.

[0029] The present invention has the following beneficial effects:

[0030] Compared with the existing technology, the present invention provides a storage capacity virtualization simulation test method and system, which uses virtual technology to expand the hard disk in the storage device by hundreds of times, and then uses the iSCSI-target service to convert the storage device into an iSCSI network storage device. The storage system under test can map the iSCSI network storage device to the local through the iSCSI-initiator, thereby simulating a PB-level (or even EB-level or above) storage test virtualization simulation environment, solving the problem of difficulty in building a massive storage system test environment due to the limited capacity of the storage system under test. The present invention uses container technology to encapsulate iSCSI-target into an iSCSI server container. While effectively providing a PB-level (or even EB-level or above) iSCSI network storage device for massive storage testing, it also reduces the steps of restoring the storage device, making the construction process of the massive storage test environment simpler, reducing manpower investment, and lowering testing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A flow chart of a simulation test method for storage capacity virtualization provided by the present invention;

[0032] Figure 2 A simulation request confirmation flow chart of a simulation method for storage capacity virtualization provided by the present invention;

[0033] Figure 3 A flowchart of a simulation test method for storage capacity virtualization provided by the present invention;

[0034] Figure 4 This is a structural diagram of a simulation test system for storage capacity virtualization provided by the present invention. DETAILED DESCRIPTION

[0035] The present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0036] The present invention provides a simulation test method and system for storage capacity virtualization, which mainly solves the problem of difficulty in building a test environment for massive storage systems at the petabyte level (or even above the exabyte level). Based on virtualization technology, a small-capacity hard disk (such as a terabyte-level hard disk) on a storage device is virtualized into a large-capacity hard disk, simulating it as a petabyte-level (or even above the exabyte-level) iSCSI network storage device. The storage system under test can use an iSCSI-initiator to connect to the iSCSI network storage device, thereby simulating a simulation test environment that meets the requirements of a massive storage system at the petabyte level (or even above the exabyte level). Ultimately, the physical equipment required for testing is reduced, achieving the goal of lowering testing costs and reducing implementation difficulties.

[0037] To achieve the above objectives, the present invention provides, on the one hand, a simulation test method for storage capacity virtualization, the method comprising:

[0038] Build a small-scale storage system for testing;

[0039] Collect device information of all registered storage devices in the above storage system;

[0040] receiving a virtualized simulation request;

[0041] Determine whether the simulation request is met based on the device information;

[0042] When the virtualization simulation request is met, the simulation of the large-capacity hard disk is performed, otherwise, the feedback is that the requirement is not met.

[0043] In the embodiments of this specification, collecting device information of all registered storage devices includes:

[0044] Collect the device information of all registered storage devices in the small-scale storage system used for testing and update it to the database to form a device pool; the device information includes: the IP address of the registered storage device, all hard disk names, the available capacity of all hard disks and the partitions of all hard disks, etc.; the device pool is a collection of device information.

[0045] In the embodiments of this specification, determining whether a virtualization simulation request is satisfied based on device information includes:

[0046] Parsing a virtualization simulation request; the virtualization simulation request includes the IP address of the target storage device, the target hard disk name on the target storage device, the target capacity, and the name of the storage system being tested;

[0047] Determine whether the virtualization simulation request is met based on the device information, and the judgment operation includes: confirming whether the IP address of the target storage device exists in the device information pool; when it is confirmed that the IP address of the target storage device exists in the device information pool, calculate the required physical volume capacity based on the target capacity, and obtain the target hard disk available capacity on the target storage device in the database, and determine whether the required physical volume capacity exceeds the target hard disk available capacity.

[0048] If the target capacity does not exceed the available capacity of the device, the virtualization simulation request is allowed and parsed into large-capacity hard disk virtualization simulation parameters and iSCSI connection parameters. The large-capacity hard disk virtualization simulation parameters include the IP address of the target storage device, the target hard disk name on the target storage device, and the target capacity; the iSCSI connection parameters are the name of the storage system being tested.

[0049] In an embodiment of this specification, the method further includes:

[0050] When a virtualization simulation request meets one of the following rejection conditions, the virtualization simulation request is rejected;

[0051] Rejection conditions include:

[0052] The IP address of the target storage device does not exist in the device information in the database;

[0053] The physical volume capacity is larger than the available capacity of the target hard disk.

[0054] In the embodiments of this specification, performing virtualization simulation of a storage system test environment includes:

[0055] Parsing the virtualization simulation request into large-capacity hard disk virtualization simulation parameters and iSCSI connection parameters;

[0056] Perform large-capacity hard disk virtualization simulation on the target storage device;

[0057] Map the virtual hard disk on the target storage device to the storage system under test.

[0058] In an embodiment of the present specification, the large-capacity hard disk virtualization simulation parameters include: the virtualization simulation request includes the IP address of the target storage device, the target hard disk name on the target storage device, the target capacity and physical volume capacity, etc.; the iSCSI connection parameters are the name of the storage system being tested.

[0059] In an embodiment of this specification, the large-capacity hard disk virtualization simulation of the target storage device includes:

[0060] Receive large-capacity hard disk virtualization simulation parameters;

[0061] Determine whether the target capacity in the large-capacity hard disk virtualization simulation parameters is greater than 4PB;

[0062] If the target capacity is less than 4PB, a new primary partition is created on the target hard disk, and the capacity of the primary partition is the target capacity; if the target capacity is greater than 4PB, two new primary partitions are created on the target hard disk, and the capacity of the primary partition is half of the physical volume capacity;

[0063] Execute a preset script to create a virtual volume based on the primary partition. The number of virtual volumes (VDO volumes) is the same as the number of primary partitions. The capacity of the virtual volume can be set to a maximum of 254 times the capacity of the primary partition. The name of the virtual volume is a string consisting of the name of the storage system under test and the name of the primary partition.

[0064] Creating an iSCSI server container, wherein the iSCSI server container encapsulates an iSCSI-target service, and the name of the iSCSI server container is a string consisting of the name of the storage system under test and the name of the target storage device;

[0065] Execute a preset iSCSI server container configuration script to configure the underlying storage and iSCSI-target name of the iSCSI server container, where the underlying storage is the virtual volume and the iSCSI-target name is a combination of the iSCSI server container name and the virtual volume name; and update the iSCSI-target information to a database, where the iSCSI-target information includes: the iSCSI server container name, the iSCSI-target name, the underlying storage of the iSCSI server container, and the port mapping between the iSCSI server container and the target storage device.

[0066] In this embodiment, mapping the virtual volume on the target storage device to the storage system under test includes:

[0067] Query the database based on the iSCSI connection parameters to obtain the target iSCSI-target information;

[0068] Based on the target iSCSI-target information, connect to the iSCSI server container and map the virtual volume on the target storage device to the storage system under test.

[0069] On the other hand, the present invention also provides a storage capacity virtualization simulation test system, comprising:

[0070] The management module is used to visualize the information of the tested storage device, interact with the user, and receive the user's virtualization simulation request;

[0071] A judgment module is used to judge whether the virtualization simulation request is correct based on the device information pool in the database, and confirm whether the target storage device meets the virtualization simulation request;

[0072] A virtualization simulation module is configured to, when the virtualization simulation request is granted, perform virtualization simulation of storage capacity based on large-capacity hard drive virtualization simulation parameters and iSCSI connection parameters. The virtualization simulation module comprises a capacity virtualization simulation module and a capacity expansion module. The virtualization simulation module is configured to execute a preset simulation script on the target storage device and perform large-capacity hard drive virtualization simulation based on the hard drive on the target storage device. The capacity expansion module is configured to, after the simulation is complete, execute a preset connection script on the storage system under test to establish an iSCSI connection and map the virtual volumes on the target storage device to the storage system under test.

[0073] The collection module is used to periodically collect device information of all registered storage devices, including the IP addresses of registered storage devices, all hard disk names, the available capacity of all hard disks, and the partitions of all hard disks.

[0074] Example: Figure 1 As shown, in the present invention, a simulation test method for storage capacity virtualization includes the following steps:

[0075] S11. Collect device information of all registered storage devices.

[0076] S12: Receive a virtualization simulation request.

[0077] S13. Determine whether the virtualization simulation request is met based on the device information.

[0078] S14. When the virtualization simulation request is met, perform virtualization simulation of the storage capacity according to the content of the virtualization simulation request.

[0079] In this embodiment, the device information of all registered storage devices is first collected, and the device information of the registered storage devices is updated to the database to form a device information pool. Updating the device information of the registered storage devices to the database can facilitate the use of subsequent steps; when a virtualization simulation request is received, the virtualization simulation request is parsed and it is determined whether the IP address in the request is correct and whether the available capacity of the target storage device meets the virtualization simulation request; when it is confirmed that the virtualization simulation request can be met, the virtualization simulation request is parsed into large-capacity hard disk virtualization simulation parameters and iSCSI connection parameters, and virtualization simulation of storage capacity is performed based on the large-capacity hard disk virtualization simulation parameters and iSCSI connection parameters.

[0080] In this embodiment, the device information of the registered storage device includes information such as the IP address of the storage device, the name of the hard disk, and the available capacity of the hard disk. The device information pool is a collection of device information stored in a database. In order to ensure that the device information pool in the database is consistent with the real information of the device, the acquisition module will regularly collect the device information of all registered storage devices and update the device information in the device information pool. The registered storage device here refers to a storage device that has registered its IP address and host name in a simulation test system for storage capacity virtualization provided by the present invention. Other unregistered storage devices can be registered as registered storage devices.

[0081] In an embodiment of the present specification, performing virtualization simulation of storage capacity according to a virtualization simulation request includes: performing large-capacity hard disk virtualization simulation on a target storage device; and mapping the virtual hard disk on the target storage device to the storage system under test.

[0082] In this embodiment, the virtualization simulation request is initiated based on a task. For example, a user selects any hard drive in a storage device from a storage device visualization chart on the web, enters a target capacity, and initiates a virtualization simulation task. The virtualization simulation request may include information such as the IP address of the target storage device, the target hard drive, and the target capacity. The IP address of the target storage device is the IP address of the storage device selected by the user, and the target hard drive is the hard drive in the storage device selected by the user.

[0083] like Figure 2 As shown, Figure 1 The main steps of determining whether the virtualization simulation request S13 is satisfied based on the device information in the embodiment include the following processes:

[0084] 1) Parse the virtualization simulation request.

[0085] The virtualization simulation request includes the IP address of the target storage device, the target hard disk name and the target capacity on the target storage device;

[0086] 2) Determine whether the target storage device IP address exists in the device information pool.

[0087] The storage capacity virtualization simulation test system proposed in this embodiment manages registered storage devices. The device information of these registered storage devices is stored in a device information pool. Therefore, the correctness of the target storage device's IP address can be determined by confirming whether the target storage device's IP address exists in the device information pool. The device information pool adds or deletes device information in response to the storage device's registration or deregistration.

[0088] 3) When the target storage device IP address exists in the device information pool, it can be determined whether the target capacity exceeds the available capacity of the target hard disk based on the target capacity in the virtualization simulation request.

[0089] 4) If it is not exceeded, the virtualization simulation request is allowed, and the target capacity, the IP address of the target storage device, and the target hard disk are forwarded to the capacity virtualization simulation module as parameters.

[0090] In some other embodiments of this specification, when a virtualization simulation request meets one of the following rejection conditions, the virtualization simulation request is rejected, wherein the rejection condition includes:

[0091] The IP address of the target storage device does not exist in the device information pool;

[0092] The required target capacity is greater than the available capacity of the device.

[0093] It should be noted that the processing logic for determining whether to allow the virtualization simulation request can be changed according to actual needs. For example, in other embodiments of this specification, other judgment conditions (such as Figure 2 This manual does not make the sole limitation on this.

[0094] Figure 1 In the embodiment, storage capacity virtualization simulation S14 is performed on the target storage device according to the virtualization simulation request content. Figure 1 In the embodiment, mapping the virtual volume on the target storage device to the storage system under test S15 is a step flow of virtualization simulation of a massive storage test environment.

[0095] like Figure 3 As shown, Figure 1 The main steps of performing the environment virtualization simulation S14 of the massive storage system according to the virtualization simulation parameters in the embodiment include the following processes: 1) receiving the large-capacity hard disk virtualization simulation parameters, which include the target capacity and the target hard disk.

[0096] 2) Determine whether the target capacity is greater than 4PB, and create a primary partition based on the determination result.

[0097] In the present invention, according to the judgment result, creating the primary partition may further include:

[0098] a) When the target capacity is less than 4PB, a primary partition is created on the target hard disk, and the size of the primary partition is the target capacity size.

[0099] b) When the target capacity is greater than 4PB, two primary partitions are created on the target hard disk, and the size of each primary partition is half of the target capacity.

[0100] 3) Create virtual volumes based on the primary partitions. The number of virtual volumes is equal to the number of primary partitions, and the capacity is 254 times the capacity of the primary partition. The virtual volume name is the host name of the storage system under test and the partition name. 4) Create an iSCSI server container, which encapsulates the iSCSI target service.

[0101] 5) Run the pre-set script to configure the underlying storage and name of the iSCSI target and update the iSCSI target information to the database. Updating the iSCSI target information to the database facilitates subsequent steps.

[0102] The iSCSI target configuration script is pre-added to the target storage device. Its primary purpose is to automatically configure the underlying storage and name of the target iSCSI target at startup. Therefore, the iSCSI target configuration script can be added to any registered storage device to facilitate automatic virtual storage expansion.

[0103] In an embodiment of the present specification, all large-capacity hard disk virtualization simulation tasks performed in a virtualization simulation test environment for the same storage system under test are in the same batch. Therefore, the names of all virtual volumes and iSCSI server containers created by all large-capacity hard disk virtualization simulation tasks in the virtualization simulation test environment for a certain storage system under test include the name of the storage system under test, which serves as an identifier that the virtual volumes and iSCSI server containers are in the same batch of tasks. The iSCSI-initiator can connect to the iSCSI-targets in all iSCSI server containers in the same batch based on the identifier.

[0104] 6) Execute the iSCSI connection script preset on the storage system under test, query the database according to the name of the storage system under test to obtain the target iSCSI-target information, and connect to the target iSCSI-target.

[0105] The iSCSI connection script is pre-added to the storage system under test. Its main purpose is to automatically connect to the target iSCSI-target according to the identifier at startup and map the virtual volume of the iSCSI-target to the local system.

[0106] Corresponding to the above-mentioned simulation test method for storage capacity virtualization, the present invention also provides a simulation test system for storage capacity virtualization. Figure 4 As shown, in this embodiment, the simulation test system 411 for storage capacity virtualization is deployed in the management server 41 and includes a management module 4111 , a judgment module 4112 , a simulation module 4113 , and a collection module 4114 .

[0107] The management module 4111 is used to visually display the device information of the registered storage device, interact with the user, receive the virtualization simulation request for the target storage device, and forward the virtualization simulation request to the judgment module 4112;

[0108] The judgment module 4112 is used to judge whether the target storage device meets the simulation request based on the device information, and parse the virtualization simulation request into large-capacity hard disk simulation parameters and iSCSI connection parameters and send them to the virtualization simulation module 4113;

[0109] A virtualization simulation module 4113 is used to perform virtualization simulation of storage capacity according to simulation parameters;

[0110] The collection module 4114 is used to periodically collect device information of the registered storage device 42 and feed it back to the management module 4111 .

[0111] In this embodiment, the virtualization simulation module 4113 includes a capacity virtualization simulation module 41131 and a capacity expansion module 41132. The capacity virtualization simulation module 41131 is used to perform large-capacity hard disk virtualization simulation based on the physical hard disk 421 on the target storage device 42. The large-capacity hard disk virtualization simulation includes creating a primary partition 422 on the physical hard disk 421 on the target storage device 42, then creating a virtual volume 423 based on the primary partition 422, and finally creating a target server container 424 and configuring the underlying storage of the iSCSI-target in the target server container 424 as the virtual volume 423. The capacity expansion module 41132 is used to execute the iSCSI connection script on the storage system under test 43 after the capacity virtualization simulation module 41131 completes the large-capacity hard disk virtualization simulation, and the iSCSI-initiator client 431 connects to the iSCSI-target on the target server container 424 on the target storage device 42, mapping the virtual volume 423 to the storage system under test 43.

[0112] The present invention provides a storage capacity virtualization simulation test method and system, which utilizes a virtualization simulation module to perform storage capacity virtualization simulation on the device layer of the storage system under test in a massive storage test scenario of PB level (or even above EB level), and can quickly construct a PB level storage capacity test environment. The virtualization simulation module first utilizes virtual technology to perform large-capacity hard disk virtualization simulation on the storage device based on the physical hard disk, virtualizes the small-capacity physical hard disk on the storage device into a large-capacity virtual hard disk, and then maps the large-capacity virtual hard disk of the storage device to the storage system under test through iSCSI network storage technology, thereby performing storage capacity virtualization simulation on the storage system under test and constructing a PB storage capacity test environment. The present invention provides a storage capacity virtualization simulation test method and system, which solves the problems of the large number of storage devices required to build a PB level storage test environment, the difficulty of equipment maintenance and the difficulty of setting up the test environment due to the limited capacity of the real hard disk, reduces equipment and manpower investment, and reduces testing costs.

[0113] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A simulation test method for storage capacity virtualization, characterized in that: include: Collect device information of all registered storage devices in the tested storage system; receiving a virtualization simulation request; Determine whether the virtualization simulation request is met: When the virtualization simulation request is met, the virtualization simulation of the large-capacity hard disk is performed; otherwise, the feedback is that the request is not met; The virtualization simulation method includes: Determine whether the target capacity is greater than 4PB; If the target capacity is less than 4PB, a new primary partition is created in the target storage device, and the capacity of the primary partition is the target capacity; if the target capacity is greater than 4PB, two new primary partitions are created in the target storage device, and the capacity of the primary partition is half of the target capacity; Creating a virtual volume for each primary partition; associating the name of the virtual volume with the name of the storage system under test and the name of the primary partition; Creating an iSCSI server container, whose name is associated with the name of the storage system under test and the name of the target storage device; encapsulating an iSCSI-target script in the iSCSI server container, and associating the iSCSI-target script name with the name of the iSCSI server container and the name of the virtual volume; and configuring the virtual volume as the underlying storage of the iSCSI server container; Execute the iSCSI connection script preset on the storage system under test, query the iSCSI-target script associated with the storage system under test according to its name, and establish a connection; Map the virtual volume of the iSCSI server container corresponding to the queried iSCSI-target script to the storage system under test.

2. A simulation test method for storage capacity virtualization according to claim 1, characterized in that: The device information includes: the IP address of the registered storage device, the names of all hard disks, the available capacity of all hard disks and the partitions of all hard disks, etc.; the device information of all registered storage devices in the storage system used for testing is collected and updated to the database to form a device pool; the device pool is a collection of device information.

3. The simulation test method for storage capacity virtualization according to claim 1, wherein: The virtualization simulation request includes the IP address of the target storage device, the name of the target hard disk on the target storage device, the target capacity and the name of the storage system to be tested.

4. A simulation test method for storage capacity virtualization according to claim 3, characterized in that: Determining whether the virtualization simulation request is met includes: confirming whether the IP address of the target storage device exists in the device information pool; when it is confirmed that the IP address of the target storage device exists in the device information pool, calculating the required physical volume capacity based on the target capacity, and obtaining the target hard disk available capacity on the target storage device, and determining whether the required physical volume capacity exceeds the target hard disk available capacity.

5. The simulation test method for storage capacity virtualization according to claim 1, wherein: When the IP address of the target storage device does not exist in the device information in the database or the physical volume capacity is larger than the available capacity of the target hard disk, the virtualization simulation request is not satisfied.

6. A simulation test system for the simulation test method for storage capacity virtualization according to claim 1, characterized in that: It includes management module, judgment module, simulation module and acquisition module; The acquisition module is used to regularly collect device information of registered storage devices and feed it back to the management module; The management module is configured to receive a virtualization simulation request for a target storage device and forward the virtualization simulation request to the determination module; The judgment module is used to judge whether the target storage device meets the simulation request, and parse the virtualization simulation request into the name of the storage system under test displayed by the simulation parameters and iSCSI connection parameters and send them to the virtualization simulation module; The virtualization simulation module is used to perform virtualization simulation of the storage capacity of the tested storage system according to the simulation parameters.

7. A storage capacity virtualization simulation test system according to claim 6, characterized in that: The virtualization simulation module includes a capacity virtualization simulation module and a capacity expansion module; The capacity virtualization simulation module is used to: create a primary partition on the physical hard disk of the target storage device, then create a virtual volume based on the primary partition, and finally create an iSCSI server container and configure the target's underlying storage; The expansion module is used to execute the iSCSI-target script on the tested storage system, so that the iSCSI-initiator client on the tested storage system connects to the iSCSI-target script on the iSCSI-target server container on the target storage device, and maps the virtual volume to the tested storage system.

8. The storage capacity virtualization simulation test system according to claim 6, characterized in that: The management module is also used for visual display of tested storage device information and interaction with users.

Citation Information

Patent Citations

  • Method for on-line extension of disk size of virtual machine and virtual system console

    CN103513940A

  • Method of controlling total capacity of virtual volumes associated with pool and storage apparatus

    US20110264868A1