CN110149232B - Distributed storage block upgrading iscsi service method, system, device and storage medium - Google Patents

Distributed storage block upgrading iscsi service method, system, device and storage medium Download PDF

Info

Publication number
CN110149232B
CN110149232B CN201910434290.3A CN201910434290A CN110149232B CN 110149232 B CN110149232 B CN 110149232B CN 201910434290 A CN201910434290 A CN 201910434290A CN 110149232 B CN110149232 B CN 110149232B
Authority
CN
China
Prior art keywords
iscsi service
client
connection
new
old
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910434290.3A
Other languages
Chinese (zh)
Other versions
CN110149232A (en
Inventor
穆向东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910434290.3A priority Critical patent/CN110149232B/en
Publication of CN110149232A publication Critical patent/CN110149232A/en
Application granted granted Critical
Publication of CN110149232B publication Critical patent/CN110149232B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The application discloses a distributed storage block upgrading iscsi service method, a system, a device and a computer readable storage medium, comprising: establishing a new iscsi service; sending the connection information of the new iscsi service to the client through the old iscsi service; disconnecting the connection with the client; establishing the connection between the new iscsi service and the client by using a connection establishment request which is sent by the client and generated by using the connection information; according to the method and the system, after the new iscsi service is established, the old iscsi service is utilized to send the connection information of the new iscsi service to the client, and the client is connected to the new iscsi service by utilizing the received connection information of the new iscsi service, so that the interruption time of the client is greatly reduced, and the new iscsi service does not need to be restarted.

Description

Distributed storage block upgrading iscsi service method, system, device and storage medium
Technical Field
The invention relates to the field of distributed storage, in particular to a distributed storage block upgrading iscsi service method, a system, a device and a computer readable storage medium.
Background
In distributed storage, online upgrade is an important subject, storage often carries user data, and user service software can initiate IO processing on a storage system according to own access logic. In a critical business, such as a usage scenario of industries such as finance and medical treatment, the time requirement for interruption of a storage system is low, or interruption is not allowed at all, but when a new function or a new characteristic of storage software needs to be updated, online upgrade is involved, that is, a software upgrade operation is performed under the condition that a user is ensured to access the business without interruption.
Because the external protocol Interface of the block service is mainly provided by iscsi service (iscsi, Internet SmallComputer System Interface, small computer System Interface), in the current distributed storage block service, the bottom layer software provides the storage space in the form of a logic block, then the iscsi service maps the logic volume, and the client uses the logic volume through the iscsi protocol. Therefore, for the upgrade of the block service, the online upgrade of the iscsi service software is mainly performed under the condition that the service of the client is not interrupted. In a linux environment, a newly manufactured RPM (Red-Hat Package Manager) containing a newly manufactured iscsi service program is reinstalled, and the iscsi service software is restarted, because a client has a reconnection mechanism, the client is reconnected to the iscsi service end through restarting, and in the case that the volume mapped by the iscsi service is small, because a computer is faster and the restarting is also faster, upgrade replacement and service provision can be completed faster. However, when the number of mapped volumes provided by the iscsi service is large, the restart of the new iscsi service software is slow, and because the iscsi service needs to interact with the logical volume of the storage bottom layer, the restart software is not suitable for online upgrade when the number of mapped volumes is large.
For this reason, an iscsi service upgrade method with a shorter client interruption time is required.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a device and a computer readable storage medium for upgrading iscsi services by using distributed storage blocks, so as to reduce the interruption time of a client. The specific scheme is as follows:
a distributed storage block upgrading iscsi service method comprises the following steps:
establishing a new iscsi service;
sending the connection information of the new iscsi service to a client through an old iscsi service;
disconnecting the connection with the client;
and establishing the connection between the new iscsi service and the client by using a connection establishment request which is sent by the client and generated by using the connection information.
Optionally, the process of sending the connection information of the new iscsi service to the client through the old iscsi service includes:
writing the new IP and the new interface information of the new iscsi service into a redirection data packet of an old iscsi service;
disconnecting the connection with the client by using the old iscsi service;
establishing the connection between the old iscsi service and the client by using a connection establishment request sent by the client;
and sending the redirection data packet to the client by utilizing the old iscsi service.
Optionally, after the new iscsi service is connected to the client, the method further includes clearing the old iscsi service.
The invention also discloses a distributed storage block upgrading iscsi service system, which comprises:
the new service establishing module is used for establishing a new iscsi service;
the connection information sending module is used for sending the connection information of the new iscsi service to the client through the old iscsi service;
the connection disconnection module is used for disconnecting the connection with the client;
and the connection reconnection module is used for establishing the connection between the new iscsi service and the client by using a connection establishment request which is sent by the client and generated by using the connection information.
Optionally, the connection information sending module includes:
a connection information writing unit, configured to write the new IP and the new interface information of the new iscsi service into a redirection packet of an old iscsi service;
a connection disconnection unit for disconnecting the connection with the client by using the old iscsi service;
a connection establishing unit, configured to establish a connection between the old iscsi service and the client by using a connection establishing request sent by the client;
and the data packet sending unit is used for sending the redirection data packet to the client by utilizing the old iscsi service.
Optionally, the system further comprises an old service clearing module, configured to clear the old iscsi service.
The invention also discloses a distributed storage block upgrading iscsi service device, which comprises:
a memory for storing a computer program;
a processor for executing the computer program to implement the distributed memory block upgrade iscsi service method as described above.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the distributed storage block upgrade iscsi service method as described above.
The invention discloses a distributed storage block upgrading iscsi service method, which comprises the following steps: establishing a new iscsi service; sending the connection information of the new iscsi service to the client through the old iscsi service; disconnecting the connection with the client; and establishing the connection between the new iscsi service and the client by using a connection establishment request which is sent by the client and generated by using the connection information.
After the new iscsi service is established, the connection information of the new iscsi service is sent to the client by using the old iscsi service, and the client is connected to the new iscsi service by using the received connection information of the new iscsi service, so that the interruption time of the client is greatly reduced, and the new iscsi service does not need to be restarted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart of a distributed storage block upgrade iscsi service method disclosed in an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a distributed storage block upgrade iscsi service system disclosed in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a distributed storage block upgrading iscsi service method, which is shown in figure 1 and comprises the following steps:
s11: a new iscsi service is established.
Specifically, in order to ensure that the client can establish connection with the new iscsi service after disconnecting from the old iscsi service, the new iscsi service is preferentially established, and meanwhile, connection information of the new iscsi service can also be obtained.
S12: and sending the connection information of the new iscsi service to the client through the old iscsi service.
Specifically, after the new iscsi service is established, since the client is still connected to the old iscsi service and the client does not have connection information of the new iscsi service and cannot be connected to the new iscsi service, the connection information of the new iscsi service is sent to the old iscsi service, and the connection information of the new iscsi service is sent to the client through the old iscsi service.
S13: and disconnecting the connection with the client.
Specifically, in order to enable the client to establish connection with the new iscsi service using the connection information of the new iscsi service, the connection with the client is disconnected.
S14: and establishing the connection between the new iscsi service and the client by using a new connection establishing request which is sent by the client and generated by using the connection information.
Specifically, after the connection with the client is disconnected, the client generates a corresponding new connection establishment request by using the connection information of the new iscsi service, and automatically connects to the new iscsi service, thereby realizing the update of the iscsi service.
Therefore, after the new iscsi service is established, the embodiment of the invention utilizes the old iscsi service to send the connection information of the new iscsi service to the client, and the client is connected to the new iscsi service by utilizing the received connection information of the new iscsi service, so that the interruption time of the client is greatly reduced, and the new iscsi service does not need to be restarted.
Further, the process of sending the connection information of the new iscsi service to the client through the old iscsi service in S12 specifically includes S121 to S124; wherein the content of the first and second substances,
s121: writing the new IP and the new interface information of the new iscsi service into a redirection data packet of the old iscsi service;
s122: disconnecting the connection with the client by using the old iscsi service;
s123: establishing the connection between the old iscsi service and the client by using an old connection establishment request sent by the client;
s124: the old iscsi service is utilized to send the redirected packet to the client.
Specifically, the disconnection reconnection function of the client is utilized, after the new IP and the new interface information of the new iscsi service are stored in the redirection data packet in the old iscsi service, the connection between the client and the old iscsi service is disconnected, at the moment, the client reconnects the iscsi service by utilizing the local historical redirection data packet comprising the old IP and the old interface information of the old iscsi service, therefore, the client is automatically reconnected to the old iscsi service according to the old IP and the old interface information of the old iscsi service, and after the client is automatically reconnected to the old iscsi service, the old iscsi service sends the redirection data packet comprising the new IP and the new interface information of the new iscsi service to the client.
At this time, the connection with the client is disconnected again, the client regenerates a new connection establishment request by using the new IP and the new interface information of the new iscsi service included in the local redirection data packet, and the client reconnects to the new iscsi service, thereby completing the update of the iscsi service.
The time consumed is only the time of two times of automatic reconnection of the client, the restart of the new iscsi service is already finished on the server, the time-consuming waiting of the client is not needed, the user experience is improved, and the long-time waiting of the user is avoided.
It can be understood that when the new iscsi service is connected to the client, the old iscsi service is cleared, saving memory, and meanwhile, preventing the old iscsi service from being started again and preventing system errors.
Correspondingly, the embodiment of the present invention also discloses a distributed storage block upgrade iscsi service system, as shown in fig. 2, the system includes:
a new service establishing module 11, configured to establish a new iscsi service;
a connection information sending module 12, configured to send connection information of the new iscsi service to the client through the old iscsi service;
a connection disconnection module 13 for disconnecting the connection with the client;
and the connection reconnection module 14 is configured to establish a connection between the new iscsi service and the client by using a connection establishment request generated by using the connection information and sent by the client.
Specifically, the connection information sending module 12 includes a connection information writing unit, a connection disconnection unit, a connection establishment unit, and a data packet sending unit; wherein the content of the first and second substances,
a connection information writing unit for writing the new IP and new interface information of the new iscsi service into the redirection data packet of the old iscsi service;
a connection disconnection unit for disconnecting the connection with the client using the old iscsi service;
the connection establishing unit is used for establishing the connection between the old iscsi service and the client by utilizing a connection establishing request sent by the client;
and the data packet sending unit is used for sending the redirection data packet to the client by using the old iscsi service.
Specifically, the system further comprises an old service clearing module, wherein the old service clearing module is used for clearing the old iscsi service.
In addition, the embodiment of the invention also discloses a distributed storage block upgrading iscsi service device, which comprises:
a memory for storing a computer program;
a processor for executing a computer program to implement a distributed memory block upgrade iscsi service method as described above.
In addition, the embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the distributed storage block upgrading iscsi service method are realized.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The distributed storage block upgrade iscsi service method, system, device and computer readable storage medium provided by the present invention are introduced in detail, and a specific example is applied in the present document to explain the principle and implementation manner of the present invention, and the description of the above embodiment is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (4)

1. A distributed storage block upgrading iscsi service method is characterized by comprising the following steps:
establishing a new iscsi service;
sending the connection information of the new iscsi service to a client through an old iscsi service;
disconnecting the connection with the client;
establishing the connection between the new iscsi service and the client by using a connection establishment request which is sent by the client and generated by using the connection information;
wherein, the process of sending the connection information of the new iscsi service to the client through the old iscsi service includes:
writing the new IP and the new interface information of the new iscsi service into a redirection data packet of an old iscsi service;
disconnecting the connection with the client by using the old iscsi service;
establishing the connection between the old iscsi service and the client by using an old connection establishment request sent by the client;
sending the redirection data packet to the client by utilizing the old iscsi service;
wherein, after the new iscsi service is connected with the client, the method further comprises clearing the old iscsi service.
2. A distributed storage block upgrade iscsi service system, comprising:
the new service establishing module is used for establishing a new iscsi service;
the connection information sending module is used for sending the connection information of the new iscsi service to the client through the old iscsi service;
the connection disconnection module is used for disconnecting the connection with the client;
a connection reconnection module, configured to establish a connection between the new iscsi service and the client using a connection establishment request generated by using the connection information and sent by the client;
an old service clearing module for clearing the old iscsi service;
wherein, the connection information sending module includes:
a connection information writing unit, configured to write the new IP and the new interface information of the new iscsi service into a redirection packet of an old iscsi service;
a connection disconnection unit for disconnecting the connection with the client by using the old iscsi service;
a connection establishing unit, configured to establish a connection between the old iscsi service and the client by using an old connection establishing request sent by the client;
and the data packet sending unit is used for sending the redirection data packet to the client by utilizing the old iscsi service.
3. A distributed storage block upgrade iscsi service apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the distributed storage block upgrade iscsi service method as claimed in claim 1.
4. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the distributed storage block upgrade iscsi service method as claimed in claim 1.
CN201910434290.3A 2019-05-23 2019-05-23 Distributed storage block upgrading iscsi service method, system, device and storage medium Active CN110149232B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910434290.3A CN110149232B (en) 2019-05-23 2019-05-23 Distributed storage block upgrading iscsi service method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910434290.3A CN110149232B (en) 2019-05-23 2019-05-23 Distributed storage block upgrading iscsi service method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN110149232A CN110149232A (en) 2019-08-20
CN110149232B true CN110149232B (en) 2020-05-29

Family

ID=67592889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910434290.3A Active CN110149232B (en) 2019-05-23 2019-05-23 Distributed storage block upgrading iscsi service method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN110149232B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873008B (en) * 2021-08-30 2024-03-19 浪潮电子信息产业股份有限公司 Connection reconfiguration method, device, system and medium for RDMA network node

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115009A (en) * 2007-08-31 2008-01-30 杭州华三通信技术有限公司 Storage resource access control method, storage control system and applied host machine

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022451B (en) * 2006-02-14 2014-07-23 杭州华三通信技术有限公司 Connection state synchronizing method in data communication and applied communication node thereof
CN101572709B (en) * 2009-06-01 2012-07-04 杭州华三通信技术有限公司 Switching method, system, server and client device of socket connection
CN106572147B (en) * 2016-09-29 2020-02-14 深圳市科创思科技有限公司 Method and system for remotely maintaining equipment through connection table
CN109600436B (en) * 2018-12-10 2021-06-29 浪潮电子信息产业股份有限公司 Distributed iscsi service implementation method, system and related device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115009A (en) * 2007-08-31 2008-01-30 杭州华三通信技术有限公司 Storage resource access control method, storage control system and applied host machine

Also Published As

Publication number Publication date
CN110149232A (en) 2019-08-20

Similar Documents

Publication Publication Date Title
US9176786B2 (en) Dynamic and automatic colocation and combining of service providers and service clients in a grid of resources for performing a data backup function
US8560694B2 (en) Virtual application server with version control
CN107360234B (en) Computer readable storage medium
US8447826B1 (en) Method and apparatus for providing highly available storage groups
CN108681777B (en) Method and device for running machine learning program based on distributed system
CN111190747A (en) Message loss detection method and device for message queue
CN109558212B (en) Virtualization management method and system of physical equipment, physical equipment and medium
US11231919B2 (en) Live updates of stateful components
EP2801033B1 (en) Accessing overlay media over a network connection
KR101799447B1 (en) Server connectiong method, information providng method of device and device applying the same, Cloud Computing Network system and operation method thereof
US10474491B2 (en) Method and apparatus for managing cloud server in cloud environment
CN105359176A (en) Updating the recipients of a previously delivered electronic message
US9344363B2 (en) Information processing system, relay device, information processing device, and information processing method
EP3496337B1 (en) Method and device for resetting network device to factory settings, and network device
CN110149232B (en) Distributed storage block upgrading iscsi service method, system, device and storage medium
CN109639827B (en) Client upgrading method and device
US9178960B2 (en) Recovering resource connections
CN113377487A (en) Method, apparatus and computer program product for managing virtual machine upgrades
US10795747B2 (en) File synchronizing service status monitoring and error handling
CN108418857B (en) Zookeeper cluster system and connection method and device thereof
KR100524588B1 (en) succeeding method of data in mobile
CN114218317B (en) Progress information management and control method, micro-service device, electronic equipment and storage medium
US9608914B2 (en) Information processing apparatus and information processing method
CN114553936A (en) Connection method, connection device, electronic equipment and computer-readable storage medium
US10708343B2 (en) Data repository for a distributed processing environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant