Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for lun switching

A technology for switching commands and hosts, applied in the field of communications

Active Publication Date: 2016-12-07
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this time, the failure of host 1 has not recovered, host 1 will send the LUN switch command to the storage array again, the storage array will switch the LUN to storage controller B again, and host 2 will send the LUN switch command again to request the LUN switch Switch to storage controller A, which causes the storage array to switch back and forth between LUNs, forming a ping-pong effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for lun switching
  • A method and device for lun switching
  • A method and device for lun switching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] The embodiment of the present invention provides a method for LUN switching, and the execution subject is a host, such as figure 2 As shown, the method includes the following steps:

[0076] 201. The host sends a switching application message to the storage array, where the switching application message includes a priority level of the host.

[0077] When the host reads and writes the LUN, if the preferred link and the SP connected to it are normal, the host will choose to read and write the LUN through the preferred link and the SP connected to it. At this time, it is necessary to ensure that the LUN The SP to which it belongs is the SP connected by the preferred link.

[0078] When the preferred link of the host fails, the host will switch the IO from the preferred link to the standby link, and also switch the LUN from the SPA connected to the preferred link to the standby link. on the SPB to which the link is connected. At this time, the host needs to perform LUN...

Embodiment 2

[0117] The embodiment of the present invention provides a method for LUN switching, such as Figure 4 As shown, the method includes the following steps:

[0118] 401. The host sends a switching application message to the storage array, where the switching application message includes the priority level of the host.

[0119]After the storage array receives the switching application message sent by the host, due to reasons such as internal busyness or abnormality (for example, the current business pressure is high), the storage array cannot accept the switching application. At this time, the storage array will fail to send the application. command to the host. The host will send the switching request message to the storage array after a preset time delay. The preset time delay mentioned here is pre-negotiated according to the actual situation, which is longer than the time taken by the host to frequently send requests to the storage array when the storage array does not proces...

Embodiment 3

[0148] The embodiment of the present invention provides a host, such as Figure 5 As shown, it includes a sending unit 501 , a receiving unit 502 , and a determining unit 503 .

[0149] The sending unit 501 is configured to send a switching application message to the storage array, where the switching application message includes the priority level of the host. The receiving unit 502 is configured to receive a switching application reply message returned by the storage array according to the priority level. The determining unit 503 is configured to determine, according to the switching application reply message received by the receiving unit 502, that the host has obtained the LUN switching permission.

[0150] The sending unit 501 is further configured to, when the determining unit 503 determines that the host obtains the LUN switching authority, send a LUN switching command to the storage array, so that the storage array performs LUN switching.

[0151]Here, the priority l...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present invention provide a method and device for switching LUNs, which can avoid the generation of ping-pong effects, reduce the burden of storage arrays, and improve service performance. The method includes: the host sends a switching application message carrying the host ID and the priority level of the host to the storage array; the storage array returns a switching application reply message to the storage array according to the priority level of the host The host; the host judges whether it has obtained the LUN switch permission according to the switch application reply message; the host that has obtained the LUN switch permission will send a LUN switch command to the storage array, so that the LUN switches the LUN according to the LUN switch command.

Description

technical field [0001] The present invention relates to the communication field, in particular to a method and device for LUN (Logical Unit Number, Logical Unit Number) switching. Background technique [0002] In a cluster environment, multiple hosts can share a LUN in the storage array, and the storage array can assign multiple storage controllers to a LUN, and the host can read and write to the LUN through one of the storage controllers. [0003] In a scenario where two hosts share one LUN, the LUN is assigned two storage controllers (storage controller A and storage controller B). When the preferred link of host 1 fails, host 1 will send a LUN switching command to the storage array, and the storage array will switch the LUN from the storage controller A at the opposite end of the preferred link of host 1 to the storage controller at the opposite end of the standby link of host 1 on device B. At this time, for host 2, there is no failure on its preferred link, and host 2...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
Inventor 唐奕
Owner HUAWEI TECH CO LTD