CN104932922A - Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk - Google Patents

Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk Download PDF

Info

Publication number
CN104932922A
CN104932922A CN201510341403.7A CN201510341403A CN104932922A CN 104932922 A CN104932922 A CN 104932922A CN 201510341403 A CN201510341403 A CN 201510341403A CN 104932922 A CN104932922 A CN 104932922A
Authority
CN
China
Prior art keywords
bootoption
hard disk
card hard
sas
sas card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510341403.7A
Other languages
Chinese (zh)
Inventor
李道童
郑媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510341403.7A priority Critical patent/CN104932922A/en
Publication of CN104932922A publication Critical patent/CN104932922A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for regulating a boot sequence of an SAS (Serial Attached SCSI) card hard disk. The method comprises the following steps: determining a headmost SAS card hard disk which is started in advance; determining all SAS card hard disks, and obtaining the SASIndex of all SAS card hard disks; traversing all pieces of BootOption, and determining the BootOption corresponding to each SASIndex; according to the SAS card hard disk corresponding to each SASIndex and the BootOption corresponding to each SASIndex, determining the BootOption corresponding to each SAS card hard disk; and according to the determined headmost SAS card hard disk, determining the value of Priority in the BootOption corresponding to all SAS card hard disks. The method and the device for regulating the boot sequence of the SAS card hard disk can regulate the boot sequence of the SAS card hard disks.

Description

A kind of method and device adjusting SAS card hard disk startup order
Technical field
The present invention relates to field of computer technology, particularly a kind of method and device adjusting SAS card hard disk startup order.
Background technology
SAS (Serial Attached SCSI, Serial Attached SCSI (SAS)) be SCSI technology of new generation, with SATA (the Serial Advanced Technology Attachment of current trend, Serial Advanced Technology Attachment) hard disk is identical, be all adopt serial technology to obtain higher transmission speed, and improve inner space etc. by shortening tie line.The new interfaces that SAS develops after being parallel scsi interface.The design of this interface is usefulness, availability and extendibility in order to improve storage system, provides the compatibility with serial ATA hard disks.As a kind of new memory interface technology, SAS not only functionally can match in excellence or beauty with FibreChannel, also has the ability of compatible SATA, is thus known as the only choosing replacing parallel SCSI by industry.The advantage of SAS is mainly reflected in: dirigibility, can compatible SATA, for user reduces investment outlay; Extendability, a SAS domain at most can direct-connected 16384 equipment.Based on the above advantage of SAS interfacing, SAS is stuck in server field and has application widely, and SAS cartoon is crossed backboard management and is connected hard disk, for server system provides the memory device of high power capacity.
In general, multiple hard disk that a SAS card can be arranged in pairs or groups, according to use habit, generally installing operating system in first hard disk of physical connection.In some SAS card application process, when arrange in pairs or groups multiple hard disk time, hard disk startup order and the physical connection sequence consensus of hard disk cannot be ensured.For example, suppose operating system installation on first hard disk of physical connection order, when starting next time, the boot sequence of this hard disk may be made to change, first hard disk started may not be first hard disk of physical connection, cannot ensure hard disk startup order and the physical connection sequence consensus of hard disk, cause and cannot start the operating system, in prior art, cannot adjust the boot sequence of SAS card hard disk.
Summary of the invention
In view of this, the invention provides a kind of method and the device that adjust the boot sequence of SAS card hard disk, the boot sequence of SAS card hard disk can be adjusted.
On the one hand, the invention provides a kind of method adjusting the boot sequence of SAS card hard disk, comprising: pre-determine the card of the SAS at first hard disk started at first, also comprise:
S1: determine all SAS card hard disks, obtains the index value SASIndex of all SAS card hard disks;
S2: travel through all starting outfit option BootOption, determine the BootOption that each SASIndex is corresponding;
S3: the SAS card hard disk corresponding according to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
S4: according to SAS card hard disk at first described in determining, determine the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
Further, in described S1, describedly determine all SAS card hard disks, comprising:
Starting outfit option list BBS Table in inquiry basic input-output system BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in bus B US sequence number, equipment DEV sequence number, function FUN sequence number;
According to the identifying information of current starting outfit, access current starting outfit, obtain the type information of current starting outfit, wherein, described type information comprises: Type C lass, subtype SubClass;
According to the type information of each starting outfit, determine all SAS card hard disks in starting outfit.
Further, after described S3, also comprise:
Obtain the Priority in BootOption corresponding to each SAS card hard disk, the value of all Priority is sorted according to size order;
Described S4, comprising:
According to the value of all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
Further, described S1, comprising: the BBS Table in traversal BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table;
And/or,
In described S2, describedly determine the BootOption that each SASIndex is corresponding, comprise: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, if, then determine that current SASIndex is corresponding with current BootOption, otherwise, determine that current SASIndex is not corresponding with current BootOption.
Further, also comprise: the physical connection order obtaining all SAS card hard disks;
Described S4, comprising: according to described physical connection order and SAS card hard disk at first described in determining, determine the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
On the other hand, the invention provides a kind of device adjusting the boot sequence of SAS card hard disk, comprising:
First determining unit, for determining the card of the SAS at first hard disk started at first;
First acquiring unit, for determining all SAS card hard disks, obtains the index value SASIndex of all SAS card hard disks;
Second determining unit, for traveling through all starting outfit option BootOption, determines the BootOption that each SASIndex is corresponding;
3rd determining unit, for according to SAS card hard disk corresponding to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
4th determining unit, for according to SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
Further, described first acquiring unit, comprising:
Query unit, for inquiring about the starting outfit option list BBS Table in basic input-output system BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in bus B US sequence number, equipment DEV sequence number, function FUN sequence number;
Second acquisition unit, for the identifying information according to current starting outfit, accesses current starting outfit, obtains the type information of current starting outfit, and wherein, described type information comprises: Type C lass, subtype SubClass;
5th determining unit, for the type information according to each starting outfit, determines all SAS card hard disks in starting outfit.
Further, also comprise:
3rd acquiring unit, for obtaining the Priority in BootOption corresponding to each SAS card hard disk, sorts the value of all Priority according to size order;
Described 4th determining unit, for the value according to all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
Further, described first acquiring unit, for traveling through the BBS Table in BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table;
Further, described second determining unit, perform described determine BootOption corresponding to each SASIndex time, concrete execution: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, when judged result is for being, determine that current SASIndex is corresponding with current BootOption, when judged result is no, determine that current SASIndex is not corresponding with current BootOption.
Further, also comprise: the 4th acquiring unit, for obtaining the physical connection order of all SAS card hard disks;
Described 4th determining unit, for according to described physical connection order and SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
The invention provides a kind of method and the device that adjust the boot sequence of SAS card hard disk, determine all SAS card hard disks, obtain the SASIndex of all SAS card hard disks, the BootOption that each SAS card hard disk is corresponding is found by SASIndex, according to the card of the SAS at first hard disk started at first pre-determined out, determine the value of the Priority in the BootOption that all SAS card hard disks are corresponding, realize the adjustment of the boot sequence to SAS card hard disk.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of process flow diagram adjusting the method for the boot sequence of SAS card hard disk that one embodiment of the invention provides;
Fig. 2 is the process flow diagram of the method for the boot sequence of the another kind adjustment SAS card hard disk that one embodiment of the invention provides;
Fig. 3 is a kind of schematic diagram adjusting the device of the boot sequence of SAS card hard disk that one embodiment of the invention provides;
Fig. 4 is the schematic diagram of the device of the boot sequence of the another kind adjustment SAS card hard disk that one embodiment of the invention provides.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly; below in conjunction with the accompanying drawing in the embodiment of the present invention; technical scheme in the embodiment of the present invention is clearly and completely described; obviously; described embodiment is the present invention's part embodiment, instead of whole embodiments, based on the embodiment in the present invention; the every other embodiment that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belongs to the scope of protection of the invention.
As shown in Figure 1, embodiments provide a kind of method adjusting the boot sequence of SAS card hard disk, the method can comprise the following steps:
S0: pre-determine the card of the SAS at first hard disk started at first;
S1: determine all SAS card hard disks, obtains the SASIndex (index value) of all SAS card hard disks;
S2: travel through all BootOption (starting outfit option), determine the BootOption that each SASIndex is corresponding;
S3: the SAS card hard disk corresponding according to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
S4: according to SAS card hard disk at first described in determining, determine the value of the Priority (priority) in the BootOption that all SAS card hard disks are corresponding.
By a kind of method adjusting the boot sequence of SAS card hard disk that the embodiment of the present invention provides, determine all SAS card hard disks, obtain the SASIndex of all SAS card hard disks, the BootOption that each SAS card hard disk is corresponding is found by SASIndex, according to the card of the SAS at first hard disk started at first pre-determined out, determine the value of the Priority in the BootOption that all SAS card hard disks are corresponding, realize the adjustment of the boot sequence to SAS card hard disk.
In order to the SASIndex of all SAS card hard disks can be obtained, need to find the SAS card hard disk that physical host connects, can realize in the following manner: in described S1, describedly determine all SAS card hard disks, comprising:
BIOS (Basic Input Output System, Basic Input or Output System (BIOS)) in BBS Table (BIOS Boot Select Table, starting outfit option list), determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in BUS (bus) sequence number, DEV (equipment) sequence number, FUN (function) sequence number;
According to the identifying information of current starting outfit, access current starting outfit, obtain the type information of current starting outfit, wherein, described type information comprises: Class (type), SubClass (subtype);
According to the type information of each starting outfit, determine all SAS card hard disks in starting outfit.
In a kind of possible implementation, described S1, comprising: the BBS Table in traversal BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table.
In a kind of possible implementation, existing Priority can be utilized to come again to the Priority assignment of each SAS card hard disk.After described S3, also comprise: obtain the Priority in BootOption corresponding to each SAS card hard disk, the value of all Priority is sorted according to size order;
Described S4, comprising: according to the value of all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
For example, the value of Priority is less, and corresponding SAS card hard disk more preferentially starts, and priority is higher.The Priority of acquisition can be sorted from small to large, in S4, by minimum Priority assignment to the Priority of the boot sequence card of SAS at first hard disk the earliest, the like.
SAS card hard disk is the one in starting outfit, the corresponding BootOption of each starting outfit, in the BootOption of SAS card hard disk, all preserve the SASIndex of corresponding SAS card hard disk, can find by the SASIndex of SAS card hard disk the BootOption that this SAS card hard disk is corresponding.In a kind of possible implementation, in described S2, describedly determine the BootOption that each SASIndex is corresponding, comprise: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, if, then determine that current SASIndex is corresponding with current BootOption, otherwise, determine that current SASIndex is not corresponding with current BootOption.
In a kind of possible implementation, in general, the primary SAS card hard disk in physical connection order is exactly SAS card hard disk at first, can adjust boot sequence according to physical connection order.The method also comprises: the physical connection order obtaining all SAS card hard disks;
Described S4, comprising: according to described physical connection order and SAS card hard disk at first described in determining, determine the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
In this embodiment, one station server is loaded with SAS card hard disk 1, SAS card hard disk 2, SAS card hard disk 3, wherein, operating system is in SAS card hard disk 2, need to allow SAS card hard disk 2 start at first, but, when server powers on, the SAS card hard disk responded at first is not SAS card hard disk 2, therefore needs to adjust the boot sequence of SAS card hard disk.The value of Priority is less, and priority is higher, and corresponding SAS card hard disk more preferentially starts.
As shown in Figure 2, embodiments provide a kind of method adjusting SAS card hard disk startup order, the method can comprise the following steps:
Step 201: pre-determining the SAS card hard disk started at first is SAS card hard disk 2.
Step 202: the BBS Table in inquiry BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in BUS sequence number, DEV sequence number, FUN sequence number.
Step 203: according to the identifying information of current starting outfit, accesses current starting outfit, obtains the type information of current starting outfit, and wherein, described type information comprises: Class, SubClass.
Step 204: according to the type information of each starting outfit, determines all SAS card hard disks in starting outfit, respectively: SAS card hard disk 1, SAS card hard disk 2, SAS card hard disk 3.
Step 205: the BBS Table in traversal BIOS, obtains the SASIndex of SASIndex, SAS card hard disk 3 of SASIndex, SAS card hard disk 2 of SAS card hard disk 1 from BBS Table.
For example, the SASIndex of the SASIndex of SAS card hard disk 1 to be the SASIndex of A1, SAS card hard disk 2 be A2, SAS card hard disk 3 is A3.
After determining all SAS card hard disks, the BBS Table in traversal BIOS, obtains the SASIndex of current SAS card hard disk from BBS Table according to the identifying information of current SAS card hard disk.
Step 206: travel through all BootOption, determines the BootOption that each SASIndex is corresponding.
For example, the SASIndex of SAS card hard disk 1 is A1.
Judge that whether the SASIndex of SAS card hard disk 1 is equal with the BBSIndex in current BootOption, if the value of current BBSIndex is also A1, then determine that the SASIndex of SAS card hard disk 1 is corresponding with current BootOption, if the value of current BBSIndex is not A1, determine that the SASIndex of SAS card hard disk 1 is not corresponding with current BootOption.
Step 207: the SAS card hard disk corresponding according to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding.
For example, the SAS card hard disk that A1 is corresponding is the BootOption that SAS card hard disk 1, A1 is corresponding is BootOption 1, then the BootOption of SAS card hard disk 1 correspondence is BootOption 1.In addition, the corresponding BootOption 3 of SAS card hard disk 2 corresponding BootOption 2, SAS card hard disk 3.
Step 208: obtain the Priority in BootOption corresponding to each SAS card hard disk, the value of all Priority is sorted according to order from small to large, successively: B3, B1, B2.
For example, being B1 from the value of the Priority of BootOption 1 acquisition, is B2 from the value of the Priority of BootOption 2 acquisition, is B3 from the value of the Priority of BootOption 3 acquisition.By bubbling algorithm, Priority is sorted, from small to large successively: B3, B1, B2.
Step 209: according to the value of all Priority after sequence, be B3 by the Priority assignment in the BootOption of SAS card hard disk 2 correspondence.
So just can realize starting SAS card hard disk 2 at first.In addition, can be B1 by the Priority assignment in the BootOption of SAS card hard disk 1 correspondence, be B2 by the Priority assignment in the BootOption of SAS card hard disk 3 correspondence; Also can be B2 by the Priority assignment in the BootOption of SAS card hard disk 1 correspondence, be B1 by the Priority assignment in the BootOption of SAS card hard disk 3 correspondence.
In addition, a kind of method adjusting SAS card hard disk startup order that above-described embodiment provides, can be realized by the adjustment programme pre-set, is embedded in BIOS by this adjustment programme, perform this adjustment programme, realize the adjustment to boot sequence during each start.Particularly, before S1, also comprising: pre-set adjustment programme, in advance described adjustment programme is embedded in BIOS, when starting shooting at every turn, realizing step S1, step S2, step S3, step S4 etc. by performing described adjustment programme.
As shown in Figure 3, Figure 4, a kind of device adjusting the boot sequence of SAS card hard disk is embodiments provided.Device embodiment can pass through software simulating, also can be realized by the mode of hardware or software and hardware combining.Say from hardware view; as shown in Figure 3; for a kind of a kind of hardware structure diagram adjusting the device place equipment of the boot sequence of SAS card hard disk that the embodiment of the present invention provides; except the processor shown in Fig. 3, internal memory, network interface and nonvolatile memory; in embodiment, the equipment at device place can also comprise other hardware usually, as the forwarding chip etc. of responsible process message.For software simulating, as shown in Figure 4, as the device on a logical meaning, be by the CPU of its place equipment, computer program instructions corresponding in nonvolatile memory is read operation in internal memory to be formed.A kind of device adjusting the boot sequence of SAS card hard disk that the present embodiment provides, comprising:
First determining unit 401, for determining the card of the SAS at first hard disk started at first;
First acquiring unit 402, for determining all SAS card hard disks, obtains the index value SASIndex of all SAS card hard disks;
Second determining unit 403, for traveling through all starting outfit option BootOption, determines the BootOption that each SASIndex is corresponding;
3rd determining unit 404, for according to SAS card hard disk corresponding to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
4th determining unit 405, for according to SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
In a kind of possible implementation, described first acquiring unit, comprising:
Query unit, for inquiring about the starting outfit option list BBS Table in basic input-output system BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in bus B US sequence number, equipment DEV sequence number, function FUN sequence number;
Second acquisition unit, for the identifying information according to current starting outfit, accesses current starting outfit, obtains the type information of current starting outfit, and wherein, described type information comprises: Type C lass, subtype SubClass;
5th determining unit, for the type information according to each starting outfit, determines all SAS card hard disks in starting outfit.
In a kind of possible implementation, this device also comprises:
3rd acquiring unit, for obtaining the Priority in BootOption corresponding to each SAS card hard disk, sorts the value of all Priority according to size order;
Described 4th determining unit, for the value according to all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
In a kind of possible implementation, described first acquiring unit, for traveling through the BBSTable in BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table;
In a kind of possible implementation, described second determining unit, perform described determine BootOption corresponding to each SASIndex time, concrete execution: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, when judged result is for being, determine that current SASIndex is corresponding with current BootOption, when judged result is no, determine that current SASIndex is not corresponding with current BootOption.
In a kind of possible implementation, this device also comprises: the 4th acquiring unit, for obtaining the physical connection order of all SAS card hard disks;
Described 4th determining unit, for according to described physical connection order and SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
The content such as information interaction, implementation between each unit in said apparatus, due to the inventive method embodiment based on same design, particular content can see in the inventive method embodiment describe, repeat no more herein.
A kind of method and device adjusting the boot sequence of SAS card hard disk that the embodiment of the present invention provides, has following beneficial effect:
By a kind of method adjusting the boot sequence of SAS card hard disk that the embodiment of the present invention provides, obtain the SASIndex of all SAS card hard disks, the BootOption that each SAS card hard disk is corresponding is found by SASIndex, according to the card of the SAS at first hard disk started at first pre-determined out, determine the value of the Priority in the BootOption that all SAS card hard disks are corresponding, realize the adjustment of the boot sequence to SAS card hard disk.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised a 〃 〃 〃 〃 〃 〃 " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. adjust a method for the boot sequence of SAS card hard disk, it is characterized in that, comprising: pre-determine the card of the SAS at first hard disk started at first, also comprise:
S1: determine all SAS card hard disks, obtains the index value SASIndex of all SAS card hard disks;
S2: travel through all starting outfit option BootOption, determine the BootOption that each SASIndex is corresponding;
S3: the SAS card hard disk corresponding according to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
S4: according to SAS card hard disk at first described in determining, determine the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
2. method according to claim 1, is characterized in that, in described S1, describedly determines all SAS card hard disks, comprising:
Starting outfit option list BBS Table in inquiry basic input-output system BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in bus B US sequence number, equipment DEV sequence number, function FUN sequence number;
According to the identifying information of current starting outfit, access current starting outfit, obtain the type information of current starting outfit, wherein, described type information comprises: Type C lass, subtype SubClass;
According to the type information of each starting outfit, determine all SAS card hard disks in starting outfit.
3. method according to claim 1, is characterized in that, after described S3, also comprises:
Obtain the Priority in BootOption corresponding to each SAS card hard disk, the value of all Priority is sorted according to size order;
Described S4, comprising:
According to the value of all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
4. method according to claim 1, is characterized in that,
Described S1, comprising: the BBS Table in traversal BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table;
And/or,
In described S2, describedly determine the BootOption that each SASIndex is corresponding, comprise: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, if, then determine that current SASIndex is corresponding with current BootOption, otherwise, determine that current SASIndex is not corresponding with current BootOption.
5. method according to claim 1, is characterized in that, also comprises: the physical connection order obtaining all SAS card hard disks;
Described S4, comprising: according to described physical connection order and SAS card hard disk at first described in determining, determine the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
6. adjust a device for the boot sequence of SAS card hard disk, it is characterized in that, comprising:
First determining unit, for determining the card of the SAS at first hard disk started at first;
First acquiring unit, for determining all SAS card hard disks, obtains the index value SASIndex of all SAS card hard disks;
Second determining unit, for traveling through all starting outfit option BootOption, determines the BootOption that each SASIndex is corresponding;
3rd determining unit, for according to SAS card hard disk corresponding to each SASIndex and BootOption corresponding to each SASIndex, determines the BootOption that each SAS card hard disk is corresponding;
4th determining unit, for according to SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
7. device according to claim 6, is characterized in that, described first acquiring unit, comprising:
Query unit, for inquiring about the starting outfit option list BBS Table in basic input-output system BIOS, determine the identifying information of all starting outfits in described BBS Table, wherein, described identifying information comprises: one or more in bus B US sequence number, equipment DEV sequence number, function FUN sequence number;
Second acquisition unit, for the identifying information according to current starting outfit, accesses current starting outfit, obtains the type information of current starting outfit, and wherein, described type information comprises: Type C lass, subtype SubClass;
5th determining unit, for the type information according to each starting outfit, determines all SAS card hard disks in starting outfit.
8. device according to claim 6, is characterized in that, also comprises:
3rd acquiring unit, for obtaining the Priority in BootOption corresponding to each SAS card hard disk, sorts the value of all Priority according to size order;
Described 4th determining unit, for the value according to all Priority after the described card hard disk of SAS at first and described sequence, to the Priority assignment in the BootOption that all SAS card hard disks are corresponding.
9. device according to claim 6, is characterized in that,
Described first acquiring unit, for traveling through the BBS Table in BIOS, obtains the SASIndex of all SAS card hard disks from described BBS Table;
And/or,
Described second determining unit, perform described determine BootOption corresponding to each SASIndex time, concrete execution: judge that whether current SASIndex is equal with the BBSIndex in current BootOption, when judged result is for being, determine that current SASIndex is corresponding with current BootOption, when judged result is no, determine that current SASIndex is not corresponding with current BootOption.
10. device according to claim 6, is characterized in that, also comprises: the 4th acquiring unit, for obtaining the physical connection order of all SAS card hard disks;
Described 4th determining unit, for according to described physical connection order and SAS card hard disk at first described in determining, determines the value of the priority P riority in the BootOption that all SAS card hard disks are corresponding.
CN201510341403.7A 2015-06-18 2015-06-18 Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk Pending CN104932922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510341403.7A CN104932922A (en) 2015-06-18 2015-06-18 Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510341403.7A CN104932922A (en) 2015-06-18 2015-06-18 Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk

Publications (1)

Publication Number Publication Date
CN104932922A true CN104932922A (en) 2015-09-23

Family

ID=54120097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510341403.7A Pending CN104932922A (en) 2015-06-18 2015-06-18 Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk

Country Status (1)

Country Link
CN (1) CN104932922A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329914A (en) * 2017-06-29 2017-11-07 郑州云海信息技术有限公司 It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN107422985A (en) * 2017-05-17 2017-12-01 郑州云海信息技术有限公司 A kind of control method of storage system disk sequence
CN107450846A (en) * 2016-04-18 2017-12-08 美超微电脑股份有限公司 Storage device, stocking system and the method for starting report for resequencing
WO2018076792A1 (en) * 2016-10-27 2018-05-03 华为技术有限公司 Method and device for disk management in arm device and arm device
CN108170481A (en) * 2017-12-27 2018-06-15 上海传英信息技术有限公司 Electric drive method and electric terminal on camera
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN115617719A (en) * 2022-12-19 2023-01-17 苏州浪潮智能科技有限公司 Hard disk backplane sequence adjustment method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040059900A1 (en) * 2002-09-24 2004-03-25 Drake Backman Mechanism for controlling PXE-based boot decisions from a network policy directory
CN1866208A (en) * 2005-05-20 2006-11-22 鸿富锦精密工业(深圳)有限公司 System and method for switching computer start sequence
EP1691281A3 (en) * 2005-01-26 2009-01-07 Fujitsu Limited Memory dump program boot method
CN101499008A (en) * 2008-01-30 2009-08-05 中兴通讯股份有限公司 Hard disk boot sequence recognition method and system
CN102331941A (en) * 2011-07-07 2012-01-25 曙光信息产业股份有限公司 Method for managing hard disk switching of Loongson mainboard
CN102750112A (en) * 2012-05-30 2012-10-24 浪潮电子信息产业股份有限公司 Flash memory hybrid accelerating method for storage area networking (SAN) server-side
CN102999362A (en) * 2012-12-04 2013-03-27 浪潮电子信息产业股份有限公司 Method for modifying sequence of boot options of basic input/output system (BIOS)

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040059900A1 (en) * 2002-09-24 2004-03-25 Drake Backman Mechanism for controlling PXE-based boot decisions from a network policy directory
EP1691281A3 (en) * 2005-01-26 2009-01-07 Fujitsu Limited Memory dump program boot method
CN1866208A (en) * 2005-05-20 2006-11-22 鸿富锦精密工业(深圳)有限公司 System and method for switching computer start sequence
CN101499008A (en) * 2008-01-30 2009-08-05 中兴通讯股份有限公司 Hard disk boot sequence recognition method and system
CN102331941A (en) * 2011-07-07 2012-01-25 曙光信息产业股份有限公司 Method for managing hard disk switching of Loongson mainboard
CN102750112A (en) * 2012-05-30 2012-10-24 浪潮电子信息产业股份有限公司 Flash memory hybrid accelerating method for storage area networking (SAN) server-side
CN102999362A (en) * 2012-12-04 2013-03-27 浪潮电子信息产业股份有限公司 Method for modifying sequence of boot options of basic input/output system (BIOS)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI644249B (en) * 2016-04-18 2018-12-11 美超微電腦股份有限公司 Storage enclosure, storage system, and method for reordering hard drive activation reports
CN107450846B (en) * 2016-04-18 2020-08-07 美超微电脑股份有限公司 Storage device, storage system and method for reordering start reports
CN107450846A (en) * 2016-04-18 2017-12-08 美超微电脑股份有限公司 Storage device, stocking system and the method for starting report for resequencing
WO2018076792A1 (en) * 2016-10-27 2018-05-03 华为技术有限公司 Method and device for disk management in arm device and arm device
CN108008914A (en) * 2016-10-27 2018-05-08 华为技术有限公司 The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
CN108008914B (en) * 2016-10-27 2019-09-13 华为技术有限公司 The method, apparatus and ARM equipment of disk management in a kind of ARM equipment
US10990415B2 (en) 2016-10-27 2021-04-27 Huawei Technologies Co., Ltd. Disk management method and apparatus in ARM device and ARM device
CN107422985A (en) * 2017-05-17 2017-12-01 郑州云海信息技术有限公司 A kind of control method of storage system disk sequence
CN107329914A (en) * 2017-06-29 2017-11-07 郑州云海信息技术有限公司 It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN108170481A (en) * 2017-12-27 2018-06-15 上海传英信息技术有限公司 Electric drive method and electric terminal on camera
CN108170481B (en) * 2017-12-27 2020-12-01 上海传英信息技术有限公司 Camera power-on driving method and electronic terminal
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN109656627A (en) * 2018-12-18 2019-04-19 广东浪潮大数据研究有限公司 Starting method, activation system and the relevant apparatus of hard disk in a kind of BIOS
CN115617719A (en) * 2022-12-19 2023-01-17 苏州浪潮智能科技有限公司 Hard disk backplane sequence adjustment method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN104932922A (en) Method and device for regulating boot sequence of SAS (Serial Attached SCSI) card hard disk
CN106354425B (en) Data attribute-based data layout method and system
CN108681565B (en) Block chain data parallel processing method, device, equipment and storage medium
US9099187B2 (en) Reducing erase cycles in an electronic storage device that uses at least one erase-limited memory device
CN105573660B (en) Method and apparatus for improving the performance of sub-clustering disk array
CN104951342A (en) Method and device for adjusting starting sequence
US9665485B2 (en) Logical and physical block addressing for efficiently storing data to improve access speed in a data deduplication system
JP2022111153A (en) Management system for operating storage medium in multi-mode, storage system including the same, and method for managing storage medium using the same
US8452941B2 (en) System and method for distributing random and sequential data in a tiered storage system
CN106168884A (en) Access the computer system of object storage system
CN105468300B (en) The management method and device of IP hard disks
CN104461698A (en) Dynamic virtual disk mounting method, virtual disk management device and distributed storage system
US20130275671A1 (en) Creating encrypted storage volumes
US20160062751A1 (en) Method and apparatus for optimising computer program code
CN104461649A (en) Chip compatible method and device
US20150363118A1 (en) Techniques for harmonic-resistant file striping
CN107291392A (en) A kind of solid state hard disc and its reading/writing method
CN102393838B (en) Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server
US10216433B2 (en) Accessing a virtual volume on a storage array
CN101788888A (en) Method for realizing target end driver and target end driver
CN106708445A (en) Link selection method and device
CN105808556A (en) Operating method for database and database engine
US8171339B2 (en) Testing a virtualised storage system in response to disk exercising commands
US20140143457A1 (en) Determining a mapping mode for a dma data transfer
JP2013003946A (en) Virtual machine control system, virtual machine control device, virtual machine control method and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150923

WD01 Invention patent application deemed withdrawn after publication