CN106933509B - A kind of processing method and electronic equipment of disk number - Google Patents

A kind of processing method and electronic equipment of disk number Download PDF

Info

Publication number
CN106933509B
CN106933509B CN201710085691.3A CN201710085691A CN106933509B CN 106933509 B CN106933509 B CN 106933509B CN 201710085691 A CN201710085691 A CN 201710085691A CN 106933509 B CN106933509 B CN 106933509B
Authority
CN
China
Prior art keywords
disk
configuration information
target
number domain
static
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710085691.3A
Other languages
Chinese (zh)
Other versions
CN106933509A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710085691.3A priority Critical patent/CN106933509B/en
Publication of CN106933509A publication Critical patent/CN106933509A/en
Priority to US15/899,936 priority patent/US10671403B2/en
Application granted granted Critical
Publication of CN106933509B publication Critical patent/CN106933509B/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/0632Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a kind of processing method of disk number and electronic equipments, which comprises obtains the configuration information in logical number domain, the configuration information includes the configuration information of the configuration information in dynamic number domain and static number domain in the logical number domain;When target disk is numbered, judge whether the type of the target disk is static disk;When the type of the target disk is static disk, the position attribution parameter of the target disk is obtained;It is the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of the target disk;Position attribution parameter according to the static number domain searches corresponding target quiescent number domain from the configuration information, and is the target disk selection number from target quiescent number domain.

Description

A kind of processing method and electronic equipment of disk number
Technical field
The present invention relates to disk naming technique field more particularly to the processing methods and electronic equipment of a kind of disk number.
Background technique
There is random ordering to the number of disk (Disk) in current linux kernel, occur so as to cause the name of disk It is chaotic.Specifically, linux kernel is based on the Dynamic Assignment for seizing principle, when disk controls to the numbering plan of disk When device registers new disk to linux kernel, linux kernel always searches for idle number, therefore, disk since number 0 Number order depends on: 1) sequence of disk load;2) sequence of the Magnetic Disk Controler to linux kernel report disk;3) peripheral Component interconnects (PCI, Peripheral Component Interconnect) scan bus sequence;4) Magnetic Disk Controler heat is inserted Pull out sequence;5) disc hot insert sequence.
Thus the problem of causing, includes at least: 1) if disk A and disk B extract and insertion sequence on the contrary, if lead to magnetic Disk number exchange;2) after disk A is extracted, restarting leads to subsequent all disk sort dislocation;3) it is difficult to adjust disk name;4) difficult To find abnormal hard disk by drive.
Summary of the invention
In order to solve the above technical problems, the embodiment of the invention provides a kind of processing methods of disk number and electronics to set It is standby.
The processing method of disk number provided in an embodiment of the present invention, comprising:
The configuration information in logical number domain is obtained, the configuration information includes dynamic number domain in the logical number domain The configuration information of configuration information and static number domain;
When target disk is numbered, judge whether the type of the target disk is static disk;
When the type of the target disk is static disk, the position attribution parameter of the target disk is obtained;
It is the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of the target disk;
Position attribution parameter according to the static number domain is searched corresponding target quiescent from the configuration information and is compiled Number domain, and be the target disk selection number from target quiescent number domain.
In the embodiment of the present invention, the configuration information for obtaining logical number domain, comprising:
Matching for logical number domain is obtained from Baseboard Management Controller (BMC, Board Management Controller) is middle Confidence breath, the configuration information is by the BMC and being arranged one or more snippets static number domain in the logical number domain It generates.
In the embodiment of the present invention, the method also includes:
Configuration information when the configuration information in BMC changes, after receiving the variation that the BMC is sent;
According to the configuration information after the variation, the configuration information is updated.
In the embodiment of the present invention, the method also includes:
When the type of the target disk is dynamic disk, target dynamic number is found out from the configuration information Domain, and be the target disk selection number from target dynamic number domain.
In the embodiment of the present invention, the position attribution parameter for obtaining the target disk, comprising:
Obtain the following parameter of the target disk: Magnetic Disk Controler number, disk cage number, backboard slot number or object Manage layer transceiver number.
Electronic equipment provided in an embodiment of the present invention, comprising:
Memory, for storing logical number domain;
Processor, for obtaining the configuration information in logical number domain, the configuration information includes in the logical number domain The configuration information of the configuration information in dynamic number domain and static number domain;When target disk is numbered, the mesh is judged Whether the type for marking disk is static disk;When the type of the target disk is static disk, the target disk is obtained Position attribution parameter;It is the position attribution ginseng in corresponding static number domain by the position attribution Parameter Switch of the target disk Number;Position attribution parameter according to the static number domain searches corresponding target quiescent number domain from the configuration information, It and is the target disk selection number from target quiescent number domain.
In the embodiment of the present invention, the electronic equipment further include: BMC;
The processor is also used to obtain the configuration information in logical number domain from BMC, and the configuration information is by described BMC is generated and one or more snippets static number domain is arranged in the logical number domain.
In the embodiment of the present invention, the processor is also used to when the configuration information in BMC changes, described in reception Configuration information after the variation that BMC is sent;According to the configuration information after the variation, the configuration information is updated.
In the embodiment of the present invention, the processor is also used to when the type of the target disk is dynamic disk, from institute It states and finds out target dynamic number domain in configuration information, and be that the target disk selection is compiled from target dynamic number domain Number.
In the embodiment of the present invention, the processor is also used to obtain the following parameter of the target disk: Magnetic Disk Controler Number, disk cage number, backboard slot number or physical layer transceiver number.
In the technical solution of the embodiment of the present invention, the configuration information in logical number domain is obtained, the configuration information includes institute State the configuration information of the configuration information in dynamic number domain and static number domain in logical number domain;It is numbered when to target disk When, judge whether the type of the target disk is static disk;When the type of the target disk is static disk, obtain The position attribution parameter of the target disk;It is corresponding static number domain by the position attribution Parameter Switch of the target disk Position attribution parameter;Position attribution parameter according to the static number domain searches corresponding target from the configuration information Static number domain, and be the target disk selection number from target quiescent number domain.Using the embodiment of the present invention Technical solution has distinguished static disk and dynamic disk, for static disk can be it in dedicated static number domain into Row number, numbering are static mode, will not be with the sequence, pci bus scanning sequency, Magnetic Disk Controler heat that disk loads Plug sequence, disc hot insert sequence etc. the influence of factors and there is a situation where number change, so as to avoid disk sort mistake The appearance of situations such as position.
Detailed description of the invention
Fig. 1 is the flow diagram one of the processing method of the disk number of the embodiment of the present invention;
Fig. 2 is the flow diagram two of the processing method of the disk number of the embodiment of the present invention;
Fig. 3 is the flow diagram three of the processing method of the disk number of the embodiment of the present invention;
Fig. 4 is the schematic diagram in the logical number domain of the embodiment of the present invention;
Fig. 5 is the structure composition schematic diagram one of the electronic equipment of the embodiment of the present invention;
Fig. 6 is the structure composition schematic diagram two of the electronic equipment of the embodiment of the present invention.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, with reference to the accompanying drawing to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the embodiment of the present invention.
Fig. 1 is the flow diagram one of the processing method of the disk number of the embodiment of the present invention, as shown in Figure 1, the magnetic Disk number processing method the following steps are included:
Step 101: obtaining the configuration information in logical number domain, the configuration information includes dynamic in the logical number domain The configuration information of the configuration information in number domain and static number domain.
A kind of essential device is exactly disk in computer system, as small computer system interface (SCSI, Small Computer System Interface)Disk.SCSI Disk is the disk using scsi interface, and disk is for depositing Store up various data, such as document data, audio data, video data, image data.
In the embodiment of the present invention, it is explained so that computer system is linux system as an example, by linux kernel pair Disk is numbered.When Magnetic Disk Controler registers new disk to linux kernel, linux kernel will carry out the disk Number.
Before disk is numbered in linux kernel, the configuration information in logical number domain is obtained first, it is described to match confidence Breath includes the configuration information of the configuration information in dynamic number domain and static number domain in the logical number domain.Here, match confidence Breath refers to: which section belongs to dynamic number domain in logical number domain, which section belongs to static number domain.Number domain is meant Refer to: multiple numbers being numbered for disk or mark.When static disk is numbered in the embodiment of the present invention, compiled using static state Number in number domain is numbered, these numbers immobilize.
Such as: which segment number belongs to dynamic number domain in logical number domain, which segment number belongs to static number domain.When obtaining After the configuration information for getting logical number domain, so that it may logical number domain is split according to configuration information, as shown in figure 4, Logical number domain (LID, Logical Index Domain) in linux kernel is divided into two kinds of domains, is respectively as follows: dynamic and compiles Number domain (Dynamic LID) and static number domain (Static LID).Initially, logical number is entirely from 0~65535 There is one section of Static LID and similarly operates using twice insertion after first time insertion operation in Dynamic LID Afterwards, finally there are three sections of Static LID, be mingled with Dynamic LID among this three sections of Static LID.Logical number domain It has been divided into three sections of Static LID and two sections of Dynamic LID in the way of Fig. 4.
Step 102: when target disk is numbered, judging whether the type of the target disk is static disk.
In the embodiment of the present invention, disk is divided into two kinds, and one kind is static disk, and another kind is dynamic disk, static disk Refer to the disk that will not be changed or the disk infrequently to change after loading.Dynamic disk refer to load after pass through The disk often to change, such as USB flash disk.Linux kernel is different from the numbering of dynamic disk for static disk, It is described in detail below using static numbering.
Step 103: when the type of the target disk is static disk, obtaining the position attribution ginseng of the target disk Number.
In the embodiment of the present invention, for static disk, there is static attribute namely position attribution parameter, it is described to obtain Take the position attribution parameter of the target disk, comprising:
Obtain the following parameter of the target disk: Magnetic Disk Controler number, disk cage number, backboard slot number or object Manage layer transceiver number.
Here, the position of a disk can be uniquely determined by above three groups of parameters, wherein Magnetic Disk Controler can control Multiple disk cages, a disk cage include multiple backboard slots, and each backboard slot can plant a disk.In addition, Physical layer transceiver number also has corresponding relationship with disk.
As it can be seen that the position attribution parameter of disk can uniquely characterize a disk.
Step 104: being the position attribution in corresponding static number domain by the position attribution Parameter Switch of the target disk Parameter.
In the embodiment of the present invention, there are conversion rule between position attribution parameter and the position attribution parameter in static number domain Then, which can pre-set, which describes pair between position attribution parameter and static number domain It should be related to.
Here, the position attribution parameter of disk is three-dimensional number, comprising: Magnetic Disk Controler number, disk cage number, back Plate slot number or physical layer transceiver number.The position attribution parameter in static number domain is one-dimensional number.According to pre-setting Transformation rule, be the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of target disk.
Step 105: the position attribution parameter according to the static number domain searches corresponding mesh from the configuration information Static number domain is marked, and is the target disk selection number from target quiescent number domain.
It is to be numbered from corresponding static number domain for its selection for static disk in the embodiment of the present invention, this A little numbers immobilize, and numbering is static mode, sequence, the pci bus scanning sequency, disk that will not be loaded with disk The influences of factors such as controller hot plug sequence, disc hot insert sequence and there is a situation where number changes, so as to avoid magnetic The appearance of situations such as disk sequence dislocation.
Fig. 2 is the flow diagram two of the processing method of the disk number of the embodiment of the present invention, as shown in Fig. 2, the magnetic Disk number processing method the following steps are included:
Step 201: the configuration information in logical number domain is obtained from BMC, the configuration information includes the logical number The configuration information of the configuration information in dynamic number domain and static number domain in domain.
A kind of essential device is exactly disk in computer system, such as SCSI Disk.SCSI Disk is to use The disk of scsi interface, disk is for storing various data, such as document data, audio data, video data, picture number According to etc..
In the embodiment of the present invention, it is explained so that computer system is linux system as an example, by linux kernel pair Disk is numbered.When Magnetic Disk Controler registers new disk to linux kernel, linux kernel will carry out the disk Number.
Before disk is numbered in linux kernel, the configuration information in logical number domain is obtained first, it is described to match confidence Breath includes the configuration information of the configuration information in dynamic number domain and static number domain in the logical number domain.Here, match confidence Breath refers to: which section belongs to dynamic number domain in logical number domain, which section belongs to static number domain.Number domain is meant Refer to: multiple numbers being numbered for disk or mark.When static disk is numbered in the embodiment of the present invention, compiled using static state Number in number domain is numbered, these numbers immobilize.
In the embodiment of the present invention, the configuration page is provided by BMC, user can be logical number configuration of territory in the configuration page One or more snippets static number domain, and other is then dynamic number domain.BMC generates configuration information, passes through intelligent platform management Interface (IPMI, Intelligent Platform Management Interface) order passes to the configuration information Linux kernel, wherein the configuration information is by the BMC by the way that one or more snippets static state is arranged in the logical number domain Number domain and generate.
Such as: which segment number belongs to dynamic number domain in logical number domain, which segment number belongs to static number domain.When obtaining After the configuration information for getting logical number domain, so that it may logical number domain is split according to configuration information, as shown in figure 4, LID in linux kernel is divided into two kinds of domains, is respectively as follows: Dynamic LID and Static LID.Initially, logical number from 0~65535 is entirely that Dynamic LID one section of Static LID occurs, similarly, then pass through after first time insertion operation After crossing twice insertion operation, finally there are three sections of Static LID, be mingled with Dynamic among this three sections of Static LID LID.Logical number domain has been divided into three sections of Static LID and two sections of Dynamic LID in the way of Fig. 4.
In the embodiment of the present invention, when the configuration information in BMC changes, linux kernel receives what the BMC was sent Configuration information after variation;According to the configuration information after the variation, the configuration information is updated.
Step 202: when target disk is numbered, judging whether the type of the target disk is static disk.
In the embodiment of the present invention, disk is divided into two kinds, and one kind is static disk, and another kind is dynamic disk, static disk Refer to the disk that will not be changed or the disk infrequently to change after loading.Dynamic disk refer to load after pass through The disk often to change, such as USB flash disk.Linux kernel is different from the numbering of dynamic disk for static disk, It is described in detail below using static numbering.
Step 203: when the type of the target disk is static disk, obtaining the position attribution ginseng of the target disk Number.
In the embodiment of the present invention, for static disk, there is static attribute namely position attribution parameter, it is described to obtain Take the position attribution parameter of the target disk, comprising:
Obtain the following parameter of the target disk: Magnetic Disk Controler number, disk cage number, backboard slot number or object Manage layer transceiver number.
Here, the position of a disk can be uniquely determined by above three groups of parameters, wherein Magnetic Disk Controler can control Multiple disk cages, a disk cage include multiple backboard slots, and each backboard slot can plant a disk.In addition, Physical layer transceiver number also has corresponding relationship with disk.
As it can be seen that the position attribution parameter of disk can uniquely characterize a disk.
Step 204: being the position attribution in corresponding static number domain by the position attribution Parameter Switch of the target disk Parameter.
In the embodiment of the present invention, there are conversion rule between position attribution parameter and the position attribution parameter in static number domain Then, which can pre-set, which describes pair between position attribution parameter and static number domain It should be related to.
Here, the position attribution parameter of disk is three-dimensional number, comprising: Magnetic Disk Controler number, disk cage number, back Plate slot number or physical layer transceiver number.The position attribution parameter in static number domain is one-dimensional number.According to pre-setting Transformation rule, be the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of target disk.
Step 205: the position attribution parameter according to the static number domain searches corresponding mesh from the configuration information Static number domain is marked, and is the target disk selection number from target quiescent number domain.
It is to be numbered from corresponding static number domain for its selection for static disk in the embodiment of the present invention, this A little numbers immobilize, and numbering is static mode, sequence, the pci bus scanning sequency, disk that will not be loaded with disk The influences of factors such as controller hot plug sequence, disc hot insert sequence and there is a situation where number changes, so as to avoid magnetic The appearance of situations such as disk sequence dislocation.
Fig. 3 is the flow diagram three of the processing method of the disk number of the embodiment of the present invention, as shown in figure 3, the magnetic Disk number processing method the following steps are included:
Step 301: obtaining the configuration information in logical number domain, the configuration information includes dynamic in the logical number domain The configuration information of the configuration information in number domain and static number domain.
A kind of essential device is exactly disk in computer system, such as SCSI Disk.SCSI Disk is to use The disk of scsi interface, disk is for storing various data, such as document data, audio data, video data, picture number According to etc..
In the embodiment of the present invention, it is explained so that computer system is linux system as an example, by linux kernel pair Disk is numbered.When Magnetic Disk Controler registers new disk to linux kernel, linux kernel will carry out the disk Number.
Before disk is numbered in linux kernel, the configuration information in logical number domain is obtained first, it is described to match confidence Breath includes the configuration information of the configuration information in dynamic number domain and static number domain in the logical number domain.Here, match confidence Breath refers to: which section belongs to dynamic number domain in logical number domain, which section belongs to static number domain.Number domain is meant Refer to: multiple numbers being numbered for disk or mark.When static disk is numbered in the embodiment of the present invention, compiled using static state Number in number domain is numbered, these numbers immobilize.
Such as: which segment number belongs to dynamic number domain in logical number domain, which segment number belongs to static number domain.When obtaining After the configuration information for getting logical number domain, so that it may logical number domain is split according to configuration information, as shown in figure 4, Logical number domain (LID, Logical Index Domain) in linux kernel is divided into two kinds of domains, is respectively as follows: dynamic and compiles Number domain (Dynamic LID) and static number domain (Static LID).Initially, logical number is entirely from 0~65535 There is one section of Static LID and similarly operates using twice insertion after first time insertion operation in Dynamic LID Afterwards, finally there are three sections of Static LID, be mingled with Dynamic LID among this three sections of Static LID.Logical number domain It has been divided into three sections of Static LID and two sections of Dynamic LID in the way of Fig. 4.
Step 302: when target disk is numbered, judging whether the type of the target disk is static disk.
In the embodiment of the present invention, disk is divided into two kinds, and one kind is static disk, and another kind is dynamic disk, static disk Refer to the disk that will not be changed or the disk infrequently to change after loading.Dynamic disk refer to load after pass through The disk often to change, such as USB flash disk.Linux kernel is different from the numbering of dynamic disk for static disk, It is described in detail below using static numbering.
Step 303: when the type of the target disk is static disk, obtaining the position attribution ginseng of the target disk Number.
In the embodiment of the present invention, for static disk, there is static attribute namely position attribution parameter, it is described to obtain Take the position attribution parameter of the target disk, comprising:
Obtain the following parameter of the target disk: Magnetic Disk Controler number, disk cage number, backboard slot number or object Manage layer transceiver number.
Here, the position of a disk can be uniquely determined by above three groups of parameters, wherein Magnetic Disk Controler can control Multiple disk cages, a disk cage include multiple backboard slots, and each backboard slot can plant a disk.In addition, Physical layer transceiver number also has corresponding relationship with disk.
As it can be seen that the position attribution parameter of disk can uniquely characterize a disk.
Step 304: being the position attribution in corresponding static number domain by the position attribution Parameter Switch of the target disk Parameter.
In the embodiment of the present invention, there are conversion rule between position attribution parameter and the position attribution parameter in static number domain Then, which can pre-set, which describes pair between position attribution parameter and static number domain It should be related to.
Here, the position attribution parameter of disk is three-dimensional number, comprising: Magnetic Disk Controler number, disk cage number, back Plate slot number or physical layer transceiver number.The position attribution parameter in static number domain is one-dimensional number.According to pre-setting Transformation rule, be the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of target disk.
Step 305: the position attribution parameter according to the static number domain searches corresponding mesh from the configuration information Static number domain is marked, and is the target disk selection number from target quiescent number domain.
It is to be numbered from corresponding static number domain for its selection for static disk in the embodiment of the present invention, this A little numbers immobilize, and numbering is static mode, sequence, the pci bus scanning sequency, disk that will not be loaded with disk The influences of factors such as controller hot plug sequence, disc hot insert sequence and there is a situation where number changes, so as to avoid magnetic The appearance of situations such as disk sequence dislocation.
Step 306: when the type of the target disk is dynamic disk, it is dynamic that target is found out from the configuration information State number domain, and be the target disk selection number from target dynamic number domain.
In the embodiment of the present invention, for dynamic disk, linux kernel is also based on seizing original to the numbering plan of disk Dynamic Assignment then, when Magnetic Disk Controler registers new disk to linux kernel, linux kernel is always opened from number 0 Begin the idle number of search.
Fig. 5 is the structure composition schematic diagram one of the electronic equipment of the embodiment of the present invention, as shown in figure 5, the electronic equipment Include:
Memory 51, for storing logical number domain;
Processor 52, for obtaining the configuration information in logical number domain, the configuration information includes the logical number domain The configuration information of the configuration information in middle dynamic number domain and static number domain;When target disk is numbered, described in judgement Whether the type of target disk is static disk;When the type of the target disk is static disk, the target magnetic is obtained The position attribution parameter of disk;It is the position attribution in corresponding static number domain by the position attribution Parameter Switch of the target disk Parameter;Position attribution parameter according to the static number domain searches corresponding target quiescent number from the configuration information Domain, and be the target disk selection number from target quiescent number domain.
In one embodiment, the electronic equipment further include: BMC 53;
The processor 52, be also used to from BMC 53 obtain logical number domain configuration information, the configuration information by The BMC 53 is generated and one or more snippets static number domain is arranged in the logical number domain.
In one embodiment, the processor 52 is also used to when the configuration information in BMC 53 changes, and is received Configuration information after the variation that the BMC 53 is sent;According to the configuration information after the variation, the configuration information is carried out It updates.
In one embodiment, the processor 52 is also used to when the type of the target disk is dynamic disk, from Target dynamic number domain is found out in the configuration information, and is the target disk selection from target dynamic number domain Number.
In one embodiment, the processor 52 is also used to obtain the following parameter of the target disk: disk control Device number, disk cage number, backboard slot number or physical layer transceiver number.
It will be appreciated by those skilled in the art that before the realization function of each unit in electronic equipment shown in fig. 5 can refer to It states the associated description of the processing method of disk number and understands.
Fig. 6 is the structure composition schematic diagram two of the electronic equipment of the embodiment of the present invention, as shown in fig. 6, the electronic equipment Include:
First acquisition unit 61, for obtaining the configuration information in logical number domain, the configuration information includes the logic The configuration information of the configuration information in dynamic number domain and static number domain in number domain;
Judging unit 62, for when target disk is numbered, judging whether the type of the target disk is quiet State disk;
Second acquisition unit 63, for obtaining the target disk when the type of the target disk is static disk Position attribution parameter;
Converting unit 64, for being the position in corresponding static number domain by the position attribution Parameter Switch of the target disk Set property parameters;
First numbered cell 65, for being looked into from the configuration information according to the position attribution parameter in the static number domain Corresponding target quiescent number domain is looked for, and is the target disk selection number from target quiescent number domain.
In one embodiment, the first acquisition unit 61, is specifically used for: matching for logical number domain is obtained from BMC Confidence breath, the configuration information is by the BMC and being arranged one or more snippets static number domain in the logical number domain It generates.
In one embodiment, the electronic equipment further include: updating unit 66, for when the configuration information hair in BMC Configuration information when changing, after receiving the variation that the BMC is sent;According to the configuration information after the variation, match to described Confidence breath is updated.
In one embodiment, the electronic equipment further include: the second numbered cell 67, for when the target disk When type is dynamic disk, target dynamic number domain is found out from the configuration information, and from target dynamic number domain In be target disk selection number.
In the embodiment of the present invention, the second acquisition unit 63 is specifically used for: obtaining the following ginseng of the target disk Number: Magnetic Disk Controler number, disk cage number, backboard slot number or physical layer transceiver number.
The above-mentioned function of the embodiment of the present invention also can store in a computer readable storage medium.Based on such Understand, substantially the part that contributes to existing technology can be with software product in other words for the technical solution of the embodiment of the present invention Form embody, which is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server or network equipment etc.) executes side described in each embodiment of the present invention The all or part of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read Only Memory), the various media that can store program code such as magnetic or disk.In this way, the embodiment of the present invention is not limited to appoint What specific hardware and software combines.
Correspondingly, the embodiment of the present invention also provides a kind of computer storage medium, wherein it is stored with computer program, the meter Calculation machine program is configured to execute the processing method of the disk number of the embodiment of the present invention.
It, in the absence of conflict, can be in any combination between technical solution documented by the embodiment of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed method and smart machine, Ke Yitong Other modes are crossed to realize.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can be tied It closes, or is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each group Can be through some interfaces at the mutual coupling in part or direct-coupling or communication connection, equipment or unit it is indirect Coupling or communication connection, can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a second processing unit, It is also possible to each unit individually as a unit, can also be integrated in one unit with two or more units; Above-mentioned integrated unit both can take the form of hardware realization, can also add the form of SFU software functional unit real using hardware It is existing.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.

Claims (10)

1. a kind of processing method of disk number, which is characterized in that the described method includes:
The configuration information in logical number domain is obtained, the configuration information includes the configuration in dynamic number domain in the logical number domain The configuration information of information and static number domain;
When target disk is numbered, judge whether the type of the target disk is static disk;
When the type of the target disk is static disk, the position attribution parameter of the target disk is obtained;
It is the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of the target disk;
Position attribution parameter according to the static number domain searches corresponding target quiescent number domain from the configuration information, It and is the target disk selection number from target quiescent number domain.
2. the processing method of disk number according to claim 1, which is characterized in that described to obtain matching for logical number domain Confidence breath, comprising:
From Baseboard Management Controller BMC obtain logical number domain configuration information, the configuration information by the BMC by One or more snippets static number domain is set in the logical number domain and is generated.
3. the processing method of disk number according to claim 2, which is characterized in that the method also includes:
Configuration information when the configuration information in BMC changes, after receiving the variation that the BMC is sent;
According to the configuration information after the variation, the configuration information is updated.
4. the processing method of disk number according to claim 1, which is characterized in that the method also includes:
When the type of the target disk is dynamic disk, target dynamic number domain is found out from the configuration information, and It is the target disk selection number from target dynamic number domain.
5. the processing method of disk number according to claim 1, which is characterized in that the acquisition target disk Position attribution parameter, comprising:
Obtain the following parameter of the target disk: Magnetic Disk Controler number, disk cage number, backboard slot number or physical layer Transceiver number.
6. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Memory, for storing logical number domain;
Processor, for obtaining the configuration information in logical number domain, the configuration information includes dynamic in the logical number domain The configuration information of the configuration information in number domain and static number domain;When target disk is numbered, the target magnetic is judged Whether the type of disk is static disk;When the type of the target disk is static disk, the position of the target disk is obtained Set property parameters;It is the position attribution parameter in corresponding static number domain by the position attribution Parameter Switch of the target disk; Position attribution parameter according to the static number domain searches corresponding target quiescent number domain from the configuration information, and from It is the target disk selection number in target quiescent number domain.
7. electronic equipment according to claim 6, which is characterized in that the electronic equipment further include: mainboard management control Device BMC;
The processor, is also used to obtain the configuration information in logical number domain from BMC, and the configuration information is led to by the BMC It crosses in the logical number domain and one or more snippets static number domain is set and is generated.
8. electronic equipment according to claim 7, which is characterized in that the processor is also used to work as in BMC and matches confidence Configuration information when breath changes, after receiving the variation that the BMC is sent;According to the configuration information after the variation, to institute Configuration information is stated to be updated.
9. electronic equipment according to claim 6, which is characterized in that the processor is also used to when the target disk Type when being dynamic disk, find out target dynamic number domain from the configuration information, and from target dynamic number It is the target disk selection number in domain.
10. electronic equipment according to claim 6, which is characterized in that the processor is also used to obtain the target magnetic The following parameter of disk: Magnetic Disk Controler number, disk cage number, backboard slot number or physical layer transceiver number.
CN201710085691.3A 2017-02-17 2017-02-17 A kind of processing method and electronic equipment of disk number Active CN106933509B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710085691.3A CN106933509B (en) 2017-02-17 2017-02-17 A kind of processing method and electronic equipment of disk number
US15/899,936 US10671403B2 (en) 2017-02-17 2018-02-20 Method and apparatus for identifying hardware device in operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710085691.3A CN106933509B (en) 2017-02-17 2017-02-17 A kind of processing method and electronic equipment of disk number

Publications (2)

Publication Number Publication Date
CN106933509A CN106933509A (en) 2017-07-07
CN106933509B true CN106933509B (en) 2019-09-24

Family

ID=59423320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710085691.3A Active CN106933509B (en) 2017-02-17 2017-02-17 A kind of processing method and electronic equipment of disk number

Country Status (1)

Country Link
CN (1) CN106933509B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108710508B (en) * 2018-05-22 2021-10-22 联想(北京)有限公司 Processing method and device and electronic equipment
CN109960678B (en) * 2019-03-31 2021-08-17 联想(北京)有限公司 Naming processing method and computer processing device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6311236B1 (en) * 1989-12-19 2001-10-30 Hitachi, Ltd. Magnetic disc control apparatus with parallel data transfer between disc control unit and encoder circuit
DE10042823A1 (en) * 2000-08-30 2002-03-14 Liao Jui Min Dividing hard disk into several fully independent segments involves segmenting disk into virtual disks, defining name, attribute, size per virtual disk, producing menu for boot disk selection
CN101819547A (en) * 2010-03-25 2010-09-01 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of storage subsystem
CN102467935A (en) * 2010-11-04 2012-05-23 鸿富锦精密工业(深圳)有限公司 Magnetic disk positioning system and method
CN102479163A (en) * 2010-11-25 2012-05-30 鸿富锦精密工业(深圳)有限公司 Multi-hard-disk automatic identification system and method
CN104503701A (en) * 2014-12-01 2015-04-08 北京同有飞骥科技股份有限公司 Magnetic disk naming method and device suitable for multi-stage expansion cabinet
CN104679592A (en) * 2013-12-02 2015-06-03 北京兆易创新科技股份有限公司 Method and system for dynamically distributing resources in microcontroller unit MCU
CN105892950A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Disk array reconstruction method and disk array reconstruction system
CN106021048A (en) * 2016-05-17 2016-10-12 浪潮电子信息产业股份有限公司 Out-of-order verification method and device of disk pack

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6311236B1 (en) * 1989-12-19 2001-10-30 Hitachi, Ltd. Magnetic disc control apparatus with parallel data transfer between disc control unit and encoder circuit
DE10042823A1 (en) * 2000-08-30 2002-03-14 Liao Jui Min Dividing hard disk into several fully independent segments involves segmenting disk into virtual disks, defining name, attribute, size per virtual disk, producing menu for boot disk selection
CN101819547A (en) * 2010-03-25 2010-09-01 浪潮电子信息产业股份有限公司 Method for testing stability and reliability of storage subsystem
CN102467935A (en) * 2010-11-04 2012-05-23 鸿富锦精密工业(深圳)有限公司 Magnetic disk positioning system and method
CN102479163A (en) * 2010-11-25 2012-05-30 鸿富锦精密工业(深圳)有限公司 Multi-hard-disk automatic identification system and method
CN104679592A (en) * 2013-12-02 2015-06-03 北京兆易创新科技股份有限公司 Method and system for dynamically distributing resources in microcontroller unit MCU
CN104503701A (en) * 2014-12-01 2015-04-08 北京同有飞骥科技股份有限公司 Magnetic disk naming method and device suitable for multi-stage expansion cabinet
CN105892950A (en) * 2016-04-01 2016-08-24 浪潮电子信息产业股份有限公司 Disk array reconstruction method and disk array reconstruction system
CN106021048A (en) * 2016-05-17 2016-10-12 浪潮电子信息产业股份有限公司 Out-of-order verification method and device of disk pack

Also Published As

Publication number Publication date
CN106933509A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
US10237295B2 (en) Automated event ID field analysis on heterogeneous logs
CN107367949B (en) Obtain the methods, devices and systems of product identification
CN102202087B (en) Method for identifying storage equipment and system thereof
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN102932415A (en) Method and device for storing mirror image document
US9275200B2 (en) Information processing device, license assignment method, and computer-readable, non-transitory medium
CN108848034A (en) A kind of network equipment and list item learning method
CN104133765B (en) The test case sending method of network activity and test case server
CN106130972B (en) resource access control method and device
CN106529384A (en) Technologies for object recognition for internet-of-things edge devices
CN102724079A (en) Method and system for auxiliary configuration of Ethernet equipment
CN106933509B (en) A kind of processing method and electronic equipment of disk number
CN104113571A (en) Data collision processing method and device
CN104615787B (en) A kind of update interface display method and device
CN110290166A (en) Across company-data exchange method, system, device and readable storage medium storing program for executing
CN102930026A (en) Method and device for converting computer-aided design (CAD) model
CN107066522B (en) Database access method and device
CN104580375A (en) Method and equipment for determining UI style information of target application
CN116339927B (en) Equipment determining method, device, storage medium and electronic device
CN105246132A (en) Parameter matching method and device for network access point
CN106202456B (en) Send the method and device of picture
US10305740B2 (en) System and method for performing mass renaming of list of items at run-time with variable differentiation factor
CN109976868A (en) DApp method for customizing, device and electronic equipment
KR20050056824A (en) Sobot based on ubiquitous network, system using the sobot, operation method of the system, and transition and transferring method of the sobot
CN104951550B (en) Date storage method and device

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