Data storage method and device, equipment, medium and program product
Mapping the target storage units of external storage devices to the server through Fibre Channel and creating an online access path, solving the problem of business interruption during storage service switching, achieving efficient online data migration and business continuity.
Patent Information
- Application Number
- CN202510121321.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-24
AI Technical Summary
During the storage service switching, pausing the service processing of the application server will make it difficult to guarantee the integrity of the service data, thereby reducing the efficiency of service switching.
By using Fibre Channel to map the target storage units of external storage devices to the server, and creating access paths that can be accessed online in the server, replacing the historical path of the original local memory, to achieve online data storage and migration.
It realizes online data migration without interrupting service during storage service switching, guarantees business continuity and data integrity, thereby improving the efficiency of service switching.
Smart Images

Figure CN119892857A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of cloud computing, and in particular to a data storage method, apparatus, device, medium and program product. Background Art
[0002] In a virtual storage environment, by abstracting and virtualizing physical resources, unified management of storage resources of different devices can be achieved. When it is determined that the storage capacity of the server is insufficient and the storage service needs to be switched, the related technology connects the storage system used for capacity expansion with the original system in a heterogeneous manner, then stops the business processing of the server, and finally switches the connection between the server and the original system to the new storage system.
[0003] In the process of implementing the concepts disclosed herein, the inventors discovered that there are at least the following problems in the related art: when switching storage services, if the business processing of the application server is suspended, the integrity of the business data will be difficult to guarantee, which will require a lot of time to coordinate and migrate data, resulting in low efficiency of service switching. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a data storage method, apparatus, device, medium and program product.
[0005] According to the first aspect of the present disclosure, a data storage method is provided, comprising: in response to a received storage service switching instruction, mapping a target storage unit obtained by scanning the external storage device by using a fiber channel connecting the server and the external storage device to the server; when it is determined that the target storage unit needs to accept online access from the target business system, creating an access path in the server that enables online access to the target storage unit based on an identifier of the target storage unit; sending the access path to the target business system to replace the historical path associated with the local storage in the server; and storing data generated when the target business system executes business in the target storage unit based on the access path.
[0006] According to an embodiment of the present disclosure, the above-mentioned target storage unit is a storage unit that meets the preset storage requirements, and the above-mentioned preset storage requirements are set according to the data growth trend of the above-mentioned target business system. The above-mentioned target storage unit obtained by scanning the above-mentioned external storage device using the optical fiber channel connecting the server and the external storage device is mapped to the above-mentioned server, including: binding the above-mentioned target storage unit with the node identifier of the optical fiber channel port of the above-mentioned server to obtain a binding result; generating a mapping task according to the link mapping parameters between the above-mentioned server and the above-mentioned target storage unit in the above-mentioned binding result; executing the above-mentioned mapping task to map the above-mentioned target storage unit to the above-mentioned server through the above-mentioned optical fiber channel.
[0007] According to an embodiment of the present disclosure, based on the identifier of the target storage unit, an access path capable of online access to the target storage unit is created in the server, including: importing the target storage unit into a storage pool of the server, wherein the storage pool is used to allocate resources to a plurality of storage units; reporting the identifier of the target storage unit to the server, so as to create a plurality of access paths corresponding to the identifier in the server, wherein the plurality of access paths can be switched with each other, and the server can call the corresponding storage unit from the storage pool based on the access path.
[0008] According to an embodiment of the present disclosure, the above method also includes: when it is determined that the above target business system satisfies preset conditions when executing the business, creating a temporary storage pool matching the above target storage unit, wherein the above preset conditions include at least one of the following: the need to generate intermediate data when executing the above business, the need to test the above business, or the need to isolate the data generated by the above business.
[0009] According to an embodiment of the present disclosure, the method further includes: converting the target storage unit into a format of a storage disk to confirm online access to the target storage unit, wherein the storage disk can be directly accessed online; when it is determined that the target storage unit needs to accept online access from the target business system, importing the target storage unit into the storage pool in the form of a mapping volume, wherein the target storage unit is divided into multiple mapping volumes; assigning a corresponding logical identifier to each of the mapping volumes in the storage pool to call the target storage unit based on the logical identifier.
[0010] According to an embodiment of the present disclosure, the access path is sent down to the target business system so as to replace the historical path associated with the local storage in the server, including: setting the takeover mode of the target storage unit to online takeover, wherein the online takeover is used to indicate that the target storage unit is to take over the storage resources in the local storage online; disconnecting the target business system from the historical path; sending the access path to the target business system so that when the server generates an operation request according to the business needs of the target business system, the operation request is sent to the external storage device based on the access path.
[0011] According to an embodiment of the present disclosure, the access path is sent down to the target business system so as to replace the historical path associated with the local storage in the server, including: setting the takeover mode of the target storage unit to online takeover, wherein the online takeover is used to indicate that the target storage unit is to take over the storage resources in the local storage online; disconnecting the target business system from the historical path; sending the access path to the target business system so that when the server generates an operation request according to the business needs of the target business system, the operation request is sent to the external storage device based on the access path.
[0012] According to an embodiment of the present disclosure, the method further includes: when it is determined that the target storage unit is scanned from the external storage device, adding the target storage unit to the storage pool of the server; in response to a received operation request, processing the storage resources in the storage pool according to the operation means corresponding to the operation request, wherein the operation means includes a read operation and a write operation, and wherein the operation request is generated by the server based on the business needs of the target business system; when it is determined that the target storage unit does not need to accept online access from the target business system, maintaining the storage resource allocation method between the storage pool and the target storage unit, wherein the storage resource allocation method is to allocate resources according to the storage capacity of the local storage and the target storage unit; when it is determined that the target storage unit needs to accept online access from the target business system and the target storage unit has taken over the local storage online, migrating the historical resources in the local storage to the target storage unit online; and changing the storage resource allocation method to allocate resources only according to the storage capacity of the target storage unit.
[0013] A second aspect of the present disclosure provides a data storage device, characterized in that the device includes: a storage mapping module, which is used to map a target storage unit obtained by scanning the external storage device using the optical fiber channel connecting the server and the external storage device to the server in response to a received storage service switching instruction; a path creation module, which is used to create an access path in the server that enables online access to the target storage unit based on an identifier of the target storage unit when it is determined that the target storage unit needs to accept online access from the target business system; a path delivery module, which is used to deliver the access path to the target business system so as to replace the historical path associated with the local storage in the server; and a data storage module, which is used to store data generated when the target business system executes business in the target storage unit based on the access path.
[0014] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0015] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0016] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0017] According to an embodiment of the present disclosure, the target storage unit of the external storage device is mapped to the server through a fiber channel, thereby realizing online access to the external storage device. When switching the storage service, by switching the access path online, the server and the target business system will not notice the change during the switching process, and the business can be carried out normally. The online switching of the access path effectively reduces the problem of incomplete data caused by data interruption, while ensuring the continuity of the business. Since the business continuity is not affected, there is no need to invest a lot of time in coordination and data migration when switching the storage service, which effectively improves the efficiency of service switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1A diagram schematically shows an application scenario of a data storage method, apparatus, device, medium, and program product according to an embodiment of the present disclosure;
[0020] Figure 2 A flowchart of a data storage method according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 3 A schematic diagram showing the connection between a server and an external storage device in a data storage method according to an embodiment of the present disclosure is shown;
[0022] Figure 4 A schematic diagram of data interaction in a data storage method according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 5 A flowchart of a data storage method according to another embodiment of the present disclosure is schematically shown;
[0024] Figure 6 A structural block diagram of a data storage device according to an embodiment of the present disclosure is schematically shown; and
[0025] Figure 7 A block diagram of an electronic device suitable for implementing a data storage method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0026] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0027] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0028] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0029] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0030] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] Virtualization technology is increasingly being used. By abstracting and virtualizing physical resources, resource utilization, flexibility, and manageability can be improved. Heterogeneous virtualization means being able to run on different architectures and different types of physical hardware. This means that in a data center, virtual machines based on different CPU (processor) architectures can be run simultaneously without having to worry about compatibility issues.
[0032] The current storage environment is becoming more and more complex. Due to the diversity of storage devices, the difficulty and cost of storage device maintenance and management have increased. Heterogeneous virtualization can abstract storage logically, eliminate the differences between different types of storage resources, and achieve resource integration.
[0033] In an open system environment, the host system has its own storage resources, and the administrator of each system needs to control the allocation, use and management of storage resources for each system. In addition, each server has a separately configured and managed file system. However, in the current storage environment, the capacity utilization rate of open systems is only 40% to 50%. This low utilization rate has resulted in a lot of additional costs to meet storage expansion needs.
[0034] Therefore, with the continuous development of storage technology, heterogeneous virtualization technology has emerged among many technologies. Heterogeneous virtualization is a function that logically integrates and utilizes storage resources of different models. In a virtual storage environment, storage will become transparent to users. Users do not need to care about the functional differences, capacity, device type and manufacturer of storage devices. All devices will be managed uniformly and given uniform functions such as local replication and remote replication.
[0035] After virtualization technology is applied to storage services, if you need to use the advanced data service functions of external storage, you need to connect the application server that accesses the storage to the external storage, so that the application server can indirectly access the data in the original storage by accessing the external storage. In related technologies, first complete the heterogeneous connection between the external storage and the original system, stop the application server business, then disconnect the application server from the original system, and then connect the application server to the external storage. This heterogeneous takeover solution is an offline takeover, which will temporarily interrupt user services.
[0036] The embodiments of the present disclosure provide a data storage method, apparatus, device, medium and program product. The method includes: in response to a received storage service switching instruction, mapping a target storage unit obtained by scanning an external storage device using a fiber channel connecting a server and an external storage device to a server; when it is determined that the target storage unit needs to be accessed online by a target business system, creating an access path in the server that enables online access to the target storage unit according to an identifier of the target storage unit; sending the access path to the target business system to replace the historical path associated with the local storage in the server; storing the data generated when the target business system executes the business in the target storage unit based on the access path.
[0037] Figure 1 The application scenario diagram of the data storage method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0038] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0039] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0040] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0041] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0042] It should be noted that the data storage method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the data storage device provided in the embodiment of the present disclosure can generally be set in the server 105. The data storage method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the data storage device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.
[0043] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0044] The following will be based on Figure 1 The scene described by Figure 2~Figure 6 The data storage method of the disclosed embodiment is described in detail.
[0045] Figure 2 The flowchart of the data storage method according to the embodiment of the present disclosure is schematically shown.
[0046] like Figure 2 As shown, the data storage method includes operations S210 to S240.
[0047] In operation S210, in response to the received storage service switching instruction, a target storage unit obtained by scanning the external storage device using a fiber channel connecting the server and the external storage device is mapped to the server.
[0048] In operation S220, when it is determined that the target storage unit needs to be accessed online by the target business system, an access path enabling online access to the target storage unit is created in the server according to an identifier of the target storage unit.
[0049] In operation S230, the access path is sent to the target business system to replace the historical path associated with the local storage in the server.
[0050] In operation S240 , data generated when the target business system executes the business is stored in the target storage unit based on the access path.
[0051] According to an embodiment of the present disclosure, when it is determined that the storage capacity of the server is insufficient and the storage service needs to be switched, in response to the received storage service switching instruction, the external storage device is scanned using the fiber channel connecting the server and the external storage device. The fiber channel is built when the external storage device is connected, specifically a FCSAN network (Fibre Channel Storage Area Network). After the fiber channel is built, the external storage device is added to the data center of the server to change the network topology. By dividing the area, the port of the external storage device and the local storage of the server are divided into one area, so that the two can communicate with each other.
[0052] According to an embodiment of the present disclosure, an external storage device is a storage device independent of a server, such as a disk array, a tape library, etc. A storage unit is the smallest unit that can independently store and manage data, and an external storage device is divided into multiple storage units as a basis for data management. If there are available or idle storage units in the external storage device, they can be discovered through the fiber channel.
[0053] Figure 3 The figure schematically shows the connection between the server and the external storage device in the data storage method according to the embodiment of the present disclosure.
[0054] like Figure 3 As shown, the server 310 and the external storage device 320 establish a fiber channel with the help of the fiber switch 330. The server 310 can transmit data with the external storage device 320 through the fiber channel. There are multiple storage units in the external storage device 320, and the server 310 can scan the target storage unit in the external storage device 320 through the fiber channel to switch the storage service.
[0055] According to an embodiment of the present disclosure, the target storage unit obtained by scanning the external storage device is mapped to the server. The mapping operation represents the establishment of a logical association between the server and the target storage unit. Through mapping, the server can treat the target storage unit as a storage resource that it can use. The server can perform operations such as reading, writing, storing and managing data on the mapped target storage unit, thereby realizing data interaction and resource sharing between the server and the external storage device. This mapping mechanism effectively improves the utilization and flexibility of storage resources, allowing the server to use the space of the external storage device according to actual needs.
[0056] According to the embodiments of the present disclosure, online access confirmation is performed on the target storage unit. Specifically, it is necessary to determine whether the target storage unit needs to accept online access from the target business system. This can be evaluated from many aspects. From the perspective of business needs, business functions and business analysis processes can be clarified. If the business has high requirements for data real-time and process consistency, it is determined that online access is required. From the perspective of system compatibility, it can be checked whether the data format matches and whether the interface protocol can be adapted. If it is found that data synchronization technology is needed to ensure data stability and consistency during data storage, it can also be determined that online access to the target storage unit is required.
[0057] According to an embodiment of the present disclosure, when it is determined that the target storage unit needs to accept online access from the target business system, an identifier of the target storage unit is determined. The identifier is an identification code uniquely corresponding to the target storage unit, and may specifically be a UUID (Universally Unique Identifier). The identifier of the target storage unit is reported to the server to create an access path in the server that enables online access to the target storage unit.
[0058] According to the embodiments of the present disclosure, since the original historical path of the target business system is associated with the local memory, the target business system can store the data generated when executing the business in the local memory based on the historical path. After the access path is sent to the target business system, the access path will replace the historical path, thereby realizing the online takeover of data storage, and there is no need to interrupt the business execution of the target business system during the takeover process. After the data takeover is completed, the data generated when the target business system executes the business is stored in the target storage unit based on the access path.
[0059] Figure 4 A schematic diagram of data interaction in a data storage method according to an embodiment of the present disclosure is schematically shown.
[0060] like Figure 4 As shown, the data storage method includes operations S410 to S450.
[0061] In operation S410, a fiber channel is established. In operation S420, a target storage unit is mapped. In operation S430, an access path is generated. In operation S440, service data is transmitted. In operation S450, data is stored in the target storage unit.
[0062] According to an embodiment of the present disclosure, a fiber channel is built between a server and an external storage device to scan a target storage unit in the external storage device using the fiber channel. After scanning the target storage unit, the target storage unit is mapped to the server. The server generates a corresponding access path based on the mapped target storage unit. The target business system can send business data generated when running the business to the server, so that the business data is stored in the target storage unit of the external storage device based on the access path.
[0063] According to the embodiments of the present disclosure, the interaction between the server and the external storage device can be controlled by a third party. The target business system can be deployed and executed on the server or on other distributed connected servers, which is not limited here.
[0064] According to an embodiment of the present disclosure, according to an embodiment of the present disclosure, the target storage unit of the external storage device is mapped to the server through a fiber channel, thereby realizing online access to the external storage device. When switching the storage service, by switching the access path online, the server and the target business system will not notice the change during the switching process, and the business can be carried out normally. The online switching of the access path effectively reduces the problem of incomplete data caused by data interruption, while ensuring the continuity of the business. Since the business continuity is not affected, there is no need to invest a lot of time in coordination and data migration when switching the storage service, which effectively improves the efficiency of service switching.
[0065] According to an embodiment of the present disclosure, a target storage unit is a storage unit that meets preset storage requirements, and the preset storage requirements are set according to the data growth trend of the target business system. The target storage unit obtained by scanning the external storage device using the fiber channel connecting the server and the external storage device is mapped to the server, including: binding the target storage unit with the node identifier of the fiber channel port of the server to obtain a binding result; generating a mapping task according to the link mapping parameters between the server and the target storage unit in the binding result; and executing the mapping task to map the target storage unit to the server through the fiber channel.
[0066] According to the embodiments of the present disclosure, during the process of scanning the target storage unit, the scanning is performed according to the preset storage demand, wherein the preset storage demand is set according to the data growth trend of the target business system, and the preset storage demand can also be set according to the number of new services of the target business system in the future and the characteristics of the business data.
[0067] According to an embodiment of the present disclosure, after determining the target storage unit, the node identifier of the fiber channel port of the server is obtained. The node identifier is specifically a WWPN (World Wide Port Name). The target storage unit is bound to the node identifier of the fiber channel port to obtain a binding result. The binding result includes the link mapping parameters between the server and the target storage unit, and also includes the protocol, port number, address, device identifier, connection bandwidth, connection status and related authentication information used for the connection.
[0068] According to an embodiment of the present disclosure, a mapping task is generated based on the information in the binding result, and the mapping task is executed. The mapping task includes multiple mapping execution processes, including task start conditions, execution order, data transmission steps, etc. The target storage unit is mapped to the server through the fiber channel, realizing online access to the external storage device.
[0069] According to an embodiment of the present disclosure, based on the identifier of the target storage unit, an access path that can perform online access to the target storage unit is created in the server, including: importing the target storage unit into a storage pool of the server, wherein the storage pool is used to allocate resources to multiple storage units; reporting the identifier of the target storage unit to the server to create multiple access paths corresponding to the identifier in the server, wherein the multiple access paths can be switched with each other, and the server can call the corresponding storage unit from the storage pool based on the access path.
[0070] According to an embodiment of the present disclosure, the target storage unit is imported into the storage pool of the server. During the import process, the target storage unit can be scanned and discovered through the storage management interface of the server, and then added to the storage pool according to the prompt. The storage pool is a technology that integrates the storage space of multiple storage units to form a unified storage resource pool, so as to centrally manage and flexibly allocate storage resources.
[0071] According to the embodiments of the present disclosure, since a storage pool may contain multiple storage units, the server needs to accurately identify the target storage unit through a unique identifier. Therefore, the identifier of the target storage unit is reported to the server, which allows the server to accurately identify and locate the target storage unit, avoid data confusion, and effectively improve the efficiency of data retrieval and access.
[0072] According to the embodiment of the present disclosure, when constructing an access path, the server will combine the reported target storage unit identifier with the base path. This identifier can be the number, name or other unique identification information of the target storage unit. By adding it to the base path, a more specific and unique access path can be generated. Through this access path, the server can directly call the target storage unit from the storage pool.
[0073] According to the embodiments of the present disclosure, in a distributed system, in order to reduce the redundancy and risk caused by data storage in a single location, data is usually stored in different data centers or storage areas. The server creates corresponding access paths in different data centers based on identifiers, and multiple access paths can be switched to each other. Once a data center fails, the server can quickly switch to the access path of other data centers, thereby improving the reliability and availability of data.
[0074] According to an embodiment of the present disclosure, the data storage method also includes: when it is determined that the target business system meets preset conditions when executing the business, creating a temporary storage pool that matches the target storage unit, wherein the preset conditions include at least one of the following: the need to generate intermediate data when executing the business, the need to test the business, or the need to isolate the data generated by the business.
[0075] According to an embodiment of the present disclosure, it is determined whether the target business system meets the preset conditions when executing the business. If the preset conditions are met, it means that during the execution of the business, a temporary storage pool is needed to buffer the transmission of data, or a temporary storage pool is used to temporarily store data to meet the current business execution requirements.
[0076] According to an embodiment of the present disclosure, a temporary storage pool of the same size is created according to the logical block size of the target storage unit. The target storage unit is imported into the temporary storage pool, and multiple access paths are created in the server, so that the server can call the target storage unit from the temporary storage pool based on the access path. By creating a temporary pool, it is possible to flexibly respond to various business needs and realize efficient switching of storage services.
[0077] According to the embodiment of the present disclosure, after the temporary storage pool is created, it can be further determined whether online takeover is required according to business needs. If the business needs indicate that the temporary storage pool only needs to be used as an intermediate medium for data storage and can be deleted after use, then online takeover of the destination storage unit is not required at this time.
[0078] According to an embodiment of the present disclosure, if the business demand indicates that a temporary storage pool is needed to temporarily store data during the processing of the business, or further management is needed in the temporary storage pool, and the final processed result is imported into the existing storage pool, then it is determined that the target storage unit needs to be taken over online at this time. In the process of takeover, facing the processing of the business, the target storage unit in the temporary storage pool can be taken over first. After determining that the data has been processed in the temporary storage pool, the storage resources in the temporary storage pool are imported into the existing storage pool. The existing storage pool is taken over by replacing the access path. The takeover method of the target storage unit is flexibly adjusted according to the needs of the business, so that the data storage is diverse and can meet a variety of business execution environments.
[0079] According to an embodiment of the present disclosure, the data storage method also includes: converting the target storage unit into the format of a storage disk to confirm online access to the target storage unit, wherein the storage disk can be directly accessed online; when it is determined that the target storage unit needs to accept online access from the target business system, importing the target storage unit into the storage pool in the form of a mapped volume, wherein the target storage unit is divided into multiple mapped volumes; assigning a corresponding logical identifier to each mapped volume in the storage pool to call the target storage unit based on the logical identifier.
[0080] According to an embodiment of the present disclosure, the target storage unit scanned by the fiber channel is in the format of a logical volume. Since different operating systems or storage devices may have specific requirements for storage formats, it is necessary to convert the target storage unit into a storage disk format that can be directly accessed online by the target business system for compatibility reasons. When it is determined that the target storage unit needs to be accessed online by the target business system, the target storage unit is divided into multiple mapping volumes, and the target storage unit is imported into the storage pool in the form of mapping volumes.
[0081] According to an embodiment of the present disclosure, a mapping volume is a way to logically associate or map a target storage unit to a virtual or logical location. The mapping volume can be divided based on different division principles and storage requirements, specifically, it can be divided according to factors such as storage capacity, storage performance, data type or user requirements.
[0082] According to the embodiments of the present disclosure, after the division is completed, a corresponding logical identifier is assigned to each mapped volume, so that the storage pool can allocate and manage storage resources. The storage pool can allocate storage tasks and resources to different mapped volumes according to the logical identifiers of the mapped volumes, thereby achieving more refined storage management. And by assigning corresponding logical identifiers to the mapped volumes, different configuration and management of storage resources can be achieved according to different application scenarios and user needs.
[0083] For example, the storage pool can dynamically adjust the storage allocation of the mapped volumes according to the usage and storage requirements of the mapped volumes, transfer storage resources from one mapped volume to another, or reallocate storage tasks to other mapped volumes when a mapped volume fails.
[0084] According to an embodiment of the present disclosure, importing storage units into a storage pool in the form of mapped volumes can bring more flexible storage resource management to the storage system and meet different storage requirements and user needs. At the same time, the storage pool can uniformly manage and optimize these mapped volumes.
[0085] According to an embodiment of the present disclosure, an access path is sent down to a target business system to replace a historical path associated with a local storage in a server, including: setting a takeover mode of a target storage unit to online takeover, wherein online takeover is used to indicate that the target storage unit is to take over storage resources in the local storage online; disconnecting the target business system from the historical path; sending the access path down to the target business system so that when the server generates an operation request according to the business needs of the target business system, the operation request is sent to an external storage device based on the access path.
[0086] According to the embodiments of the present disclosure, when it is determined that the target business system can access the target storage unit online, the target business system will store the generated data in the target storage unit, but at this time the target storage unit has not taken over the local storage, and the target storage unit is only a part of the server storage pool. When it is determined that the target storage unit needs to take over the local storage, the takeover mode of the target storage unit is set to online takeover, so that the storage resources in the local storage are taken over online, and the cache in the target storage unit itself is retained, and the data can continue to access it.
[0087] According to an embodiment of the present disclosure, to disconnect the target business system from the historical path, it is only necessary to delete the historical path on the server, and the server will send the access path to the target business system. Specifically, after sending the access path to the target business system, the server can use the port to perform data input and output operations. When the server generates an operation request based on the business needs of the target business system, it can send the operation request to the external storage device based on the access path to achieve data transmission. By disconnecting the historical path and taking over the local storage online, it is not necessary to disconnect the business execution of the target business system during the switching of the storage service, thereby ensuring business continuity and data integrity.
[0088] According to an embodiment of the present disclosure, the data storage method also includes: when it is determined that the target storage unit is scanned from an external storage device, adding the target storage unit to the storage pool of the server; in response to the received operation request, processing the storage resources in the storage pool according to the operation means corresponding to the operation request, wherein the operation means includes a read operation and a write operation, and wherein the operation request is generated by the server based on the business needs of the target business system; when it is determined that the target storage unit does not need to accept online access from the target business system, maintaining the storage resource allocation method between the storage pool and the target storage unit, wherein the storage resource allocation method is to allocate resources according to the storage capacity of the local storage and the target storage unit; when it is determined that the target storage unit needs to accept online access from the target business system and the target storage unit has taken over the local storage online, migrating the historical resources in the local storage to the target storage unit online; and changing the storage resource allocation method to allocate resources only according to the storage capacity of the target storage unit.
[0089] According to an embodiment of the present disclosure, when the server scans the target storage unit through the fiber channel, it will first import it into the server's storage pool for data storage. In response to the received operation request, the storage resources in the storage pool are processed to transmit data by reading and writing. If it is determined that the target storage unit does not need to accept online access from the target business system in the future, it means that the role of the target storage unit is only to expand the capacity of the local storage. Therefore, the server allocates resources to the storage pool in accordance with the storage capacity of the local storage and the target storage unit.
[0090] According to the embodiments of the present disclosure, if it is determined that the target storage unit needs to accept online access from the target business system in the future, it means that the current storage service needs to be switched. The current storage service can no longer meet the requirements of the target business system in terms of read and write speed and concurrent processing capability, which will cause the system to run poorly. Therefore, the target storage unit needs to take over the local storage online.
[0091] According to an embodiment of the present disclosure, after the target storage unit has taken over the local storage online, if it is determined that the historical resources in the local storage need to be migrated online to the target storage unit based on the characteristics of the business, a migration task can be added. After the migration is completed, the local storage is released. If the historical resources will not affect the subsequent operation of the business, the historical resources can also be abandoned. During the resource migration process, the operation of the business will not be affected.
[0092] According to the embodiment of the present disclosure, after determining that the target storage unit has taken over the local storage online, the storage resource allocation method is changed to allocate resources only according to the storage capacity of the target storage unit, and the local storage has been released and does not need to be referenced. When facing different storage requirements, the corresponding storage resource allocation method is configured, which effectively improves the utilization rate of storage resources and makes resource allocation more flexible.
[0093] Figure 5 A flow chart of a data storage method according to another embodiment of the present disclosure is schematically shown.
[0094] like Figure 5 As shown, the data storage method includes operations S501 to S513.
[0095] In operation S501, a fiber channel is established. In operation S502, a target storage unit is mapped to a server. In operation S503, the target storage unit is converted to a storage disk format. In operation S504, it is determined whether the target storage unit needs to be accessed online. In operation S505, the target storage unit is added to a storage pool of the server.
[0096] According to the embodiments of the present disclosure, the target storage unit of the external storage device is mapped to the server through the fiber channel, thereby realizing online access to the external storage device. The target storage unit is transformed so that the compatibility requirements can be met during the online confirmation process. If the target storage unit does not need to accept online access, it is directly used to expand the server storage pool, thereby meeting the data storage requirements and effectively improving the storage management efficiency.
[0097] In operation S506, determine whether the business execution meets the preset conditions. In operation S507, create a temporary storage pool. In operation S508, import the target storage unit into the storage pool in the form of a mapped volume. In operation S509, set the takeover mode of the target storage unit to online takeover. In operation S510, send the access path to the target business system. In operation S511, disconnect the historical path associated with the local storage in the server.
[0098] According to the embodiments of the present disclosure, by creating a temporary pool, it is possible to flexibly respond to various business needs and realize efficient switching of storage services. Importing storage units into the storage pool in the form of mapped volumes can bring more flexible storage resource management to the storage system. By disconnecting the historical path and taking over the local storage online, it is not necessary to disconnect the business execution of the target business system during the switching of the storage service, thereby ensuring business continuity and data integrity.
[0099] In operation S512, the historical resources in the local storage are migrated online to the target storage unit. In operation S513, the local storage is released.
[0100] According to the embodiments of the present disclosure, by performing online migration of historical resources, the integrity of data in the target storage unit can be guaranteed, and the online migration will not affect the operation of the business, thereby effectively improving the data migration efficiency.
[0101] Based on the above data storage method, the present disclosure also provides a data storage device. Figure 6 The device is described in detail.
[0102] Figure 6 The structural block diagram of the data storage device according to the embodiment of the present disclosure is schematically shown.
[0103] like Figure 6 As shown, the data storage device 600 of this embodiment includes a storage mapping module 610 , a path creation module 620 , a path delivery module 630 and a data storage module 640 .
[0104] The storage mapping module 610 is used to map the target storage unit obtained by scanning the external storage device using the optical fiber channel connecting the server and the external storage device to the server in response to the received storage service switching instruction. In one embodiment, the storage mapping module 610 can be used to perform the operation S210 described above, which will not be repeated here.
[0105] The path creation module 620 is used to create an access path in the server that enables online access to the target storage unit according to the identifier of the target storage unit when it is determined that the target storage unit needs to be accessed online by the target business system. In one embodiment, the path creation module 620 can be used to perform the operation S220 described above, which will not be repeated here.
[0106] The path sending module 630 is used to send the access path to the target business system to replace the historical path associated with the local storage in the server. In one embodiment, the path sending module 630 can be used to perform the operation S230 described above, which will not be repeated here.
[0107] The data storage module 640 is used to store the data generated when the target business system executes the business in the target storage unit based on the access path. In one embodiment, the data storage module 640 can be used to perform the operation S240 described above, which will not be repeated here.
[0108] According to an embodiment of the present disclosure, the storage mapping module 610 includes an identification binding submodule, a task generation submodule and a task execution submodule.
[0109] The identifier binding submodule is used to bind the target storage unit with the node identifier of the fiber channel port of the server to obtain a binding result.
[0110] The task generation submodule is used to generate a mapping task according to the link mapping parameters between the server and the target storage unit in the binding result.
[0111] The task execution submodule is used to execute the mapping task to map the target storage unit to the server through the optical fiber channel.
[0112] According to an embodiment of the present disclosure, the path creation module 620 includes a storage import submodule and an identification reporting submodule.
[0113] The storage import submodule is used to import the target storage unit into the storage pool of the server, wherein the storage pool is used to allocate resources to multiple storage units.
[0114] The identification reporting submodule is used to report the identifier of the target storage unit to the server to create multiple access paths corresponding to the identifier in the server, wherein the multiple access paths can be switched with each other, and the server can call the corresponding storage unit from the storage pool based on the access path.
[0115] According to an embodiment of the present disclosure, the data storage device 600 further includes a storage creation module.
[0116] A storage creation module is used to create a temporary storage pool that matches the target storage unit when it is determined that the target business system meets preset conditions when executing the business, wherein the preset conditions include at least one of the following: the need to generate intermediate data when executing the business, the need to test the business, or the need to isolate the data generated by the business.
[0117] According to an embodiment of the present disclosure, the data storage device 600 further includes a format conversion module, a mapping import module and an identification allocation module.
[0118] The format conversion module is used to convert the target storage unit into the format of the storage disk to perform online access confirmation on the target storage unit, wherein the storage disk can be directly accessed online.
[0119] The mapping import module is used to import the target storage unit into the storage pool in the form of a mapping volume when it is determined that the target storage unit needs to accept online access from the target business system, wherein the target storage unit is divided into multiple mapping volumes.
[0120] The identifier allocation module is used to allocate a corresponding logical identifier to each mapping volume in the storage pool so as to call the target storage unit based on the logical identifier.
[0121] According to an embodiment of the present disclosure, the path sending module 630 includes a takeover setting submodule, a path disconnection submodule and a path sending submodule.
[0122] The takeover setting submodule is used to set the takeover mode of the target storage unit to online takeover, wherein online takeover is used to indicate that the target storage unit is to perform online takeover of the storage resources in the local storage.
[0123] The path disconnection submodule is used to disconnect the target business system from the historical path.
[0124] The path sending submodule is used to send the access path to the target business system, so that when the server generates an operation request according to the business needs of the target business system, the operation request is sent to the external storage device based on the access path.
[0125] According to an embodiment of the present disclosure, the data storage device 600 further includes a storage adding module, a resource processing module, a deployment maintaining module, a resource migration module and a deployment changing module.
[0126] The storage adding module is used to add the target storage unit to the storage pool of the server when it is determined that the target storage unit is scanned from the external storage device.
[0127] The resource processing module is used to respond to the received operation request and process the storage resources in the storage pool according to the operation means corresponding to the operation request, wherein the operation means includes read operation and write operation, and wherein the operation request is generated by the server based on the business needs of the target business system.
[0128] The allocation and maintenance module is used to maintain the storage resource allocation method between the storage pool and the target storage unit when it is determined that the target storage unit does not need to accept online access from the target business system, wherein the storage resource allocation method is to allocate resources according to the storage capacity of the local storage and the target storage unit.
[0129] The resource migration module is used to migrate the historical resources in the local storage to the target storage unit online when it is determined that the target storage unit needs to accept online access from the target business system and the target storage unit has taken over the local storage online.
[0130] The allocation change module is used to change the storage resource allocation mode to allocate resources only according to the storage capacity of the target storage unit.
[0131] According to an embodiment of the present disclosure, any multiple modules of the storage mapping module 610, the path creation module 620, the path delivery module 630 and the data storage module 640 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the storage mapping module 610, the path creation module 620, the path delivery module 630 and the data storage module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a proper combination of any of them. Alternatively, at least one of the storage mapping module 610, the path creation module 620, the path delivery module 630 and the data storage module 640 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0132] Figure 7 A block diagram of an electronic device suitable for implementing a data storage method according to an embodiment of the present disclosure is schematically shown.
[0133] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0134] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in one or more memories.
[0135] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.
[0136] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0137] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0138] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0139] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0140] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0141] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0142] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0143] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0144] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0145] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A data storage method, characterized in that: The method comprises: In response to the received storage service switching instruction, a target storage unit obtained by scanning the external storage device using a fiber channel connecting the server and the external storage device is mapped to the server; In the case where it is determined that the target storage unit needs to be accessed online by the target business system, creating an access path capable of accessing the target storage unit online in the server according to the identifier of the target storage unit; Sending the access path to the target business system to replace the historical path associated with the local storage in the server; The data generated when the target business system executes the business is stored in the target storage unit based on the access path.
2. The method according to claim 1, characterized in that The target storage unit is a storage unit that meets the preset storage requirements, and the preset storage requirements are set according to the data growth trend of the target business system. The target storage unit obtained by scanning the external storage device using the optical fiber channel connecting the server and the external storage device is mapped to the server, including: Binding the target storage unit to the node identifier of the fiber channel port of the server to obtain a binding result; Generate a mapping task according to the link mapping parameters between the server and the target storage unit in the binding result; The mapping task is executed to map the target storage unit to the server through the optical fiber channel.
3. The method according to claim 1, characterized in that The step of creating, in the server, an access path capable of performing online access to the target storage unit according to the identifier of the target storage unit comprises: Importing the target storage unit into a storage pool of the server, wherein the storage pool is used to allocate resources to multiple storage units; The identifier of the target storage unit is reported to the server to create multiple access paths corresponding to the identifier in the server, wherein the multiple access paths can be switched with each other, and the server can call the corresponding storage unit from the storage pool based on the access path.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the target business system meets preset conditions when executing the business, a temporary storage pool matching the target storage unit is created, wherein the preset conditions include at least one of the following: the need to generate intermediate data when executing the business, the need to test the business, or the need to isolate the data generated by the business.
5. The method according to claim 3 or 4, characterized in that: The method further comprises: Converting the target storage unit into a storage disk format to perform online access confirmation on the target storage unit, wherein the storage disk can be directly accessed online; In the case where it is determined that the target storage unit needs to accept online access by the target business system, importing the target storage unit into the storage pool in a mapping volume manner, wherein the target storage unit is divided into a plurality of mapping volumes; A corresponding logical identifier is allocated to each of the mapped volumes in the storage pool, so as to call the target storage unit based on the logical identifier.
6. The method according to claim 1, characterized in that The sending the access path to the target business system so as to replace the historical path associated with the local memory in the server includes: Setting the takeover mode of the target storage unit to online takeover, wherein the online takeover is used to indicate that the target storage unit is to take over the storage resources in the local storage online; Disconnecting the target business system from the historical path; The access path is sent to the target business system, so that when the server generates an operation request according to the business requirements of the target business system, the operation request is sent to the external storage device based on the access path.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: In the case where it is determined that the target storage unit is scanned from the external storage device, adding the target storage unit to the storage pool of the server; In response to the received operation request, processing the storage resources in the storage pool according to the operation means corresponding to the operation request, wherein the operation means includes a read operation and a write operation, wherein the operation request is generated by the server based on the business requirements of the target business system; When it is determined that the target storage unit does not need to accept online access from the target business system, the storage resource allocation mode between the storage pool and the target storage unit is maintained, wherein the storage resource allocation mode is to allocate resources according to the storage capacity of the local storage and the target storage unit; When it is determined that the target storage unit needs to accept online access from the target business system and the target storage unit has taken over the local storage online, migrate the historical resources in the local storage to the target storage unit online; The storage resource allocation mode is changed to allocate resources only according to the storage capacity of the target storage unit.
8. A data storage device, characterized in that: The device comprises: a storage mapping module, configured to map a target storage unit obtained by scanning the external storage device using a fiber channel connecting the server and the external storage device to the server in response to a received storage service switching instruction; A path creation module, configured to create an access path capable of performing online access to the target storage unit in the server according to an identifier of the target storage unit when it is determined that the target storage unit needs to be accessed online by the target business system; A path sending module, used for sending the access path to the target business system so as to replace the historical path associated with the local storage in the server; The data storage module is used to store the data generated when the target business system executes the business in the target storage unit based on the access path.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Path switching method and device and computer readable storage medium
CN111352574A
Path replacement method and device
CN112650440A
Method and device for switching disk types on line, equipment and storage medium
CN113050895A
Multi-path storage IO request processing method, device and system and storage medium
CN116048413A
Configuration of fibre channel san path
US20050114476A1