WO2014012203A1 - 一种确定盘符的方法、装置及系统 - Google Patents
一种确定盘符的方法、装置及系统 Download PDFInfo
- Publication number
- WO2014012203A1 WO2014012203A1 PCT/CN2012/078688 CN2012078688W WO2014012203A1 WO 2014012203 A1 WO2014012203 A1 WO 2014012203A1 CN 2012078688 W CN2012078688 W CN 2012078688W WO 2014012203 A1 WO2014012203 A1 WO 2014012203A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- raid
- raid group
- disk
- location
- disks
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000010586 diagram Methods 0.000 description 12
- 238000003780 insertion Methods 0.000 description 7
- 230000037431 insertion Effects 0.000 description 7
- 108010001267 Protein Subunits Proteins 0.000 description 3
- 230000005291 magnetic effect Effects 0.000 description 3
- 238000003672 processing method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0605—Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0632—Configuration or reconfiguration of storage systems by initialisation or re-initialisation of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1076—Parity data used in redundant arrays of independent storages, e.g. in RAID systems
Definitions
- the present invention relates to the field of information technology, and in particular, to a method, device and system for determining a drive letter. Background technique
- the storage structure of most servers is generally connected to multiple disks under a controller of a Redundant Array of Independent Disks (RAID).
- RAID Redundant Array of Independent Disks
- Multiple disks connected to a common RAID controller can be flexibly configured into RAID groups. For example, configure five disks into one RAID group.
- disks 1, 2, and 3 are configured as a RAID group, 4, 5, and 6
- the disk is configured as a RAID group
- disks 7, 8, and 9 are configured as a RAID group.
- the operating system assigns a disk letter to each RAID group for users to use.
- the RAID group of disks 1, 2, and 3 is sdb, which stores file A;
- the RAID group of disks 4, 5, and 6 has the drive letter sdc, and file B; 7, 8, 9
- the RAID group of the composed RAID group is sdd, and the file C is stored.
- each RAID group is allocated by the operating system according to the order in which the RAID groups are added. After each system reboot or disk insertion and removal, there is no guarantee that the order of adding RAID groups will be the same every time. Therefore, each RAID group may have a different drive letter after the system is restarted or the disk is inserted or removed. This will result in users not being able to accurately find the data stored in the RAID group. Summary of the invention
- the embodiment of the invention provides a method for determining a drive letter, which can ensure that the name of the drive letter does not change after the system is restarted or the disk is inserted or removed.
- the embodiments of the present invention also provide corresponding devices and systems.
- a first aspect of the present invention provides a method for determining a drive letter, which may include:
- the location number of the disk that meets the reporting condition in each RAID group under the control of the RAID controller.
- the location number of the disk that meets the reporting conditions is all the disks included in each RAID group when the RAID group is configured.
- the position number of the disk on the preset position after the position number is sorted in the preset order; And determining, according to the port number of the RAID controller and the switch chip, and the location number of the disk in the RAID group that meets the reporting condition, the drive letter corresponding to each RAID group.
- the acquiring a port number of the RAID controller connected to the switch chip and a location number of the disk in the RAID group controlled by the RAID controller that meets the reporting condition Specifically, including:
- the obtaining a port number of the RAID controller connected to the switch chip and a location number of the disk in the RAID group controlled by the RAID controller that meets the reporting condition Specifically, including:
- the location numbers of all the disks included in each of the RAID groups when the RAID group is configured are found, and the configuration is as described in the preset order.
- the location numbers of all the disks included in each RAID group are sorted, and the location number of the disk in the sorted preset position is selected as the location number of the disk in each of the RAID groups that meets the reporting condition.
- the corresponding drive letter of each RAID group includes Determining, according to the port number of the RAID controller and the switch chip, and the location number of the disk in the RAID group that meets the reporting condition, determining a drive letter corresponding to each RAID group, specifically Includes:
- a second aspect of the present invention provides a method for determining a drive letter, which may include:
- the independent redundant disk array RAID controller acquires a port number of the RAID controller connected to the switch chip and a location number of all disks in each RAID group under the control of the RAID controller; Determining, by the RAID controller, a location number of a disk that meets a reporting condition in each RAID group according to a location number of all disks in each RAID group;
- the RAID controller sends a port number of the RAID controller to the switch chip and a location number of all the disks in each RAID group to the central processor, so that the central processor is configured according to each RAID group.
- the location number of all the disks in the disk determines the location number of the disk in the each RAID group that meets the reporting condition; or sends the port number of the RAID controller and the switch chip to the central processor and each of the RAIDs a location number of the disk in the group that meets the reporting condition, so that the central processor determines, according to the port number of the RAID controller and the switch chip, and the location number of the disk in the each RAID group that meets the reporting condition.
- a drive letter corresponding to each RAID group where the location number of the disk that meets the reporting condition is that the location numbers of all disks included in each RAID group are arranged in a preset order after configuring each RAID group. The location number of the disk on the preset location.
- the RAID controller determines, according to a location number of all disks in each RAID group, a location number of a disk that meets a reporting condition in each RAID group, Specifically include:
- the method further includes:
- the RAID controller queries, according to the location numbers of all the disks in each RAID group, the number of disks included in each RAID group when the RAID group is configured.
- a third aspect of the present invention provides a central processing unit, which may include:
- a first obtaining unit configured to acquire a port number of the RAID controller and the switch chip, and a position number of the disk that meets the reporting condition in each RAID group controlled by the RAID controller, where the disk meets the reporting condition No. is a location number of a disk on a preset position in which the location numbers of all disks included in each RAID group are arranged in a preset order
- the first determining unit is configured to The port number of the RAID controller connected to the switch chip and the location number of the disk in each of the RAID groups that meet the reporting condition are determined by the first obtaining unit, and the drive letter corresponding to each RAID group is determined.
- the first acquiring unit includes: a first receiving subunit, configured to receive a port number of the RAID controller and the switch chip connected by the RAID controller, and the The location number of the disk that meets the reporting conditions in each RAID group under the control of the RAID controller.
- the first acquiring unit includes: a second receiving subunit, configured to receive a port that is connected between the RAID controller and the switch chip that is reported by the RAID controller Number and the location number of all disks in each RAID group under the control of the RAID controller;
- a first search subunit configured to find, according to a location number of all the disks in each RAID group received by the second receiving subunit, all the components included in each RAID group when configuring each of the RAID groups The location number of the disk;
- a first sorting sub-unit configured to sort, according to a preset order, location numbers of all disks included in each RAID group when the first RAID unit is configured to be searched by the first search sub-unit; And a subunit, configured to select a location number of the disk on the preset position after the first sorting subunit is sorted as the location number of the disk in the each RAID group that meets the reporting condition.
- the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in a third possible implementation manner, the corresponding drive letter of each RAID group includes Two variable parameters
- the first determining unit is specifically configured to use a port number of the RAID controller and the switch chip as a variable parameter in a drive letter corresponding to each RAID group, and the RAID group is used in each RAID group.
- the location number of the disk that meets the reporting condition is used as another variable parameter in the drive letter corresponding to each RAID group.
- a fourth aspect of the present invention provides an independent redundant disk array controller, which may include:
- a second obtaining unit configured to obtain a port number of the RAID controller and the switch chip, and a location number of all the disks in each RAID group under the control of the RAID controller;
- a second determining unit configured to determine, according to the location number of all the disks in each RAID group acquired by the second obtaining unit, a location number of the disk that meets the reporting condition in each RAID group;
- a sending unit configured to send, to the central processing unit, a port number of the RAID controller and the switch chip connected by the second acquiring unit, and a number in each RAID group controlled by the RAID controller to determine the The location number of the disk in the RAID group that meets the reporting condition, or the end number of the RAID controller and the switch chip acquired by the second acquiring unit is sent to the central processing unit to enable the central processing Determining, according to the port number of the RAID controller and the switching chip, and the location number of the disk in the RAID group that meets the reporting condition, the disk letter corresponding to each RAID group, the disk meeting the reporting condition
- the location number is the location number of the disk on the preset location after the location numbers of all the disks included in each RAID group are arranged in the preset order.
- the second determining unit includes: a second searching subunit, configured to find, according to a location number of all the disks in each RAID group, the RAID The location number of all disks included in each RAID group as described in the group;
- a second sorting sub-unit configured to sort the location numbers of all the disks included in each RAID group when the RAID group is configured by the second search sub-unit, according to a preset order;
- a subunit configured to select a location number of the disk on the preset position after the second sorting subunit is sorted as a location number of the disk in the RAID group that meets the reporting condition.
- the method further includes:
- the query unit is configured to query, according to the location number of all the disks in each RAID group, the number of disks included in each RAID group when the RAID group is configured;
- the sending unit is specifically configured to: when the number of disks included in each RAID group queried by the query unit is different from the number of disks included in each RAID group configured, send to the central processor
- the port number of the RAID controller connected to the switch chip and the location number of all the disks in each of the RAID groups.
- a fifth aspect of the present invention provides a computer storage medium
- the computer storage medium may store a program that, when executed, includes some or all of the steps of the method of determining a drive letter in the alternatives of the first aspect and the first aspect described above.
- a sixth aspect of the invention provides a computer storage medium
- the computer storage medium may store a program that, when executed, includes some or all of the steps of the method of determining the drive letter in the alternatives of the second and second aspects described above.
- a seventh aspect of the present invention provides an apparatus for determining a drive letter, including: a first input device, a first output device, a first memory, and a first processor;
- the first processor performs the following steps:
- the port number and the location number of the disk in each of the RAID groups that meet the reporting condition are determined, and the drive letter corresponding to each RAID group is determined.
- the first processor receives the
- the first processor receives a port number that is connected between the RAID controller and the switch chip that is reported by the RAID controller, and is controlled by the RAID controller.
- the location number of all the disks in each RAID group ; according to the location numbers of all the disks in each RAID group, find the location numbers of all the disks included in each RAID group when configuring each of the RAID groups. Sorting the position numbers of all the disks included in each RAID group when the RAID group is configured in the preset order, and selecting the position number of the disk on the sorted preset position. As the location number of the disk in each of the RAID groups that meets the reporting condition.
- the corresponding drive letter of each RAID group includes two a variable parameter
- the port number of the RAID controller connected to the switch chip is used as a variable parameter in the drive letter corresponding to each RAID group
- the report condition is met in each RAID group.
- the location number of the disk is another variable parameter in the drive letter corresponding to each RAID group.
- An eighth aspect of the present invention provides an apparatus for determining a drive letter, including: a second input device, a second output device, a second memory, and a second processor;
- the second processor performs the following steps:
- the central processing unit determines the location number of the disk in the each RAID group that meets the reporting condition according to the location number of all the disks in each RAID group; or,
- the central processor sends a port number of the RAID controller connected to the switch chip and a location number of the disk in the each RAID group that meets the reporting condition, so that the central processor switches and exchanges according to the RAID controller. Determining, by the port number of the chip connection, the location number of the disk that meets the reporting condition in each of the RAID groups, the drive letter corresponding to each of the RAID groups, and the disk number matching the reporting condition is sorted according to a preset order. The location number of the disk at the preset location.
- the second processor searches, according to the location number of all the disks in the RAID group, the included in each RAID group when the RAID group is configured. a location number of all the disks; sorting the location numbers of all the disks included in each of the RAID groups when the RAID group is configured in the preset order, and selecting the location number of the disk on the preset preset position as The location number of the disk in each of the RAID groups that meets the reporting condition.
- the second processor is configured according to each
- the location number of all disks in the RAID group queries the number of disks included in each RAID group when configuring each RAID group; when the number of disks included in each RAID group is configured with each RAID group When the number of disks included in the time is different, the second processor sends the port number of the RAID controller and the switch chip and the location number of all disks in each RAID group to the central processor.
- a ninth aspect of the present invention provides a system for determining a drive letter, comprising: a central processing unit and an independent redundant disk array controller;
- the central processing unit is the central processing unit of the foregoing third aspect and the third aspect, wherein the independent redundant disk array controller is the foregoing fourth aspect and the optional aspect of the fourth aspect.
- the independent redundant disk array controller is the foregoing fourth aspect and the optional aspect of the fourth aspect.
- the embodiment of the present invention adopts a port number for obtaining an independent redundant disk array RAID controller and a switch chip, and a position number of a disk that meets the reporting condition in each RAID group controlled by the RAID controller, and the report condition is met.
- the location number of the disk is the location number of the disk on the preset location in which the location numbers of all the disks included in each RAID group are arranged in the preset order when the RAID group is configured; according to the RAID controller
- the port number connected to the switch chip and the location number of the disk in the RAID group that meets the reporting condition are determined, and the drive letter corresponding to each RAID group is determined.
- the drive letter of each RAID group may be different. Compared with the solution provided by the embodiment of the present invention, the drive letter can be guaranteed after each system restart or disk insertion and removal. The name does not change so that the user can accurately find the stored data.
- FIG. 1 is a schematic diagram of an embodiment of a method for determining a drive letter according to an embodiment of the present invention
- FIG. 2 is a schematic diagram of another embodiment of a method for determining a drive letter according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of an application scenario of a method for determining a drive letter according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of an embodiment of a central processing unit according to an embodiment of the present invention
- FIG. 6 is a schematic diagram of an embodiment of a central processing unit according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of an embodiment of a central processing unit according to an embodiment of the present disclosure
- FIG. 8 is a schematic diagram of an embodiment of a RAID controller according to an embodiment of the present invention
- FIG. 9 is a schematic diagram of another embodiment of a RAID controller according to an embodiment of the present disclosure.
- FIG. 10 is a schematic diagram of another embodiment of a RAID controller according to an embodiment of the present disclosure.
- FIG. 11 is a schematic diagram of an embodiment of an apparatus for determining a drive letter according to an embodiment of the present disclosure
- FIG. 12 is a schematic diagram of an embodiment of an apparatus for determining a drive letter according to an embodiment of the present disclosure
- FIG. 13 is a schematic diagram of an embodiment of a system according to an embodiment of the present invention.
- the embodiment of the invention provides a method for determining a drive letter, which can ensure that the name of the drive letter does not change after the system is restarted or the disk is inserted or removed.
- the embodiments of the present invention also provide corresponding devices and systems. The following is a detailed description.
- an embodiment of a method for determining a drive letter provided by an embodiment of the present invention includes: 101.
- a central processor acquires a port number of a RAID controller and a switch chip, and each RAID controlled by the RAID controller. The location number of the disk in the group that meets the reporting criteria.
- CPU Central Processing Unit
- a Redundant Array of Independent Disk (RAID) controller is a device that manages data access in physical and logical arrays, that is, a device that manages disks.
- the connection relationship between the central processing unit, the switch chip, the RAID controller, and the disk is: the central processor is connected to the switch chip, the switch chip is connected to the RAID controller, the RAID controller is connected to the disk, and the switch is exchanged.
- One port can be connected to each port of the RAID controller.
- the port of the RAID controller can be a Serial Attached Small Computer System Interface (SAS) port or serial advanced technology. Attachment (SATA, Serial Advanced Technology Attachment) port.
- SAS Serial Attached Small Computer System Interface
- SAS Serial Advanced Technology Attachment
- the location number of the disk is the port number of the disk connected to the device connected to the disk.
- the location number of the disk is the port number of the disk and the RAID controller, and the disk is connected to the RAID controller.
- the port number is a, then the location number of the disk is &.
- the central processor can configure the disk under a RAID controller as a RAID group. Assume that the RAID controller has eight ports, which are a ⁇ h in turn, and one disk is connected to each port. The location numbers of each disk are a ⁇ h.
- the central processor can group the disks according to the RAID group configuration commands carried in the user's configuration request. This configuration directive can be used to configure which disks to the same RAID group. For example: Configure &, c, e to a RAID group, b, d, f to a RAID group, and 8, h to a RAID group.
- the CPU can directly receive the port number of the RAID controller and the switch chip from the RAID controller and the location number of the disk in the RAID group under the control of the RAID controller.
- the central processor may further receive a port number of the RAID controller and the switch chip connected by the RAID controller, and a location number of all disks in each RAID group controlled by the RAID controller, according to the The location number of all the disks in each RAID group, and the location numbers of all the disks included in each RAID group when the RAID group is configured are configured, and each RAID group is configured in the preset order.
- the location numbers of all the disks included in each RAID group are sorted, and the location numbers of the disks on the sorted preset positions are selected as the location numbers of the disks in the respective RAID groups that meet the reporting conditions.
- the location number of the disk that meets the reporting condition may be:
- the central processor or the RAID controller determines the location number of all the disks included in each RAID group when configuring each RAID group when the system is installed, according to The preset order sorts the location numbers of all the disks included in each RAID group when the RAID group is configured, and selects the location number of the disk on the sorted preset location as the RAID group.
- the location number of the disk that meets the reporting criteria may be:
- the central processor or the RAID controller determines the location number of all the disks included in each RAID group when configuring each RAID group when the system is installed, according to The preset order sorts the location numbers of all the disks included in each RAID group when the RAID group is configured, and selects the location number of the disk on the sorted preset location as the RAID group. The location number of the disk that meets the reporting criteria.
- the preset order may be: from small to large or from large to small, or may be other preset sequences.
- the preset position refers to the sorted sequential position, such as: the first position, the second position, the last position.
- the preset order and the preset position are both set when the system is installed, and the preset order and the preset position are constant each time the drive letter is determined. Therefore, for the same RAID group, each time the drive letter is determined, first determine the location number of all the disks included in the RAID group when the system is installed, and then use the same preset order and preset position to select the disk that meets the reporting conditions. Position number, thus ensuring the same The RAID group determines the same drive letter each time.
- the central processor determines, according to the port number of the RAID controller and the switch chip, and the location number of the disk in the each RAID group that meets the reporting condition, the corresponding disk group.
- the drive letter corresponding to each RAID group includes two variable parameters, and the port number connected to the switch chip according to the RAID controller and the position number of the disk in each of the RAID groups that meet the reporting condition are determined.
- the drive letter corresponding to each RAID group specifically includes: a port number that connects the RAID controller and the switch chip as a variable parameter in a drive letter corresponding to each RAID group, and each of the RAID groups The location number of the disk that meets the reporting condition is used as another variable parameter in the drive letter corresponding to each RAID group.
- the drive letter can be composed of two parameters or multiple parameters, but regardless of the drive letter consists of several parameters, there are two variable parameters, one is the port number of the RAID controller and the switch chip, and the other is in the RAID group.
- the two variable parameters are used to determine the position number of the disk, the position before and after the two variable parameters can be undefined.
- the port number of the RAID controller connected to the switch chip is 1, and the location number of the disk in the RAID group that meets the reporting condition is a, then the drive letter corresponding to the RAID group can be la, sdla, al, sdal, slda. , sadl and other forms; where sd is a fixed parameter, included in each drive letter, has no specific meaning.
- the port number of the independent redundant disk array RAID controller and the switch chip is obtained, and the position number of the disk that meets the reporting condition in each RAID group under the control of the RAID controller is obtained, and the report condition is met.
- the location number of the disk is the location number of the disk on the preset location in which the location numbers of all the disks included in each RAID group are arranged in the preset order when the RAID group is configured; according to the RAID control
- the port number connected to the switch chip and the location number of the disk in the RAID group that meets the reporting condition are determined, and the drive letter corresponding to each RAID group is determined.
- the drive letter of each RAID group may be different. Compared with the solution provided by the embodiment of the present invention, the drive letter can be proved after each system restart or disk insertion and removal. The name does not change so that the user can accurately find the stored data.
- the central processing unit needs to obtain the location number of the disk that meets the reporting condition in each of the RAID groups, and the process of obtaining the location number of the disk that meets the reporting condition in each RAID group is as follows:
- the port number of the RAID controller connected to the switch chip received by the central processing unit is 1, and the location numbers of all the disks in the three RAID groups under the control of the received RAID controller are: a, c, e ; b, d, f; and 8, h;
- the central processor stores the configuration information of the location number of the disk contained in each RAID group when configuring each RAID group.
- the configuration information can be expressed in Table 1 below:
- Table 1 Comparison table between RAID group and disk location number
- the central processor can only use the received location number of the disk in each RAID group to match the location number of the disk stored by the central processor when configuring each RAID group to determine which RAID group belongs to the configuration information.
- the matching process of the embodiment of the present invention is described in detail by using the matching process of a RAID group whose location numbers of all the disks included in the selected disks are &, c, and e respectively: using the location number a of all disks in the RAID group, c, e matches the configuration information in Table 1, and matches the RAID group containing the location numbers &, c, and e of the disk in Table 1, and finds the location number of all the disks in the RAID group through matching.
- the location number of all the disks stored in the RAID group is the same, indicating that no disks are unplugged or damaged in the RAID group. You can follow the preset order and preset position when installing the system. In the &, c, e, select the location number of the disk in the RAID group that meets the reporting conditions.
- the preset order is from small to large, and the preset position is the first position.
- the selection process is as follows: Sort the position numbers of the disks in order of small to large, and select the first position after sorting.
- the position number a of the disk is the position number of the disk that meets the reporting condition.
- the location numbers of all the disks included in the RAID group received by the CPU are c and e
- the location numbers of all the disks in the RAID group are matched with the configuration information in Table 1.
- Table 1 the RAID group matching the location numbers a, c, and e of the disk is found by matching.
- the location numbers of all the disks in the RAID group received and the location numbers of all the disks stored when the RAID group is configured are not found. The same is true, indicating that the disk in the RAID group is pulled out or damaged.
- the selection process is as follows: Sort the position numbers of the disks in order of small to large, and select the first position after sorting.
- the position number a of the disk is the position number of the disk that meets the reporting conditions.
- each drive letter is unchanged, so whether or not the disk is unplugged or damaged in the RAID group
- the central processor can select the same disk location number to ensure that the determinable drive letter does not change.
- another embodiment of a method for determining a drive letter provided by an embodiment of the present invention includes:
- the RAID controller acquires a port number of the RAID controller connected to the switch chip and a location number of all disks in each RAID group controlled by the RAID controller.
- the port number of the RAID controller and the switch chip is already set in the RAID controller when the system is installed.
- the RAID controller only needs to read the port number of its connection with the switch chip.
- the location number of the disk that meets the reporting conditions in each RAID group can be obtained by the RAID controller and sent to the CPU.
- the RAID controller can also send the location number of all the disks in each RAID group obtained to the CPU.
- the central processor obtains, according to the location number of all the disks in each of the RAID groups, a location number of the disk that meets the reporting condition in each of the RAID groups.
- step 203 When the RAID controller can obtain the location number of the disk that meets the reporting condition in each RAID group, go to step 203, otherwise go to step 202.
- the RAID controller sends, to a central processing unit, a port number of the RAID controller and a switch chip, and a location number of all disks in each RAID group, so that the central processor is configured according to each The location number of all the disks in the RAID group determines the location number of the disk in each of the RAID groups that meets the reporting conditions.
- the central processor sending, by the RAID controller, the RAID controller to the switch chip to the central processor
- the port number and the location number of all the disks in each of the RAID groups so that the central processor determines, according to the location number of all the disks in each RAID group, all the components included in the system when installing the system in each RAID group.
- the location numbers of the disks in each RAID group are sorted according to a preset order. After sorting, the location number of the disk in the preset location is selected as the location number of the disk that meets the reporting condition, thereby causing the central processing unit.
- the location number is the location number of the disk on the preset location after the location numbers of all the disks included in each RAID group are arranged in the preset order.
- the RAID controller determines, according to the location number of all disks in each RAID group, the location number of the disk that meets the reporting condition in each RAID group, and sends the RAID controller and the switch to the central processor.
- the RAID controller may find, according to the location number of all the disks in each RAID group, the included in each RAID group when configuring the RAID group.
- the location numbers of all the disks and sorting the location numbers of all the disks included in each of the RAID groups when the RAID group is configured in the preset order, and selecting the location numbers of the disks on the preset positions after sorting.
- the location number of the disk in the RAID group that meets the reporting condition so that the central processor can be configured according to the port number of the RAID controller and the switch chip, and the disk of each of the RAID groups that meets the reporting condition.
- the drive letter corresponding to each of the RAID groups is determined, and the location number of the disk that meets the reporting condition is a location number of all the disks included in each RAID group when the RAID group is configured.
- the independent redundant disk array RAID controller acquires the port number of the RAID controller and the switch chip, and the location number of all the disks in each RAID group under the control of the RAID controller; The controller determines, according to the location number of all the disks in each RAID group, a location number of the disk that meets the reporting condition in each RAID group; the RAID controller sends the RAID controller and the switch chip to the central processor.
- the central processor determines a location number of the disk in the each RAID group that meets the reporting condition according to the location number of all the disks in each RAID group; or, to the central processor Sending a port number of the RAID controller and the switch chip, and a location number of the disk in the each RAID group that meets the reporting condition, so that the central processor is configured according to the port that the RAID controller and the switch chip are connected to. And a number of the disk corresponding to the reporting condition in each of the RAID groups, and determining a drive letter corresponding to each of the RAID groups, where the location number of the disk that meets the reporting condition is in a preset position after being sorted.
- the drive letter of each RAID group may be different. Compared with the solution provided by the embodiment of the present invention, the drive letter can be proved after each system restart or disk insertion and removal. The name does not change so that the user can accurately find the stored data.
- the first optional embodiment may be: the RAID controller determines the each RAID group according to the location number of all disks in each RAID group.
- the location number of the disk that meets the reporting condition includes: searching, according to the location number of all the disks in each RAID group, the location number of all disks included in each RAID group when configuring the RAID group; Sorting the position numbers of all the disks included in each RAID group when the RAID group is configured, and selecting the position number of the disk on the preset preset position as the match in each RAID group. The location number of the disk on which the condition was reported.
- the CPU When the system is installed, the CPU receives the configuration request from the user and divides the disk into RAID groups according to the configuration commands carried in the configuration request.
- the RAID controller can also store the disk information contained in each RAID group.
- the information of the disks in the RAID group is the status information, and each disk is normal. This process can be understood by referring to the example process in Table 1. Regardless of whether the disk is unplugged or damaged, the same disk location number is selected as the location number of the disk that meets the reporting condition, and the location of the disk that meets the reporting condition is selected. The number is sent to the central processor to ensure that the drive letter corresponding to each RAID group assigned by the central processor does not change.
- the second optional embodiment may be:
- the configuration information stored in the RAID controller changes with the change of the disk, when the disk is Pulled out or damaged, the magnetic device that is pulled out or damaged is no longer stored in the RAID controller.
- the location number of the disk but the RAID controller will always store the number of disks in each RAID group when the system is installed. In this case, after the RAID controller queries the location numbers of all the disks in each RAID group, the RAID controller further configures each of the RAIDs according to the location number of all disks in each RAID group.
- the position numbers of the disks in each RAID group are sorted according to the preset order. After sorting, the position number of the disk in the preset position is selected as the position of the disk that meets the reporting condition. number.
- the RAID controller does not store configuration information when configuring a RAID group, but each RAID configuration is stored every time the system is booted.
- the RAID group contains the number of disks, and the number does not change whether the disk is unplugged or damaged. However, when the disk is unplugged or damaged, the disk is pulled out or damaged. The location number is no longer stored.
- the RAID controller will always store the number of three disks. When the disk with the location number a is removed, the RAID controller is in the RAID controller. Only the location numbers of the two disks c and e will be stored, but there will be information about three disks when the RAID group is configured. This process can be understood by referring to Table 2: Storage Information Table at System Startup
- the location numbers of all the disks included in a RAID group that the RAID controller has inquired are c and e, respectively. According to the location numbers of all the disks in the RAID group, e can be learned from Table 2 when configuring the RAID group. 3 disks, indicating that one disk is unplugged or damaged. In this way, the RAID controller cannot accurately find the location number of the disk that meets the reporting conditions, and then sends the location number of all the disks in each RAID group to the central processor.
- the central processing unit follows the preset order according to the alternative scheme corresponding to FIG.
- the location number of the disk in the preset location is selected as the location number of the disk that meets the reporting conditions, thereby determining the drive letter corresponding to each RAID group, thereby ensuring the The drive letter corresponding to each RAID group does not change.
- the RAID controller may determine the location number of the disk that meets the reporting condition, or may In the processing scheme when the number is different, the central processor selects the location number of the disk that meets the reporting condition.
- an application scenario embodiment provided by an embodiment of the present invention includes:
- the central processor sends a drive letter parameter report request to the independent redundant disk array RAID controller.
- S2 After receiving the drive letter parameter report request sent by the central processing unit, the RAID controller obtains the port number of the RAID controller and the switch chip.
- the RAID controller is connected to the PCIE port of the switch chip. After receiving the drive letter parameter report request, the RAID controller obtains the RAID number by querying the port number connected to the switch chip. The port number of the controller connected to the switch chip.
- the RAID controller acquires a location number of all disks in each RAID group under the control of the RAID controller.
- step S4 and S5 After obtaining the location numbers of all the disks in the RAID group, the steps S4 and S5 may be performed, or the steps S6 and S7 may be performed to obtain the port numbers of the RAID controller and the switch chip, and each of the RAIDs. After the location number of the disk in the group that meets the reporting condition, the drive letter corresponding to each RAID group is determined by step S8.
- the RAID controller sends, to the central processing unit, a port number of the RAID controller and the switch chip, and a location number of all the disks in each of the RAID groups.
- the central processor finds, according to the location number of all the disks in each RAID group, the location numbers of all the disks included in each RAID group when the RAID group is configured, and configures according to a preset order. Sorting the location numbers of all the disks included in each RAID group in each RAID group, and selecting the location numbers of the disks on the sorted preset positions as the matches in each of the RAID groups. The location number of the disk on which the condition was reported.
- the location number of the disk that meets the reporting condition may be:
- the central processor or the RAID controller determines the location number of all the disks included in each RAID group when configuring each RAID group when the system is installed, according to The preset order sorts the location numbers of all the disks included in each RAID group when the RAID group is configured, and selects the location number of the disk on the sorted preset location as the RAID group.
- the location number of the disk that meets the reporting criteria may be:
- the central processor or the RAID controller determines the location number of all the disks included in each RAID group when configuring each RAID group when the system is installed, according to The preset order sorts the location numbers of all the disks included in each RAID group when the RAID group is configured, and selects the location number of the disk on the sorted preset location as the RAID group. The location number of the disk that meets the reporting criteria.
- the preset order may be: from small to large or from large to small, or may be other preset sequences.
- the preset position refers to the sorted sequential position, such as: the first position, the second position, the last position.
- the preset sequence and the preset position are both set when the system is installed, and the preset order and the preset position are constant each time the drive letter is determined. Therefore, for the same RAID group, each time the drive letter is determined, first determine the location number of all the disks included in the RAID group when the system is installed, and then use the same preset order and preset position to select the disk that meets the reporting conditions. The location number, so that the same RAID group is determined to have the same drive letter each time.
- the RAID controller determines each of the disks according to location numbers of all disks in each RAID group.
- the location number of the disk in the RAID group that meets the reporting criteria is the location number of the disk in the RAID group that meets the reporting criteria.
- the location number of the disk that meets the reporting condition is selected according to a preset rule.
- the RAID controller sends, to the central processing unit, a port number of the RAID controller and the switch chip, and a location number of the disk in the each RAID group that meets the reporting condition.
- the central processing unit determines the drive letter corresponding to each RAID group according to the port number of the RAID controller and the switch chip and the position number of the disk in the each RAID group that meets the reporting condition.
- the central processor uses the port number of the RAID controller and the switch chip as a variable parameter in the drive letter corresponding to each RAID group, and uses the location number of the disk in each of the RAID groups that meets the reporting condition as Another variable parameter in the drive letter corresponding to each RAID group.
- the central processing unit 30 controls the switch chip 50.
- the switch chip 50 in this embodiment is a PCIE (PCI-Express) switch chip, and the switch chip 50 has three ports, ports. No. is port 1, port 2, port 3; each port is connected with an independent redundant disk array RAID controller 40. Take the RAID controller 40 on the left as an example.
- the RAID controller 40 has 8 ports.
- the port number is a ⁇ h.
- the central processor groups the disks according to the configuration instructions carried in the configuration request.
- This configuration command can be used to configure which disks to the same RAID group. For example: Configure &, c, e to a RAID group, b, d, f to a RAID group, and configure ⁇ and h to a RAID group.
- the RAID controller stores the corresponding information of the RAID group of the configuration state and the location number of the disk 60.
- the configuration information can be understood by referring to Table 1: When the RAID controller 40 receives the drive letter parameter sent by the central processing unit 30. After the request,
- the RAID controller 40 obtains the port number of the port connected to the switch chip, and then queries the location number of each disk in the RAID group under control. When querying a RAID group, query 3 disks, and the location numbers are &, c, and e. After comparison, confirm that the location numbers corresponding to the RAID groups stored in Table 1 are identical, and directly include a from the query. c. Sort the a, c, and e in the eRAID group according to the preset order. After sorting, select the location number of the disk on the preset location as the location number of the disk that meets the reporting conditions. The location number of the disk in the first position after the big sort, then the location number of the selected disk that meets the reporting condition is &.
- the location numbers corresponding to the RAID groups containing c and e stored in Table 1 are not identical, including For the disk with position number a, sort the &, c, and e in the preset order from the configuration information in Table 1. After sorting, select the position number of the disk at the preset position as the position number of the disk that meets the reporting condition. When the preset order is from small to large, and the preset position is the first position after sorting, the qualified position number is still a.
- the final selection will be 1 and a, and the port number 1 of the disk connected to the switch chip and the position number a of the disk meeting the reporting condition are reported to the central processor; And a, determining the drive letter according to a predetermined rule. If the predetermined rule specifies that the port number of the RAID controller connected to the switch chip is first, then the determined drive letter is la. If the position number of the disk with the smallest preset rule preset position number is first, Then the determined drive letter is al. The only words written here are the variables. The drive letter can actually be in the form of sdla or sdal; where sd is fixed and included in each drive letter, there is no specific meaning.
- the disk drive corresponding to the specified RAID group containing a, c, and e is sdla. According to the same method, the RAID group corresponding to the b, d, and f groups is determined.
- the drive letter is sdlb, the corresponding drive letter of the RAID group containing g, h is sdlg, assuming that the disk corresponding to the drive letter sdla stores the file A, the disk corresponding to the drive letter sdlb stores the file B, and the drive letter sdlg corresponds to
- the file C is stored in the disk, so that after the system is restarted or the disk is inserted and removed, the drive letter of each RAID group does not change, and the user can accurately find the data to be searched by the drive letter.
- an embodiment of a central processing unit provided by an embodiment of the present invention includes:
- the first obtaining unit 301 is configured to obtain a port number of the RAID controller and the switch chip, and a location number of the disk that meets the reporting condition in each RAID group controlled by the RAID controller, where the disk meets the reporting condition
- the location number is a location number of a disk on a preset location in which the location numbers of all disks included in each RAID group are arranged in a preset order when the RAID group is configured
- the first determining unit 302 is configured to: Determining, according to the port number of the RAID controller and the switch chip that is obtained by the first acquiring unit 301, and the location number of the disk that meets the reporting condition in each of the RAID groups, determining the disk corresponding to each RAID group. symbol.
- the first obtaining unit 301 acquires the port number of the RAID controller and the switch chip, and the position number of the disk that meets the reporting condition in each RAID group under the control of the RAID controller, and the report condition is met.
- the location number of the disk is the location number of the disk on the preset location in which the location numbers of all the disks included in each RAID group are arranged in the preset order when the RAID group is configured;
- the first determining unit 302 Determining, according to the port number of the RAID controller and the switch chip that is obtained by the first acquiring unit 301, and the location number of the disk that meets the reporting condition in each of the RAID groups, determining the disk corresponding to each RAID group. symbol.
- the central processing unit provided by the embodiment of the present invention can ensure that the name of the determined drive letter is unchanged after each system restart or disk insertion and removal, so that the user can accurately find the stored data.
- the first obtaining unit 301 includes:
- the first receiving subunit 3011 is configured to receive a port number of the RAID controller and the switch chip connected by the RAID controller, and a location number of the disk that meets the reporting condition in each RAID group controlled by the RAID controller.
- the first acquiring unit 301 includes:
- a second receiving subunit 3012 configured to receive a port number of the RAID controller and the switch chip connected by the RAID controller, and a location number of all the disks in each RAID group controlled by the RAID controller;
- a first locating subunit 3013 configured to: according to the location number of all the disks in each RAID group received by the second receiving subunit 3012, find that each of the RAID groups is included when configuring each of the RAID groups The location number of all disks;
- the first sorting sub-unit 3014 is configured to sort, according to a preset order, the location numbers of all the disks included in each RAID group when the first RAID unit 13 is configured to find the RAID group.
- the first selection sub-unit 3015 is configured to select a position number of the disk on the pre-set position after the first sorting sub-unit 3014 is used as the position number of the disk in the each RAID group that meets the reporting condition.
- the first determining unit 302 is specifically configured to use the port number of the RAID controller and the switch chip as a variable parameter in the drive letter corresponding to each RAID group, and match each of the RAID groups.
- the location number of the disk that reports the condition is another variable parameter in the drive letter corresponding to each RAID group.
- an embodiment of an independent redundant disk array controller includes: a second obtaining unit 401, configured to acquire a port number of a RAID controller and a switch chip, and the RAID controller is controlled. The location number of all disks in each RAID group;
- the second determining unit 402 is configured to determine, according to the location number of all the disks in each of the RAID groups acquired by the second obtaining unit 401, a location number of the disk in the each RAID group that meets the reporting condition;
- a sending unit 403 configured to send, to the central processing unit, a port number of the RAID controller and the switch chip acquired by the second acquiring unit 401, and a location of all disks in each RAID group under the control of the RAID controller Number, such that the central processor is based on all magnetics in each of the RAID groups
- the location number of the disk determines the location number of the disk in the RAID group that meets the reporting condition, or sends the disk of the RAID controller and the switching core acquired by the second obtaining unit 401 to the central processor.
- a location number so that the central processor determines, according to the port number of the RAID controller and the switch chip, and the location number of the disk in the each RAID group that meets the reporting condition, the corresponding corresponding to each RAID group.
- a drive letter where the location number of the disk that meets the reporting condition is a disk on a preset location in which the location numbers of all disks included in each RAID group are arranged in a preset order when the RAID group is configured
- the second obtaining unit 401 acquires the port number of the RAID controller connected to the switch chip and the location number of all the disks in each RAID group under the control of the RAID controller; the second determining unit 402 is configured according to the The location number of all the disks in each of the RAID groups acquired by the second obtaining unit 401 determines the location number of the disk in the each RAID group that meets the reporting condition; the sending unit 403 sends the second acquiring unit to the central processing unit. 401.
- the port number of the RAID controller connected to the switch chip and the location number of all disks in each RAID group under the control of the RAID controller, so that the central processor is configured according to each RAID group.
- the location number of all the disks determines the location number of the disk that meets the reporting condition in each of the RAID groups, or sends the RAID controller acquired by the second obtaining unit 401 to the switch chip to the central processor.
- the port number and the second determining processor are configured according to the port number of the RAID controller and the switch chip, and the reportable condition in each of the RAID groups a location number of the disk, the drive letter corresponding to each of the RAID groups is determined, and the location number of the disk that meets the reporting condition is a location number of all the disks included in each RAID group when the RAID group is configured.
- the position number of the disk on the preset position sorted in the preset order.
- the second determining unit 402 includes:
- a second search subunit 4021 configured to check the location number of all disks in each RAID group Finding a location number of all disks included in each RAID group when the RAID group is configured
- a second sorting subunit 4022 configured to find the configuration by the second lookup subunit 4021 in a preset order. Sort the location numbers of all the disks included in each RAID group in each RAID group;
- the second selection sub-unit 4023 is configured to select a location number of the disk on the preset position after the second sorting sub-unit 4022 is used as the location number of the disk in the RAID group that meets the reporting condition.
- another embodiment of the independent redundant disk array controller provided by the embodiment of the present invention further includes:
- the querying unit 404 is configured to query, according to the location number of all the disks in each of the RAID groups, the number of disks included in each of the RAID groups when configuring each of the RAID groups;
- the sending unit 403 is specifically configured to: when the number of disks included in each RAID group queried by the query unit 404 is different from the number of disks included in configuring each RAID group, to the central processor Sending the port number of the RAID controller connected to the switch chip and the location number of all the disks in each of the RAID groups.
- the technical solution provided by the embodiment of the invention can ensure that the drive letter can be kept unchanged when the disk is pulled out or the disk is damaged.
- the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes some or all of the data processing method described in the method embodiment when the central processor is executed as the main body. step.
- the embodiment of the present invention further provides another computer storage medium, wherein the computer storage medium may store a program, where the program includes the above-mentioned RAID controller as part of the data processing method described in the method embodiment when executing the main body or All steps.
- an embodiment of an apparatus for determining a drive letter includes: a first input device 100, a first output device 200, a first processor 300, and a first memory 400;
- the first input device 100, the first output device 200, the first processor 300, and the first memory 400 may be connected by a bus or other means;
- the first input device 100 transmits the received data to the first memory 400, the first processor 300 processes the data stored in the first memory 400, and the first output device 200 outputs the first processor 300. Processed data.
- the first processor 300 performs the following steps:
- the port number and the location number of the disk in each of the RAID groups that meet the reporting condition are determined, and the drive letter corresponding to each RAID group is determined.
- the first processor 300 receives a port number of a RAID controller and a switch chip that is reported by the RAID controller, and is controlled by the RAID controller. The location number of the disk in each RAID group that meets the reporting criteria.
- the first processor 300 receives a port number of the RAID controller and the switch chip connected by the RAID controller, and controls the RAID controller.
- the location number of all the disks in each RAID group ; according to the location numbers of all the disks in each RAID group, find the location of all the disks included in each RAID group when configuring each RAID group. No., in the preset order, sort the position numbers of all the disks included in each RAID group when the RAID group is configured, and select the position number of the disk on the sorted preset position as the The location number of the disk in the RAID group that meets the reporting conditions.
- the drive letter corresponding to each RAID group includes two variable parameters, and the first processor 300 connects the RAID controller to the switch chip.
- the port number is used as a variable parameter in the drive letter corresponding to each RAID group, and the location number of the disk corresponding to the reporting condition in each RAID group is used as another one of the drive letters corresponding to each RAID group.
- an embodiment of an apparatus for determining a drive letter includes: a second input device 500, a second output device 600, a second processor 700, and a second memory 800;
- the second input device 500, the second output device 600, the second processor 700, and the second memory 800 may be connected by a bus or other means;
- the second input device 500 transmits the received data to the second memory 800, and the second process
- the processor 700 processes the data stored in the second memory 800, and the second output device 600 outputs the data processed by the second processor 700.
- the second processor 700 performs the following steps:
- the central processing unit Sending, to the central processing unit, a port number of the RAID controller connected to the switch chip and a location number of all the disks in each of the RAID groups, so that the central processor according to the location of all the disks in each RAID group No. determining a location number of the disk that meets the reporting condition in each of the RAID groups; or sending, to the central processor, a port number of the RAID controller connected to the switch chip and a report of compliance in each of the RAID groups a location number of the conditional disk, so that the central processor determines the each RAID according to a port number of the RAID controller connected to the switch chip and a location number of the disk in the each RAID group that meets the reporting condition.
- the corresponding drive letter of the group, the disk number corresponding to the reporting condition is the position number of the disk on the preset position sorted according to the preset order.
- the second processor 700 finds each of the foregoing when configuring the RAID group according to the location number of all disks in each RAID group.
- the location number of all the disks included in the RAID group sort the position numbers of all the disks included in each RAID group when the RAID group is configured in the preset order, and select the preset position after sorting.
- the location number of the disk is used as the location number of the disk in each of the RAID groups that meets the reporting condition.
- the second processor 700 queries each of the each of the RAID groups according to a location number of all disks in each RAID group.
- the number of disks included in the RAID group when the number of disks included in each RAID group is different from the number of disks included in each RAID group configured, the second processor 700 is directed to the central processor Sending a port number of the RAID controller connected to the switch chip and a location number of all disks in each of the RAID groups.
- an embodiment of a system for determining a drive letter provided by an embodiment of the present invention includes: The processor 30, the switch chip 50, the independent redundant disk array controller 40 and the disk 60;
- the central processing unit 30, the switch chip 50, the independent redundant disk array controller 40, and the magnetic disk 60 are connected by a bus or other means;
- the central processing unit 30 is configured to obtain a port number of the independent redundant disk array RAID controller and the switch chip, and a location number of the disk that meets the reporting condition in each RAID group under the control of the RAID controller,
- the location number of the disk that meets the reporting condition is the location number of the disk on the preset location in which the location numbers of all the disks included in each RAID group are arranged in the preset order when the RAID group is configured;
- the port number of the RAID controller connected to the switch chip and the location number of the disk in the RAID group that meets the reporting condition are determined, and the drive letter corresponding to each RAID group is determined.
- the independent redundant disk array controller 40 is configured to obtain a port number of the RAID controller connected to the switch chip and a location number of all disks in each RAID group controlled by the RAID controller; the RAID control Determining, according to the location number of all the disks in each RAID group, a location number of the disk that meets the reporting condition in each RAID group; the RAID controller sends the RAID controller to the switch chip to the central processor a port number and a location number of all the disks in each of the RAID groups, so that the central processor determines the disk in the each RAID group that meets the reporting condition according to the location number of all the disks in each RAID group.
- the central processor is Determining, according to the port number that the RAID controller is connected to the switch chip, and the location number of the disk that meets the reporting condition in each RAID group, corresponding to each RAID group
- the location number of the disk that meets the reporting condition is the location of the disk on the preset location in which the location numbers of all the disks included in each RAID group are arranged in a preset order when the RAID group is configured. number.
- the system provided by the embodiment of the present invention can ensure that the name of the drive letter determined by the central processing unit is unchanged after each system restart or disk insertion and removal, so that the user can accurately find the stored data.
- the program may be stored in a computer readable storage medium, and the storage medium may include: ROM, RAM, disk or CD, etc.
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)
- Debugging And Monitoring (AREA)
Abstract
本发明公开了一种确定盘符的方法,获取独立冗余磁盘阵列RAID控制器与交换芯片连接的端口号和所述RAID控制器控制下的每个RAID组中符合上报条件的磁盘的位置号,所述符合上报条件的磁盘的位置号为配置所述每个RAID组时所述每个RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号;根据所述RAID控制器与交换芯片连接的端口号和所述每个RAID组中符合上报条件的磁盘的位置号,确定所述每个RAID组对应的盘符。本发明实施例提供的方案,可以保证每次系统重新启动或磁盘插拔后,盘符的名称不变,以便用户能准确查找到存储的数据。
Description
一种确定盘符的方法、 装置及系统 技术领域
本发明涉及信息技术领域, 具体涉及一种确定盘符的方法、 装置及系统。 背景技术
目前大多数服务器的存储结构, 一般都是独立冗余磁盘阵列 (RAID , Redundant array of Independent Disk )控制器下连接多个磁盘。 常用的 RAID 控制器下连接的多个磁盘可以灵活配置成 RAID组,如将 5个磁盘配置成一个 RAID组。
在一个系统中存在多个磁盘的情况下,将同一个 RAID控制器下的多个磁 盘配置成几个 RAID组, 如 1 , 2, 3号盘配置成一个 RAID组, 4, 5, 6号盘 配置成一个 RAID组, 7, 8, 9号盘配置成一个 RAID组; 因每个 RAID组存 放的数据基本都不一样, 操作系统会给每个 RAID 组分配一个盘符供用户使 用。 如 1 , 2, 3号盘组成的 RAID组的盘符为 sdb, 存放文件 A; 4, 5, 6号 盘组成的 RAID组的盘符为 sdc, 存放文件 B; 7, 8, 9号盘组成的 RAID组 的盘符为 sdd, 存放文件 C。
现有技术中,每个 RAID组的盘符名称是操作系统根据 RAID组加入的先 后顺序分配的。 而每次系统重新启动或磁盘插拔后, 不能保证每次 RAID组的 添加顺序都相同, 所以每次系统重新启动或者磁盘插拔后, 每个 RAID组的盘 符都可能不相同,这样,会导致用户无法准确查找到存储在 RAID组中的数据。 发明内容
本发明实施例提供一种确定盘符的方法,可以保证每次系统重新启动或磁 盘插拔后, 盘符的名称不变。 本发明实施例还提供了相应的装置及系统。
本发明第一方面提供一种确定盘符的方法, 可包括:
获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的端口号和所述
RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号;
根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符 合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
结合第一方面, 在第一种可能的实现方式中, 所述获取 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条 件的磁盘的位置号, 具体包括:
接收 RAID控制器上报的 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号。
结合第一方面, 在第二种可能的实现方式中, 所述获取 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条 件的磁盘的位置号, 具体包括:
接收所述 RAID控制器上报的所述 RAID控制器与交换芯片连接的端口号 和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
根据所述每个 RAID组中所有磁盘的位置号,查找到配置所述每个 RAID组 时所述每个 RAID组中包含的所有磁盘的位置号, 按照预置顺序对所述配置所 述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序,选择排 序后的预置位置上的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁 盘的位置号。
结合第一方面、第一方面的第一种可能的实现方式或者第一方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述每个 RAID组对应的盘符 包含两个变量参数, 所述根据所述 RAID控制器与交换芯片连接的端口号和所 述每个 RAID组中符合上报条件的磁盘的位置号,确定所述每个 RAID组对应的 盘符, 具体包括:
将所述 RAID控制器与交换芯片连接的端口号作为所述每个 RAID组对应 的盘符中的一个变量参数, 将所述每个 RAID组中符合上报条件的磁盘的位置 号作为所述每个 RAID组对应的盘符中的另一个变量参数。
本发明第二方面提供一种确定盘符的方法, 可包括:
独立冗余磁盘阵列 RAID控制器获取所述 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每 个 RAID组中符合上报条件的磁盘的位置号;
所述 RAID控制器向中央处理器发送所述 RAID控制器与交换芯片连接的 端口号和所述每个 RAID组中所有磁盘的位置号, 以使所述中央处理器根据所 述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的 磁盘的位置号; 或者, 向所述中央处理器发送所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号, 以使所述 中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID 组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述 符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中 包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号。
结合第二方面, 在第一种可能的实现方式中, 所述 RAID控制器根据所述 每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁 盘的位置号, 具体包括:
根据所述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所 述每个 RAID组中包含的所有磁盘的位置号;
按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID组包含的所 有磁盘的位置号进行排序,选择排序后预置位置上的磁盘的位置号作为所述每 个 RAID组中符合上报条件的磁盘的位置号。
结合第二方面, 在第二种可能的实现方式中, 所述 RAID控制器获取控制 下的每个 RAID组中所有磁盘的位置号之后, 还包括:
所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号查询配置所 述每个 RAID组时所述每个 RAID组包含的磁盘的数量;
所述 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中所有磁盘的位置号, 具体包括: 当所述每个 RAID组中包含的磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同 时,所述 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接 的端口号和所述每个 RAID组中所有磁盘的位置号。
本发明第三方面提供一种中央处理器, 可包括:
第一获取单元, 用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 第一确定单元, 用于根据所述第一获取单元获取到的所述 RAID控制器与 交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
结合第三方面, 在第一种可能的实现方式中, 所述第一获取单元包括: 第一接收子单元,用于接收 RAID控制器上报的 RAID控制器与交换芯片连 接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘 的位置号。
结合第三方面, 在第二种可能的实现方式中, 所述第一获取单元包括: 第二接收子单元,用于接收所述 RAID控制器上报的所述 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的 位置号;
第一查找子单元, 用于根据所述第二接收子单元接收到的每个 RAID组中 所有磁盘的位置号,查找到配置所述每个 RAID组时所述每个 RAID组中包含的 所有磁盘的位置号;
第一排序子单元,用于按照预置顺序对所述第一查找子单元查找到的配置 所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序; 第一选择子单元,用于选择第一排序子单元排序后的预置位置上的磁盘的 位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
结合第三方面、第三方面的第一种可能的实现方式或者第三方面的第二种 可能的实现方式, 在第三种可能的实现方式中, 所述每个 RAID组对应的盘符 包含两个变量参数,
所述第一确定单元, 具体用于将所述 RAID控制器与交换芯片连接的端口 号作为所述每个 RAID组对应的盘符中的一个变量参数,将所述每个 RAID组中
符合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中的另一个变 量参数。
本发明第四方面提供一种独立冗余磁盘阵列控制器, 可包括:
第二获取单元, 用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
第二确定单元, 用于根据所述第二获取单元获取的所述每个 RAID组中所 有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;
发送单元, 用于向中央处理器发送所述第二获取单元获取的所述 RAID控 制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所 置号确定所述每个 RAID组中符合上报条件的磁盘的位置号, 或者, 向所述中 央处理器发送所述第二获取单元获取的所述 RAID控制器与交换芯片连接的端 号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所 述每个 RAID组中符合上报条件的磁盘的位置号,确定所述每个 RAID组对应的 盘符, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号。
结合第四方面, 在第一种可能的实现方式中, 所述第二确定单元包括: 第二查找子单元, 用于根据所述每个 RAID组中所有磁盘的位置号查找到 配置所述 RAID组时所述每个 RAID组中包含的所有磁盘的位置号;
第二排序子单元,用于按照预置顺序对所述第二查找子单元查找到的配置 所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序; 第二选择子单元,用于选择所述第二排序子单元排序后预置位置上的磁盘 的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
结合第四方面, 在第二种可能的实现方式中, 还包括:
查询单元, 用于根据所述每个 RAID组中所有磁盘的位置号查询配置所述 每个 RAID组时所述每个 RAID组包含的磁盘的数量;
所述发送单元, 具体用于当所述查询单元查询到的每个 RAID组中包含的 磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同时, 向所述中央处 理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所 有磁盘的位置号。
本发明第五方面提供一种计算机存储介质,
所述计算机存储介质可存储有程序,该程序执行时包括如上述第一方面及 第一方面的可选方式确定盘符的方法的部分或者全部步骤。
本发明第六方面提供一种计算机存储介质,
所述计算机存储介质可存储有程序,该程序执行时包括如上述第二方面及 第二方面的可选方式确定盘符的方法的部分或者全部步骤。
本发明第七方面提供一种确定盘符的设备, 包括: 第一输入装置、 第一输 出装置、 第一存储器和第一处理器;
其中, 所述第一处理器执行如下步骤:
获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符 合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
结合第七方面, 在第一种可能的实现方式中, 所述第一处理器接收所述
RAID控制器上报的 RAID控制器与交换芯片连接的端口号和所述 RAID控制器 控制下的每个 RAID组中符合上报条件的磁盘的位置号。
结合第七方面, 在第二种可能的实现方式中, 所述第一处理器接收所述 RAID控制器上报的所述 RAID控制器与交换芯片连接的端口号和所述 RAID控 制器控制下的每个 RAID组中所有磁盘的位置号;根据所述每个 RAID组中所有 磁盘的位置号,查找到配置所述每个 RAID组时所述每个 RAID组中包含的所有 磁盘的位置号,按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID组 包含的所有磁盘的位置号进行排序,选择排序后的预置位置上的磁盘的位置号
作为所述每个 RAID组中符合上报条件的磁盘的位置号。
结合第七方面,第七方面第一种可能的实现方式或者第七方面第二种可能 的实现方式, 在第一种可能的实现方式中, 所述每个 RAID组对应的盘符包含 两个变量参数, 所述第一处理器将所述 RAID控制器与交换芯片连接的端口号 作为所述每个 RAID组对应的盘符中的一个变量参数,将所述每个 RAID组中符 合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中的另一个变量 参数。
本发明第八方面提供一种确定盘符的设备, 包括: 第二输入装置、 第二输 出装置、 第二存储器和第二处理器;
其中, 所述第二处理器执行如下步骤:
获取所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制 下的每个 RAID组中所有磁盘的位置号;
根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合 上报条件的磁盘的位置号;
向中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个
RAID组中所有磁盘的位置号,以使所述中央处理器根据所述每个 RAID组中所 有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;或者, 向所述中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的 磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述符合上报条件的磁盘 置号按照预置顺序排序后的预置位置上的磁盘的位置号。
结合第八方面, 第一种可能的实现方式中, 所述第二处理器根据所述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所述每个 RAID组中包 含的所有磁盘的位置号; 按照预置顺序对所述配置所述每个 RAID组时所述每 个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后预置位置上的磁盘 的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
结合第八方面, 第二种可能的实现方式中, 所述第二处理器根据所述每个
RAID组中所有磁盘的位置号查询配置所述每个 RAID组时所述每个 RAID组包 含的磁盘的数量; 当所述每个 RAID组中包含的磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同时, 所述第二处理器向所述中央处理器发送所 述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有磁盘的位 置号。
本发明第九方面提供一种确定盘符的系统, 包括: 中央处理器和独立冗余 磁盘阵列控制器;
所述中央处理器为上述上述第三方面及第三方面的可选方式种所述的中 央处理器,所述独立冗余磁盘阵列控制器为上述上述第四方面及第四方面的可 选方式所述的独立冗余磁盘阵列控制器。
本发明实施例采用获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位 置号, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号;根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组 中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。 与现有 技术中系统重新启动或者磁盘插拔后, 每个 RAID组的盘符可能不相同相比, 本发明实施例提供的方案, 可以保证每次系统重新启动或磁盘插拔后,盘符的 名称不变, 以便用户能准确查找到存储的数据。 附图说明
图 1是本发明实施例提供的确定盘符的方法的一实施例示意图;
图 2是本发明实施例提供的确定盘符的方法的另一实施例示意图; 图 3是本发明实施例提供的确定盘符的方法的一应用场景示意图; 图 4是本发明实施例提供的确定盘符的方法的另一应用场景示意图; 图 5是本发明实施例提供的中央处理器的一实施例示意图;
图 6是本发明实施例提供的中央处理器的一实施例示意图;
图 7是本发明实施例提供的中央处理器的一实施例示意图;
图 8是本发明实施例提供的 RAID控制器的一实施例示意图;
图 9是本发明实施例提供的 RAID控制器的另一实施例示意图;
图 10是本发明实施例提供的 RAID控制器的另一实施例示意图;
图 11是本发明实施例提供的确定盘符的设备的一实施例示意图;
图 12是本发明实施例提供的确定盘符的设备的一实施例示意图;
图 13是本发明实施例提供的系统的一实施例示意图。
具体实施方式
本发明实施例提供一种确定盘符的方法,可以保证每次系统重新启动或磁 盘插拔后, 盘符的名称不变。 本发明实施例还提供了相应的装置及系统。 以下 分別进行详细说明。
请参阅图 1 , 本发明实施例提供的确定盘符的方法的一实施例包括: 101、 中央处理器获取 RAID控制器与交换芯片连接的端口号和所述 RAID 控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号。
中央处理器( CPU , Central Processing Unit )。
独立冗余磁盘阵列( RAID , Redundant array of Independent Disk )控制器 就是在物理和逻辑阵列中管理数据存取的装置, 也就是管理磁盘的装置。
本发明实施例中, 中央处理器、 交换芯片、 RAID控制器、 磁盘之间的连 接关系是: 中央处理器与交换芯片连接、 交换芯片与 RAID控制器连接、 RAID 控制器与磁盘连接, 并且交换芯片上有至少一个端口, 该交换芯片的每个端口 下连接着一个 RAID控制器, 交换芯片上的端口可以为扩展的外围设备互连 ( PCI-E, Peripheral Component Interconnection Express )端口; 每个 RAID控 制器上有至少一个端口, RAID控制器的每个端口下可以连接一个磁盘, RAID 控制器的端口可以为串行附属小型计算机系统 (SAS, Serial Attached Small Computer System Interface )端口或者串行高级技术附件( SATA, Serial Advanced Technology Attachment) 端口。
磁盘的位置号为磁盘与连接该磁盘的装置连接的端口号,本发明实施例中 磁盘的位置号为磁盘与 RAID控制器连接的端口号,假设磁盘与 RAID控制器连
接的端口号为 a, 那么磁盘的位置号就为&。
安装系统时, 中央处理器接收到用户的配置请求后, 可以将一个 RAID控 制器下的磁盘配置成 RAID组。 假设 RAID控制器有 8个端口, 依次为 a~h, 每 个端口下连接着一个磁盘, 那么每个磁盘的位置号分別为 a~h。 中央处理器可 以根据用户的配置请求中携带的 RAID组配置指令, 将磁盘分组。 该配置指令 可以为将哪些磁盘配置到同一个 RAID组。 如: 将&、 c、 e配置到一个 RAID组、 b, d、 f 配置到一个 RAID组、 将8、 h 配置到一个 RAID组。
中央处理器可以从 RAID控制器直接接收 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位 置号。 还可以是, 中央处理器接收所述 RAID控制器上报的所述 RAID控制器与 交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘 的位置号, 根据所述每个 RAID组中所有磁盘的位置号, 查找到配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号,按照预置顺序对所述 配置所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后的预置位置上的磁盘的位置号作为所述每个 RAID组中符合上报条 件的磁盘的位置号。
其中, 所述符合上报条件的磁盘的位置号可以是: 中央处理器或者 RAID 控制器确定在安装系统时配置每个 RAID组时所述每个 RAID组中包含的所有 磁盘的位置号后,按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID 组包含的所有磁盘的位置号进行排序,选择排序后的预置位置上的磁盘的位置 号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
所述预置顺序可以是: 由小到大或者由大到小的顺序,也可以是其他预置 顺序。所述预置位置指的是排序后的顺序位置,如:第一个位置、第二个位置… 最后一个位置。
所述预置顺序和预置位置都是在安装系统时设定的,每次确定盘符时该预 置顺序和预置位置都是不变的。 因此, 针对同一个 RAID组, 每次确定盘符时, 首先确定在安装系统时该 RAID组中包含的所有磁盘的位置号, 然后使用相同 的预置顺序和预置位置选择符合上报条件的磁盘的位置号, 从而保证同一个
RAID组每次确定的盘符都相同。
102、中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每 个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘 付。
所述每个 RAID组对应的盘符包含两个变量参数,所述根据所述 RAID控制 器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置 号, 确定所述每个 RAID组对应的盘符, 具体包括: 将所述 RAID控制器与交换 芯片连接的端口号作为所述每个 RAID组对应的盘符中的一个变量参数, 将所 述每个 RAID组中符合上报条件的磁盘的位置号作为所述每个 RAID组对应的 盘符中的另一个变量参数。
盘符可以由两个参数或多个参数组成,但无论盘符由几个参数组成, 变量 参数有两个, 一个是 RAID控制器与交换芯片连接的端口号, 另外一个是所述 RAID组中符合上报条件的磁盘的位置号。 在用该两个变量参数确定磁盘的位 置号时, 这两个变量参数之间的前后位置可以不做限定。 例如: RAID控制器 与交换芯片连接的端口号是 1 ,所述 RAID组中符合上报条件的磁盘的位置号是 a, 那么该 RAID组对应的盘符可以为 la、 sdla、 al、 sdal、 slda、 sadl等形式; 其中 sd是固定的参数, 每个盘符中都包括, 没有具体意义。
本发明实施例中, 获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位 置号, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号;根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组 中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。 与现有 技术中系统重新启动或者磁盘插拔后, 每个 RAID组的盘符可能不相同相比, 本发明实施例提供的方案, 可以证每次系统重新启动或磁盘插拔后,盘符的名 称不变, 以便用户能准确查找到存储的数据。
图 1对应的实施例中, 当中央处理器接收到所述 RAID控制器与交换芯片连 接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号时,
中央处理器需要自己获取所述每个 RAID组中符合上报条件的磁盘的位置号, 具体获取所述每个 RAID组中符合上报条件的磁盘的位置号的过程举例说明如 下:
中央处理器接收到的所述 RAID控制器与交换芯片连接的端口号是 1 ,接收 到的所述 RAID控制器控制下的 3个 RAID组中所有磁盘的位置号分別为: a、 c、 e; b、 d、 f; 和8、 h; 中央处理器在配置每个 RAID组时, 存储有每个 RAID 组中包含的磁盘的位置号的配置信息, 配置信息可以用下表 1来表示:
表 1: RAID组与磁盘位置号的对照表
因 RAID组没有标识, 中央处理器不能通过 RAID组标识区分出每个 RAID 组。 中央处理器只能使用接收到的每个 RAID组中的磁盘的位置号与中央处理 器配置每个 RAID组时存储的磁盘的位置号进行匹配, 从而确定属于配置信息 中的哪个 RAID组。
以接收到的包含的所有磁盘的位置号分別是&、 c、 e的一个 RAID组的匹配 过程为例, 详细说明本发明实施例的匹配过程: 使用该 RAID组中所有磁盘的 位置号 a、 c、 e与表 1中的配置信息进行匹配, 在表 1中匹配到包含磁盘的位置 号&、 c、 e的 RAID组, 通过匹配发现, 接收到的该 RAID组中的所有磁盘的位 置号与配置该 RAID组时存储的所有磁盘的位置号完全相同,说明该 RAID组中 没有磁盘被拔出或者损坏, 可以按照安装系统时设定的预置顺序和预置位置, 从磁盘的位置号&、 c、 e中选择出该 RAID组中符合上报条件的磁盘的位置号。
H殳该预置顺序为由小到大,该预置位置为第一个位置,那么选择的过程如下: 按照由小到大的顺序给磁盘的位置号排序,选择排序后的第一个位置的磁盘的 位置号 a作为符合上报条件的磁盘的位置号。
如果中央处理器接收到的该 RAID组中包含的所有磁盘的位置号分別为 c、 e, 使用该 RAID组中所有磁盘的位置号 e与表 1中的配置信息进行匹配, 在
表 1中匹配到包含磁盘的位置号 a、 c、 e的 RAID组, 通过匹配发现, 接收到的 该 RAID组中的所有磁盘的位置号与配置该 RAID组时存储的所有磁盘的位置 号不完全相同, 说明该 RAID组中有磁盘被拔出或者损坏, 可以按照按照安装 系统时设定的预置顺序和预置位置, 从配置信息中的磁盘的位置号&、 c、 e中 选择出该 RAID组中符合上报条件的磁盘的位置号。 假设该预置顺序为由小到 大, 该预置位置为第一个位置, 那么选择的过程如下: 按照由小到大的顺序给 磁盘的位置号排序, 选择排序后的第一个位置的磁盘的位置号 a作为符合上报 条件的磁盘的位置号。
通过以上的匹配过程和举例说明可知,因预置顺序和预置位置是安装系统 时设定的, 每个确定盘符时都不变, 因此, 无论 RAID组中有无磁盘被拔出或 者损坏, 中央处理器都能选择出相同的磁盘的位置号,从而保证可确定的盘符 不变。
请参阅图 2, 本发明实施例提供的确定盘符的方法的另一实施例包括:
201、 RAID控制器获取所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号。
RAID控制器与交换芯片连接的端口号在安装系统时就已经设置在 RAID 控制器中的, RAID控制器只需要读取自身与交换芯片连接的端口号即可。
每个 RAID组中符合上报条件的磁盘的位置号可以由 RAID控制器获取后 发送给中央处理器,也可以是 RAID控制器将获取的每个 RAID组中所有磁盘的 位置号发送给中央处理器, 中央处理器再根据所述每个 RAID组中所有磁盘的 位置号获取所述每个 RAID组中符合上报条件的磁盘的位置号。
当 RAID控制器可以获取每个 RAID组中符合上报条件的磁盘的位置号时, 执行步骤 203, 否则执行步骤 202。
202、 所述 RAID控制器向中央处理器发送所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中所有磁盘的位置号, 以使所述中央处理器根 据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条 件的磁盘的位置号。
当 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接
的端口号和所述每个 RAID组中所有磁盘的位置号时, 使得所述中央处理器根 据所述每个 RAID组中所有磁盘的位置号确定每个 RAID组中在安装系统时包 含的所有磁盘的位置号后, 对每个 RAID组中的磁盘的位置号按照预置顺序进 行排序,排序后选择预置位置的磁盘的位置号作为符合上报条件的磁盘的位置 号, 从而使中央处理器可以根据所述 RAID控制器与交换芯片连接的端口号和 所述每个 RAID组中符合上报条件的磁盘的位置号,确定所述每个 RAID组对应 的盘符, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每 个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁 盘的位置号。
203、 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每 个 RAID组中符合上报条件的磁盘的位置号后, 向所述中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中的符合上报条件 的磁盘的位置号。
当 RAID控制器中存储有表 1中的配置信息时, RAID控制器可以根据将所 述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所述每个 RAID 组中包含的所有磁盘的位置号, 并按照预置顺序对所述配置所述每个 RAID组 时所述每个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后预置位置 上的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号, 从 而使中央处理器可以根据所述 RAID控制器与交换芯片连接的端口号和所述每 个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘 符, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号。
本发明实施例中,独立冗余磁盘阵列 RAID控制器获取所述 RAID控制器与 交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘 的位置号;所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所 述每个 RAID组中符合上报条件的磁盘的位置号;所述 RAID控制器向中央处理 器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有
磁盘的位置号, 以使所述中央处理器根据所述每个 RAID组中所有磁盘的位置 号确定所述每个 RAID组中符合上报条件的磁盘的位置号; 或者, 向所述中央 处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中 的符合上报条件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器 与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置 号, 确定所述每个 RAID组对应的盘符, 所述符合上报条件的磁盘的位置号为 置顺序排序后的预置位置上的磁盘的位置号。与现有技术中系统重新启动或者 磁盘插拔后, 每个 RAID组的盘符可能不相同相比, 本发明实施例提供的方案, 可以证每次系统重新启动或磁盘插拔后,盘符的名称不变, 以便用户能准确查 找到存储的数据。
在上述图 2对应的实施例的基础上, 其中的第一个可选实施例可以为: 所 述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID 组中符合上报条件的磁盘的位置号, 具体包括: 根据所述每个 RAID组中所有 磁盘的位置号查找到配置所述 RAID组时所述每个 RAID组中包含的所有磁盘 的位置号;按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID组包含 的所有磁盘的位置号进行排序,选择排序后预置位置上的磁盘的位置号作为所 述每个 RAID组中符合上报条件的磁盘的位置号。
安装系统时, 中央处理器接收到用户的配置请求,按照配置请求中携带的 配置指令将磁盘分成 RAID组后, RAID控制器中也可以存储配置每个 RAID组 中包含的磁盘信息, 这时每个 RAID组中磁盘的信息是的状态信息, 每个磁盘 都是正常的。 这个过程可以参阅表 1的举例过程进行理解, 不管有没有磁盘被 拔出或者损坏,都会选择出相同的磁盘的位置号作为符合上报条件的磁盘的位 置号,将该符合上报条件的磁盘的位置号发送给中央处理器,从而确保中央处 理器分配的每个 RAID组对应的盘符不变。
在上述图 2对应的实施例的基础上, 其中的第二个可选实施例可以为: 在 有些系统中, RAID控制器中存储的配置信息随着磁盘的变化而发生变化的, 当磁盘被拔出或者损坏, RAID控制器中就不再存储有该被拔出或者损坏的磁
盘的位置号,但 RAID控制器中会一直存储有安装系统时每个 RAID组中磁盘的 数量信息。 在这种情况下, RAID控制器查询所述每个 RAID组中所有磁盘的位 置号之后,所述 RAID控制器进一步根据所述每个 RAID组中所有磁盘的位置号 查询配置所述每个 RAID组时包含的磁盘数量; 并且, 当所述每个 RAID组中的 包含的磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同时, 所述 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接的端口 号和所述每个 RAID组中所有磁盘的位置号, 以使中央处理器可以根据每个 RAID组中所有磁盘的位置号确定每个 RAID组中在安装系统时包含的所有磁 盘的位置号后, 对每个 RAID组中的磁盘的位置号按照预置顺序进行排序, 排 序后选择预置位置的磁盘的位置号作为符合上报条件的磁盘的位置号。
为例便于理解, 下面举例说明在图 2基石出上的第二个可选实施例, RAID控 制器没有存储配置 RAID组时的配置信息, 但在每次系统启动时都会存储有配 置每个 RAID组时该 RAID组包含有几个磁盘的数量信息,无论有没有磁盘被拔 出或者损坏, 该数量都不发生变化, 但当有磁盘被拔出或者损坏时, 该被拔出 或者损坏的磁盘的位置号就不再存储了。 例如, 配置 RAID组时包含&、 c、 e这 3个磁盘, 那么 RAID控制器中就会一直存储有 3个磁盘的数量信息, 当位置号 为 a的磁盘被拔出后, RAID控制器中只会存储有 c、 e这两个磁盘的位置号, 但 会存储有配置该 RAID组时有 3个磁盘的信息,这个过程可以参阅表 2进行理解: 系统启动时存储信息表
当 RAID控制器询到的一个 RAID组中包含的所有磁盘的位置号分別为 c、 e, 根据该 RAID组中所有磁盘的位置号(、 e从表 2中可以获知在配置该 RAID组 时包含 3个磁盘, 说明有一个磁盘被拔出或者损坏。 这样, RAID控制器无法准 确找到符合上报条件的磁盘的位置号, 则将所述每个 RAID组中所有磁盘的位 置号发送给中央处理器, 中央处理器按照图 1对应的可选方案按照预置顺序对
配置该 RAID组时该 RAID组包含的所有磁盘进行排序后,选择预置位置上的磁 盘的位置号作为符合上报条件的磁盘的位置号, 从而确定每个 RAID组对应的 盘符, 从而保证了每个 RAID组对应的盘符不变。
当所述每个 RAID组中的所有磁盘的数量与配置所述每个 RAID组时包含 的磁盘数量相同时, 可以由 RAID控制器确定所述符合上报条件的磁盘的位置 号,也可以按照与数量不相同时的处理方案, 由中央处理器选择所述符合上报 条件的磁盘的位置号。
为了便于理解, 下面以一个具体的应用场景为例,详细说明本发明实施例 的具体过程:
参阅图 3, 本发明实施例提供的一应用场景实施例包括:
S1、中央处理器向独立冗余磁盘阵列 RAID控制器发送盘符参数上报请求。 S2、 RAID控制器接收到中央处理器发送的盘符参数上报请求后, 获取所 述 RAID控制器与交换芯片连接的端口号。
所述 RAID控制器连接在所述交换芯片的 PCIE端口上,所述 RAID控制器接 收到盘符参数上报请求后,通过查询自身与所述交换芯片连接的端口号, 即可 获取到所述 RAID控制器与交换芯片连接的端口号。
S3、 RAID控制器获取所述 RAID控制器控制下的每个 RAID组中所有磁盘 的位置号。
获取所述每个 RAID组中所有磁盘的位置号后, 可以执行步骤 S4、 S5, 也 可以执行步骤 S6、 S7, 最终得到所述 RAID控制器与交换芯片连接的端口号和 所述每个 RAID组中符合上报条件的磁盘的位置号后, 由步骤 S8确定所述每个 RAID组对应的盘符。
S4、 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接 的端口号和所述每个 RAID组中所有磁盘的位置号。
S5、 中央处理器根据所述每个 RAID组中所有磁盘的位置号, 查找到配置 所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号,按照预置顺 序对配置所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行 排序, 选择排序后的预置位置上的磁盘的位置号作为所述每个 RAID组中符合
上报条件的磁盘的位置号。
其中, 所述符合上报条件的磁盘的位置号可以是: 中央处理器或者 RAID 控制器确定在安装系统时配置每个 RAID组时所述每个 RAID组中包含的所有 磁盘的位置号后,按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID 组包含的所有磁盘的位置号进行排序,选择排序后的预置位置上的磁盘的位置 号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
所述预置顺序可以是: 由小到大或者由大到小的顺序,也可以是其他预置 顺序。所述预置位置指的是排序后的顺序位置,如:第一个位置、第二个位置… 最后一个位置。
所述预置顺序和预置位置都是在安装系统时设定的,每次确定盘符时该预 置顺序和预置位置都是不变的。 因此, 针对同一个 RAID组, 每次确定盘符时, 首先确定在安装系统时该 RAID组中包含的所有磁盘的位置号, 然后使用相同 的预置顺序和预置位置选择符合上报条件的磁盘的位置号, 从而保证同一个 RAID组每次确定的盘符都相同。
S6、 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每个
RAID组中符合上报条件的磁盘的位置号。
根据将所述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时 存储的每个磁盘的位置号;
从配置所述 RAID组时存储的每个磁盘的位置号中, 按照预置规则选择所 述符合上报条件的磁盘的位置号。
57、 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接 的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号。
58、 中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每 个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘 符。
中央处理器将所述 RAID控制器与交换芯片连接的端口号作为所述每个 RAID组对应的盘符中的一个变量参数,将所述每个 RAID组中符合上报条件的 磁盘的位置号作为所述每个 RAID组对应的盘符中的另一个变量参数。
参阅图 4, 本应用场景还提供了一实施例, 中央处理器 30控制交换芯片 50, 本实施例中的交换芯片 50为 PCIE ( PCI-Express )交换芯片, 交换芯片 50有 3个 端口, 端口号分別为端口 1、 端口 2、 端口 3; 每个端口下都连接着一个独立冗 余磁盘阵列 RAID控制器 40 , 以左侧的 RAID控制器 40为例, 该 RAID控制器 40 有 8个端口, 端口号依次为 a~h。 安装系统时, 中央处理器接收到配置请求后, 按照配置请求中携带的配置指令,将磁盘分组。该配置指令可以为将哪些磁盘 配置到同一个 RAID组。 如: 将&、 c、 e配置到一个 RAID组, 将 b、 d、 f 配置到 一个 RAID组, 将§、 h 配置到一个 RAID组。 那么 RAID控制器中会存储有配置 状态的 RAID组与磁盘 60的位置号的对应信息, 配置信息可以参阅表 1来理解: 当 RAID控制器 40接收到中央处理器 30发送来的盘符参数上报请求后,
RAID控制器 40获取到与交换芯片连接的端口号为 1 , 然后查询控制下的 RAID 组中每个磁盘的位置号。 当查询一个 RAID组时, 查询到 3个磁盘, 位置号分別 为&、 c、 e, 对比后确认与表 1中存储的 RAID组对应的位置号完全相同, 则直 接从查询到的包含 a、 c、 eRAID组中按照预置顺序对 a、 c、 e进行排序, 排序后 选择预置位置上的磁盘的位置号作为符合上报条件的磁盘的位置号,假设本实 施例中上报按照由小到大排序后第一个位置的磁盘的位置号,那么选择到的符 合上报条件的磁盘的位置号为&。 当同样是查询该 RAID组时, 只查询到 2个磁 盘, 位置号分別为 c、 e, 对比后确认与表 1中存储的包含 c、 e的 RAID组对应的 位置号不完全相同, 还包括位置号为 a的磁盘, 则从表 1中的配置信息中按照预 置顺序对&、 c、 e进行排序, 排序后选择预置位置上的磁盘的位置号作为符合 上报条件的磁盘的位置号, 当预置顺序为由小到大,预置位置为排序后的第一 个位置时, 符合条件的位置号还是为 a。 由此可见, 无论哪种选择方案, 最终 都会选择到 1和 a, 并将与交换芯片连接的端口号为 1和符合上报条件的磁盘的 位置号 a上报给中央处理器; 中央处理器根据 1和 a, 按照预定规则确定盘符, 如果预定规则指定 RAID控制器与交换芯片连接的端口号在前, 那么确定的盘 符为 la如果预定规则预置位置号最小的磁盘的位置号在前,那么确定的盘符为 al。 这里写出的只是变量, 盘符实际上可以是 sdla或者 sdal等形式; 其中 sd是 固定的, 每个盘符中都包括, 没有具体意义。
假设指定 RAID控制器与交换芯片连接的端口号在前, 那么确定的包含 a、 c、 e的 RAID组对应的盘符为 sdla, 按照同样的方法, 确定的包含 b、 d、 f RAID 组对应的盘符为 sdlb, 确定的包含 g、 h的 RAID组对应的盘符为 sdlg, 假设盘 符 sdla对应的磁盘中存储文件 A,盘符 sdlb对应的磁盘中存储文件 B,盘符 sdlg 对应的磁盘中存储文件 C, 这样在系统重新启动或者磁盘插拔后, 每个 RAID 组的盘符不会发生变化, 用户可以通过盘符准确找到要查找的数据。
参阅图 5, 本发明实施例提供的中央处理器的一实施例包括:
第一获取单元 301 ,用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 第一确定单元 302, 用于根据所述第一获取单元 301获取到的所述 RAID控 制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位 置号, 确定所述每个 RAID组对应的盘符。
本发明实施例中,第一获取单元 301获取 RAID控制器与交换芯片连接的端 口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置 号, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号; 第一确定单元 302根据所述第一获取单元 301获取到的所述 RAID控 制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位 置号, 确定所述每个 RAID组对应的盘符。 与现有技术相比, 本发明实施例提 供的中央处理器, 可以在每次系统重新启动或磁盘插拔后,确保确定的盘符的 名称不变, 以便用户能准确查找到存储的数据。
在上述图 5对应的实施例的基础上, 参阅图 6, 本发明实施例提供的中央处 理器的另一实施例中, 所述第一获取单元 301包括:
第一接收子单元 3011 ,用于接收 RAID控制器上报的 RAID控制器与交换芯 片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的 磁盘的位置号。
在上述图 5对应的实施例的基础上, 参阅图 7, 本发明实施例提供的中央处 理器的另一实施例中, 所述第一获取单元 301包括:
第二接收子单元 3012,用于接收所述 RAID控制器上报的所述 RAID控制器 与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁 盘的位置号;
第一查找子单元 3013 , 用于根据所述第二接收子单元 3012接收到的每个 RAID组中所有磁盘的位置号, 查找到配置所述每个 RAID组时所述每个 RAID 组中包含的所有磁盘的位置号;
第一排序子单元 3014,用于按照预置顺序对所述第一查找子单元 3013查找 到的配置所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行 排序;
第一选择子单元 3015,用于选择第一排序子单元 3014排序后的预置位置上 的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
在上述图 5~图7对应的实施例的基础上, 本发明实施例提供的中央处理器 的另一实施例中:
所述第一确定单元 302,具体用于将所述 RAID控制器与交换芯片连接的端 口号作为所述每个 RAID组对应的盘符中的一个变量参数,将所述每个 RAID组 中符合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中的另一个 变量参数。
参阅图 8,本发明实施例提供的独立冗余磁盘阵列控制器的一实施例包括: 第二获取单元 401 ,用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
第二确定单元 402, 用于根据所述第二获取单元 401获取的所述每个 RAID 组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置 号;
发送单元 403 , 用于向中央处理器发送所述第二获取单元 401获取的所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID 组中所有磁盘的位置号, 以使所述中央处理器根据所述每个 RAID组中所有磁
盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号, 或者, 向 所述中央处理器发送所述第二获取单元 401获取的所述 RAID控制器与交换芯 件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定所述每 个 RAID组对应的盘符, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后 的预置位置上的磁盘的位置号。
本发明实施例中,第二获取单元 401获取 RAID控制器与交换芯片连接的端 口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;第二确定 单元 402根据所述第二获取单元 401获取的所述每个 RAID组中所有磁盘的位置 号确定所述每个 RAID组中符合上报条件的磁盘的位置号;发送单元 403向中央 处理器发送所述第二获取单元 401获取的所述 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号,以使所 述中央处理器根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID 组中符合上报条件的磁盘的位置号, 或者, 向所述中央处理器发送所述第二获 取单元 401获取的所述 RAID控制器与交换芯片连接的端口号和所述第二确定 处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中 符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号。与现 有技术相比, 本发明实施例提供的 RAID控制器, 可以在每次系统重新启动或 磁盘插拔后,确保中央处理器确定的盘符的名称不变, 以便用户能准确查找到 存储的数据。
在上述图 8对应的实施例的基础上, 参阅图 9,本发明实施例提供的独立冗 余磁盘阵列控制器的另一实施例, 所述第二确定单元 402包括:
第二查找子单元 4021 , 用于根据所述每个 RAID组中所有磁盘的位置号查
找到配置所述 RAID组时所述每个 RAID组中包含的所有磁盘的位置号; 第二排序子单元 4022,用于按照预置顺序对所述第二查找子单元 4021查找 到的配置所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行 排序;
第二选择子单元 4023 ,用于选择所述第二排序子单元 4022排序后预置位置 上的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
在上述图 8对应的实施例的基础上, 参阅图 10, 本发明实施例提供的独立 冗余磁盘阵列控制器的另一实施例还包括:
查询单元 404,用于根据所述每个 RAID组中所有磁盘的位置号查询配置所 述每个 RAID组时所述每个 RAID组包含的磁盘的数量;
所述发送单元 403, 具体用于当所述查询单元 404查询到的每个 RAID组中 包含的磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同时, 向所述 中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID 组中所有磁盘的位置号。
本发明实施例提供的技术方案, 可以确保在磁盘被拔出或者磁盘损坏时, 依然能确保盘符不变。
本发明实施例还提供了一种计算机存储介质, 其中, 该计算机存储介质可 存储有程序,该程序执行时包括上述中央处理器作为执行主体时方法实施例中 记载的数据处理方法的部分或者全部步骤。
本发明实施例还提供了另外一种计算机存储介质, 其中, 该计算机存储介 质可存储有程序, 该程序执行时包括上述 RAID控制器作为执行主体时方法实 施例中记载的数据处理方法的部分或者全部步骤。
参阅图 11 , 本发明实施例提供的确定盘符的设备的一实施例包括: 第一输 入装置 100、 第一输出装置 200、 第一处理器 300和第一存储器 400;
第一输入装置 100、 第一输出装置 200、 第一处理器 300和第一存储器 400 可以通过总线或者其他方式连接;
其中, 第一输入装置 100将接收到的数据传输给第一存储器 400, 第一处理 器 300处理第一存储器 400中存储的数据,第一输出装置 200输出第一处理器 300
处理后的数据。
其中, 所述第一处理器 300执行如下步骤:
获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符 合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
本发明提供的确定盘符的设备的另一实施例中, 所述第一处理器 300接收 所述 RAID控制器上报的 RAID控制器与交换芯片连接的端口号和所述 RAID控 制器控制下的每个 RAID组中符合上报条件的磁盘的位置号。
本发明提供的确定盘符的设备的另一实施例中, 所述第一处理器 300接收 所述 RAID控制器上报的所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号; 根据所述每个 RAID 组中所有磁盘的位置号,查找到配置所述每个 RAID组时所述每个 RAID组中包 含的所有磁盘的位置号, 按照预置顺序对所述配置所述每个 RAID组时所述每 个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后的预置位置上的磁 盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
本发明提供的确定盘符的设备的另一实施例中, 所述每个 RAID组对应的 盘符包含两个变量参数,所述第一处理器 300将所述 RAID控制器与交换芯片连 接的端口号作为所述每个 RAID组对应的盘符中的一个变量参数, 将所述每个 RAID组中符合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中 的另一个变量参数。
参阅图 12, 本发明实施例提供的确定盘符的设备的一实施例包括: 第二输 入装置 500、 第二输出装置 600、 第二处理器 700和第二存储器 800;
第二输入装置 500、 第二输出装置 600、 第二处理器 700和第二存储器 800 可以通过总线或者其他方式连接;
其中, 第二输入装置 500将接收到的数据传输给第二存储器 800, 第二处理
器 700处理第二存储器 800中存储的数据 ,第二输出装置 600输出第二处理器 700 处理后的数据。
其中, 所述第二处理器 700执行如下步骤:
获取所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制 下的每个 RAID组中所有磁盘的位置号;
根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合 上报条件的磁盘的位置号;
向中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有磁盘的位置号,以使所述中央处理器根据所述每个 RAID组中所 有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;或者, 向所述中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的 磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述符合上报条件的磁盘 置号按照预置顺序排序后的预置位置上的磁盘的位置号。
本发明提供的确定盘符的设备的另一实施例中, 所述第二处理器 700根据 所述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所述每个
RAID组中包含的所有磁盘的位置号;按照预置顺序对所述配置所述每个 RAID 组时所述每个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后预置位 置上的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
本发明提供的确定盘符的设备的另一实施例中, 所述第二处理器 700根据 所述每个 RAID组中所有磁盘的位置号查询配置所述每个 RAID组时所述每个
RAID组包含的磁盘的数量; 当所述每个 RAID组中包含的磁盘的数量与配置所 述每个 RAID组时包含的磁盘数量不同时,所述第二处理器 700向所述中央处理 器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有 磁盘的位置号。
参阅图 13, 本发明实施例提供的确定盘符的系统的一实施例包括: 中央处
理器 30、 交换芯片 50、 独立冗余磁盘阵列控制器 40和磁盘 60;
中央处理器 30、 交换芯片 50、独立冗余磁盘阵列控制器 40和磁盘 60通过总 线或者其他方式相连接;
所述中央处理器 30, 用于获取独立冗余磁盘阵列 RAID控制器与交换芯片 连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁 盘的位置号, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所 述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上 的磁盘的位置号; 根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
所述独立冗余磁盘阵列控制器 40, 用于获取所述 RAID控制器与交换芯片 连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号; 所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;所述 RAID控制器向中央处理器发送 所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有磁盘的 位置号, 以使所述中央处理器根据所述每个 RAID组中所有磁盘的位置号确定 所述每个 RAID组中符合上报条件的磁盘的位置号; 或者, 向所述中央处理器 发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中的符合 上报条件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器与交换 芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定 所述每个 RAID组对应的盘符, 所述符合上报条件的磁盘的位置号为配置所述 每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排 序后的预置位置上的磁盘的位置号。
本发明实施例提供的系统, 可以在每次系统重新启动或磁盘插拔后,确保 中央处理器确定的盘符的名称不变, 以便用户能准确查找到存储的数据。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步 骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读 存储介质中, 存储介质可以包括: ROM、 RAM, 磁盘或光盘等。
以上对本发明实施例所提供的确定盘符的方法、装置以及系统进行了详细
施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域 的一般技术人员,依据本发明的思想, 在具体实施方式及应用范围上均会有改 变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。
Claims
1、 一种确定盘符的方法, 其特征在于, 包括:
获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符 合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条 件的磁盘的位置号, 具体包括:
接收 RAID控制器上报的 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号。
3、 根据权利要求 1所述的方法, 其特征在于, 所述获取 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条 件的磁盘的位置号, 具体包括:
接收所述 RAID控制器上报的所述 RAID控制器与交换芯片连接的端口号 和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
根据所述每个 RAID组中所有磁盘的位置号,查找到配置所述每个 RAID组 时所述每个 RAID组中包含的所有磁盘的位置号, 按照预置顺序对所述配置所 述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序,选择排 序后的预置位置上的磁盘的位置号作为所述每个 RAID组中符合上报条件的磁 盘的位置号。
4、 根据权利要求 1~3任意一项所述的方法, 其特征在于, 所述每个 RAID 组对应的盘符包含两个变量参数, 所述根据所述 RAID控制器与交换芯片连接 的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符, 具体包括:
将所述 RAID控制器与交换芯片连接的端口号作为所述每个 RAID组对应
的盘符中的一个变量参数, 将所述每个 RAID组中符合上报条件的磁盘的位置 号作为所述每个 RAID组对应的盘符中的另一个变量参数。
5、 一种确定盘符的方法, 其特征在于, 包括:
独立冗余磁盘阵列 RAID控制器获取所述 RAID控制器与交换芯片连接的 端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号确定所述每 个 RAID组中符合上报条件的磁盘的位置号;
所述 RAID控制器向中央处理器发送所述 RAID控制器与交换芯片连接的 端口号和所述每个 RAID组中所有磁盘的位置号, 以使所述中央处理器根据所 述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的 磁盘的位置号; 或者, 向所述中央处理器发送所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号, 以使所述 中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID 组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述 符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中 包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号。
6、 根据权利要求 5所述的方法, 其特征在于, 所述 RAID控制器根据所述 每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁 盘的位置号, 具体包括:
根据所述每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所 述每个 RAID组中包含的所有磁盘的位置号;
按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID组包含的所 有磁盘的位置号进行排序,选择排序后预置位置上的磁盘的位置号作为所述每 个 RAID组中符合上报条件的磁盘的位置号。
7、 根据权利要求 5所述的方法, 其特征在于,
所述 RAID控制器获取控制下的每个 RAID组中所有磁盘的位置号之后,还 包括:
所述 RAID控制器根据所述每个 RAID组中所有磁盘的位置号查询配置所
述每个 RAID组时所述每个 RAID组包含的磁盘的数量;
所述 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连 接的端口号和所述每个 RAID组中所有磁盘的位置号, 具体包括: 当所述每个 RAID组中包含的磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同 时,所述 RAID控制器向所述中央处理器发送所述 RAID控制器与交换芯片连接 的端口号和所述每个 RAID组中所有磁盘的位置号。
8、 一种中央处理器, 其特征在于, 包括:
第一获取单元, 用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 第一确定单元, 用于根据所述第一获取单元获取到的所述 RAID控制器与 交换芯片连接的端口号和所述每个 RAID组中符合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
9、根据权利要求 8所述的中央处理器, 其特征在于, 所述第一获取单元包 括:
第一接收子单元,用于接收 RAID控制器上报的 RAID控制器与交换芯片连 接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘 的位置号。
10、 根据权利要求 8所述的中央处理器, 其特征在于, 所述第一获取单元 包括:
第二接收子单元,用于接收所述 RAID控制器上报的所述 RAID控制器与交 换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的 位置号;
第一查找子单元, 用于根据所述第二接收子单元接收到的每个 RAID组中 所有磁盘的位置号,查找到配置所述每个 RAID组时所述每个 RAID组中包含的 所有磁盘的位置号;
第一排序子单元,用于按照预置顺序对所述第一查找子单元查找到的配置
所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序; 第一选择子单元,用于选择第一排序子单元排序后的预置位置上的磁盘的 位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
11、根据权利要求 8~10任意一项所述的中央处理器, 其特征在于, 所述每 个 RAID组对应的盘符包含两个变量参数,
所述第一确定单元, 具体用于将所述 RAID控制器与交换芯片连接的端口 号作为所述每个 RAID组对应的盘符中的一个变量参数,将所述每个 RAID组中 符合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中的另一个变 量参数。
12、 一种独立冗余磁盘阵列控制器, 其特征在于, 包括:
第二获取单元, 用于获取 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所有磁盘的位置号;
第二确定单元, 用于根据所述第二获取单元获取的所述每个 RAID组中所 有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;
发送单元, 用于向中央处理器发送所述第二获取单元获取的所述 RAID控 制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中所 置号确定所述每个 RAID组中符合上报条件的磁盘的位置号, 或者, 向所述中 央处理器发送所述第二获取单元获取的所述 RAID控制器与交换芯片连接的端 口号和所述第二确定单元确定的每个 RAID组中的符合上报条件的磁盘的位置 号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所 述每个 RAID组中符合上报条件的磁盘的位置号,确定所述每个 RAID组对应的 盘符, 所述符合上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘 的位置号。
13、根据权利要求 12所述的控制器,其特征在于,所述第二确定单元包括: 第二查找子单元, 用于根据所述每个 RAID组中所有磁盘的位置号查找到 配置所述 RAID组时所述每个 RAID组中包含的所有磁盘的位置号;
第二排序子单元,用于按照预置顺序对所述第二查找子单元查找到的配置 所述每个 RAID组时所述每个 RAID组包含的所有磁盘的位置号进行排序; 第二选择子单元,用于选择所述第二排序子单元排序后预置位置上的磁盘 的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
14、 根据权利要求 10所述的控制器, 其特征在于, 还包括:
查询单元, 用于根据所述每个 RAID组中所有磁盘的位置号查询配置所述 每个 RAID组时所述每个 RAID组包含的磁盘的数量;
所述发送单元, 具体用于当所述查询单元查询到的每个 RAID组中包含的 磁盘的数量与配置所述每个 RAID组时包含的磁盘数量不同时, 向所述中央处 理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所 有磁盘的位置号。
15、 一种计算机存储介质, 其特征在于,
所述计算机存储介质可存储有程序, 该程序执行时包括如权利要求 1~4任 意一项所述的步骤。
16、 一种计算机存储介质, 其特征在于,
所述计算机存储介质可存储有程序, 该程序执行时包括如权利要求 5~7任 意一项所述的步骤。
17、 一种确定盘符的设备, 其特征在于, 包括: 第一输入装置、 第一输出 装置、 第一存储器和第一处理器;
其中, 所述第一处理器执行如下步骤:
获取独立冗余磁盘阵列 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制下的每个 RAID组中符合上报条件的磁盘的位置号,所述符合 上报条件的磁盘的位置号为配置所述每个 RAID组时所述每个 RAID组中包含 的所有磁盘的位置号按照预置顺序排序后的预置位置上的磁盘的位置号; 根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符 合上报条件的磁盘的位置号, 确定所述每个 RAID组对应的盘符。
18、 根据权利要求 17所述的设备, 其特征在于, 所述第一处理器接收所述 RAID控制器上报的 RAID控制器与交换芯片连接的端口号和所述 RAID控制器
控制下的每个 RAID组中符合上报条件的磁盘的位置号。
19、 根据权利要求 17所述的设备, 其特征在于, 所述第一处理器接收所述 RAID控制器上报的所述 RAID控制器与交换芯片连接的端口号和所述 RAID控 制器控制下的每个 RAID组中所有磁盘的位置号;根据所述每个 RAID组中所有 磁盘的位置号,查找到配置所述每个 RAID组时所述每个 RAID组中包含的所有 磁盘的位置号,按照预置顺序对所述配置所述每个 RAID组时所述每个 RAID组 包含的所有磁盘的位置号进行排序,选择排序后的预置位置上的磁盘的位置号 作为所述每个 RAID组中符合上报条件的磁盘的位置号。
20、 根据权利要求 17所述的设备, 其特征在于, 所述每个 RAID组对应的 盘符包含两个变量参数, 所述第一处理器将所述 RAID控制器与交换芯片连接 的端口号作为所述每个 RAID组对应的盘符中的一个变量参数, 将所述每个 RAID组中符合上报条件的磁盘的位置号作为所述每个 RAID组对应的盘符中 的另一个变量参数。
21、 一种确定盘符的设备, 其特征在于, 包括: 第二输入装置、 第二输出 装置、 第二存储器和第二处理器;
其中, 所述第二处理器执行如下步骤:
获取所述 RAID控制器与交换芯片连接的端口号和所述 RAID控制器控制 下的每个 RAID组中所有磁盘的位置号;
根据所述每个 RAID组中所有磁盘的位置号确定所述每个 RAID组中符合 上报条件的磁盘的位置号;
向中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有磁盘的位置号,以使所述中央处理器根据所述每个 RAID组中所 有磁盘的位置号确定所述每个 RAID组中符合上报条件的磁盘的位置号;或者, 向所述中央处理器发送所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中的符合上报条件的磁盘的位置号, 以使所述中央处理器根据所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中符合上报条件的 磁盘的位置号, 确定所述每个 RAID组对应的盘符, 所述符合上报条件的磁盘
置号按照预置顺序排序后的预置位置上的磁盘的位置号。
22、 根据权利要求 21所述的设备, 其特征在于, 所述第二处理器根据所述 每个 RAID组中所有磁盘的位置号查找到配置所述 RAID组时所述每个 RAID组 中包含的所有磁盘的位置号; 按照预置顺序对所述配置所述每个 RAID组时所 述每个 RAID组包含的所有磁盘的位置号进行排序, 选择排序后预置位置上的 磁盘的位置号作为所述每个 RAID组中符合上报条件的磁盘的位置号。
23、 根据权利要求 21所述的设备, 其特征在于, 所述第二处理器根据所述 每个 RAID组中所有磁盘的位置号查询配置所述每个 RAID组时所述每个 RAID 组包含的磁盘的数量; 当所述每个 RAID组中包含的磁盘的数量与配置所述每 个 RAID组时包含的磁盘数量不同时, 所述第二处理器向所述中央处理器发送 所述 RAID控制器与交换芯片连接的端口号和所述每个 RAID组中所有磁盘的 位置号。
24、 一种确定盘符的系统, 其特征在于, 包括: 中央处理器和独立冗余磁 盘阵列控制器;
所述中央处理器为上述权利要求 8~11任意一项所述的中央处理器,所述独 立冗余磁盘阵列控制器为上述权利要求 12~14任意一项所述的独立冗余磁盘阵 列控制器。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201280002610.4A CN103189834B (zh) | 2012-07-16 | 2012-07-16 | 一种确定盘符的方法、装置及系统 |
PCT/CN2012/078688 WO2014012203A1 (zh) | 2012-07-16 | 2012-07-16 | 一种确定盘符的方法、装置及系统 |
US14/061,501 US9442676B2 (en) | 2012-07-16 | 2013-10-23 | Method, device, and system for determining drive letter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/078688 WO2014012203A1 (zh) | 2012-07-16 | 2012-07-16 | 一种确定盘符的方法、装置及系统 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/061,501 Continuation US9442676B2 (en) | 2012-07-16 | 2013-10-23 | Method, device, and system for determining drive letter |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014012203A1 true WO2014012203A1 (zh) | 2014-01-23 |
Family
ID=48679808
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/078688 WO2014012203A1 (zh) | 2012-07-16 | 2012-07-16 | 一种确定盘符的方法、装置及系统 |
Country Status (3)
Country | Link |
---|---|
US (1) | US9442676B2 (zh) |
CN (1) | CN103189834B (zh) |
WO (1) | WO2014012203A1 (zh) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103823730A (zh) * | 2014-02-27 | 2014-05-28 | 山东超越数控电子有限公司 | 一种基于国产磁盘阵列的盘符检测方法 |
CN104536857A (zh) * | 2014-12-19 | 2015-04-22 | 上海理工大学 | 硬盘参数获取方法 |
CN104699423B (zh) * | 2015-03-13 | 2018-08-21 | 华为技术有限公司 | Linux系统中绑定盘符的方法和装置 |
CN106648440B (zh) * | 2015-10-28 | 2020-07-24 | 华为技术有限公司 | 操作存储设备的控制方法和存储设备 |
CN108008914B (zh) * | 2016-10-27 | 2019-09-13 | 华为技术有限公司 | 一种arm设备中磁盘管理的方法、装置和arm设备 |
CN107402721A (zh) * | 2017-06-30 | 2017-11-28 | 郑州云海信息技术有限公司 | 一种硬盘的控制方法、装置及服务器 |
CN109240828B (zh) * | 2018-08-27 | 2021-10-22 | 郑州云海信息技术有限公司 | 实现Windows盘符支持大规模磁盘的方法及系统 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281452A (zh) * | 2007-04-05 | 2008-10-08 | 英业达股份有限公司 | 硬盘自动重建方法 |
CN101776984A (zh) * | 2010-02-20 | 2010-07-14 | 浪潮(北京)电子信息产业有限公司 | 在存储系统中处理磁盘漫游的方法和装置 |
CN102326141A (zh) * | 2011-08-08 | 2012-01-18 | 华为技术有限公司 | Raid配置信息的处理方法及装置、raid控制器 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100321977B1 (ko) * | 1998-11-28 | 2002-06-20 | 윤종용 | 레이드시스템구성시유연성을부여하는디바이스로밍방법 |
JP2005165852A (ja) * | 2003-12-04 | 2005-06-23 | Hitachi Ltd | ストレージシステム、ストレージ制御装置、ストレージシステムの制御方法 |
US20070094472A1 (en) * | 2005-10-20 | 2007-04-26 | Dell Products L.P. | Method for persistent mapping of disk drive identifiers to server connection slots |
JP5056567B2 (ja) * | 2008-04-28 | 2012-10-24 | ブラザー工業株式会社 | 情報処理装置 |
CN102479163A (zh) * | 2010-11-25 | 2012-05-30 | 鸿富锦精密工业(深圳)有限公司 | 多硬盘自动识别系统及方法 |
US20120317357A1 (en) * | 2011-06-13 | 2012-12-13 | Infinidat Ltd. | System And Method For Identifying Location Of A Disk Drive In A SAS Storage System |
-
2012
- 2012-07-16 CN CN201280002610.4A patent/CN103189834B/zh active Active
- 2012-07-16 WO PCT/CN2012/078688 patent/WO2014012203A1/zh active Application Filing
-
2013
- 2013-10-23 US US14/061,501 patent/US9442676B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281452A (zh) * | 2007-04-05 | 2008-10-08 | 英业达股份有限公司 | 硬盘自动重建方法 |
CN101776984A (zh) * | 2010-02-20 | 2010-07-14 | 浪潮(北京)电子信息产业有限公司 | 在存储系统中处理磁盘漫游的方法和装置 |
CN102326141A (zh) * | 2011-08-08 | 2012-01-18 | 华为技术有限公司 | Raid配置信息的处理方法及装置、raid控制器 |
Also Published As
Publication number | Publication date |
---|---|
CN103189834A (zh) | 2013-07-03 |
CN103189834B (zh) | 2015-07-08 |
US9442676B2 (en) | 2016-09-13 |
US20140047180A1 (en) | 2014-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014012203A1 (zh) | 一种确定盘符的方法、装置及系统 | |
US8751741B2 (en) | Methods and structure for implementing logical device consistency in a clustered storage system | |
US7549076B2 (en) | Fail over method through disk take over and computer system having fail over function | |
US8041986B2 (en) | Take over method for computer system | |
US9367510B2 (en) | Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane | |
US8819307B1 (en) | Identification and use of preferred path groups in host computer based on differential performance | |
US8533300B2 (en) | Storage device, controller, and address management method | |
US20170031694A1 (en) | System and method for remote system configuration managment | |
CN200983158Y (zh) | 一种计算机刀片服务器用刀片管理卡 | |
US9921924B2 (en) | Information processing device, port control method, and computer-readable recording medium | |
JP2010152704A (ja) | 計算機システムの運用管理システム及び管理方法 | |
US10063425B1 (en) | Event-based in-band host registration | |
US9378103B2 (en) | Coordination techniques for redundant array of independent disks storage controllers | |
US20160224479A1 (en) | Computer system, and computer system control method | |
US9507744B2 (en) | Handling two SGPIO channels using single SGPIO decoder on a backplane controller | |
US10229085B2 (en) | Fibre channel hardware card port assignment and management method for port names | |
US8990443B2 (en) | Computer system and management server | |
US9304779B2 (en) | Optimizing boot time of a storage system | |
US20120191884A1 (en) | Providing virtual functions after an input/output adapter is moved from a first location to a second location | |
US20030233498A1 (en) | Storage control device | |
US9311195B2 (en) | SCSI reservation status information on a SAN disk | |
US20150269098A1 (en) | Information processing apparatus, information processing method, storage, storage control method, and storage medium | |
WO2018216068A1 (ja) | ストレージシステム及びマッピング方法 | |
JP6516875B2 (ja) | 統合プラットフォーム、サーバ、及び、フェイルオーバ方法 | |
US9569112B1 (en) | Drive compatibility information maintenance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12881350 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12881350 Country of ref document: EP Kind code of ref document: A1 |