A method and device for lun switching
A technology for switching commands and hosts, applied in the field of communications
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 