CN108595127A - A kind of method and device dividing SAS port subregion - Google Patents

A kind of method and device dividing SAS port subregion Download PDF

Info

Publication number
CN108595127A
CN108595127A CN201810439712.1A CN201810439712A CN108595127A CN 108595127 A CN108595127 A CN 108595127A CN 201810439712 A CN201810439712 A CN 201810439712A CN 108595127 A CN108595127 A CN 108595127A
Authority
CN
China
Prior art keywords
subregion
configuration
sas expander
operating mode
main control
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.)
Granted
Application number
CN201810439712.1A
Other languages
Chinese (zh)
Other versions
CN108595127B (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.)
Hangzhou Sequoia Polytron Technologies Inc
Original Assignee
Hangzhou Sequoia Polytron Technologies Inc
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 Hangzhou Sequoia Polytron Technologies Inc filed Critical Hangzhou Sequoia Polytron Technologies Inc
Priority to CN201810439712.1A priority Critical patent/CN108595127B/en
Publication of CN108595127A publication Critical patent/CN108595127A/en
Application granted granted Critical
Publication of CN108595127B publication Critical patent/CN108595127B/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
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • 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/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

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)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a kind of method and device dividing SAS port subregion, the method includes:Whether the business of the operating mode and the main control server that check target SAS expander matches, if mismatching, adjusts the operating mode of the target SAS expander;Wherein, the operating mode includes subregion enabling mode and subregion not enabled pattern;If the matched operating mode of business with main control server is subregion enabling mode, check whether the zone configuration scheme of the target SAS expander matches with the business of the main control server, if mismatching, adjusts the zone configuration scheme of target SAS expander.In technical scheme, since the main control server of SAS domain can adjust the operating mode and zone configuration scheme of target SAS expander based on local service, target SAS expander is switched between subregion enabling mode and subregion not enabled pattern, can also be switched between a variety of zone configuration schemes.

Description

A kind of method and device dividing SAS port subregion
Technical field
This application involves field of storage, more particularly to a kind of method and device dividing SAS port subregion.
Background technology
SAS (Serial Attached SCSI, list type SCSI) interconnection technique defines the subregion (Zone) in SAS domain Function.Wherein, SAS domain includes several SAS devices and SAS expander (SAS Expander).SAS expander includes multiple ends Mouthful, each port is divided into several subregions by SAS sectoring functions, and several ports for being divided into same subregion form partition group (Zone Group).Wherein, " port " is a logical concept, and a port may include one or more PHY (Physical Layer) chip.
In addition, can also configure zone group permission table in SAS expander, which can characterize each region group inner end The permission that mouth accesses mutually.Such as:The structure of region group claim table logically can be 128 region group × 128 region The matrix of group, each element indicate with the element the corresponding region group of line direction whether can be with the element in column direction Corresponding region group accesses mutually, wherein element may include 1 and 0, and 1 indicates to access mutually, and 0 expression cannot be mutual It accesses.
In the prior art, usually by preset SAS zone configurations parameter read-in to the memory of SAS expander, for example, It is written to the flash chip or EEPROM (Electrically Erasable Programmable Read of SAS expander Only Memory, band electrically erasable programmable read-write memory).In SAS expander start-up course, SAS expander can be read The SAS zone configuration parameters in memory are taken, to complete zone configuration so that SAS expander works under subregion enabling mode.
However, in the above scheme, the SAS expander that zone configuration parameter is written in memory can only be under subregion enabling mode Work needs programming memory again, operation is complex and there are risks if to be restored to subregion not enabled pattern.In addition, SAS expander only supports single zone configuration scheme, if to be switched to other zone configuration schemes, also needs to burn again Write memory.
Invention content
In view of this, the application provides a kind of method and device dividing SAS port subregion, to realize that subregion enables mould Switching between formula and subregion not enabled pattern, and SAS expander is enable to support a variety of zone configurations.
Specifically, the application is achieved by the following technical solution:
A method of SAS port subregion is divided, is applied to the main control server of SAS domain, the SAS domain includes several SAS expander, including:
Whether the business of the operating mode and the main control server that check target SAS expander matches, if mismatching, adjusts The operating mode of the whole target SAS expander;Wherein, the operating mode includes subregion enabling mode and subregion not enabled mould Formula;
If the matched operating mode of business with the main control server is subregion enabling mode, the target SAS is checked Whether the zone configuration scheme of expander matches with the business of the main control server, if mismatching, adjusts the target SAS and expands Open up the zone configuration scheme of device.
In the method for dividing SAS port subregion, the target SAS expander includes the enabled switch of subregion, described The enabled switch of subregion characterizes the operating mode that the target SAS expander need to enable;
It is described to check whether the operating mode of target SAS expander and the business of the main control server match, if not Match, adjusts the operating mode of the target SAS expander, including:
Check whether the enabled switch of the subregion is opened;
If so, checking whether the matched operating mode of business with the main control server is subregion enabling mode;
If the matched operating mode of business with the main control server is subregion not enabled pattern, to the target SAS expander sends subregion shutdown command, to close the enabled switch of the subregion by the target SAS expander and by Working mould Formula switches to subregion not enabled pattern.
In the method for dividing SAS port subregion, the target SAS expander includes the enabled switch of subregion, described The enabled switch of subregion characterizes the operating mode that the target SAS expander need to enable;
It is described to check whether the operating mode of target SAS expander and the business of the main control server match, if not Match, adjusts the operating mode of the target SAS expander, including:
Check whether the enabled switch of the subregion is opened;
If not, checking whether the matched operating mode of business with the main control server is subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, to the target SAS Expander sends subregion enable command, to open the enabled switch of the subregion by the target SAS expander and by operating mode Switch to subregion enabling mode.
In the method for dividing SAS port subregion, the target SAS expander includes zone configuration scheme selector And configuration file, wherein the zone configuration scheme selector is written with configuration identifier, and the configuration file includes a variety of subregions Parameter is configured, there are corresponding configuration identifiers for each zone configuration parameter;
The business of the zone configuration scheme for checking the target SAS expander and the main control server whether Match, if mismatching, adjusts the zone configuration scheme of the target SAS expander, including:
Obtain the first configuration identifier in the zone configuration scheme selector;
Service identification based on local service searches configured zone configuration table, determines corresponding with the service identification the Two configuration identifiers;Wherein, the zone configuration table includes the mapping relations of service identification and configuration identifier;
Check whether first configuration identifier and second configuration identifier are consistent, if inconsistent, to the target SAS Expander sends configuration switching command, and the configuration switching command carries second configuration identifier, to be expanded by the target SAS First configuration identifier in the zone configuration scheme selector is replaced with second configuration identifier, from described by exhibition device The corresponding zone configuration parameter of second configuration identifier is obtained in configuration file and configuration is completed based on the zone configuration parameter.
In the method for dividing SAS port subregion, the method further includes:
It adjusts to subregion enabling mode by the operating mode of the target SAS expander, is extended to the target SAS Device sends the configuration switching command, and the configuration switching command carries second configuration identifier, to be expanded by the target SAS First configuration identifier in the zone configuration scheme selector is replaced with second configuration identifier, from described by exhibition device The corresponding zone configuration parameter of second configuration identifier is obtained in configuration file and configuration is completed based on the zone configuration parameter.
In the method for dividing SAS port subregion, the main control server includes at least two controllers, the mesh There are the distal end SAS expanders of the target SAS expander in disk chassis unit residing for mark SAS expander;
The method further includes:
If the operating mode of the target SAS expander and the business of the main control server mismatch, the mesh is adjusted Mark the operating mode of the distal end SAS expander of SAS expander;
If the zone configuration scheme of the target SAS expander and the business of the main control server mismatch, institute is adjusted State the zone configuration scheme of the distal end SAS expander of target SAS expander.
A kind of device dividing SAS port subregion, is applied to the main control server of SAS domain, the SAS domain includes several SAS expander, including:
The business of the first adjustment unit, operating mode and the main control server for checking target SAS expander is No matching adjusts the operating mode of the target SAS expander if mismatching;Wherein, the operating mode includes that subregion enables Pattern and subregion not enabled pattern;
Second adjustment unit, if for being that subregion enables mould with the matched operating mode of the business of the main control server Formula, checks whether the zone configuration scheme of the target SAS expander matches with the business of the main control server, if not Match, adjusts the zone configuration scheme of the target SAS expander.
In the device for dividing SAS port subregion, the target SAS expander includes the enabled switch of subregion, described The enabled switch of subregion characterizes the operating mode that the target SAS expander need to enable;
The first adjustment unit, is further used for:
Check whether the enabled switch of the subregion is opened;
If so, checking whether the matched operating mode of business with the main control server is subregion enabling mode;
If the matched operating mode of business with the main control server is subregion not enabled pattern, to the target SAS expander sends subregion shutdown command, to close the enabled switch of the subregion by the target SAS expander and by Working mould Formula switches to subregion not enabled pattern.
In the device for dividing SAS port subregion, the target SAS expander includes the enabled switch of subregion, described The enabled switch of subregion characterizes the operating mode that the target SAS expander need to enable;
The first adjustment unit, is further used for:
Check whether the enabled switch of the subregion is opened;
If not, checking whether the matched operating mode of business with the main control server is subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, to the target SAS Expander sends subregion enable command, to open the enabled switch of the subregion by the target SAS expander and by operating mode Switch to subregion enabling mode.
In the device for dividing SAS port subregion, the target SAS expander includes zone configuration scheme selector And configuration file, wherein the zone configuration scheme selector is written with configuration identifier, and the configuration file includes a variety of subregions Parameter is configured, there are corresponding configuration identifiers for each zone configuration parameter;
The second adjustment unit, is further used for:
Obtain the first configuration identifier in the zone configuration scheme selector;
Service identification based on local service searches configured zone configuration table, determines corresponding with the service identification the Two configuration identifiers;Wherein, the zone configuration table includes the mapping relations of service identification and configuration identifier;
Check whether first configuration identifier and second configuration identifier are consistent, if inconsistent, to the target SAS Expander sends configuration switching command, and the configuration switching command carries second configuration identifier, to be expanded by the target SAS First configuration identifier in the zone configuration scheme selector is replaced with second configuration identifier, from described by exhibition device The corresponding zone configuration parameter of second configuration identifier is obtained in configuration file and configuration is completed based on the zone configuration parameter.
In the embodiment of the present application, main control server can check target SAS expander operating mode and business whether Matching adjusts the operating mode of the target SAS expander if mismatching, wherein the operating mode includes that subregion enables mould Formula and subregion not enabled pattern;If the matched operating mode of business with the target SAS expander is subregion enabling mode, inspection Whether the zone configuration scheme for looking into the target SAS expander matches with business, if mismatching, adjusts the target SAS extensions The zone configuration scheme of device;
Since the main control server of SAS domain can adjust the operating mode and zone configuration scheme of target SAS expander, make Target SAS expander is obtained to switch between subregion enabling mode and subregion not enabled pattern, it can also be at a variety of points It is switched between area's allocation plan.
Description of the drawings
Fig. 1 is a kind of SAS domain network architecture diagram shown in the application;
Fig. 2 is a kind of flow chart of the method for division SAS port subregion shown in the application;
Fig. 3 is a kind of flow diagram of the method for division SAS port subregion shown in the application;
Fig. 4 is a kind of flow diagram of SAS expander zone configuration shown in the application;
Fig. 5 is another SAS domain network architecture diagram shown in the application;
Fig. 6 is a kind of embodiment block diagram of the device of division SAS port subregion shown in the application;
Fig. 7 is a kind of hardware structure diagram of the device of division SAS port subregion shown in the application.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present invention, and make of the invention real The above objects, features, and advantages for applying example can be more obvious and easy to understand, below in conjunction with the accompanying drawings to prior art and the present invention Technical solution in embodiment is described in further detail.
It is a kind of SAS domain network architecture diagram shown in the application referring to Fig. 1.As shown in Figure 1, the SAS domain includes one SPU (Storage Processor Unit, storage control unit) and DSU (Disk Shelf Unit, a disk chassis list Member), wherein include a SAS expander and multiple disks in DSU.
In this application, SPU is adjusted the zone configuration scheme of SAS expander as main control server.
In addition, Fig. 1 is a kind of more concise SAS domain network architecture diagram, in practical applications, SAS domain may include multiple SAS expander in DSU, each DSU can connect two-by-two so that DSU is interconnected.
It is a kind of flow chart of the method for division SAS port subregion shown in the application referring to Fig. 2, this method is applied to The main control server of SAS domain, above-mentioned SAS domain include several SAS expanders;This method includes:
Step 201:Whether the business of the operating mode and the main control server that check target SAS expander matches, if It mismatches, adjusts the operating mode of the target SAS expander;Wherein, the operating mode includes subregion enabling mode and divides Area's not enabled pattern.
Wherein, above-mentioned main control server is used to adjust the zone configuration scheme of each SAS expander, and main control server can be SPU。
Above-mentioned target SAS expander refers to any SAS expander for receiving main control server adjustment, is for ease of retouching The name for stating progress, does not limit the application.
Subregion enabling mode is Zoning Enable patterns, and subregion not enabled pattern is Zoning Disable moulds Formula.
In a kind of embodiment shown, the enabled switch of subregion is respectively configured in each SAS expander, and above-mentioned subregion is enabled to be opened Close the operating mode that characterization SAS expander need to enable.
In this embodiment, main control server is when checking the operating mode of above-mentioned target SAS expander, Ke Yijian Whether the enabled switch of subregion for looking into above-mentioned target SAS expander is opened.As a kind of embodiment, main control server can be to above-mentioned Target SAS expander issues enabled switch and checks order, to report the enabled switch of local subregion by above-mentioned target SAS expander State, the state be turned on and off.As a kind of embodiment, the order occurred in the application can be SES (SCSI Enclosure Services, SCSI enclosure service) order.
It is a kind of flow diagram of the method for division SAS port subregion shown in the application referring to Fig. 3.Such as Fig. 3 institutes Show, after SAS domain system reboot, main control server starts to check the operating mode of target SAS expander, in step 303, first Judge whether target SAS expander is subregion enabling mode.
On the one hand, if the enabled switch of above-mentioned subregion is opened, the operating mode of above-mentioned target SAS expander can be determined It is subregion enabling mode.Referring to the step 304 of Fig. 3, in this case, main control server can be checked further to be taken with master control Whether the matched operating mode of business of business device is subregion enabling mode.
As a kind of embodiment, it is pre-configured zone configuration table on main control server, which includes service identification With the mapping relations of configuration identifier.Wherein, the business that may be run on service identification characterization main control server;Configuration identifier characterizes The zone configuration scheme that main control server may use, each zone configuration scheme are respectively present corresponding zone configuration parameter, into One step, the configuration identifier of characterization zone configuration scheme corresponds to zone configuration parameter.
It should be pointed out that for can be with for the business of subregion not enabled pattern match, on above-mentioned zone configuration table The service identification of such business is not recorded, alternatively, what is recorded in above-mentioned zone configuration table is corresponding with the service identification of such business Configuration identifier be sky.
(1) service identification of the main control server based on local service finds corresponding configuration identifier, then can determine with The matched operating mode of business of above-mentioned main control server is subregion enabling mode.Referring to the step 306 of Fig. 3, in such case Under, main control server can further judge whether current business matches with zone configuration scheme.Specific correlation as detailed below is retouched It states.
(2) service identification of the main control server based on local service does not find corresponding configuration identifier or what is found match It sets and is identified as sky, then can determine that with the matched operating mode of the business of above-mentioned main control server be subregion not enabled pattern.Ginseng See the step 307 of Fig. 3, in this case, main control server can send subregion to above-mentioned target SAS expander and close life It enables.Above-mentioned target SAS expander receives the subregion shutdown command, can close the enabled switch of the subregion of itself, and by work Pattern switching is to subregion not enabled pattern.
Certainly, in practical applications, above-mentioned target SAS expander need to restart after closing the enabled switch of the subregion of itself And after noticing main control server to be restarted by main control server, subregion not enabled pattern can be just switched to.The step of referring to Fig. 3 308。
It is a kind of flow diagram of SAS expander zone configuration shown in the application referring to Fig. 4.Such as Fig. 4 steps 410 It is shown, it, can be with the state of the enabled switch of regeneration block so that weight after above-mentioned target SAS expander receives subregion shutdown command Open rear switching working mode.
On the other hand, if the enabled switch of above-mentioned subregion is closed, the Working mould of above-mentioned target SAS expander can be determined Formula is subregion not enabled pattern.Referring to the step 304 of Fig. 3, in this case, main control server can be checked further and master Whether the matched operating mode of business for controlling server is subregion not enabled pattern.
As a kind of embodiment, main control server is yet by above-mentioned zone configuration table is searched, with determining and main control server The matched operating mode of business whether be subregion not enabled pattern.
(1) service identification of the main control server based on local service does not find corresponding configuration identifier or what is found match It sets and is identified as sky, then the confirmable and above-mentioned main control server matched operating mode of business is subregion not enabled pattern. Referring to the step 313 of Fig. 3, in this case, main control server is not necessarily to carry out the zone configuration scheme of target SAS expander Adjustment, zone configuration check process terminate.
(2) service identification of the main control server based on local service finds corresponding configuration identifier, then can determine with The matched operating mode of business of above-mentioned main control server is subregion enabling mode.Referring to the step 310 of Fig. 3, in such case Under, main control server can send subregion enable command to above-mentioned target SAS expander.Above-mentioned target SAS expander receives The subregion enable command can open the enabled switch of the subregion of itself, and operating mode is switched to subregion enabling mode.
Certainly, in practical applications, above-mentioned target SAS expander need to restart after opening the enabled switch of the subregion of itself And by main control server to be restarted by main control server after, can just switch to subregion enabling mode.Referring to the step 311 of Fig. 3.
As shown in Fig. 4 steps 410, after above-mentioned target SAS expander receives subregion enable command, it can be made with regeneration block The state that can be switched so that restart rear switching working mode.
Step 202:If the matched operating mode of business with the main control server is subregion enabling mode, described in inspection Whether the zone configuration scheme of target SAS expander matches with the business of the main control server, if mismatching, adjusts the mesh Mark the zone configuration scheme of SAS expander.
If main control server has determined that the operating mode of above-mentioned target SAS expander is subregion enabling mode before this, and really Fixed and main control server the matched operating mode of business is subregion enabling mode.Referring to the step 306 of Fig. 3, in such case Under, main control server may determine that whether current business matches with zone configuration scheme.
In a kind of embodiment shown, above-mentioned target SAS expander includes zone configuration scheme selector and configuration File.Wherein, above-mentioned zone configuration scheme selector is written with configuration identifier, which characterizes above-mentioned target SAS extensions The zone configuration scheme that device need to execute;Above-mentioned configuration file includes a variety of zone configuration parameters.It is pointed out that above-mentioned subregion The configuration identifier of acquiescence is written in allocation plan selector under initial situation, and the configuration identifier of the acquiescence can indicate master control service The matched zone configuration scheme of the maximum business of running frequency on device.Therefore, main control server is by above-mentioned target SAS expander Operating mode adjust to subregion enabling mode, it may not be necessary to adjust the zone configuration scheme of above-mentioned target SAS expander.
In this embodiment, main control server can obtain the zone configuration scheme choosing of above-mentioned target SAS expander Select the first configuration identifier in device.Further, main control server can search above-mentioned point based on the service identification of local service Area's allocation list determines the second configuration identifier corresponding with the service identification.
Wherein, the first configuration identifier and the second configuration identifier refer to corresponding with zone configuration scheme (zone configuration parameter) Configuration identifier, the name only carried out for ease of description, does not limit the application.
Main control server can check whether above-mentioned first configuration identifier and above-mentioned second configuration identifier are consistent.
(1) above-mentioned first configuration identifier is consistent with above-mentioned second configuration identifier, referring to the step 313 of Fig. 3, in such case Under, without being adjusted to the zone configuration scheme of target SAS expander, zone configuration check process terminates main control server.
(2) above-mentioned first configuration identifier and above-mentioned second configuration identifier are inconsistent, referring to the step 309 of Fig. 3, master control service Device can send configuration switching command to above-mentioned target SAS expander.Wherein, above-mentioned configuration switching command carries above-mentioned second and matches Set mark.
Above-mentioned target SAS expander receives the configuration switching command, can be by local zone configuration scheme selector In above-mentioned first configuration identifier replace with above-mentioned second configuration identifier, above-mentioned second is then obtained from above-mentioned configuration file and is matched It sets the corresponding zone configuration parameter of mark and configuration is completed based on the zone configuration parameter.
Certainly, in practical applications, configuration mark of the above-mentioned target SAS expander in regeneration block allocation plan selector After knowledge, need to restart and by main control server to be restarted by main control server after, zone configuration could be completed.Referring to the step of Fig. 3 Rapid 308.
As shown in Fig. 4 steps 420, after above-mentioned target SAS expander receives configuration switching command, it can update local Zone configuration scheme selector so that based on the configuration identifier selection zone configuration ginseng in zone configuration scheme selector after restarting Number completes zone configuration.
Due to being previously written a variety of zone configuration parameters in configuration file, SAS expander can be based on configuration identifier and obtain Zone configuration parameter carries out zone configuration, and entire configuration process takes extremely short.
In addition, in a kind of embodiment shown, if main control server is with the above-mentioned target SAS expander of determination before this Operating mode is subregion not enabled pattern, and determines that with the matched operating mode of main control server be subregion enabling mode.At this In the case of kind, main control server is adjusted by the operating mode of above-mentioned target SAS expander to subregion enabling mode, to shorten Testing process is distributed, target SAS expander can be stated directly up and send configuration switching command;Wherein, the configuration switching command Carry the second configuration identifier corresponding with the service identification of local service.
Still by taking Fig. 3 as an example, i.e., between step 310 and step 311, configuration switching is sent to above-mentioned target SAS expander Order.
Above-mentioned target SAS expander receives the configuration switching command, can be to local zone configuration scheme selector Middle above-mentioned second configuration identifier of write-in, then obtains the corresponding zone configuration of above-mentioned second configuration identifier from above-mentioned configuration file Parameter simultaneously completes configuration based on the zone configuration parameter.
Technical scheme applies also for the main control server for the SAS domain more controlled.Referring to Fig. 5, shown for the application Another SAS domain network architecture diagram, the main control server in the SAS domain network architecture diagram is dual control server, including two Controller.As shown in figure 5, the SAS domain includes SPU and DSU, wherein include two SAS expanders in DSU and more A disk.It should be pointed out that in the DSU being adapted to dual control server, two SAS expanders are with multiple disks with identical side Formula connects.
The operating mode and zone configuration that one controller of main control server is responsible for operation business, adjusts SAS expander Scheme, when the controller breaks down, then another controller can take over the work of the controller.To ensure that another controller connects After pipe business, still can under correct zone configuration scheme normal operation, need to ensure each SAS expander in same disk chassis unit Zone configuration scheme it is consistent.
If in view of this, above-mentioned target SAS expander operating mode and above-mentioned main control server business mismatch, Main control server also needs to adjust above-mentioned target SAS expander other than adjusting the operating mode of above-mentioned target SAS expander The operating mode of distal end SAS expander.Wherein, said distal ends SAS expander is in disk chassis unit in addition to above-mentioned target SAS Other SAS expanders other than expander.
In a kind of embodiment shown, the enabled switch of subregion is respectively configured in each SAS expander, and above-mentioned subregion is enabled to be opened Close the operating mode that characterization SAS expander need to enable.
In this embodiment, main control server is checking the operating mode for finding target SAS expander and local industry It, can be with other than sending subregion shutdown command (or subregion enable command) to above-mentioned target SAS expander when business mismatches Subregion shutdown command (or subregion enable command) is sent to the distal end SAS expander of above-mentioned target SAS expander.
Alternatively, main control server is when checking that operating mode and the local service for finding target SAS expander mismatch, to After above-mentioned target SAS expander sends subregion shutdown command (or subregion enable command), above-mentioned target SAS expander is in addition to update Outside the enabled switch of local subregion and switching working mode, also need to forward above-mentioned subregion shutdown command (or subregion enable command) To distal end SAS expander, to update the enabled switch of the subregion of itself and switching working mode by said distal ends SAS expander.
In addition, if the business of the zone configuration scheme of above-mentioned target SAS expander and above-mentioned main control server mismatches, Main control server also needs to adjust above-mentioned target SAS extensions other than adjusting the zone configuration scheme of above-mentioned target SAS expander The zone configuration scheme of the distal end SAS expander of device.
In a kind of embodiment shown, each SAS expander respectively includes zone configuration Scheme Choice, and it is literary with configuration Part.Wherein, above-mentioned zone configuration scheme selector is written with configuration identifier, and configuration identifier characterization SAS expander need to execute Zone configuration scheme;Above-mentioned configuration file includes a variety of zone configuration parameters.
In this embodiment, main control server is checking the zone configuration scheme for finding target SAS expander and this It, can also be to above-mentioned target other than sending configuration switching command to above-mentioned target SAS expander when ground business mismatches The distal end SAS expander of SAS expander sends configuration switching command.
Alternatively, main control server is checking the zone configuration scheme for finding target SAS expander and local service mismatch When, after sending configuration switching command to above-mentioned target SAS expander, above-mentioned target SAS expander is matched in addition to update Local partition The configuration identifier in scheme selector is set, zone configuration parameter corresponding with configuration identifier is obtained from configuration file and is based on being somebody's turn to do Zone configuration parameter is completed other than configuration, also needs above-mentioned configuration switching command being forwarded to distal end SAS expander.Distal end SAS expands Exhibition device receives the configuration switching command, equally can in regeneration block allocation plan selector configuration identifier, from configuration text Zone configuration parameter corresponding with configuration identifier is obtained in part and configuration is completed based on the zone configuration parameter.
In conclusion in technical scheme, main control server can check the operating mode of target SAS expander Whether matched with business, if mismatching, adjusts the operating mode of the target SAS expander, wherein the operating mode includes Subregion enabling mode and subregion not enabled pattern;If the matched operating mode of business with the target SAS expander is subregion Enabling mode, checks whether the zone configuration scheme of the target SAS expander matches with business, if mismatching, described in adjustment The zone configuration scheme of target SAS expander;
Since the main control server of SAS domain can adjust the operating mode and zone configuration scheme of target SAS expander, make Target SAS expander is obtained to switch between subregion enabling mode and subregion not enabled pattern, it can also be at a variety of points It is switched between area's allocation plan;
In addition, technical scheme is also applied for the main control server for the SAS domain more controlled so that each in disk chassis unit The zone configuration scheme of SAS expander is identical, to after the switching of the controller of main control server, match in correct subregion It sets and runs business under scheme.
Corresponding with the aforementioned division embodiment of method of SAS port subregion, present invention also provides divide SAS port point The embodiment of the device in area.
It is a kind of embodiment block diagram of the device of division SAS port subregion shown in the application referring to Fig. 6:
As shown in fig. 6, the device 60 of the division SAS port subregion includes:
The first adjustment unit 610, the business of operating mode and the main control server for checking target SAS expander Whether match, if mismatching, adjusts the operating mode of the target SAS expander;Wherein, the operating mode includes that subregion opens With pattern and subregion not enabled pattern.
Second adjustment unit 620, if for being that subregion enables with the matched operating mode of the business of the main control server Pattern, checks whether the zone configuration scheme of the target SAS expander matches with the business of the main control server, if not Match, adjusts the zone configuration scheme of the target SAS expander.
In this example, the target SAS expander includes the enabled switch of subregion, and the enabled switch of the subregion characterizes the mesh The operating mode that mark SAS expander need to enable;
The first adjustment unit 610, is further used for:
Check whether the enabled switch of the subregion is opened;
If so, checking whether the matched operating mode of business with the main control server is subregion enabling mode;
If the matched operating mode of business with the main control server is subregion not enabled pattern, to the target SAS expander sends subregion shutdown command, to close the enabled switch of the subregion by the target SAS expander and by Working mould Formula switches to subregion not enabled pattern.
In this example, the target SAS expander includes the enabled switch of subregion, and the enabled switch of the subregion characterizes the mesh The operating mode that mark SAS expander need to enable;
The first adjustment unit 610, is further used for:
Check whether the enabled switch of the subregion is opened;
If not, checking whether the matched operating mode of business with the main control server is subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, to the target SAS Expander sends subregion enable command, to open the enabled switch of the subregion by the target SAS expander and by operating mode Switch to subregion enabling mode.
In this example, the target SAS expander includes zone configuration scheme selector and configuration file, wherein described Zone configuration scheme selector is written with configuration identifier, and the configuration file includes a variety of zone configuration parameters, each zone configuration There are corresponding configuration identifiers for parameter;
The second adjustment unit 620, is further used for:
Obtain the first configuration identifier in the zone configuration scheme selector;
Service identification based on local service searches configured zone configuration table, determines corresponding with the service identification the Two configuration identifiers;Wherein, the zone configuration table includes the mapping relations of service identification and configuration identifier;
Check whether first configuration identifier and second configuration identifier are consistent, if inconsistent, to the target SAS Expander sends configuration switching command, and the configuration switching command carries second configuration identifier, to be expanded by the target SAS First configuration identifier in the zone configuration scheme selector is replaced with second configuration identifier, from described by exhibition device The corresponding zone configuration parameter of second configuration identifier is obtained in configuration file and configuration is completed based on the zone configuration parameter.
In this example, the second adjustment unit 620, is further used for:
It adjusts to subregion enabling mode by the operating mode of the target SAS expander, is extended to the target SAS Device sends the configuration switching command, and the configuration switching command carries second configuration identifier, to be expanded by the target SAS First configuration identifier in the zone configuration scheme selector is replaced with second configuration identifier, from described by exhibition device The corresponding zone configuration parameter of second configuration identifier is obtained in configuration file and configuration is completed based on the zone configuration parameter.
In this example, the main control server includes at least two controllers, the disk residing for the target SAS expander There are the distal end SAS expanders of the target SAS expander in cabinet unit;
Described device further includes:
The first adjustment unit 610, if being further used for the operating mode of the target SAS expander and the master control The business of server mismatches, and adjusts the operating mode of the distal end SAS expander of the target SAS expander;
The second adjustment unit 620, if be further used for the zone configuration scheme of the target SAS expander with it is described The business of main control server mismatches, and adjusts the zone configuration scheme of the distal end SAS expander of the target SAS expander.
The embodiment that the application divides the device of SAS port subregion can be applied on main control server.Device embodiment It can also be realized by way of hardware or software and hardware combining by software realization.For implemented in software, as one Device on a logical meaning is by the processor of main control server where it by corresponding calculating in nonvolatile memory Machine program instruction reads what operation in memory was formed.For hardware view, as shown in fig. 7, dividing SAS port for the application A kind of hardware structure diagram of main control server where the device of subregion, in addition to processor shown in Fig. 7, memory, network interface, with And except nonvolatile memory, the main control server in embodiment where device is generally according to the division SAS port subregion The actual functional capability of device can also include other hardware, be repeated no more to this.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiments of the application, not limiting the application, all essences in the application With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of the application protection god.

Claims (10)

1. a kind of method dividing SAS port subregion, is applied to the main control server of SAS domain, the SAS domain includes several SAS Expander, which is characterized in that including:
Whether the business of the operating mode and the main control server that check target SAS expander matches, if mismatching, adjusts institute State the operating mode of target SAS expander;Wherein, the operating mode includes subregion enabling mode and subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, the target SAS extensions are checked Whether the zone configuration scheme of device matches with the business of the main control server, if mismatching, adjusts the target SAS expander Zone configuration scheme.
2. according to the method described in claim 1, it is characterized in that, the target SAS expander, which includes subregion, enables switch, institute It states the enabled switch of subregion and characterizes the operating mode that the target SAS expander need to enable;
Whether the business of the operating mode for checking target SAS expander and the main control server matches, if mismatching, adjusts The operating mode of the whole target SAS expander, including:
Check whether the enabled switch of the subregion is opened;
If so, checking whether the matched operating mode of business with the main control server is subregion enabling mode;
If the matched operating mode of business with the main control server is subregion not enabled pattern, expand to the target SAS It opens up device and sends subregion shutdown command, to be closed the enabled switch of the subregion by the target SAS expander and be cut operating mode Shift to subregion not enabled pattern.
3. according to the method described in claim 1, it is characterized in that, the target SAS expander, which includes subregion, enables switch, institute It states the enabled switch of subregion and characterizes the operating mode that the target SAS expander need to enable;
Whether the business of the operating mode for checking target SAS expander and the main control server matches, if mismatching, adjusts The operating mode of the whole target SAS expander, including:
Check whether the enabled switch of the subregion is opened;
If not, checking whether the matched operating mode of business with the main control server is subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, extended to the target SAS Device sends subregion enable command, to be opened the enabled switch of the subregion by the target SAS expander and be switched operating mode To subregion enabling mode.
4. according to the method described in claim 1, it is characterized in that, the target SAS expander includes the choosing of zone configuration scheme Select device and configuration file, wherein the zone configuration scheme selector is written with configuration identifier, and the configuration file includes a variety of Zone configuration parameter, there are corresponding configuration identifiers for each zone configuration parameter;
It is described to check whether the zone configuration scheme of the target SAS expander matches with the business of the main control server, if It mismatches, adjusts the zone configuration scheme of the target SAS expander, including:
Obtain the first configuration identifier in the zone configuration scheme selector;
Service identification based on local service searches configured zone configuration table, determines that corresponding with the service identification second matches Set mark;Wherein, the zone configuration table includes the mapping relations of service identification and configuration identifier;
It checks whether first configuration identifier and second configuration identifier are consistent, if inconsistent, is extended to the target SAS Device sends configuration switching command, and the configuration switching command carries second configuration identifier, with by the target SAS expander First configuration identifier in the zone configuration scheme selector is replaced with into second configuration identifier, from the configuration The corresponding zone configuration parameter of second configuration identifier is obtained in file and configuration is completed based on the zone configuration parameter.
5. according to the method described in claim 4, it is characterized in that, the method further includes:
It adjusts to subregion enabling mode by the operating mode of the target SAS expander, is sent out to the target SAS expander The configuration switching command is sent, the configuration switching command carries second configuration identifier, with by the target SAS expander First configuration identifier in the zone configuration scheme selector is replaced with into second configuration identifier, from the configuration The corresponding zone configuration parameter of second configuration identifier is obtained in file and configuration is completed based on the zone configuration parameter.
6. according to the method described in claim 1, it is characterized in that, the main control server includes at least two controllers, institute State in the disk chassis unit residing for target SAS expander that there are the distal end SAS expanders of the target SAS expander;
The method further includes:
If the operating mode of the target SAS expander and the business of the main control server mismatch, the target SAS is adjusted The operating mode of the distal end SAS expander of expander;
If the zone configuration scheme of the target SAS expander and the business of the main control server mismatch, the mesh is adjusted Mark the zone configuration scheme of the distal end SAS expander of SAS expander.
7. a kind of device dividing SAS port subregion, is applied to the main control server of SAS domain, the SAS domain includes several SAS Expander, which is characterized in that including:
The first adjustment unit, the business of operating mode and the main control server for checking target SAS expander whether Match, if mismatching, adjusts the operating mode of the target SAS expander;Wherein, the operating mode includes subregion enabling mode With subregion not enabled pattern;
Second adjustment unit, if for being subregion enabling mode with the matched operating mode of the business of the main control server, inspection Whether the zone configuration scheme for looking into the target SAS expander matches with the business of the main control server, if mismatching, adjustment The zone configuration scheme of the target SAS expander.
8. device according to claim 7, which is characterized in that the target SAS expander includes the enabled switch of subregion, institute It states the enabled switch of subregion and characterizes the operating mode that the target SAS expander need to enable;
The first adjustment unit, is further used for:
Check whether the enabled switch of the subregion is opened;
If so, checking whether the matched operating mode of business with the main control server is subregion enabling mode;
If the matched operating mode of business with the main control server is subregion not enabled pattern, expand to the target SAS It opens up device and sends subregion shutdown command, to be closed the enabled switch of the subregion by the target SAS expander and be cut operating mode Shift to subregion not enabled pattern.
9. device according to claim 7, which is characterized in that the target SAS expander includes the enabled switch of subregion, institute It states the enabled switch of subregion and characterizes the operating mode that the target SAS expander need to enable;
The first adjustment unit, is further used for:
Check whether the enabled switch of the subregion is opened;
If not, checking whether the matched operating mode of business with the main control server is subregion not enabled pattern;
If the matched operating mode of business with the main control server is subregion enabling mode, extended to the target SAS Device sends subregion enable command, to be opened the enabled switch of the subregion by the target SAS expander and be switched operating mode To subregion enabling mode.
10. device according to claim 7, which is characterized in that the target SAS expander includes the choosing of zone configuration scheme Select device and configuration file, wherein the zone configuration scheme selector is written with configuration identifier, and the configuration file includes a variety of Zone configuration parameter, there are corresponding configuration identifiers for each zone configuration parameter;
The second adjustment unit, is further used for:
Obtain the first configuration identifier in the zone configuration scheme selector;
Service identification based on local service searches configured zone configuration table, determines that corresponding with the service identification second matches Set mark;Wherein, the zone configuration table includes the mapping relations of service identification and configuration identifier;
It checks whether first configuration identifier and second configuration identifier are consistent, if inconsistent, is extended to the target SAS Device sends configuration switching command, and the configuration switching command carries second configuration identifier, with by the target SAS expander First configuration identifier in the zone configuration scheme selector is replaced with into second configuration identifier, from the configuration The corresponding zone configuration parameter of second configuration identifier is obtained in file and configuration is completed based on the zone configuration parameter.
CN201810439712.1A 2018-05-09 2018-05-09 Method and device for dividing SAS port partition Active CN108595127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810439712.1A CN108595127B (en) 2018-05-09 2018-05-09 Method and device for dividing SAS port partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810439712.1A CN108595127B (en) 2018-05-09 2018-05-09 Method and device for dividing SAS port partition

Publications (2)

Publication Number Publication Date
CN108595127A true CN108595127A (en) 2018-09-28
CN108595127B CN108595127B (en) 2021-07-30

Family

ID=63636170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810439712.1A Active CN108595127B (en) 2018-05-09 2018-05-09 Method and device for dividing SAS port partition

Country Status (1)

Country Link
CN (1) CN108595127B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384985A (en) * 2006-11-21 2009-03-11 Lsi公司 Sas zone group permission table version identifiers
CN101615106A (en) * 2008-06-23 2009-12-30 国际商业机器公司 The method and system that is used for virtualizing SAS storage adapter
US20100036948A1 (en) * 2008-08-06 2010-02-11 Sun Microsystems, Inc. Zoning scheme for allocating sas storage within a blade server chassis
CN101957727A (en) * 2009-07-15 2011-01-26 国际商业机器公司 The method that is used for rearranging logic volume and memory controller
US20110107002A1 (en) * 2009-11-05 2011-05-05 Emulex Design & Manufacturing Corporation SAS Expander-Based SAS/SATA Bridging
CN102279713A (en) * 2011-08-24 2011-12-14 浪潮电子信息产业股份有限公司 Method for logically controlling partitions of physical multi-partition computer architecture
CN102520886A (en) * 2011-12-16 2012-06-27 浪潮电子信息产业股份有限公司 Partitioned logic control method for physical multi-partition computer architecture based on NUMA (non-uniform memory access)
CN103164168A (en) * 2011-12-17 2013-06-19 鸿富锦精密工业(深圳)有限公司 System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander
CN103440177A (en) * 2013-08-23 2013-12-11 浪潮电子信息产业股份有限公司 Storage control redundancy method based on multiple NUMA physical layer partitions
US20140297910A1 (en) * 2013-03-29 2014-10-02 Hewlett-Packard Development Company, L.P. Sas expander
CN105335168A (en) * 2014-05-27 2016-02-17 阿里巴巴集团控股有限公司 System, method and apparatus for remotely configuring operating system
CN106155568A (en) * 2015-04-03 2016-11-23 华为技术有限公司 A kind of method of partition holding and terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384985A (en) * 2006-11-21 2009-03-11 Lsi公司 Sas zone group permission table version identifiers
CN101615106A (en) * 2008-06-23 2009-12-30 国际商业机器公司 The method and system that is used for virtualizing SAS storage adapter
US20100036948A1 (en) * 2008-08-06 2010-02-11 Sun Microsystems, Inc. Zoning scheme for allocating sas storage within a blade server chassis
CN101957727A (en) * 2009-07-15 2011-01-26 国际商业机器公司 The method that is used for rearranging logic volume and memory controller
US20110107002A1 (en) * 2009-11-05 2011-05-05 Emulex Design & Manufacturing Corporation SAS Expander-Based SAS/SATA Bridging
CN102279713A (en) * 2011-08-24 2011-12-14 浪潮电子信息产业股份有限公司 Method for logically controlling partitions of physical multi-partition computer architecture
CN102520886A (en) * 2011-12-16 2012-06-27 浪潮电子信息产业股份有限公司 Partitioned logic control method for physical multi-partition computer architecture based on NUMA (non-uniform memory access)
CN103164168A (en) * 2011-12-17 2013-06-19 鸿富锦精密工业(深圳)有限公司 System and method for adjusting redundant array of independent disk card connected with serial attached small computer system interface (SAS) expander
US20140297910A1 (en) * 2013-03-29 2014-10-02 Hewlett-Packard Development Company, L.P. Sas expander
CN103440177A (en) * 2013-08-23 2013-12-11 浪潮电子信息产业股份有限公司 Storage control redundancy method based on multiple NUMA physical layer partitions
CN105335168A (en) * 2014-05-27 2016-02-17 阿里巴巴集团控股有限公司 System, method and apparatus for remotely configuring operating system
CN106155568A (en) * 2015-04-03 2016-11-23 华为技术有限公司 A kind of method of partition holding and terminal

Also Published As

Publication number Publication date
CN108595127B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
US7849248B2 (en) Method and system for combining multiple serial attached small computer system interface (SAS) expanders
US8321596B2 (en) SAS paired subtractive routing
US8077605B2 (en) Method for providing path failover for multiple SAS expanders operating as a single SAS expander
JP5363776B2 (en) System and method for patching computer programs
US9460028B1 (en) Non-disruptive and minimally disruptive data migration in active-active clusters
US7836293B1 (en) Accelerated deserialized boot implementation for a multiprocessor system
CN105335168B (en) Realize system, the method and device of operating system Remote configuration
TWI462016B (en) Method for automatic installation and setting of server and application program for the same
EP2163997A1 (en) Specifying lanes for SAS wide port connections
KR20060043696A (en) A method for heterogeneous system configuration
JPH10105345A (en) Array disk device
US6912632B2 (en) Storage system, storage system control method, and storage medium having program recorded thereon
JP2003345730A (en) Interface device, method for updating firmware in interface device and program therefor
GB2300735A (en) Mirror disk control
US20140297910A1 (en) Sas expander
US9799413B2 (en) Multi-domain fuse management
US20130246706A1 (en) Storage apparatus and program update method
US11113072B2 (en) Boot personality for network device
US7047367B2 (en) Information processing device and setting method for same
CN104158709A (en) Optical module identification method and port extender
CN108595127A (en) A kind of method and device dividing SAS port subregion
CN105260137B (en) Realize that HBA cards access the method and apparatus of SATA disks in SAS storage system
US20140029467A1 (en) Zoning record update
US11340889B2 (en) Updating firmware images on chained input/output (I/O) modules
US11983138B2 (en) Self-configuring SSD multi-protocol support in host-less environment

Legal Events

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