CN107566544B - Storage device deployment change method for storage cluster - Google Patents

Storage device deployment change method for storage cluster Download PDF

Info

Publication number
CN107566544B
CN107566544B CN201710764022.9A CN201710764022A CN107566544B CN 107566544 B CN107566544 B CN 107566544B CN 201710764022 A CN201710764022 A CN 201710764022A CN 107566544 B CN107566544 B CN 107566544B
Authority
CN
China
Prior art keywords
storage device
temporary
target storage
cluster
storage
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
CN201710764022.9A
Other languages
Chinese (zh)
Other versions
CN107566544A (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 CN201710764022.9A priority Critical patent/CN107566544B/en
Publication of CN107566544A publication Critical patent/CN107566544A/en
Application granted granted Critical
Publication of CN107566544B publication Critical patent/CN107566544B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a storage device deployment change method for a storage cluster, which is characterized in that a plurality of storage devices deployed in the storage cluster use a special Ethernet link for communication. When the ID number of the storage device needs to be relocated online and the address of the special Ethernet link needs to be changed, a sub-interface is created on the special Ethernet card corresponding to the storage device, a temporary IP address is configured on the sub-interface, and the temporary link is established by using the temporary IP address; the ID change information is sent through the temporary link, the new network card address is deployed, after the ID of the newly deployed storage device is completed, the storage device is configured with the new communication link, and the temporary link is deleted, so that the smooth transition is completed.

Description

Storage device deployment change method for storage cluster
Technical Field
The invention relates to the technical field of storage, in particular to a storage device deployment change method for a storage cluster.
Background
When a plurality of storage devices are deployed to establish a cluster, an ID number is assigned to each storage device, and the ID numbers are unique in the cluster and do not repeat mutually and are used for identifying the identity of a specific certain storage device.
The storage devices in the cluster need to communicate information, some types of devices connect the storage devices using a dedicated ethernet link, and the dedicated ethernet link is used for information transfer between the storage devices. However, in some application scenarios, in order to reduce the workload of manual configuration, the configuration is generally automatically configured on the dedicated network card according to an IP address corresponding to the ID number of the storage device. To support the deployment of storage devices in online dynamic change clusters, which involves reassigning the ID number of the storage device, the IP address of the corresponding private ethernet network is changed accordingly. At present, when an IP address is changed in Ethernet link communication, the conventional method is to disconnect the original connection and quickly reestablish the connection. If online change is required and communication information is not expected to be lost, most of the methods are to temporarily buffer the communication information needing to be transmitted in the process of changing the IP address, wait for reconnection of the Ethernet link and then transmit the communication information. However, in the device with limited cache resources, if there is more communication information in the process of link reestablishment, only part of the communication information may be lost due to insufficient cache; and some application scenarios require timeliness of communication information, and the communication information is cached and transmitted after a new link is established, so that timeliness may be lost.
Therefore, how to solve the problem that partial loss and communication information timeliness are ensured due to the fact that all communication information cannot be cached in the process of changing the IP address online is a technical problem to be solved by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a storage device deployment change method for a storage cluster, which can solve the problems that partial loss and communication information timeliness are ensured due to the fact that all communication information cannot be cached in the process of changing an IP address on line.
In order to solve the technical problems, the invention provides the following technical scheme:
a storage device deployment change method for a storage cluster comprises the following steps:
selecting a target storage device from the target storage cluster;
acquiring network card MAC address information of other storage devices in the target storage cluster through the target storage device;
distributing a temporary IP address for each corresponding storage device according to the network card MAC address information of each storage device in the target storage cluster;
respectively creating sub-interfaces on corresponding special network cards of each storage device in the target storage cluster, and configuring the temporary IP address of the corresponding storage device to the sub-interface of the corresponding storage device;
establishing a temporary link for mutual communication connection between the storage devices through the corresponding temporary IP addresses of the storage devices;
switching information communication of each storage device in the target storage cluster from an original communication link to the temporary link;
removing the original communication link and deleting the original IP address of the Ethernet corresponding to each storage device;
acquiring the storage equipment ID change information after redeployment, and sending an execution instruction corresponding to the storage equipment ID change information to each storage equipment through the temporary link;
controlling each storage device in the target storage cluster to use the changed ID to configure a network card address corresponding to the storage device according to the execution instruction, and establishing a new communication link;
and removing the temporary link, and deleting the temporary IP address and each sub-interface of each storage device.
Preferably, the selecting one target storage device in the target storage cluster is:
and selecting one storage device in the target storage cluster as a target storage device.
Preferably, the obtaining, by the target storage device, network card MAC address information of other storage devices in the target storage cluster includes:
sending a preset instruction to other storage devices in the target storage cluster by the target storage device by applying an original communication link in the target storage cluster;
and acquiring response information of other storage devices in the target storage cluster through the target storage device, wherein the response information comprises network card MAC address information corresponding to the corresponding storage device.
Preferably, the allocating a temporary IP address to each corresponding storage device according to the network card MAC address information of each storage device in the target storage cluster includes:
after the target storage device acquires the response information of other storage devices in the target storage cluster, distributing corresponding temporary IP addresses according to the size of each network card MAC address;
and sending each temporary IP device to the corresponding storage device in the target storage cluster through the target storage device.
Preferably, the establishing a temporary link for mutual communication connection between the storage devices through the corresponding temporary IP addresses of the storage devices includes:
controlling each storage device in the target storage cluster to apply corresponding temporary IP addresses to establish temporary connection between each other, thereby establishing a temporary link;
judging whether the target storage equipment can acquire confirmation information sent by other storage equipment in the target storage cluster through the temporary link;
if so, judging that the temporary link is successfully established.
Preferably, after the controlling, according to the execution instruction, each storage device in the target storage cluster to configure a network card address corresponding to itself by using the changed ID, and establishing a new communication link, the method further includes:
acquiring corresponding communication link confirmation information sent by other storage devices in the target storage cluster through the target storage device;
and after the target storage device finishes collecting the confirmation information of each communication link, sending notification information that a new communication link is normal to other storage devices in the target storage cluster through the target storage device.
Compared with the prior art, the technical scheme has the following advantages:
the invention provides a storage device deployment change method for a storage cluster, which is characterized in that a plurality of storage devices deployed in the storage cluster use a special Ethernet link for communication. When the ID number of the storage device needs to be relocated online and the address of the special Ethernet link needs to be changed, a sub-interface is created on the special Ethernet card corresponding to the storage device, a temporary IP address is configured on the sub-interface, and the temporary link is established by using the temporary IP address; the ID change information is sent through the temporary link, the new network card address is deployed, after the ID of the newly deployed storage device is completed, the storage device is configured with the new communication link, and the temporary link is deleted, so that the smooth transition is completed.
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 introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a storage device deployment change method for a storage cluster according to an embodiment of the present invention.
Detailed Description
The core of the invention is to provide a storage device deployment change method for a storage cluster, which can solve the problems that partial loss and communication information timeliness are ensured due to the fact that all communication information cannot be cached in the process of changing an IP address on line.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The invention can be implemented in a number of ways different from those described herein and similar generalizations can be made by those skilled in the art without departing from the spirit of the invention. The invention is therefore not limited to the specific implementations disclosed below.
Referring to fig. 1, fig. 1 is a flowchart of a storage device deployment changing method for a storage cluster according to an embodiment of the present invention.
A specific embodiment of the present invention provides a storage device deployment change method for a storage cluster, including:
s11: and selecting a target storage device from the target storage cluster.
In an embodiment of the present invention, selecting one target storage device in a target storage cluster includes: and selecting one storage device as the target storage device in the target storage cluster.
In practical application, a user selects one storage device as a target storage device in a storage cluster according to needs, that is, the user logs in the selected target storage device to execute an instruction of redeploying the storage device ID in the cluster.
S12: and obtaining network card MAC address information of other storage devices in the target storage cluster through the target storage device.
In an embodiment of the present invention, acquiring network card MAC address information of other storage devices in a target storage cluster through a target storage device includes: sending a preset instruction to other storage devices in the target storage cluster by using an original communication link in the target storage cluster through the target storage device; and acquiring response information of other storage devices in the target storage cluster through the target storage device, wherein the response information comprises corresponding network card MAC address information of the corresponding storage device.
The target storage device obtains a relevant instruction input by a user, and at this time, the target storage device transmits the instruction to other storage devices deployed in the target storage cluster through an original communication link, namely, a communication link in the cluster used before redeployment. When the target storage device sends a preset instruction to other storage devices, the other storage devices respond after receiving the preset instruction, and the network card MAC address information of the own private Ethernet link is put in the response information.
S13: and distributing temporary IP addresses for the corresponding storage devices according to the network card MAC address information of the storage devices in the target storage cluster.
In an embodiment of the present invention, allocating a temporary IP address to each corresponding storage device according to network card MAC address information of each storage device in a target storage cluster includes: after the target storage device acquires the response information of other storage devices in the target storage cluster, distributing corresponding temporary IP addresses according to the size of the MAC address of each network card; and sending each temporary IP device to the corresponding storage device in the target storage cluster through the target storage device.
And after receiving all the response messages, the target storage device transmitting the preset instruction allocates a new temporary IP address according to the size of the MAC address, and then sends the newly allocated temporary IP address to all other storage devices in the cluster.
S14: and respectively creating sub-interfaces on corresponding special network cards of the storage devices in the target storage cluster, and configuring the temporary IP addresses of the corresponding storage devices to the sub-interfaces of the storage devices.
S15: and establishing a temporary link for mutual communication connection between the storage devices through the corresponding temporary IP addresses of the storage devices.
In one embodiment of the present invention, establishing a temporary link for mutual communication connection between storage devices through corresponding temporary IP addresses of the storage devices includes: controlling each storage device in the target storage cluster to establish temporary connection between each other by using the corresponding temporary IP address, thereby establishing a temporary link; judging whether the target storage equipment can acquire confirmation information sent by other storage equipment in the target storage cluster through the temporary link; if yes, the temporary link is judged to be successfully established.
All the storage devices in the target storage cluster start to establish temporary connection with each other by using the temporary IP addresses, and after the temporary connection is established, confirmation information is sent to the target storage devices through the temporary links.
S16: and switching the information communication of each storage device in the target storage cluster from the original communication link to the temporary link.
And after the target storage device receives the confirmation information of all other storage devices in the cluster, informing all other storage devices in the cluster to switch the communication information to the temporary link.
S17: and removing the original communication link and deleting the original IP address of the Ethernet corresponding to each storage device.
At this time, since the whole storage cluster uses the temporary link for communication, the original communication link is idle, so that the original communication link can be removed without affecting communication. And without the need for temporary buffering of the ongoing communication.
S18: and acquiring the redeployed storage equipment ID change information, and sending an execution instruction corresponding to the storage equipment ID change information to each storage equipment through the temporary link.
The user can send ID number change information of each redeployed storage device through the target storage device; and executing the redeployment instruction on the target storage device, and informing the operation according to the ID number of the newly deployed storage device. The target storage device sends corresponding instructions to all other storage devices through the temporary link.
S19: and controlling each storage device in the target storage cluster to use the changed ID to configure the corresponding network card address according to the execution instruction, and establishing a new communication link.
And all the storage devices in the cluster start to use the newly deployed ID numbers to configure corresponding special network card addresses, and establish connection with other storage devices outside the cluster.
Further, after controlling each storage device in the target storage cluster to use the changed ID to configure its corresponding network card address according to the execution instruction, and establishing a new communication link, the method further includes: acquiring corresponding communication link confirmation information sent by other storage devices in the target storage cluster through the target storage device; and after the target storage device finishes collecting the confirmation information of each communication link, sending the notification information that the new communication link is normal to other storage devices in the target storage cluster through the target storage device.
The target storage device waits for and receives the confirmation information of other storage devices on the newly-built communication link, and after the confirmation information sent by all other storage devices is collected, all the storage devices are informed that the new communication link is normal.
S110: and removing the temporary link, and deleting the temporary IP address and each subinterface of each storage device.
And all the storage devices in the cluster start to use the new communication link for communication, at the moment, the temporary link is idle, the temporary link can be dismantled, and the temporary IP address and the sub-interface are deleted.
And at this moment, the ID numbers of the storage devices in the cluster are redeployed, and the communication smooth transition after the corresponding link addresses are changed is completed.
In summary, the storage device deployment change method for the storage cluster provided by the present invention. A plurality of storage devices deployed in a storage cluster communicate using dedicated ethernet links. When the ID number of the storage device needs to be relocated online and the address of the special Ethernet link needs to be changed, a sub-interface is created on the special Ethernet card corresponding to the storage device, a temporary IP address is configured on the sub-interface, and the temporary link is established by using the temporary IP address; the ID change information is sent through the temporary link, the new network card address is deployed, after the ID of the newly deployed storage equipment is completed, the storage equipment configures a new communication link, and the temporary link is deleted, so that smooth transition is completed, in the whole change process, as the temporary cache is not applied, the information is communicated in real time, the condition that partial communication information is lost due to insufficient cache is avoided, the problem that the communication information is lost due to the fact that the link needs to be reestablished due to address change when the ID number of the storage equipment in the cluster is redeployed on line is solved, and meanwhile the timeliness of the communication information is guaranteed.
The above provides a detailed description of a storage device deployment change method for a storage cluster according to the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (6)

1. A storage device deployment change method for a storage cluster is characterized by comprising the following steps:
selecting a target storage device from the target storage cluster;
acquiring network card MAC address information of other storage devices in the target storage cluster through the target storage device;
distributing a temporary IP address for each corresponding storage device according to the network card MAC address information of each storage device in the target storage cluster;
respectively creating sub-interfaces on corresponding special network cards of each storage device in the target storage cluster, and configuring the temporary IP address of the corresponding storage device to the sub-interface of the corresponding storage device;
establishing a temporary link for mutual communication connection between the storage devices through the corresponding temporary IP addresses of the storage devices;
switching information communication of each storage device in the target storage cluster from an original communication link to the temporary link;
removing the original communication link and deleting the original IP address of the Ethernet corresponding to each storage device;
acquiring the storage equipment ID change information after redeployment, and sending an execution instruction corresponding to the storage equipment ID change information to each storage equipment through the temporary link;
controlling each storage device in the target storage cluster to use the changed ID to configure a network card address corresponding to the storage device according to the execution instruction, and establishing a new communication link;
and removing the temporary link, and deleting the temporary IP address and each sub-interface of each storage device.
2. The method of claim 1, wherein selecting a target storage device in the target storage cluster is:
and selecting one storage device in the target storage cluster as a target storage device.
3. The method of claim 2, wherein the obtaining, by the target storage device, network card MAC address information of other storage devices in the target storage cluster comprises:
sending a preset instruction to other storage devices in the target storage cluster by the target storage device by applying an original communication link in the target storage cluster;
and acquiring response information of other storage devices in the target storage cluster through the target storage device, wherein the response information comprises network card MAC address information corresponding to the corresponding storage device.
4. The method of claim 3, wherein the allocating a temporary IP address to each corresponding storage device according to the network card MAC address information of each storage device in the target storage cluster comprises:
after the target storage device acquires the response information of other storage devices in the target storage cluster, distributing corresponding temporary IP addresses according to the size of each network card MAC address;
and sending each temporary IP device to the corresponding storage device in the target storage cluster through the target storage device.
5. The method of claim 4, wherein establishing the temporary link for the communication connection between the storage devices through the corresponding temporary IP address of each storage device comprises:
controlling each storage device in the target storage cluster to apply corresponding temporary IP addresses to establish temporary connection between each other, thereby establishing a temporary link;
judging whether the target storage equipment can acquire confirmation information sent by other storage equipment in the target storage cluster through the temporary link;
if so, judging that the temporary link is successfully established.
6. The method according to claim 5, wherein after the controlling, according to the execution instruction, each storage device in the target storage cluster to configure its corresponding network card address using the changed ID, and establish a new communication link, the method further comprises:
acquiring corresponding communication link confirmation information sent by other storage devices in the target storage cluster through the target storage device;
and after the target storage device finishes collecting the confirmation information of each communication link, sending notification information that a new communication link is normal to other storage devices in the target storage cluster through the target storage device.
CN201710764022.9A 2017-08-30 2017-08-30 Storage device deployment change method for storage cluster Active CN107566544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710764022.9A CN107566544B (en) 2017-08-30 2017-08-30 Storage device deployment change method for storage cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710764022.9A CN107566544B (en) 2017-08-30 2017-08-30 Storage device deployment change method for storage cluster

Publications (2)

Publication Number Publication Date
CN107566544A CN107566544A (en) 2018-01-09
CN107566544B true CN107566544B (en) 2020-07-07

Family

ID=60978244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710764022.9A Active CN107566544B (en) 2017-08-30 2017-08-30 Storage device deployment change method for storage cluster

Country Status (1)

Country Link
CN (1) CN107566544B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09200247A (en) * 1996-01-17 1997-07-31 Nec Corp Ip address setting method and device therefor
CN1441569A (en) * 2002-02-27 2003-09-10 华为技术有限公司 Concentrated network equipment managing method
CN1505322A (en) * 2002-12-04 2004-06-16 ��Ϊ�������޹�˾ A management method of network device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10587688B2 (en) * 2014-09-19 2020-03-10 Netapp, Inc. Techniques for coordinating parallel performance and cancellation of commands in a storage cluster system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09200247A (en) * 1996-01-17 1997-07-31 Nec Corp Ip address setting method and device therefor
CN1441569A (en) * 2002-02-27 2003-09-10 华为技术有限公司 Concentrated network equipment managing method
CN1505322A (en) * 2002-12-04 2004-06-16 ��Ϊ�������޹�˾ A management method of network device

Also Published As

Publication number Publication date
CN107566544A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
JP2020511083A (en) Service quality control method and device, SMF, UPF, UE, PCF and AN
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN103685496A (en) Transmission method and device of file data
CN103873472A (en) Method for automatically having access to network
CN104184756A (en) Data synchronization method, device and system
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
KR101139836B1 (en) Method and system for two-phase mechanism for discovering web services based management service
EP2704403A1 (en) Method and device for controlling address configuration manner
CN104468368A (en) Method and device for allocating BGP neighbors
CN105450779A (en) Method for achieving connection between one household electric appliance and multiple servers
CN105812406A (en) Information transmission method and device based on WEB simulation terminal system
CN104618522A (en) Automatic updating method for IP address of terminal and Ethernet access device
WO2016070566A1 (en) Cloud terminal upgrade method and system, network management server and proxy server
CN106412146B (en) The method and apparatus that a kind of dhcp client updates IP
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN106657076B (en) TCP service implementation method and device for network name space
CN107370647B (en) Method for interconnecting local area internal controller systems and local area network system
CN108512679B (en) Gateway equipment management method and device
CN107566544B (en) Storage device deployment change method for storage cluster
CN104797004A (en) Method for implementation of automatic networking between master and slave devices
US11128558B2 (en) Automatic routing configuration between hosts and network layer devices
US8560638B2 (en) Systems and methods for changing the address of an interface
CN104780230A (en) Method of automatically acquiring cloud server IP address, system and cloud system
CN106130863A (en) The transfer approach of LAN protocol message, device and system
WO2016177135A1 (en) Resource management method, device, and control terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20200609

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant