CN115623608A - Connection establishing method, system, electronic equipment and computer readable storage medium - Google Patents

Connection establishing method, system, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN115623608A
CN115623608A CN202211293472.1A CN202211293472A CN115623608A CN 115623608 A CN115623608 A CN 115623608A CN 202211293472 A CN202211293472 A CN 202211293472A CN 115623608 A CN115623608 A CN 115623608A
Authority
CN
China
Prior art keywords
connection
establishing
information
storage system
target
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.)
Pending
Application number
CN202211293472.1A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202211293472.1A priority Critical patent/CN115623608A/en
Publication of CN115623608A publication Critical patent/CN115623608A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a connection establishing method, a system, an electronic device and a computer readable storage medium, which relate to the field of storage service, wherein the connection establishing method comprises the following steps: determining a system connected with the self, wherein the system is a storage system or a server system; acquiring connection information corresponding to a system, and sending the connection information to a target connection device, wherein the target connection device is a connection device matched with the target connection device; when the system is a storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device; when the system is a server system, the iSCSI connection is established between the target connection device and the storage system based on the connection information sent by the target connection device. According to the method and the device, the building connection information related to the server system does not need to be manually input into the storage system, the iSCSI connection with the storage system does not need to be manually triggered at the host side, and the iSCSI storage service deployment efficiency is improved.

Description

Connection establishing method, system, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of storage services, and in particular, to a method, a system, an electronic device, and a computer-readable storage medium for establishing a connection.
Background
At present, the connection between the storage system and the server system can be established in two ways, one is automatic connection through FC (Fiber Channel), and the other is indirect connection through iSCSI (internet Small Computer Systems Interface) volume mapping. When the connection is established through the iSCSI volume mapping, connection information such as IQN (iSCSI Qualified Name) and the like needs to be manually input at a storage system end to establish a host, and the connection with the storage system needs to be manually triggered at the host side, so that the deployment efficiency of iSCSI storage service is low.
Therefore, how to provide a solution to the above technical problem is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a connection establishing method, a connection establishing system, electronic equipment and a computer readable storage medium, connection establishing information related to a server system does not need to be manually input into a storage system, iSCSI connection with the storage system does not need to be manually triggered at a host side, and iSCSI storage service deployment efficiency is improved.
In order to solve the above technical problem, the present application provides a connection establishment method, applied to each connection establishment device, where the connection establishment device is connected to a storage system or a server system, and the connection establishment method includes:
determining a system connected with the self, wherein the system is the storage system or the server system;
acquiring connection information corresponding to the system, and sending the connection information to a target connection device, wherein the target connection device is the connection device matched with the target connection device;
when the system is the storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device;
and when the system is the server system, establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device.
Optionally, each of the connection devices is configured with an identification code;
correspondingly, the process of sending the connection establishing information to the target connection establishing device comprises the following steps:
encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to a target connection establishing device;
correspondingly, the process of sending the connection information sent by the target connection device to the storage system includes:
decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to the storage system;
and/or the presence of a gas in the gas,
correspondingly, the process of establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device comprises the following steps;
and decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
Optionally, the identification code is a unique identification code of a storage system corresponding to the connection establishing device.
Optionally, the process of creating a host on the storage system based on the connection information sent by the target connection apparatus includes:
acquiring IQN information of the server system from the connection establishing information sent by the target connection establishing device, and establishing an information list based on the IQN information;
determining target IQN information according to a selection instruction output by a user based on the information list;
creating a host on the storage system based on the target IQN information.
Optionally, the information list further includes an OS version and a HOST name of each of the server systems.
Optionally, the process of establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus includes:
obtaining an authorized host list of a storage system connected with the target connection device from the connection information sent by the target connection device;
judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list;
if yes, establishing iSCSI connection with the storage system.
Optionally, the process of sending the connection establishment information to the target connection establishment apparatus includes:
and sending the connection information to a target broadcast address so as to send the connection information to all connection devices on a network segment corresponding to the target broadcast address.
Optionally, the process of sending the connection information to the target broadcast address includes:
and sending the connection establishing information to a target broadcast address according to a preset period corresponding to the connection establishing information.
Optionally, the process of determining a system connected to the device includes:
sending an identification instruction to the system;
judging whether feedback information returned by the system based on the identification instruction is received;
if so, determining a system connected with the storage system as the storage system;
if not, determining that the system connected with the server system is the server system.
Optionally, the server system is connected with a plurality of the establishing devices.
Optionally, after establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus, the connection establishment method further includes:
judging whether the connection with the storage system is successful or not;
if not, generating prompt information.
Optionally, the process of generating the prompt message includes:
and determining a fault type, and generating prompt information corresponding to the fault type.
In order to solve the above technical problem, the present application further provides a connection establishment system, applied to each connection establishment device, where the connection establishment device is connected to a storage system or a server system, and the connection establishment system includes:
the determining module is used for determining a system connected with the determining module, wherein the system is the storage system or the server system;
the processing module is used for acquiring the connection information corresponding to the system and sending the connection information to a target connection device, wherein the target connection device is the connection device matched with the target connection device;
the host establishing module is used for sending the connection establishing information sent by the target connection establishing device to the storage system when the system is the storage system so as to establish a host on the storage system based on the connection establishing information sent by the target connection establishing device;
and the connection establishing module is used for establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device when the system is the server system.
In order to solve the above technical problem, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the method of establishing a connection as described in any one of the above when executing the computer program.
To solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the connection establishing method as described in any one of the above.
The connection establishing device connected with the storage system directly sends the received connection establishing information related to the server system to the storage system, so that the storage system establishes a host based on the connection establishing information of the server system without manually inputting the connection establishing information related to the server system on the storage system, the connection establishing device connected with the server system can directly establish connection with the storage system through the acquired connection establishing information related to the storage system, the iSCSI connection with the storage system is not triggered manually on the host side, and the deployment efficiency of the iSCSI storage service is improved. The application also provides a connection establishing system, an electronic device and a computer readable storage medium, which have the same beneficial effects as the connection establishing method.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart illustrating steps of a method for establishing a connection according to the present application;
fig. 2 is a schematic connection diagram of a connection device provided in the present application;
FIG. 3 is a schematic connection diagram of another building apparatus provided in the present application;
fig. 4 is a schematic structural diagram of a connection establishment system provided in the present application.
Detailed Description
The core of the application is to provide a connection establishing method, a system, electronic equipment and a computer readable storage medium, which do not need to manually input connection establishing information related to a server system on a storage system, do not need to manually trigger iSCSI connection with the storage system on a host side, and improve the deployment efficiency of iSCSI storage service.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a connection establishment method applied to each connection establishment apparatus, where the connection establishment apparatus is connected to a storage system or a server system, and the connection establishment method includes:
s101: determining a system connected with the self, wherein the system is a storage system or a server system;
specifically, each connection device is connected to the storage system or the server system through a Universal Serial Bus (USB), which is convenient to detach. And the connection establishing devices used in a matched mode mutually transmit information through a wireless channel to complete information interaction, so that the related information sharing of the iSCSI of the storage system and the server system is realized. Specifically, the building device can realize data communication through the 2.4G wireless communication module, and the transmission distance can meet the use requirements of most laboratory environments.
Specifically, after each connection device is connected to a storage system or a server system, it is first determined whether the connection device is connected to the storage system or the server system, so as to implement different operations according to the connection device.
As an alternative embodiment, the process of determining a system connected to itself includes:
sending an identification instruction to a system;
judging whether feedback information returned by the system based on the identification instruction is received;
if so, determining a system connected with the self as a storage system;
if not, determining that the system connected with the self is the server system.
Specifically, after the connection device is connected with the system through the USB, a specific identification instruction is output to the system, the storage system sends feedback information to the connection device connected with the storage system after receiving the identification instruction, and the server system does not respond to the identification instruction, so that the connection device can determine the system connected with the connection device according to whether the feedback information returned by the system based on the identification instruction is received, if the feedback information is received, the system connected with the connection device is the storage system, and if not, the system is the server system.
S102: acquiring connection information corresponding to a system, and sending the connection information to a target connection device, wherein the target connection device is a connection device matched with the target connection device;
specifically, if the system connected to the device is a storage system, the connection information queried by the connection establishing device includes, but is not limited to, the configuration conditions of the ethernet interface authorized for access by the storage system, including an IP address, a subnet mask, and the like, and the configuration conditions of the iSCSI storage system, including IQN information, an open connection port number, a configured host list, and the like; if the system connected with the device is a server system, the connection information queried by the connection device includes, but is not limited to, the configuration condition of the ethernet interface of the server system, including an IP address, a subnet mask, and the like, whether the server system configures an iSCSI-related software package, the IQN information of an Initiator, the OS version (operating system version) of the server system, the HOST name (HOST name), and the like.
Specifically, the connection device sends the connection information to the connection device paired with the connection device after acquiring the connection information corresponding to the system. Referring to fig. 2, a connection establishing device a is connected to a Storage system (iSCSI Storage), a connection establishing device B is connected to a first Server system (iSCSI Server 1), a connection establishing device C is connected to a second Server system (iSCSI Server 2), a connection establishing device D is connected to a third Server system (iSCSI Server 3), and any two connection establishing devices can perform data interaction through a wireless network.
If the connection device A and the connection device B are paired for use, after the connection device A acquires connection information of a Storage system (iSCSI Storage), the connection device A sends the connection information of the Storage system to the connection device B through a wireless network, and correspondingly, after the connection device B acquires the connection information of a first Server system (iSCSI Server 1), the connection device B sends the connection information of the first Server system to the connection device A through the wireless network.
It can be understood that when the connection device connects to different systems, the connection device performs different operations on the connection information received by the connection device and transmitted by the connection device paired with the connection device. Still taking the pairing use of the connection device a and the connection device B as an example, the operation of S103 is executed after the connection device a receives the connection information of the server system transmitted by the connection device B, and the operation of S104 is executed after the connection device B receives the connection information of the storage system transmitted by the connection device a.
S103: when the system is a storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device;
specifically, for the connection device a, it receives the connection information related to the server system sent by the connection device B connected to the server system, and the connection device a sends the connection information related to the server system to the storage system, so as to create a host on the storage system directly based on the obtained connection information related to the server system, and update the information of the host list configured by itself. It can be understood that, the storage system in the present application may directly obtain the connection information of the server system, such as the IQN information, through the information sharing of the connection establishing device B and the connection establishing device a, and when the host is created, the IQN information of the server system does not need to be manually input on the storage system, thereby improving the connection efficiency.
S104: when the system is a server system, the iSCSI connection is established between the target connection device and the storage system based on the connection information sent by the target connection device.
Specifically, for the connection device B, the connection information related to the storage system, which is sent by the connection device a connected to the storage system, is received, and the connection device B directly establishes an iSCSI connection with the storage system based on the received connection information related to the storage system, so that the iSCSI connection with the storage system does not need to be manually triggered on the host side, and the iSCSI storage service deployment efficiency is improved.
Furthermore, when the iSCSI connection between the server system and the storage system is successfully established, the corresponding connection device may be removed, so as to facilitate connection establishment of other storage systems.
It can be seen that, in this embodiment, a connection device is used to implement sharing of iSCSI-related connection information between a storage system and a server system, after obtaining the connection information of the server system, the connection device connected to the server system sends the connection information to a target connection device paired with the connection device and connected to the storage system, and the connection device connected to the storage system directly sends the received connection information related to the server system to the storage system, so that the storage system creates a host based on the connection information of the server system, without manually inputting the connection information related to the server system on the storage system, and the connection device connected to the server system can directly establish connection with the storage system through the connection information related to the storage system obtained by the connection device itself, without manually triggering iSCSI connection with the storage system on the host side, thereby improving iSCSI storage service deployment efficiency.
On the basis of the above-described embodiment:
as an alternative embodiment, each connection device is configured with an identification code;
correspondingly, the process of sending the connection establishing information to the target connection establishing device comprises the following steps:
encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to the target connection establishing device;
correspondingly, the process of sending the connection establishing information sent by the target connection establishing device to the storage system comprises the following steps:
decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to a storage system;
and/or the presence of a gas in the gas,
correspondingly, the process of establishing the iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device comprises the following steps;
and decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
Specifically, in order to improve the security of data transmission, the present embodiment further sets an identification code for each connection device, and it can be understood that the server system is paired with a connection device of a certain storage system through one connection device, and when the server system needs to be paired with a plurality of storage systems, a plurality of connection devices need to be connected to the server system. On this basis, as an optional embodiment, the identification code is the unique identification code SN of the storage system corresponding to the connection device, the identification code of the connection device connected to the storage system is the unique identification code SN of the storage system connected to the connection device, and the identification code of the connection device connected to the server system is the unique identification code SN of the storage system connected to the connection device paired with the connection device.
For example, as shown in fig. 3, it is assumed that a connection establishing device Q is connected to a first Storage system (iSCSI Storage 1), a connection establishing device W is connected to a second Storage system (iSCSI Storage 2), and both the connection establishing device E and the connection establishing device R are connected to a Server system (iSCSI Server), where the connection establishing device E is paired with the connection establishing device Q, the connection establishing device R is paired with the connection establishing device W, an identification code of the connection establishing device Q is a unique identification code SN1 of the first Storage system, an identification code of the connection establishing device W is a unique identification code SN2 of the second Storage system, an identification code of the connection establishing device E is a unique identification code SN1 of the first Storage system, and an identification code of the connection establishing device R is a unique identification code SN2 of the second Storage system.
Specifically, the connection establishing device Q encrypts the acquired connection establishing information of the first storage system through the SN1 to obtain an encrypted message, and sends the encrypted message to the connection establishing device E, the connection establishing device E decrypts the message through the SN1 after receiving the message, the successful decryption indicates that the received message is sent by the connection establishing device Q paired with the connection establishing device E, then, based on the decrypted connection establishing information, a subsequent corresponding operation is performed, an iSCSI connection with the first storage system is attempted to be established, and if the decryption fails, it indicates that the received message is not sent by the connection establishing device paired with the connection establishing device E, the subsequent processing is not performed.
As an alternative embodiment, the process of creating the host on the storage system based on the connection information sent by the target connection device includes:
acquiring IQN information of a server system from the connection information sent by a target connection device, and creating an information list based on the IQN information;
determining target IQN information according to a selection instruction output by a user based on the information list;
a host is created on the storage system based on the target IQN information.
Specifically, still referring to fig. 2, it is assumed that the connection establishing device a is respectively paired with a connection establishing device B, a connection establishing device C, and a connection establishing device D, the connection establishing device B includes IQN information IQN 1 of a first server system in connection information sent to the connection establishing device a, the connection establishing device C includes IQN information IQN 2 of a second server system in connection information sent to the connection establishing device a, the connection establishing device D includes IQN information IQN 3 of a third server system in connection information sent to the connection establishing device a, the storage system realizes active acquisition of iSCSI Initiator IQN information by reading relevant connection establishing information of server systems received by the connection establishing device, then generates an information list based on the acquired IQN information of each server system, the information list includes IQN information of each server system, and the information list can be provided to an administrator in a pull-down list when the host is created, so that the administrator selects one IQN information in the list, completes filling in information, and a specific management can click an instruction of the administrator in information in list, namely, the administrator selects and updates the host based on a configuration instruction of the information in the host, and the host. For example, assuming the administrator chooses to establish a host based on IQN 2, the relevant information of the second server system is added to the host list of the storage system.
As an alternative embodiment, the OS version and HOST name of each server system are also included in the information list for the administrator to differentiate the selections.
As an alternative embodiment, the process of establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus includes:
acquiring an authorized host list of a storage system connected with a target connection device from connection information sent by the target connection device;
judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list;
if yes, establishing iSCSI connection with the storage system.
Specifically, referring to fig. 2, it is assumed that the connection device a and the connection device B are paired for use, and after receiving the relevant connection information of the storage system sent by the connection device a, the connection device B determines whether local information, that is, information of the server system connected to itself, is configured in the configured host list in the connection information, and if the local information is configured, tries to establish an iSCSI connection with the storage system.
As an alternative embodiment, the process of sending the connection information to the target connection apparatus includes:
and sending the connection information to the target broadcast address so as to send the connection information to all connection devices on the network segment corresponding to the target broadcast address.
As an alternative embodiment, the process of sending the connection information to the target broadcast address includes:
and sending the connection establishing information to the target broadcast address according to a corresponding preset period.
Specifically, in this embodiment, each connection device encrypts the acquired connection information with the identification code and sends the encrypted connection information to the target broadcast address, and then the connection information is sent to all connection devices in the network segment corresponding to the target broadcast address, thereby improving efficiency.
Specifically, each connection device may collect and send connection information according to a corresponding preset period, and the preset periods corresponding to the connection devices may be the same or different, and this embodiment is not specifically limited herein.
As an optional embodiment, after establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus, the connection establishment method further includes:
judging whether the connection with the storage system is successful or not;
if not, generating prompt information.
As an alternative embodiment, the process of generating the prompt message includes:
and determining the fault type and generating prompt information corresponding to the fault type.
Specifically, when trying to establish an iSCSI connection with a storage system, a connection establishment device connected to a server system may remind, through an indicator light, that a problem occurs during the period, and may also perform some fault diagnosis, determine a fault type causing the connection problem, where the fault type includes, but is not limited to, that the storage system is not configured with a host, that an iSCSI software package is not installed, that the storage system is not connected to a network, that a problem occurs during the establishment process, and generate a prompt message corresponding to the fault type.
In summary, by adopting the scheme of the application, the automatic discovery and connection establishment of the iSCSI storage system and the server system is realized, the storage system does not need to manually input IQN information when establishing the iSCSI host, the information sharing between the host and the storage system is realized through the connection establishment device, the host does not need to manually execute an iSCSI connection establishment command, the connection is completed through the automatic trigger command of the establishment device, and meanwhile, the connection establishment device can actively diagnose the problems encountered in the iSCSI connection establishment process, including software package configuration, authorization, IP network connection failure and the like, and the connection establishment problem is prompted through the state of the indicator light.
On the other hand, referring to fig. 4, fig. 4 is a schematic structural diagram of a connection establishment system provided in the present application, applied to each connection establishment device, where the connection establishment device is connected to a storage system or a server system, and the connection establishment system includes:
the system comprises a determining module 1, a judging module and a judging module, wherein the determining module is used for determining a system connected with the determining module, and the system is a storage system or a server system;
the processing module 2 is used for acquiring the connection information corresponding to the system and sending the connection information to the target connection device, and the target connection device is a connection device matched with the target connection device;
the host establishing module 3 is used for sending the connection establishing information sent by the target connection establishing device to the storage system when the system is a storage system so as to establish a host on the storage system based on the connection establishing information sent by the target connection establishing device;
and a connection establishing module 4, when the system is a server system, establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device.
It can be seen that, in this embodiment, the sharing of the iSCSI-related connection information between the storage system and the server system is achieved by using the connection establishing device, after the connection establishing device connected to the server system obtains the connection establishing information of the server system, the connection establishing device sends the connection establishing information to the target connection establishing device paired with the connection establishing device and connected to the storage system, and the connection establishing device connected to the storage system directly sends the received connection establishing information related to the server system to the storage system, so that the storage system establishes the host based on the connection establishing information of the server system, and the connection establishing device connected to the server system can directly establish connection with the storage system through the obtained connection establishing information related to the storage system without manually inputting the connection establishing information related to the server system on the storage system, and the iSCSI connection with the storage system does not need to be manually triggered on the host side, thereby improving the deployment efficiency of the iSCSI storage service.
As an alternative embodiment, each connection device is configured with an identification code;
correspondingly, the process of sending the connection establishing information to the target connection establishing device comprises the following steps:
encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to the target connection establishing device;
correspondingly, the process of sending the connection establishing information sent by the target connection establishing device to the storage system comprises the following steps:
decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to a storage system;
and/or the presence of a gas in the gas,
correspondingly, the process of establishing the iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device comprises the following steps;
and decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
As an alternative embodiment, the identification code is a unique identification code of the storage system corresponding to the connection establishing device.
As an alternative embodiment, the process of creating the host on the storage system based on the connection information sent by the target connection device includes:
acquiring IQN information of a server system from the connection information sent by a target connection device, and creating an information list based on the IQN information;
determining target IQN information according to a selection instruction output by a user based on the information list;
a host is created on the storage system based on the target IQN information.
As an alternative embodiment, the OS version and HOST name of each server system are also included in the information list.
As an alternative embodiment, the process of establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus includes:
acquiring an authorized host list of a storage system connected with a target connection device from connection information sent by the target connection device;
judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list;
if yes, establishing iSCSI connection with the storage system.
As an alternative embodiment, the process of sending the connection information to the target connection apparatus includes:
and sending the connection information to the target broadcast address so as to send the connection information to all connection devices on the network segment corresponding to the target broadcast address.
As an alternative embodiment, the process of sending the connection information to the target broadcast address includes:
and sending the connection establishing information to the target broadcast address according to a corresponding preset period.
As an alternative embodiment, the process of determining the system connected to itself includes:
sending an identification instruction to a system;
judging whether feedback information returned by the system based on the identification instruction is received;
if yes, determining a system connected with the self as a storage system;
if not, determining that the system connected with the self is the server system.
As an alternative embodiment, a plurality of connection devices are connected to the server system.
As an optional embodiment, after establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus, the connection establishment system further includes:
and the monitoring module is used for judging whether the storage system is successfully connected with the monitoring module, and if not, generating prompt information.
As an alternative embodiment, the process of generating the prompt message includes:
and determining the fault type and generating prompt information corresponding to the fault type.
In another aspect, the present application further provides an electronic device, including:
a memory for storing a computer program;
a processor for implementing the steps of the method for establishing a connection as described in any of the above embodiments when executing the computer program.
Specifically, the memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer readable instructions, and the internal memory provides an environment for the operating system and the computer readable instructions in the non-volatile storage medium to run. When the processor executes the computer program stored in the memory, the following steps can be realized: determining a system connected with the self, wherein the system is a storage system or a server system; acquiring connection information corresponding to a system, and sending the connection information to a target connection establishing device, wherein the target connection establishing device is a connection establishing device matched with the target connection establishing device; when the system is a storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device; when the system is a server system, the iSCSI connection is established with the storage system based on the connection establishing information sent by the target connection establishing device.
It can be seen that, in this embodiment, a connection device is used to implement sharing of iSCSI-related connection information between a storage system and a server system, after obtaining the connection information of the server system, the connection device connected to the server system sends the connection information to a target connection device paired with the connection device and connected to the storage system, and the connection device connected to the storage system directly sends the received connection information related to the server system to the storage system, so that the storage system creates a host based on the connection information of the server system, without manually inputting the connection information related to the server system on the storage system, and the connection device connected to the server system can directly establish connection with the storage system through the connection information related to the storage system obtained by the connection device itself, without manually triggering iSCSI connection with the storage system on the host side, thereby improving iSCSI storage service deployment efficiency.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: configuring an identification code for each connection establishing device; encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to the target connection establishing device; decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to a storage system; and/or decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: configuring an identification code for each connection establishing device; the identification code is a unique identification code of the storage system corresponding to the connection establishing device.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: acquiring IQN information of a server system from the connection information sent by a target connection device, and creating an information list based on the IQN information; determining target IQN information according to a selection instruction output by a user based on the information list; a host is created on the storage system based on the target IQN information.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: acquiring IQN information of a server system from connection information sent by a target connection device, and creating an information list based on the IQN information; the OS version and HOST name for each server system are also included in the information list.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: obtaining an authorized host list of a storage system connected with a target connection device from connection information sent by the target connection device; judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list; if yes, establishing iSCSI connection with the storage system.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: and sending the connection information to the target broadcast address so as to send the connection information to all connection devices on the network segment corresponding to the target broadcast address.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: and sending the connection establishing information to the target broadcast address according to a corresponding preset period.
As an alternative embodiment, the processor, when executing the computer subroutine stored in the memory, may perform the following steps: sending an identification instruction to a system; judging whether feedback information returned by the system based on the identification instruction is received; if yes, determining a system connected with the self as a storage system; if not, determining that the system connected with the self is the server system.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: judging whether the connection with the storage system is successful or not; if not, generating prompt information.
As an alternative embodiment, when the processor executes the computer subprogram stored in the memory, the following steps may be implemented: and determining the fault type and generating prompt information corresponding to the fault type.
On the basis of the above embodiment, as a preferred embodiment, the electronic device further includes:
and the input interface is connected with the processor and used for acquiring computer programs, parameters and instructions imported from the outside and storing the computer programs, the parameters and the instructions into the memory under the control of the processor. The input interface may be coupled to an input device for receiving parameters or instructions manually entered by a user. The input device can be a touch layer covered on a display screen, and can also be a key, a track ball or a touch pad arranged on a terminal shell.
And the display unit is connected with the processor and is used for displaying the data sent by the processor. The display unit may be a liquid crystal display or an electronic ink display, etc.
And the network port is connected with the processor and is used for carrying out communication connection with each external terminal device. The communication technology adopted by the communication connection may be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
In another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for establishing a connection as described in any one of the above embodiments.
Specifically, the computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. The storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: determining a system connected with the self, wherein the system is a storage system or a server system; acquiring connection information corresponding to a system, and sending the connection information to a target connection device, wherein the target connection device is a connection device matched with the target connection device; when the system is a storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device; when the system is a server system, the iSCSI connection is established with the storage system based on the connection establishing information sent by the target connection establishing device.
It can be seen that, in this embodiment, a connection device is used to implement sharing of iSCSI-related connection information between a storage system and a server system, after obtaining the connection information of the server system, the connection device connected to the server system sends the connection information to a target connection device paired with the connection device and connected to the storage system, and the connection device connected to the storage system directly sends the received connection information related to the server system to the storage system, so that the storage system creates a host based on the connection information of the server system, without manually inputting the connection information related to the server system on the storage system, and the connection device connected to the server system can directly establish connection with the storage system through the connection information related to the storage system obtained by the connection device itself, without manually triggering iSCSI connection with the storage system on the host side, thereby improving iSCSI storage service deployment efficiency.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: configuring an identification code for each connection establishing device; encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to the target connection establishing device; decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to a storage system; and/or decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the steps of: configuring an identification code for each connection establishing device; the identification code is a unique identification code of the storage system corresponding to the connection device.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the steps of: acquiring IQN information of a server system from the connection information sent by a target connection device, and creating an information list based on the IQN information; determining target IQN information according to a selection instruction output by a user based on the information list; a host is created on the storage system based on the target IQN information.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: acquiring IQN information of a server system from the connection information sent by a target connection device, and creating an information list based on the IQN information; the OS version and HOST name for each server system are also included in the information list.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: obtaining an authorized host list of a storage system connected with a target connection device from connection information sent by the target connection device; judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list; if yes, establishing iSCSI connection with the storage system.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: and sending the connection information to the target broadcast address so as to send the connection information to all connection devices on the network segment corresponding to the target broadcast address.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: and sending the connection establishing information to the target broadcast address according to a corresponding preset period.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the steps of: sending an identification instruction to a system; judging whether feedback information returned by the system based on the identification instruction is received; if so, determining a system connected with the self as a storage system; if not, determining that the system connected with the self is the server system.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the steps of: judging whether the connection with the storage system is successful or not; if not, generating prompt information.
As an alternative embodiment, when executed by a processor, a computer subroutine stored in a computer readable storage medium may specifically implement the following steps: and determining the fault type and generating prompt information corresponding to the fault type.
It is further noted that, in the present specification, relational terms such as first and second, and the like are 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (15)

1. A connection establishing method is applied to each connection establishing device, the connection establishing device is connected with a storage system or a server system, and the connection establishing method comprises the following steps:
determining a system connected with the self, wherein the system is the storage system or the server system;
acquiring connection information corresponding to the system, and sending the connection information to a target connection device, wherein the target connection device is the connection device matched with the target connection device;
when the system is the storage system, sending the connection information sent by the target connection device to the storage system so as to create a host on the storage system based on the connection information sent by the target connection device;
and when the system is the server system, establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device.
2. The method according to claim 1, wherein each of the connection establishing devices is configured with an identification code;
correspondingly, the process of sending the connection establishing information to the target connection establishing device comprises the following steps:
encrypting the connection establishing information through the identification code and then sending the encrypted connection establishing information to a target connection establishing device;
correspondingly, the process of sending the connection information sent by the target connection device to the storage system includes:
decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and sending the successfully decrypted connection establishing information to the storage system;
and/or the presence of a gas in the gas,
correspondingly, the process of establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device comprises the following steps;
and decrypting the connection establishing information sent by the target connection establishing device based on the identification code, and establishing iSCSI connection with the storage system through the successfully decrypted connection establishing information.
3. The method according to claim 2, wherein the identification code is a unique identification code of a storage system corresponding to the connection establishing device.
4. The method according to claim 1, wherein the step of creating the host on the storage system based on the connection information sent by the target connection device comprises:
acquiring IQN information of the server system from the connection information sent by the target connection device, and creating an information list based on the IQN information;
determining target IQN information according to a selection instruction output by a user based on the information list;
creating a host on the storage system based on the target IQN information.
5. The method according to claim 4, wherein the information list further comprises OS version and HOST name of each server system.
6. The method for establishing a connection according to claim 1, wherein the step of establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus comprises:
obtaining an authorized host list of a storage system connected with the target connection device from the connection information sent by the target connection device;
judging whether the authorized host list comprises information corresponding to a server system connected with the authorized host list;
and if so, establishing iSCSI connection with the storage system.
7. The method according to claim 1, wherein the step of sending the connection establishment information to the target connection establishment apparatus comprises:
and sending the connection information to a target broadcast address so as to send the connection information to all connection devices on a network segment corresponding to the target broadcast address.
8. The method according to claim 7, wherein the step of sending the connection establishment message to the target broadcast address comprises:
and sending the connection establishing information to a target broadcast address according to a preset period corresponding to the connection establishing information.
9. The method according to claim 1, wherein the step of determining the system connected to the mobile terminal comprises:
sending an identification instruction to the system;
judging whether feedback information returned by the system based on the identification instruction is received;
if so, determining a system connected with the storage system as the storage system;
if not, determining that the system connected with the server system is the server system.
10. The method according to claim 1, wherein a plurality of the connection establishment apparatuses are connected to the server system.
11. The method for establishing connection according to any one of claims 1 to 10, wherein after establishing an iSCSI connection with the storage system based on the connection establishment information sent by the target connection establishment apparatus, the method further comprises:
judging whether the connection with the storage system is successful or not;
if not, generating prompt information.
12. The method according to claim 11, wherein the step of generating the prompt message comprises:
and determining a fault type, and generating prompt information corresponding to the fault type.
13. A connection establishing system applied to each connection establishing apparatus connected to a storage system or connected to a server system, the connection establishing system comprising:
the determining module is used for determining a system connected with the determining module, wherein the system is the storage system or the server system;
the processing module is used for acquiring the connection information corresponding to the system and sending the connection information to a target connection device, wherein the target connection device is the connection device matched with the target connection device;
the host establishing module is used for sending the connection establishing information sent by the target connection establishing device to the storage system when the system is the storage system so as to establish a host on the storage system based on the connection establishing information sent by the target connection establishing device;
and the connection establishing module is used for establishing iSCSI connection with the storage system based on the connection establishing information sent by the target connection establishing device when the system is the server system.
14. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of establishing a connection according to any one of claims 1 to 12 when executing said computer program.
15. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method for establishing a connection as claimed in any one of the claims 1 to 12.
CN202211293472.1A 2022-10-21 2022-10-21 Connection establishing method, system, electronic equipment and computer readable storage medium Pending CN115623608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211293472.1A CN115623608A (en) 2022-10-21 2022-10-21 Connection establishing method, system, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211293472.1A CN115623608A (en) 2022-10-21 2022-10-21 Connection establishing method, system, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115623608A true CN115623608A (en) 2023-01-17

Family

ID=84864274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211293472.1A Pending CN115623608A (en) 2022-10-21 2022-10-21 Connection establishing method, system, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115623608A (en)

Similar Documents

Publication Publication Date Title
CN108512870B (en) Method for accessing Internet of things platform, Internet of things platform and Internet of things equipment
US20220239524A1 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
US20180367539A1 (en) Method for Accessing Network by Internet of Things Device, Apparatus, and System
CN102255887B (en) Method and system for providing online services corresponding to multiple mobile devices
JP2017224047A (en) Software update device and software update system
CN111246539A (en) Networking binding method of intelligent household appliance, intelligent household appliance and user terminal
JP6447297B2 (en) Communication method, information processing apparatus, and program
CN107567017B (en) Wireless connection system, device and method
CN107948170B (en) Interface request parameter encryption method, device, equipment and readable storage medium
CN112566113B (en) Key generation and terminal network distribution method, device and equipment
US20170102934A1 (en) Device Management Session Triggering Method, Device, System and Computer Storage Medium
CN109327823B (en) Networking method, device and system, ZigBee equipment and storage medium
CN103605551A (en) Plugin updating method, system and relevant equipment based on IOS program
CN111787540A (en) Method and device for accessing Internet of things, electronic equipment and readable storage medium
CN112020120A (en) Network configuration method, device, equipment and system
JP7459663B2 (en) Computer programs and communication devices for terminal devices
CN114760112B (en) Wireless local area network-oriented intelligent home equipment networking method, system, equipment and storage medium
WO2023001082A1 (en) Network configuration method and apparatus
KR20120140043A (en) A set-top box and method for diagnostic of the same
EP2854027B1 (en) Method for downloading application program, user equipment and application server
CN116668557B (en) Data transmission method, system, electronic equipment and readable storage medium
CN108702315B (en) Establishing a connection between two local devices connected to different networks
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
CN115623608A (en) Connection establishing method, system, electronic equipment and computer readable storage medium
KR20150072240A (en) Electric product and method for updating firmware of the same

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