CN113760184B - Unified storage chassis topology information collection method and device - Google Patents

Unified storage chassis topology information collection method and device Download PDF

Info

Publication number
CN113760184B
CN113760184B CN202110855749.4A CN202110855749A CN113760184B CN 113760184 B CN113760184 B CN 113760184B CN 202110855749 A CN202110855749 A CN 202110855749A CN 113760184 B CN113760184 B CN 113760184B
Authority
CN
China
Prior art keywords
expansion card
controller
chassis
sas
address
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
CN202110855749.4A
Other languages
Chinese (zh)
Other versions
CN113760184A (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 CN202110855749.4A priority Critical patent/CN113760184B/en
Publication of CN113760184A publication Critical patent/CN113760184A/en
Application granted granted Critical
Publication of CN113760184B publication Critical patent/CN113760184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a unified storage chassis topology information collection method and device, wherein the method comprises the following steps: s1, building a unified storage case physical environment; s2, configuring the SAS expansion card of each chassis to send broadcasting when the SAS link of the chassis changes; s3, when the main cabinet machine box receives the broadcast or the broadcast is not received beyond a set time threshold, the main cabinet machine box starts inquiry to all the machine boxes to acquire physical information of each machine box; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis; s4, starting the main cabinet, sequentially searching the lower cabinet of the current cabinet through the corresponding SAS expansion card connection address, recording path information until the cabinet topology information of each link is established, and completing unified storage system cabinet topology information collection. The invention realizes the automatic collection of unified storage chassis topology information, improves the efficiency of chassis topology information collection, and avoids the probability of human error.

Description

Unified storage chassis topology information collection method and device
Technical Field
The invention belongs to the technical field of storage chassis management, and particularly relates to a unified storage chassis topology information collection method and device.
Background
Unified storage, also known as network unified storage or NUS, is a storage system that can run and manage files and applications on a single device.
Often, a set of cabinets stored in a unified manner in a customer's field application will consist of tens or even hundreds of cabinets, and the necessary topology information of the cabinets is indispensable for managing the cabinets. The topology information of the chassis is lacking, the upper and lower relationship of the chassis cascade cannot be known, which chain the chassis is positioned on cannot be known, and whether the connection errors exist between the chassis cannot be judged.
Based on the importance of the case topology information, accurate case topology information needs to be acquired, and at present, a manual statistics mode is mainly relied on, so that the efficiency is low, the rate is easy, and particularly, when the case topology information is counted by manpower for tens or hundreds of cabinets, the difficulty in manual statistics of the case topology information is quite large.
This is a deficiency of the prior art, and therefore, it is necessary to provide a unified storage chassis topology information collection method and apparatus for overcoming the above-mentioned drawbacks of the prior art.
Disclosure of Invention
Aiming at the defects that the topology information of the chassis in the prior art is high in importance, but the efficiency is low and errors are easy to occur in a manual statistics mode at present, the invention provides a unified storage chassis topology information collection method and device, and aims to solve the technical problems.
In a first aspect, the present invention provides a method for collecting topology information of a unified storage chassis, including the following steps:
s1, building a unified storage cabinet physical environment, and building a physical connection line of a main cabinet and an extension cabinet;
s2, powering on a main cabinet case and an expansion cabinet case, and when the SAS expansion card of each case is configured to change an SAS link of the case, transmitting a broadcast in the unified storage system;
s3, when the main cabinet machine box receives the broadcast or the broadcast is not received beyond a set time threshold, the main cabinet machine box starts inquiry to all the machine boxes to acquire physical information of each machine box; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis;
s4, starting from the main cabinet, taking the SAS expansion card address of the current cabinet as a tail address, sequentially searching the lower cabinet of the current cabinet by searching the connection address of the SAS expansion card corresponding to the tail address, and recording path information until the cabinet topology information of each link is established, thereby completing unified storage system cabinet topology information collection.
Further, the specific steps of step S1 are as follows:
s11, establishing physical connection between the SAS expansion card of each controller of the main cabinet case and the SAS expansion card of one controller of the expansion cabinet case;
s12, establishing physical connection between the SAS expansion card of each controller of the expansion cabinet case and the SAS expansion card of one controller of the corresponding descending expansion cabinet case. The SAS expansion card interfaces of the main cabinet are all downlink interfaces, and the SAS expansion card interfaces of the expansion cabinet are generally two, namely an uplink interface and a downlink interface.
Further, the main cabinet case and the extension cabinet case both adopt double-control storage, namely, the two controllers are included; the SAS expansion card of one controller of the main cabinet has four interfaces and the SAS expansion card of one controller of the expansion cabinet has two interfaces. The two controllers are standby for each other.
Further, the specific steps of step S2 are as follows:
s21, powering up a main cabinet case and an extension cabinet case, starting the unified storage system, and completing system initialization;
s22, respectively binding a node by each controller of the main cabinet;
s23, the node records the ID number of the controller where the node is located;
s24, when the SAS expansion card of each controller of each chassis is configured to detect that the SAS link of the controller is changed, broadcasting is sent in the unified storage system. The SAS expander is configured in advance to have a function of discovering a topology information change.
Further, the specific steps of step S3 are as follows:
s31, judging whether a broadcast sent by a certain case is received by the main cabinet;
if yes, go to step S33;
if not, go to step S32;
s32, judging whether the broadcast time which is not received by the main cabinet exceeds a set time threshold or not;
if yes, go to step S33;
if not, returning to the step S31;
s33, the main cabinet machine box starts inquiry to all the machine boxes in the unified storage system through nodes bound by the controllers of the main cabinet machine boxes, and physical information of the machine boxes is obtained and stored; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information includes a SAS expanded card address and a SAS expanded card connection address of the controller. When topology information is found to be changed according to the function of the SAS expansion card configuration, or when the topology information is not acquired for a long time, inquiry can be started to update the physical information of each chassis.
Further, the specific steps of step S4 are as follows:
s41, starting from the main cabinet, positioning an interface of an SAS expansion card of a controller of the main cabinet;
s42, judging whether equipment connection exists in the positioning interface;
if yes, inquiring the address of the SAS expansion card of the positioning interface, and taking the address of the SAS expansion card as a tail address;
if not, go to step S47;
s43, acquiring all SAS expansion card connection addresses from stored physical information of each chassis;
s44, judging whether the SAS expansion card connection address which is the same as the tail address can be found;
if yes, go to step S45;
if not, go to step S47;
s45, acquiring a case where the SAS expansion card connection address is located and a controller where the SAS expansion card connection address is located, and storing the corresponding case, the controller and the link level where the SAS expansion card connection address is located;
s46, taking the SAS expansion card connection address as a tail address, taking a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface, and returning to the step S43;
s47, judging that the current interface of the current controller of the current chassis is the tail end of the current link;
s48, judging whether all controllers of the main cabinet are positioned completely;
if not, positioning one interface of the next controller of the main cabinet case, and returning to the step S42;
if yes, the stored SAS expansion card connection addresses are counted to correspond to the chassis, the controller, the interface and the link level, unified storage chassis topology information is generated, and the process is finished. And (3) locating each stage of chassis on one link step by combining the set tail address from the main chassis and the SAS expansion card connection address inquiry until the topology information of the whole link is completed, and then completing the establishment of the topology information of all links to realize the final collection of the unified storage chassis topology information.
Further, the specific steps of step S45 are as follows:
s451, creating a path topology array at a node of each controller of the main cabinet case;
s452, acquiring a chassis where a current SAS expansion card connection address is located and a controller where the current SAS expansion card connection address is located, recording the ID of the chassis where the current SAS expansion card connection address is located and the ID of the controller where the current SAS expansion card connection address is located, and allocating a link ID to generate a path record;
s453, judging whether the case where the current SAS expansion card connection address is located is a primary case in the current link;
if yes, go to step S454;
if not, acquiring the upper-level link ID of the chassis where the current SAS expansion card connection address is located in the current link, writing the upper-level link ID into the path record, and entering step S454;
s454, putting the path record into a path topology array. And maintaining an array at each controller-bound node of the main cabinet, wherein the array is used for storing topology information related to links of the controllers.
In a second aspect, the present invention provides a unified storage chassis topology information collection apparatus, including:
the physical environment building module is used for building a unified storage cabinet physical environment and building a physical connection line of the main cabinet and the extension cabinet;
the SAS expansion card configuration module is used for powering on the main cabinet case and the expansion cabinet case, and when the SAS expansion card of each case is configured to change the SAS link of the case, broadcasting is sent in the unified storage system;
the physical information inquiry module is used for starting inquiry of the main cabinet case to all cases when the main cabinet case receives the broadcast or the main cabinet case does not receive the broadcast beyond a set time threshold value, and acquiring the physical information of each case; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis;
the chassis topology information establishing module is used for starting from the main chassis, taking the SAS expansion card address of the current chassis as a tail address, sequentially searching the lower chassis of the current chassis by searching the corresponding SAS expansion card connection address of the tail address, and recording path information until the chassis topology information of each link is established, so that unified storage system chassis topology information collection is completed.
Further, the physical environment building module includes:
a primary connection establishing unit, configured to establish physical connection between SAS expansion cards of the controllers of the main cabinet and SAS expansion cards of one controller of the expansion cabinet;
a second-level connection establishing unit, configured to establish physical connection between the SAS expansion card of each controller of the expansion cabinet chassis and the SAS expansion card of one controller of the corresponding descending expansion cabinet chassis;
the SAS expansion card configuration module comprises:
the system initialization unit is used for powering on the main cabinet case and the extension cabinet case, starting the unified storage system, and completing system initialization;
the controller and node binding unit is used for respectively binding one node with each controller of the main cabinet;
the controller ID recording unit is used for recording the ID number of the controller where the node is located by the node;
and the SAS expansion card configuration unit is used for configuring the SAS expansion card of each controller of each chassis to send broadcast in the unified storage system when the SAS expansion card of the controller detects that the SAS link of the controller is changed.
Further, the physical information query module includes:
the broadcast receiving judging unit is used for judging whether the main cabinet machine box receives the broadcast sent by a certain machine box or not;
the time length judging unit is used for judging whether the unreceived broadcasting time exceeds a set time threshold value or not when the broadcasting is unreceived;
the system comprises a physical information inquiry unit, a control unit and a control unit, wherein the physical information inquiry unit is used for enabling the main cabinet machine box to inquire all machine boxes in the unified storage system through nodes bound by all controllers of the main cabinet machine box when the main cabinet receives the broadcast or does not receive the broadcast and the duration exceeds a set time threshold value, and acquiring and storing the physical information of all the machine boxes; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information comprises an SAS expansion card address and an SAS expansion card connection address of the controller;
the chassis topology information building module comprises:
the interface positioning unit is used for starting from the main cabinet case and positioning one interface of the SAS expansion card of one controller of the main cabinet case;
the positioning interface is connected with the equipment judging unit and is used for judging whether equipment connection exists on the positioning interface or not;
the tail address setting unit is used for inquiring the SAS expansion card address of the positioning interface when the positioning interface is connected with equipment, and taking the SAS expansion card address as a tail address;
the SAS expansion card connection address acquisition unit is used for acquiring all SAS expansion card connection addresses from the stored physical information of each chassis;
the tail address comparison unit is used for judging whether the SAS expansion card connection address which is the same as the tail address can be found;
the machine case and controller positioning unit is used for acquiring the machine case and the controller where the SAS expansion card connection address is located when the SAS expansion card connection address which is the same as the tail address is found, and storing the machine case, the controller and the link level where the SAS expansion card connection address is located;
the tail address resetting unit takes the SAS expansion card connection address as a tail address and takes a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface;
the link end judging unit is used for judging that the current interface of the current controller of the current chassis is the end of the current link when the positioning interface is not connected with equipment or the connection address of the SAS expansion card which is the same as the tail address is found;
the controller positioning completion judging unit is used for judging whether all controllers of the main cabinet are positioned completely or not;
the controller repositioning unit is used for positioning an interface of the next controller of the main cabinet when the main cabinet has the controller which is not positioned;
and the chassis topology information generation unit is used for counting the corresponding chassis, controllers, interfaces and link levels of the stored connection addresses of the SAS expansion cards when all controllers of the main cabinet are positioned, and generating unified storage chassis topology information.
The invention has the advantages that,
the unified storage chassis topology information collection method and device provided by the invention realize automatic collection of unified storage chassis topology information, can regularly collect chassis topology information, can collect chassis topology information when the chassis topology information changes, improves the efficiency of chassis topology information collection, and avoids the probability of human errors.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a unified storage chassis topology information collection method according to the present invention.
Fig. 2 is a flow chart diagram of a unified storage chassis topology information collection method according to the present invention.
Fig. 3 is a flowchart illustrating a unified storage chassis topology information collection method according to the third embodiment of the present invention.
FIG. 4 is a schematic diagram of a unified storage chassis topology connection of the present invention.
Fig. 5 is a schematic diagram of a unified storage chassis topology information collection method of the present invention.
In the figure, a 1-physical environment building module; 1.1-a primary connection establishment unit; a 1.2-secondary connection establishment unit; a 2-SAS expansion card configuration module; 2.1-a system initialization unit; 2.2-the controller and node binding unit; 2.3-controller ID recording unit; a 2.4-SAS expansion card configuration unit; 3-a physical information query module; 3.1-a broadcast reception judgment unit; 3.2-a duration judgment unit; 3.3-a physical information query unit; 3.4-; 4-a chassis topology information building module; 4.1-an interface positioning unit; 4.2-positioning interface connection equipment judging unit; 4.3-tail address setting unit; 4.4-SAS expansion card connecting address acquisition unit; 4.5-tail address comparison unit; 4.6-a chassis and a controller positioning unit; 4.7-tail address resetting unit; 4.8-a link end decision unit; 4.9-a controller positioning completion judging unit; 4.10-a controller repositioning unit; 4.11-a chassis topology information generation unit; m1-a main cabinet; k1-a first expansion cabinet; k2-a second expansion cabinet; k3-a third expansion cabinet; c1-a first controller; c2-a first controller; a1-a first interface; a2-a second interface; a3-a third interface; a4-fourth interface.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
SAS, which is a short name of Serial Attached SCSI, is a serial disk interface for enterprise-level applications, integrates the advantages of parallel SCSI and serial connection technologies, and is a multi-level point-to-point protocol based on a serial communication protocol.
Example 1:
as shown in fig. 1, the present invention provides a unified storage chassis topology information collection method, which includes the following steps:
s1, building a unified storage cabinet physical environment, and building a physical connection line of a main cabinet and an extension cabinet;
s2, powering on a main cabinet case and an expansion cabinet case, and when the SAS expansion card of each case is configured to change an SAS link of the case, transmitting a broadcast in the unified storage system;
s3, when the main cabinet machine box receives the broadcast or the broadcast is not received beyond a set time threshold, the main cabinet machine box starts inquiry to all the machine boxes to acquire physical information of each machine box; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis;
s4, starting from the main cabinet, taking the SAS expansion card address of the current cabinet as a tail address, sequentially searching the lower cabinet of the current cabinet by searching the connection address of the SAS expansion card corresponding to the tail address, and recording path information until the cabinet topology information of each link is established, thereby completing unified storage system cabinet topology information collection.
Example 2:
as shown in fig. 2 and 3, the present invention provides a unified storage chassis topology information collection method, which includes the following steps:
s1, building a unified storage cabinet physical environment, and building a physical connection line of a main cabinet and an extension cabinet; the method comprises the following specific steps:
s11, establishing physical connection between the SAS expansion card of each controller of the main cabinet case and the SAS expansion card of one controller of the expansion cabinet case;
s12, establishing physical connection between the SAS expansion card of each controller of the expansion cabinet case and the SAS expansion card of one controller of the corresponding descending expansion cabinet case;
s2, powering on a main cabinet case and an expansion cabinet case, and when the SAS expansion card of each case is configured to change an SAS link of the case, transmitting a broadcast in the unified storage system; the method comprises the following specific steps:
s21, powering up a main cabinet case and an extension cabinet case, starting the unified storage system, and completing system initialization;
s22, respectively binding a node by each controller of the main cabinet;
s23, the node records the ID number of the controller where the node is located;
s24, when the SAS expansion card of each controller of each chassis is configured to detect that the SAS link of the controller is changed, broadcasting is sent in the unified storage system;
s3, when the main cabinet machine box receives the broadcast or the broadcast is not received beyond a set time threshold, the main cabinet machine box starts inquiry to all the machine boxes to acquire physical information of each machine box; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis; the method comprises the following specific steps:
s31, judging whether a broadcast sent by a certain case is received by the main cabinet;
if yes, go to step S33;
if not, go to step S32;
s32, judging whether the broadcast time which is not received by the main cabinet exceeds a set time threshold or not;
if yes, go to step S33;
if not, returning to the step S31;
s33, the main cabinet machine box starts inquiry to all the machine boxes in the unified storage system through nodes bound by the controllers of the main cabinet machine boxes, and physical information of the machine boxes is obtained and stored; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information comprises an SAS expansion card address and an SAS expansion card connection address of the controller;
s4, starting from the main cabinet, using the SAS expansion card address of the current cabinet as a tail address, sequentially searching the lower cabinet of the current cabinet by searching the connection address of the SAS expansion card corresponding to the tail address, and recording path information until the cabinet topology information of each link is established, so as to complete unified storage system cabinet topology information collection; the method comprises the following specific steps:
s41, starting from the main cabinet, positioning an interface of an SAS expansion card of a controller of the main cabinet;
s42, judging whether equipment connection exists in the positioning interface;
if yes, inquiring the address of the SAS expansion card of the positioning interface, and taking the address of the SAS expansion card as a tail address;
if not, go to step S47;
s43, acquiring all SAS expansion card connection addresses from stored physical information of each chassis;
s44, judging whether the SAS expansion card connection address which is the same as the tail address can be found;
if yes, go to step S45;
if not, go to step S47;
s45, acquiring a case where the SAS expansion card connection address is located and a controller where the SAS expansion card connection address is located, and storing the corresponding case, the controller and the link level where the SAS expansion card connection address is located; the method comprises the following specific steps:
s451, creating a path topology array at a node of each controller of the main cabinet case;
s452, acquiring a chassis where a current SAS expansion card connection address is located and a controller where the current SAS expansion card connection address is located, recording the ID of the chassis where the current SAS expansion card connection address is located and the ID of the controller where the current SAS expansion card connection address is located, and allocating a link ID to generate a path record;
s453, judging whether the case where the current SAS expansion card connection address is located is a primary case in the current link;
if yes, go to step S454;
if not, acquiring the upper-level link ID of the chassis where the current SAS expansion card connection address is located in the current link, writing the upper-level link ID into the path record, and entering step S454;
s454, putting the path record into a path topology array;
s46, taking the SAS expansion card connection address as a tail address, taking a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface, and returning to the step S43;
s47, judging that the current interface of the current controller of the current chassis is the tail end of the current link;
s48, judging whether all controllers of the main cabinet are positioned completely;
if not, positioning one interface of the next controller of the main cabinet case, and returning to the step S42;
if yes, the stored SAS expansion card connection addresses are counted to correspond to the chassis, the controller, the interface and the link level, unified storage chassis topology information is generated, and the process is finished.
In the above embodiment 2, taking fig. 4 as an example, the main cabinet case and the extension cabinet case both adopt dual-control storage, that is, include two controllers; the SAS expansion card of one controller of the main cabinet is provided with four interfaces, and the SAS expansion card of one controller of the expansion cabinet is provided with two interfaces; the main cabinet M1, the first expansion cabinet K1, the second expansion cabinet K2 and the third expansion cabinet K3 comprise two controllers, wherein the first controller C1 and the second controller C2 are redundant; the first controller C1 and the second controller C2 of the main cabinet M1 respectively comprise four interfaces, namely a first interface A1, a second interface A2, a third interface A3 and a fourth interface A4, wherein the four interfaces are downlink interfaces; the first controller C1 and the second controller C2 of the first expansion cabinet K1, the second expansion cabinet K2 and the third expansion cabinet K3 respectively comprise two interfaces, namely a first interface A1 and a second interface A2, one of the two interfaces is a downlink interface, and the other is an uplink interface;
after the main cabinet case and the extension cabinet case are electrified, the storage system software starts to work, after the system initialization is completed, the first controller C1 of the main cabinet M1 is bound with the node 1, the second controller C2 of the main cabinet M1 is bound with the node 2, the ID of the first controller is recorded as 1 by the node 1, and the ID of the second controller is recorded as 2 by the node 2;
because the SAS expansion card is configured in advance and can trigger broadcasting when the SAS link of the controller changes, when the storage software operated by the main cabinet receives the broadcasting or does not receive the broadcasting for more than 30 minutes, the main cabinet starts inquiry, the inquiry is carried out through the node 1 and the node 2, and the inquiry is realized through a standard SES protocol;
because all the expansion cabinets are connected out from the downlink port of the SAS expansion card of the main cabinet, the topology information is established from the main cabinet first;
the SAS expansion card of each controller of the main cabinet is provided with four interfaces, and expansion cabinets connected from the same port of the main cabinet are considered to be positioned on the same link;
taking the fourth interface A4 of the second controller C2 of the main cabinet M1 as an example, when traversing to the interface, it can detect that there is a device connection, the storage system can query an SAS expansion card address, and takes the address as a tail address;
after the tail address is obtained, traversing all controllers of all the chassis, acquiring the SAS expansion card connection addresses of all the controllers stored before, comparing the SAS expansion card connection addresses of all the controllers with the tail address, and if the SAS expansion card connection addresses of all the controllers are the same, considering that an uplink interface of the controller is connected with the interface. As in fig. 1, the first interface A1 of the first controller C1 of the first expansion cabinet K1 is connected to the fourth interface A4 of the first controller C1 of the main cabinet M1;
and next, taking the SAS expansion card address of the first controller C1 of the first expansion cabinet K1 as a tail address, inquiring the first controller C1 of the third expansion cabinet K3, and completing the link searching, wherein the first controller C1 of the third expansion cabinet K3 is not connected with equipment.
Example 3:
as shown in fig. 5, the present invention provides a unified storage chassis topology information collection apparatus, including:
the physical environment building module 1 is used for building a unified storage cabinet physical environment and building a physical connection line of the main cabinet and the extension cabinet; the physical environment building module 1 includes:
a primary connection establishing unit 1.1, configured to establish physical connection between SAS expansion cards of each controller of the main cabinet chassis and SAS expansion cards of one controller of the expansion cabinet chassis;
a secondary connection establishing unit 1.2, configured to establish physical connection between the SAS expansion card of each controller of the expansion cabinet chassis and the SAS expansion card of one controller of the corresponding descending expansion cabinet chassis;
the SAS expansion card configuration module 2 is used for powering on the main cabinet case and the expansion cabinet case, and when the SAS expansion card of each case is configured to change the SAS link of the case, broadcasting is sent in the unified storage system; SAS expansion card configuration module 2 includes:
the system initialization unit 2.1 is used for powering on the main cabinet case and the extension cabinet case, starting the unified storage system and completing system initialization;
the controller and node binding unit 2.2 is used for respectively binding one node with each controller of the main cabinet;
a controller ID recording unit 2.3, configured to record an ID number of a controller where the node is located;
the SAS expanded card configuration unit 2.4 is configured to send a broadcast in the unified storage system when the SAS expanded card of each controller of each chassis detects that the SAS link of the controller is changed;
the physical information inquiry module 3 is used for starting inquiry of the main cabinet case to all cases when the main cabinet case receives the broadcast or the main cabinet case does not receive the broadcast beyond a set time threshold value, and acquiring the physical information of each case; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis; the physical information inquiry module 3 includes:
a broadcast receiving judging unit 3.1, configured to judge whether a broadcast sent by a certain chassis is received by the main cabinet;
a duration judging unit 3.2, configured to judge, when the broadcast is not received, whether the broadcast time is not received exceeds a set time threshold value by the main cabinet;
the physical information inquiry unit 3.3 is used for the main cabinet machine box to start inquiry to all the machine boxes in the unified storage system through the nodes bound by the controllers of the main cabinet machine box when the main cabinet receives the broadcast or does not receive the broadcast and the duration exceeds the set time threshold value, and acquire and store the physical information of the machine boxes; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information comprises an SAS expansion card address and an SAS expansion card connection address of the controller;
the chassis topology information establishing module 4 is used for starting from the main chassis, taking the SAS expansion card address of the current chassis as a tail address, sequentially searching the lower chassis of the current chassis by searching the corresponding SAS expansion card connection address of the tail address, and recording path information until the chassis topology information of each link is established, so as to complete the chassis topology information collection of the unified storage system; the chassis topology information establishment module 4 includes:
an interface positioning unit 4.1, configured to start from the main cabinet, and position an interface of the SAS expansion card of a controller of the main cabinet;
the positioning interface connection device judging unit 4.2 is used for judging whether the positioning interface is connected with a device or not;
the tail address setting unit 4.3 is used for inquiring the address of the SAS expansion card of the positioning interface and taking the address of the SAS expansion card as a tail address when the positioning interface is connected with equipment;
a SAS expanded card connection address obtaining unit 4.4 configured to obtain all SAS expanded card connection addresses from the stored chassis physical information;
a tail address comparing unit 4.5, configured to determine whether the SAS expanded card connection address identical to the tail address can be found;
the chassis and controller positioning unit 4.6 is configured to obtain a chassis and a controller where the SAS expanded card connection address is located when the SAS expanded card connection address identical to the tail address is found, and store the SAS expanded card connection address corresponding to the chassis, the controller and the link level where the SAS expanded card connection address is located;
the tail address resetting unit 4.7 takes the SAS expansion card connection address as a tail address and takes a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface;
the link end judging unit 4.8 is used for judging that the current interface of the current controller of the current chassis is the end of the current link when the positioning interface is not connected with equipment or the connection address of the SAS expansion card which is the same as the tail address is found;
the controller positioning completion judging unit 4.9 is used for judging whether all controllers of the main cabinet are positioned completely or not;
the controller repositioning unit 4.10 is used for positioning an interface of the next controller of the main cabinet when the main cabinet has the controller which is not positioned;
and the chassis topology information generating unit 4.11 is used for counting the corresponding chassis, controllers, interfaces and link levels of the stored connection addresses of the SAS expansion cards when all controllers of the main cabinet are positioned, and generating unified storage chassis topology information.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. The unified storage chassis topology information collection method is characterized by comprising the following steps:
s1, building a unified storage cabinet physical environment, and building a physical connection line of a main cabinet and an extension cabinet;
s2, powering on a main cabinet case and an expansion cabinet case, and when the SAS expansion card of each case is configured to change an SAS link of the case, transmitting a broadcast in the unified storage system;
s3, when the main cabinet machine box receives the broadcast or the broadcast is not received beyond a set time threshold, the main cabinet machine box starts inquiry to all the machine boxes to acquire physical information of each machine box; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis;
s4, starting from the main cabinet, using the SAS expansion card address of the current cabinet as a tail address, sequentially searching the lower cabinet of the current cabinet by searching the connection address of the SAS expansion card corresponding to the tail address, and recording path information until the cabinet topology information of each link is established, so as to complete unified storage system cabinet topology information collection; the specific steps of the step S4 are as follows:
s41, starting from the main cabinet, positioning an interface of an SAS expansion card of a controller of the main cabinet;
s42, judging whether equipment connection exists in the positioning interface;
if yes, inquiring the address of the SAS expansion card of the positioning interface, and taking the address of the SAS expansion card as a tail address;
if not, go to step S47;
s43, acquiring all SAS expansion card connection addresses from stored physical information of each chassis;
s44, judging whether the SAS expansion card connection address which is the same as the tail address can be found;
if yes, go to step S45;
if not, go to step S47;
s45, acquiring a case where the SAS expansion card connection address is located and a controller where the SAS expansion card connection address is located, and storing the corresponding case, the controller and the link level where the SAS expansion card connection address is located; the specific steps of step S45 are as follows:
s451, creating a path topology array at a node of each controller of the main cabinet case;
s452, acquiring a chassis where a current SAS expansion card connection address is located and a controller where the current SAS expansion card connection address is located, recording the ID of the chassis where the current SAS expansion card connection address is located and the ID of the controller where the current SAS expansion card connection address is located, and allocating a link ID to generate a path record;
s453, judging whether the case where the current SAS expansion card connection address is located is a primary case in the current link;
if yes, go to step S454;
if not, acquiring the upper-level link ID of the chassis where the current SAS expansion card connection address is located in the current link, writing the upper-level link ID into the path record, and entering step S454;
s454, putting the path record into a path topology array;
s46, taking the SAS expansion card connection address as a tail address, taking a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface, and returning to the step S43;
s47, judging that the current interface of the current controller of the current chassis is the tail end of the current link;
s48, judging whether all controllers of the main cabinet are positioned completely;
if not, positioning one interface of the next controller of the main cabinet case, and returning to the step S42;
if yes, the stored SAS expansion card connection addresses are counted to correspond to the chassis, the controller, the interface and the link level, unified storage chassis topology information is generated, and the process is finished.
2. The unified storage chassis topology information collection method of claim 1, wherein step S1 comprises the specific steps of:
s11, establishing physical connection between the SAS expansion card of each controller of the main cabinet case and the SAS expansion card of one controller of the expansion cabinet case;
s12, establishing physical connection between the SAS expansion card of each controller of the expansion cabinet case and the SAS expansion card of one controller of the corresponding lower-level expansion cabinet case.
3. The unified storage cabinet topology information collection method of claim 1, wherein the main cabinet and the expansion cabinet both adopt double-control storage, namely, comprise two controllers; the SAS expansion card of one controller of the main cabinet has four interfaces and the SAS expansion card of one controller of the expansion cabinet has two interfaces.
4. The unified storage chassis topology information collection method of claim 1, wherein step S2 comprises the specific steps of:
s21, powering up a main cabinet case and an extension cabinet case, starting the unified storage system, and completing system initialization;
s22, respectively binding a node by each controller of the main cabinet;
s23, the node records the ID number of the controller where the node is located;
s24, when the SAS expansion card of each controller of each chassis is configured to detect that the SAS link of the controller is changed, broadcasting is sent in the unified storage system.
5. The unified storage chassis topology information collection method of claim 4, wherein step S3 comprises the specific steps of:
s31, judging whether a broadcast sent by a certain case is received by the main cabinet;
if yes, go to step S33;
if not, go to step S32;
s32, judging whether the broadcast time which is not received by the main cabinet exceeds a set time threshold or not;
if yes, go to step S33;
if not, returning to the step S31;
s33, the main cabinet machine box starts inquiry to all the machine boxes in the unified storage system through nodes bound by the controllers of the main cabinet machine boxes, and physical information of the machine boxes is obtained and stored; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information includes a SAS expanded card address and a SAS expanded card connection address of the controller.
6. A unified storage chassis topology information collection apparatus, comprising:
the physical environment building module (1) is used for building a unified storage cabinet physical environment and building a physical connection line of the main cabinet and the extension cabinet;
the SAS expansion card configuration module (2) is used for powering on the main cabinet case and the expansion cabinet case, and when the SAS expansion card of each case is configured to change the SAS link of the case, broadcasting is sent in the unified storage system;
the physical information inquiry module (3) is used for starting inquiry of the main cabinet case to all cases when the main cabinet case receives the broadcast or the main cabinet case does not receive the broadcast beyond a set time threshold value, and acquiring the physical information of each case; the physical information comprises an SAS expansion card address and an SAS expansion card connection address of the chassis;
the chassis topology information establishing module (4) is used for starting from the main chassis, taking the SAS expansion card address of the current chassis as a tail address, sequentially searching the lower chassis of the current chassis by searching the connection address of the SAS expansion card corresponding to the tail address, and recording path information until the chassis topology information of each link is established, so as to complete the chassis topology information collection of the unified storage system; the chassis topology information establishment module (4) includes:
an interface positioning unit (4.1) for positioning an interface of the SAS expansion card of a controller of the main cabinet case from the main cabinet case;
a positioning interface connection device judging unit (4.2) for judging whether the positioning interface is connected with a device or not;
a tail address setting unit (4.3) for inquiring the SAS expanded card address of the positioning interface and taking the SAS expanded card address as a tail address when the positioning interface is connected with the device;
a SAS expansion card connection address acquisition unit (4.4) for acquiring all SAS expansion card connection addresses from the stored physical information of each chassis;
a tail address comparing unit (4.5) for judging whether the SAS expansion card connection address identical to the tail address can be found;
the machine case and controller positioning unit (4.6) is used for acquiring the machine case and the controller where the SAS expansion card connection address is located when the SAS expansion card connection address which is the same as the tail address is found, and storing the machine case, the controller and the link level where the SAS expansion card connection address is located; the method comprises the following specific steps:
creating a path topology array at a node of each controller of the main cabinet case;
acquiring a chassis where a current SAS expansion card connection address is located and a controller where the current SAS expansion card connection address is located, recording the ID of the chassis where the current SAS expansion card connection address is located and the ID of the controller where the current SAS expansion card connection address is located, and allocating a link ID to generate a path record;
judging whether the case where the current SAS expansion card connection address is located is a primary case in the current link;
when the chassis where the current SAS expansion card connection address is not the primary chassis in the current link, acquiring the primary link ID of the chassis where the current SAS expansion card connection address is in the current link, and writing the primary link ID into the path record;
when the ID of the upper-level link is written into the path record or the case where the current SAS expansion card connection address is located is the first-level case in the current link, the path record is put into a path topology array;
the tail address resetting unit (4.7) takes the SAS expansion card connection address as a tail address and takes a downlink interface of a controller where the SAS expansion card connection address is positioned as a positioning interface;
a link end judging unit (4.8) for judging that the current interface of the current controller of the current chassis is the end of the current link when the positioning interface is not connected with equipment or the SAS expansion card connection address which is the same as the tail address is found;
a controller positioning completion judging unit (4.9) for judging whether all controllers of the main cabinet are positioned completely;
a controller repositioning unit (4.10) for positioning an interface of a next controller of the main cabinet when the main cabinet has a controller which is not positioned;
and the chassis topology information generating unit (4.11) is used for counting the corresponding chassis, controllers, interfaces and link levels of the stored SAS expansion card connection addresses when all controllers of the main cabinet are positioned, and generating unified storage chassis topology information.
7. The unified storage chassis topology information collection apparatus of claim 6, wherein the physical environment building module (1) comprises:
a primary connection establishing unit (1.1) for establishing physical connection between the SAS expansion card of each controller of the main cabinet and the SAS expansion card of one controller of the expansion cabinet;
a secondary connection establishing unit (1.2) for establishing physical connection between the SAS expansion card of each controller of the expansion cabinet chassis and the SAS expansion card of one controller of the corresponding lower expansion cabinet chassis;
the SAS expansion card configuration module (2) includes:
the system initialization unit (2.1) is used for powering on the main cabinet case and the extension cabinet case, starting the unified storage system and completing system initialization;
a controller and node binding unit (2.2) for binding each controller of the main cabinet to a node respectively;
a controller ID recording unit (2.3) for recording the ID number of the controller where the node is located by the node;
and the SAS expansion card configuration unit (2.4) is used for configuring the SAS expansion card of each controller of each chassis to send broadcasting in the unified storage system when the SAS expansion card of the controller detects that the SAS link of the controller is changed.
8. The unified storage chassis topology information collection apparatus of claim 6, wherein the physical information query module (3) comprises:
a broadcast receiving judging unit (3.1) for judging whether a broadcast sent by a certain cabinet is received by the main cabinet;
a time length judging unit (3.2) for judging whether the time of the non-received broadcast exceeds a set time threshold value by the main cabinet when the broadcast is not received;
the physical information inquiry unit (3.3) is used for enabling the main cabinet machine box to inquire all the machine boxes in the unified storage system through nodes bound by the controllers of the main cabinet machine box when the main cabinet receives the broadcast or the broadcast duration exceeds a set time threshold value, and acquiring and storing the physical information of each machine box; the physical information comprises PSU information, fan information and controller information in the chassis; the controller information includes a SAS expanded card address and a SAS expanded card connection address of the controller.
CN202110855749.4A 2021-07-28 2021-07-28 Unified storage chassis topology information collection method and device Active CN113760184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110855749.4A CN113760184B (en) 2021-07-28 2021-07-28 Unified storage chassis topology information collection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110855749.4A CN113760184B (en) 2021-07-28 2021-07-28 Unified storage chassis topology information collection method and device

Publications (2)

Publication Number Publication Date
CN113760184A CN113760184A (en) 2021-12-07
CN113760184B true CN113760184B (en) 2023-08-25

Family

ID=78788120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110855749.4A Active CN113760184B (en) 2021-07-28 2021-07-28 Unified storage chassis topology information collection method and device

Country Status (1)

Country Link
CN (1) CN113760184B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189627A (en) * 2018-10-08 2019-01-11 郑州云海信息技术有限公司 A kind of hard disk failure monitor and detection method, apparatus, terminal and storage medium
CN110580235A (en) * 2018-06-08 2019-12-17 杭州宏杉科技股份有限公司 SAS expander communication method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6414834B2 (en) * 2014-11-11 2018-10-31 華為技術有限公司Huawei Technologies Co.,Ltd. SAS system, SAS system traversal method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580235A (en) * 2018-06-08 2019-12-17 杭州宏杉科技股份有限公司 SAS expander communication method and device
CN109189627A (en) * 2018-10-08 2019-01-11 郑州云海信息技术有限公司 A kind of hard disk failure monitor and detection method, apparatus, terminal and storage medium

Also Published As

Publication number Publication date
CN113760184A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN107104836A (en) The firmware upgrade method and device of Zigbee equipment
US7596083B2 (en) Network element recovery process
CN102202087B (en) Method for identifying storage equipment and system thereof
CN101437259B (en) Method, apparatus and system for establishing incidence relation between each system of integrated multi-module base station
CN102457390A (en) Fault location method and system based on quality of experience (QoE)
CN109522316A (en) Log processing method, device, equipment and storage medium
CN101150830B (en) Software packet upgrade method and device
CN103440204B (en) A kind of method of updating file system and memory device
CN101567014B (en) Equipment information retrieval method, device and cable fastener
CN109726091A (en) A kind of blog management method and relevant apparatus
CN113760184B (en) Unified storage chassis topology information collection method and device
CN107483238A (en) A kind of blog management method, cluster management node and system
CN104205730A (en) Network element data access method, device and network management system
CN108566418A (en) A kind of processing method of the intelligence of electronic data
CN103684841A (en) Network management server and link discovery comparison method
CN101854262A (en) Alarm synchronization method, device and system
CN114268916B (en) Processing method, device, equipment and storage medium based on content charging data
CN107835097B (en) Alarm information synchronization method and device, and network element
CN115878702A (en) Method, device and equipment for realizing operation and maintenance data acquisition
CN105610921A (en) Erasure code filing method based on data cache in cluster
CN115858250A (en) Data recovery method, device, storage medium and electronic device
CA2509972A1 (en) Methods and data structure for indexed storage of hierarchically interrelated information in a relational database
CN111324513B (en) Monitoring management method and system for artificial intelligence development platform
CN110727448B (en) OTA over-the-air upgrading method for charging piles
CN102118259B (en) Method and device for creating Ethernet route

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