CN111193677B - Method, device and medium for attributing FC (fiber channel) port of host to corresponding host - Google Patents

Method, device and medium for attributing FC (fiber channel) port of host to corresponding host Download PDF

Info

Publication number
CN111193677B
CN111193677B CN201911297751.3A CN201911297751A CN111193677B CN 111193677 B CN111193677 B CN 111193677B CN 201911297751 A CN201911297751 A CN 201911297751A CN 111193677 B CN111193677 B CN 111193677B
Authority
CN
China
Prior art keywords
port
host
storage
fiber channel
information
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
CN201911297751.3A
Other languages
Chinese (zh)
Other versions
CN111193677A (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 CN201911297751.3A priority Critical patent/CN111193677B/en
Publication of CN111193677A publication Critical patent/CN111193677A/en
Application granted granted Critical
Publication of CN111193677B publication Critical patent/CN111193677B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/35Switches specially adapted for specific applications
    • H04L49/356Switches specially adapted for specific applications for storage area networks
    • H04L49/357Fibre channel switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/253Routing or path finding in a switch fabric using establishment or release of connections between ports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, a device and a storage medium for attributing a host FC port to a corresponding host, wherein the method comprises the following steps: the host end creates a host unique identifier of a host FC port and writes the host unique identifier into port information of the host FC port; in response to monitoring that the state of the FC port is firstly changed into online and/or host port information refreshing time is triggered, the storage end constructs a port request message and sends the port request message to all the FC ports of the host; in response to receiving port information returned by a host FC port, a storage end judges whether a processing mark exists in the port information; and in response to the absence of the processing flag, the storage base attributing the host FC port to the corresponding host based on the host unique identifier and writing the processing flag in the port information corresponding to the host FC port. The method, the equipment and the medium for attributing the FC port of the host to the corresponding host can quickly finish the identification of the attribution information of the FC port of the host through the unique identifier of the host.

Description

Method, device and medium for attributing FC (fiber channel) port of host to corresponding host
Technical Field
The present invention relates to the field of port identification, and more particularly, to a method, an apparatus, and a readable medium for attributing a host FC port to a corresponding host.
Background
In an FC (fibre channel) SAN (Storage area network) scenario, in order to ensure reliability of a service, multiple FC ports may be configured on the same host, so as to avoid an influence on the service due to a single point of failure. However, the FC network protocol can only recognize the connectivity between ports, and cannot determine whether some ports belong to the same host. When a storage terminal maps a volume to a host, access control is usually performed according to an FC port number of the host terminal, and at this time, an administrator needs to log in the host by himself to find all FC port numbers on the host, and access control is performed on the volume mapping at the storage terminal according to the port numbers. This approach is inefficient, and cannot be applied when the number of FC ports of the host is very large, and cannot meet the requirement of rapid expansion of the current data center traffic.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a medium for attributing a host FC port to a corresponding host, where port information of the host FC port and a host unique identifier are broadcasted in an FC SAN, and a storage service attributing the FC port to the corresponding host information according to host identifier information carried in received information, so as to improve processing efficiency, and since all information is transmitted through an FC SAN network, system security can also be improved.
Based on the above object, an aspect of the embodiments of the present invention provides a method for attributing a host FC port to a corresponding host, including the following steps: a host end creates a host unique identifier of a host FC port and writes the host unique identifier into port information of the host FC port; in response to monitoring that the state of a storage FC port is firstly changed into online and/or host port information refreshing time is triggered, a storage end constructs a port request message and sends the port request message to all the host FC ports; in response to receiving port information returned by the FC port of the host, the storage end judges whether a processing mark exists in the port information or not; and in response to the absence of the processing mark, the storage end attributing the host FC port to the corresponding host based on the host unique identifier and writing the processing mark in the port information corresponding to the host FC port.
In some embodiments, further comprising: and creating a storage unique identifier of the storage FC port and writing the storage unique identifier into a port request message of the storage FC port.
In some embodiments, further comprising: in response to the port request message, the FC port of the host judges whether other FC ports receive the same port request message or not according to the port information; and triggering the port information broadcast operation in response to the condition that no other host FC port receives the same port request message.
In some embodiments, further comprising: monitoring the states of all host FC ports, responding to the situation that the host FC ports are changed into an online state for the first time, and carrying out port information broadcasting by the host FC ports.
In some embodiments, the determining, by the storage side, whether a processing flag exists in the port information in response to receiving the port information returned by the host FC port includes: and the storage end judges whether the received port information returned by the FC port of the host is in the valid time.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: a host end creates a host unique identifier of a host FC port and writes the host unique identifier into port information of the host FC port; in response to monitoring that the state of a storage FC port is firstly changed into online and/or host port information refreshing time is triggered, a storage end constructs a port request message and sends the port request message to all the host FC ports; in response to receiving port information returned by the FC port of the host, the storage end judges whether a processing mark exists in the port information or not; and in response to the absence of the processing mark, the storage end attributing the host FC port to the corresponding host based on the host unique identifier and writing the processing mark in the port information corresponding to the host FC port.
In some embodiments, the steps further comprise: and creating a storage unique identifier of the storage FC port and writing the storage unique identifier into a port request message of the storage FC port.
In some embodiments, the steps further comprise: in response to the port request message, the FC port of the host judges whether other FC ports receive the same port request message or not according to the port information; and triggering the port information broadcast operation in response to the condition that no other host FC port receives the same port request message.
In some embodiments, the steps further comprise: monitoring the states of all host FC ports, responding to the situation that the host FC ports are changed into an online state for the first time, and carrying out port information broadcasting by the host FC ports.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the port information of the FC port of the host and the unique host identifier are broadcasted in the FC SAN, and the storage end service attributes the FC port to the corresponding host information according to the host identifier information carried in the received information, so that the processing efficiency is improved, and the system safety can be improved because all information is transmitted through the FC SAN network.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of a method for attributing a FC port of a host to a corresponding host according to the present invention;
fig. 2 is a schematic diagram of a hardware structure of an embodiment of a method for attributing a host FC port to a corresponding host according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of the embodiments of the present invention proposes an embodiment of a method for attributing a host FC port to a corresponding host. Fig. 1 is a schematic diagram illustrating an embodiment of a method for attributing a host FC port to a corresponding host according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, the host end creates a host unique identifier of the FC port and writes the host unique identifier into port information of the FC port;
s2, in response to the monitoring that the state of the FC port is changed to online for the first time and/or the host port information refreshing time is triggered, the storage end constructs a port request message and sends the port request message to all the FC ports of the host;
s3, in response to receiving port information returned by the FC port of the host, the storage end judges whether a processing mark exists in the port information; and
s4, in response to the absence of the processing mark, the storage end attributing the host FC port to the corresponding host based on the host unique identification and writing the processing mark in the port information corresponding to the host FC port.
According to FC protocol specification, defining protocol extension field for associating FC port and host identification as port information for transmission; and defining a port request message for requesting to acquire port information. When the host service is started, host identification ID information is generated and used for uniquely identifying the host in a global scope; in the operation process, monitoring information of each FC port, capturing a port request message, and broadcasting the port information through an FC SAN network; and when the FC port state is found to be changed to the available state for the first time, port information broadcasting is carried out in the FC SAN network through the port. After the storage service is started, monitoring each FC port, and broadcasting a port request message in an FC SAN network through a corresponding FC port according to a request of an upper layer service; and after receiving port information returned by the host, carrying out aggregation processing on each FC port according to the FC port number and the host identifier in the port information.
And creating a host unique identifier of the host FC port and writing the host unique identifier into the port information of the host FC port. The relation between a specific host FC port and the host is determined by defining port information, and after the port information is broadcasted to the storage service, the storage service carries out analysis processing. Globally Unique storage identification information may be generated according to an algorithm, such as UUID (Universally Unique Identifier). The port information mainly includes the following contents: field one and host unique identification; field two, FC port attribute information; and field three, host operating system identification information.
And in response to monitoring that the state of the storage FC port is firstly changed to be online and/or the host port information refreshing time is triggered, constructing a port request message and sending the port request message to all host FC ports. Monitoring the state of the storage FC port, constructing a port request message when the state of the storage FC port is changed into an online state for the first time, and broadcasting the message through the storage FC port. Or when receiving the refreshing time of the storage system triggering host FC port attribution information, constructing a port request message and broadcasting the message through all the storage FC ports.
In some embodiments, further comprising: and creating a storage unique identifier of the storage FC port and writing the storage unique identifier into a port request message of the storage FC port. By defining a port request message, the host service is triggered to feed back port information by the storage service through the message. The port request message mainly contains the following contents: field one, the unique identifier of the port request message; and a second field stores the unique identification.
In some embodiments, further comprising: monitoring the states of all host FC ports, responding to the situation that the host FC ports are changed into an online state for the first time, and carrying out port information broadcasting by the host FC ports. Monitoring the state of each FC port, triggering the port information broadcast operation when the state of the FC port of the host is changed into an online state for the first time, and appointing the FC port of the host to broadcast.
In some embodiments, further comprising: in response to the port request message, the FC port of the host judges whether other FC ports receive the same port request message or not according to the port information; and triggering the port information broadcast operation in response to the condition that no other host FC port receives the same port request message. Monitoring a host FC port event message, after acquiring a port request message, judging whether the same message is received at other host FC ports according to identification information of port information, and if the same message is received and the broadcast operation of the port information is triggered, ignoring the request message; and if the port information broadcasting operation is not triggered, triggering the port information broadcasting operation and recording. And after the service triggers the port information broadcasting operation, according to each host FC port on the host, and according to the triggering request, carrying out message broadcasting through the corresponding or all FC ports.
And judging whether a processing mark exists in the port information or not in response to receiving the port information returned by the FC port of the host. In response to the absence of the processing flag, attributing the host FC port to the corresponding host based on the host unique identifier and writing the processing flag in port information corresponding to the host FC port. In some embodiments, the determining, by the storage side, whether a processing flag exists in the port information in response to receiving the port information returned by the host FC port includes: and the storage end judges whether the received port information returned by the FC port of the host is in the valid time. Monitoring and storing FC port event information, after receiving port information sent by a host service, judging whether the information is processed in an effective event according to a host identifier contained in the information, if so, ignoring the received information, if not, processing the port information, and attributing the port to a corresponding host.
The invention continuously monitors the state change of the FC port on the host and the control management information received by the FC port through the host side service, constructs the port information after the port is activated or receives the port request message, and broadcasts through the corresponding FC port of the host side. The method comprises the steps of continuously monitoring state change information of FC ports on storage and received control management information through a storage service, broadcasting through FC ports corresponding to storage ends according to the requirements of upper-layer services, requesting to acquire port information of a host, and aggregating FC ports on the same host according to host identifiers in the port information after the port information returned by the host service is received.
It should be particularly noted that, the steps in the embodiments of the method for attributing the FC ports of the host to the corresponding host may be mutually intersected, replaced, added, or deleted, and therefore, these methods for attributing the FC ports of the host to the corresponding host by reasonable permutation and combination conversion shall also belong to the scope of the present invention, and shall not limit the scope of the present invention to the embodiments.
In view of the above object, a second aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, the host end creates a host unique identifier of the FC port and writes the host unique identifier into port information of the FC port; s2, in response to the monitoring that the state of the FC port is changed to online for the first time and/or the host port information refreshing time is triggered, the storage end constructs a port request message and sends the port request message to all the FC ports of the host; s3, in response to receiving port information returned by the FC port of the host, the storage end judges whether a processing mark exists in the port information; and S4, responding to the absence of the processing mark, the storage end attributing the FC port of the host to the corresponding host based on the unique identification of the host and writing the processing mark in the port information corresponding to the FC port of the host.
In some embodiments, further comprising: and creating a storage unique identifier of the storage FC port and writing the storage unique identifier into a port request message of the storage FC port.
In some embodiments, further comprising: in response to the port request message, the FC port of the host judges whether other FC ports receive the same port request message or not according to the port information; and triggering the port information broadcast operation in response to the condition that no other host FC port receives the same port request message.
In some embodiments, further comprising: monitoring the states of all host FC ports, responding to the situation that the host FC ports are changed into an online state for the first time, and carrying out port information broadcasting by the host FC ports.
In some embodiments, the determining, by the storage side, whether a processing flag exists in the port information in response to receiving the port information returned by the host FC port includes: and the storage end judges whether the received port information returned by the FC port of the host is in the valid time.
Fig. 2 is a schematic hardware structure diagram of an embodiment of the method for attributing the FC port of the host to the corresponding host according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 301 and a memory 302, and may further include: an input device 303 and an output device 304.
The processor 301, the memory 302, the input device 303 and the output device 304 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
Memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method of attributing a host FC port to a corresponding host in the embodiments of the present application. The processor 301 executes various functional applications and data processing of the server, namely, implements the method of attributing a host FC port to a corresponding host of the above-described method embodiment, by running the nonvolatile software program, instructions and modules stored in the memory 302.
The memory 302 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of attributing the FC port of the host to the corresponding host, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 302 optionally includes memory located remotely from processor 301, which may be connected to a local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 303 may receive information such as a user name and a password that are input. The output means 304 may comprise a display device such as a display screen.
One or more program instructions/modules corresponding to the method of attributing a host FC port to a corresponding host are stored in memory 302 and, when executed by processor 301, perform the method of attributing a host FC port to a corresponding host in any of the method embodiments described above.
Any embodiment of a computer device implementing the method for attributing a FC port of a host to a corresponding host as described above may achieve the same or similar effects as any of the preceding method embodiments corresponding thereto.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for attributing the FC port of the host to the corresponding host can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and/or any other such configuration.
The steps of a method or algorithm described in connection with the disclosure herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for attributing a host fibre channel port to a corresponding host, comprising the steps of:
the host end creates a host unique identifier of a host optical fiber channel port, writes the host unique identifier into port information of the host optical fiber channel port, and adds attribute information of the optical fiber channel port and host operating system identifier information into the port information;
in response to monitoring that the state of a storage fiber channel port is changed into online for the first time and/or host port information refreshing time is triggered, a storage end constructs a port request message according to the unique identifier of the port information request message and the storage unique identifier and sends the port request message to all host fiber channel ports;
in response to receiving port information returned by the host fiber channel port, the storage terminal judges whether a port information processing mark exists in the port information; and
in response to the absence of the port information processing mark, the storage end attributing the host fibre channel port to the corresponding host based on the host unique identifier and writing the processing mark in the port information corresponding to the host fibre channel port.
2. The method of claim 1, further comprising:
and creating a storage unique identifier of the storage fiber channel port and writing the storage unique identifier into a port request message of the storage fiber channel port.
3. The method of claim 2, further comprising:
in response to the port request message, the host fiber channel port judges whether other host fiber channel ports receive the same port request message according to the port information; and
and triggering the port information broadcast operation in response to the condition that no other host fiber channel port receives the same port request message.
4. The method of claim 1, further comprising:
monitoring the states of all host optical fiber channel ports, responding to the first time that the host optical fiber channel ports are changed into an online state, and carrying out port information broadcasting by the host optical fiber channel ports.
5. The method according to claim 1, wherein the determining, by the storage side, whether a processing flag exists in the port information in response to receiving the port information returned by the host fibre channel port, comprises:
and the storage end judges whether the port information returned by the host fiber channel port is received within the effective time.
6. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of:
the host end creates a host unique identifier of a host optical fiber channel port, writes the host unique identifier into port information of the host optical fiber channel port, and adds attribute information of the optical fiber channel port and host operating system identifier information into the port information;
in response to monitoring that the state of a storage fiber channel port is changed into online for the first time and/or host port information refreshing time is triggered, a storage end constructs a port request message according to the unique identifier of the port information request message and the storage unique identifier and sends the port request message to all host fiber channel ports;
in response to receiving port information returned by the host fiber channel port, the storage terminal judges whether a port information processing mark exists in the port information; and
in response to the absence of the port information processing mark, the storage end attributing the host fibre channel port to the corresponding host based on the host unique identifier and writing the processing mark in the port information corresponding to the host fibre channel port.
7. The computer device of claim 6, wherein the steps further comprise:
and creating a storage unique identifier of the storage fiber channel port and writing the storage unique identifier into a port request message of the storage fiber channel port.
8. The computer device of claim 7, wherein the steps further comprise:
in response to the port request message, the host fiber channel port judges whether other host fiber channel ports receive the same port request message according to the port information; and
and triggering the port information broadcast operation in response to the condition that no other host fiber channel port receives the same port request message.
9. The computer device of claim 6, wherein the steps further comprise:
monitoring the states of all host optical fiber channel ports, responding to the first time that the host optical fiber channel ports are changed into an online state, and carrying out port information broadcasting by the host optical fiber channel ports.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201911297751.3A 2019-12-17 2019-12-17 Method, device and medium for attributing FC (fiber channel) port of host to corresponding host Active CN111193677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911297751.3A CN111193677B (en) 2019-12-17 2019-12-17 Method, device and medium for attributing FC (fiber channel) port of host to corresponding host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911297751.3A CN111193677B (en) 2019-12-17 2019-12-17 Method, device and medium for attributing FC (fiber channel) port of host to corresponding host

Publications (2)

Publication Number Publication Date
CN111193677A CN111193677A (en) 2020-05-22
CN111193677B true CN111193677B (en) 2022-03-22

Family

ID=70709613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911297751.3A Active CN111193677B (en) 2019-12-17 2019-12-17 Method, device and medium for attributing FC (fiber channel) port of host to corresponding host

Country Status (1)

Country Link
CN (1) CN111193677B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748882B (en) * 2021-01-15 2023-01-10 苏州浪潮智能科技有限公司 Communication method, device, equipment and readable medium of host and storage equipment
CN113110882B (en) * 2021-04-15 2023-02-28 山东英信计算机技术有限公司 Method, device and system for managing FC port operation in FC drive

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6745281B1 (en) * 1999-06-30 2004-06-01 Nec Corporation Fiber channel connection magnetic disk device and fiber channel connection magnetic disk controller
CN102427410A (en) * 2011-12-02 2012-04-25 北京星网锐捷网络技术有限公司 Method, device and system for processing fiber channel identity, and network equipment
US8711864B1 (en) * 2010-03-30 2014-04-29 Chengdu Huawei Symantec Technologies Co., Ltd. System and method for supporting fibre channel over ethernet communication
CN104518958A (en) * 2013-09-27 2015-04-15 中国电信股份有限公司 A transmission processing method for associated fibre channel signals and an optical transport network device
CN109213447A (en) * 2018-08-23 2019-01-15 郑州云海信息技术有限公司 A kind of SAN storage volume carry, discharging method and system
CN109728924A (en) * 2017-10-30 2019-05-07 华为技术有限公司 The method and apparatus for obtaining the configuration information of host

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9077752B2 (en) * 2011-12-23 2015-07-07 Cirrus Data Solutions, Inc. Systems, apparatus, and methods for identifying stored data that may be accessed by a host entity and providing data management services
US9548888B1 (en) * 2013-06-24 2017-01-17 EMC IP Holding Company LLC Technique for setting WWNN scope for multi-port fibre channel SCSI target deduplication appliances
US9733865B2 (en) * 2015-08-20 2017-08-15 International Business Machines Corporation Delay mechanism on fibre channel
CN107682277A (en) * 2017-10-11 2018-02-09 郑州云海信息技术有限公司 Communication means, device and medium between a kind of equipment FC ports

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6745281B1 (en) * 1999-06-30 2004-06-01 Nec Corporation Fiber channel connection magnetic disk device and fiber channel connection magnetic disk controller
US8711864B1 (en) * 2010-03-30 2014-04-29 Chengdu Huawei Symantec Technologies Co., Ltd. System and method for supporting fibre channel over ethernet communication
CN102427410A (en) * 2011-12-02 2012-04-25 北京星网锐捷网络技术有限公司 Method, device and system for processing fiber channel identity, and network equipment
CN104518958A (en) * 2013-09-27 2015-04-15 中国电信股份有限公司 A transmission processing method for associated fibre channel signals and an optical transport network device
CN109728924A (en) * 2017-10-30 2019-05-07 华为技术有限公司 The method and apparatus for obtaining the configuration information of host
CN109213447A (en) * 2018-08-23 2019-01-15 郑州云海信息技术有限公司 A kind of SAN storage volume carry, discharging method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
时间触发光纤通道协议芯片的设计与实现;谭小虎等;《计算机工程》;20171201(第10期);全文 *

Also Published As

Publication number Publication date
CN111193677A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
US10110671B2 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
CN110290168B (en) Data transmission method, device, server and storage medium
WO2020119476A1 (en) Alliance chain information release control method and terminal equipment
CN111193677B (en) Method, device and medium for attributing FC (fiber channel) port of host to corresponding host
US20210314156A1 (en) Authentication method, content delivery network cdn, and content server
CN111708834A (en) Method, system, equipment and medium for synchronizing service configuration data
CN111177043B (en) Method, system, device and medium for accelerating reading of field replaceable unit information
CN109151025B (en) Load balancing method and device based on URL, computer storage medium and equipment
CN111030892B (en) Method, equipment and medium for testing network function in BMC NCSI adaptive mode
WO2019076282A1 (en) Method and device for managing user
CN112104663B (en) Method and equipment for managing login user and user equipment
CN111078430A (en) Message notification processing method, device and storage medium
CN111405018B (en) File transmission method and device, electronic equipment and storage medium
CN106571968A (en) Business switching method and system
CN111309264B (en) Method, system, device and medium for making directory quota compatible with snapshot
CN113839882B (en) Message flow splitting method and device
US11599673B2 (en) Ascertaining network devices used with anonymous identifiers
WO2023231782A1 (en) Data integrity verification system
CN111045989A (en) Method, device and medium for querying CPLD version information
WO2012152024A1 (en) System and method for storing usage information about mobile terminal
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN111240933B (en) Method, system, device and medium for monitoring performance data of multiple data centers
CN113162997B (en) Data transmission method and device, electronic equipment and readable storage medium
CN115328509A (en) Algorithm changing method, device, computer equipment and storage medium
CN112104605B (en) Network management method, device and storage medium

Legal Events

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