CN106547473B - A kind of writing method and device of disk array - Google Patents

A kind of writing method and device of disk array Download PDF

Info

Publication number
CN106547473B
CN106547473B CN201510602903.1A CN201510602903A CN106547473B CN 106547473 B CN106547473 B CN 106547473B CN 201510602903 A CN201510602903 A CN 201510602903A CN 106547473 B CN106547473 B CN 106547473B
Authority
CN
China
Prior art keywords
physical disks
data
written
pressure
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510602903.1A
Other languages
Chinese (zh)
Other versions
CN106547473A (en
Inventor
谭春华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Huawei Technology Co Ltd
Original Assignee
Huawei Symantec Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN201510602903.1A priority Critical patent/CN106547473B/en
Publication of CN106547473A publication Critical patent/CN106547473A/en
Application granted granted Critical
Publication of CN106547473B publication Critical patent/CN106547473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a kind of writing method of disk array and devices, belong to technical field of memory.The described method includes: receiving write request, request includes that the data of disk array need to be written;Disk array includes multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block;According to write request, band to be written is determined;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than the physical disks sum that disk array includes, and the stripe cell that different bands include is different, and different stripe cells are located at different physical disks in a band;Whether detect in band to be written physical disks belonging to each stripe cell of data to be written in the pressure of current time is more than preset pressure;The physical disks belonging to each stripe cell of data to be written take write-in data in item to be written when the pressure of current time is less than preset pressure.

Description

A kind of writing method and device of disk array
Technical field
The present invention relates to technical field of memory, in particular to the writing method and device of a kind of disk array.
Background technique
Virtualize disk array (Redundant Arrays of Independent Disks, abbreviation RAID) (disk battle array The full name of column is the array with redundant ability that independent disk is constituted), i.e., present 2.0 technology of RAID can support void The reconstruct of quasi-ization disk.It specifically, can be by event when one of physical disks break down in multiple physical disks that RAID includes Hinder on the data reconstruction to other physical disks on disk.For example, RAID includes 1,2,3,4,5,6 and No. 7 physical disks, it is assumed that No. 3 objects Disk failure is managed, RAID first passes through verification calculating and recovers the data stored in No. 3 physical disks, data are then shared storage and arrive it On remaining physical disks (such as 1,2,4,5,6 and No. 7 physical disks).
In view of when disk failure, which triggers, to be reconstructed, RAID will also synchronize the read-write business from host of realization.If by event The data of barrier disk share storage to other physical disks, then the read and write rate in other physical disks will reduce, this will affect other The read-write business of physical disks realization host.In order to mitigate influence of the reconstruct to the read-write business of host, the prior art proposes one Kind reconstructing method, this method includes that the physical disks that residual capacity is most in physical disks is selected to be reconstructed as destination disk.Than Such as, can be in 3 dialer failure, it will be in the 3 dialer data that recovered storage to No. 4 most physical disks of residual capacity.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
For RAID when realizing the read-write business of host, the physical disks of selection have randomness, any one or more are normal The all selectable possibility of the physical disks of work, then, the physical disks and reconstruct selected when realizing the read-write business of host are selected When the physical disks selected are the same physical disks, for example No. 4 physical disks are all selected, this will lead to No. 4 physical disks penalties, shadow Ring the speed of reconstruct and the access speed of host.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of writing method of disk array and dresses It sets.The technical solution is as follows:
In a first aspect, providing a kind of writing method of disk array, which comprises
Write request is received, the request includes that the data of disk array need to be written;The disk array includes multiple physics Disk, each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block, all The stripe cell is divided into multiple bands, and each band includes the stripe cell of identical quantity, each band The stripe cell quantity for including is less than the physical disks sum that the disk array includes, the stripe cell that the different bands include Difference, different stripe cells are located at different physical disks in a band;
According to the write request, band to be written is determined;
Physical disks belonging to each stripe cell of data to be written are detected in the band to be written in current time Whether pressure is more than preset pressure;
The physical disks belonging to each stripe cell of the data to be written are less than institute in the pressure of current time When stating preset pressure, write-in data are taken in the item to be written, and increase each stripe cell institute of the data to be written The pressure of the physical disks of category;
After the item to be written takes and writes data, object belonging to each stripe cell of the data to be written is reduced Manage the pressure of disk.
As the first embodiment of first aspect, the method also includes:
At least one physical disks is in current time in the physical disks belonging to each stripe cell of the data to be written Pressure be more than the preset pressure when, redefine band to be written, the band to be written redefined with originally determine Band to be written is different.
As the second embodiment of first aspect, the pressure includes that read-write operation counts and data volume number of concurrent;
Physical disks belonging to each stripe cell of data to be written are detected in the band to be written in current time Whether pressure is more than preset pressure, comprising:
The read-write operation that physical disks belonging to each stripe cell of the data to be written are detected in current time counts It whether is more than that physical disks belonging to each stripe cell of default read-write operation counting and the detection data to be written are being worked as Whether the concurrent counting number of the data volume of preceding time is more than that preset data amount concurrently counts;
Increase the pressure of physical disks belonging to each stripe cell of the data to be written, comprising:
The read-write operation for increasing physical disks belonging to each stripe cell of the data to be written is counted with data volume simultaneously Send out number;Wherein, the incrementss that the read-write operation of each physical disks counts are 1, the increase of the data volume number of concurrent of each physical disks Amount is the logic number of blocks that data are actually written into corresponding stripe cell.
As the third embodiment of first aspect, the method also includes:
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and are increased in the logical block that need to be read belonging to each logical block Physical disks pressure;
After running through data from the logical block that need to be read, each logical block institute in the logical block that need to be read is reduced The pressure of the physical disks of category.
Second aspect provides a kind of writing method of disk array, which comprises
Write request is received, the write request includes that the data of disk array need to be written;The disk array includes multiple objects Disk is managed, each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block;
Determine the smallest physical disks of pressure in the multiple physical disks of current time;
The data that disk array need to be written are written in the smallest physical disks of the pressure, and increase the pressure most The pressure of small physical disks;
After writing data, the pressure of the smallest physical disks of the pressure is reduced.
As the first embodiment of second aspect, the pressure includes that read-write operation counts and data volume number of concurrent;
Increase the pressure of the smallest physical disks of the pressure, comprising:
The read-write operation for increasing the smallest physical disks of the pressure counts and the concurrent counting number of data volume, wherein the reading The incrementss that write operation counts are 1, and the incrementss of the data volume number of concurrent are the logic number of blocks for being actually written into data.
As the second embodiment of second aspect, the method also includes:
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and are increased in the logical block that need to be read belonging to each logical block Physical disks pressure;
After running through data from the logical block that need to be read, each logical block institute in the logical block that need to be read is reduced The pressure of the physical disks of category.
The third aspect, provides a kind of apparatus for controlling of disk array, and described device includes:
First receiving module, for receiving write request, the request includes that the data of disk array need to be written;The disk Array includes multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least One logical block, all stripe cells are divided into multiple bands, and each band includes the band of identical quantity Unit, the stripe cell quantity that each band includes are total less than the physical disks that the disk array includes, described in difference The stripe cell that band includes is different, and different stripe cells are located at different physical disks in a band;
First determining module, for determining band to be written according to the write request;
Detection module, for detecting physical disks belonging to each stripe cell of data to be written in the band to be written It whether is more than preset pressure in the pressure of current time;
First writing module, for physical disks belonging to each stripe cell when the data to be written in current time Pressure when being less than the preset pressure, take write-in data in the item to be written, and increase the data to be written Each stripe cell belonging to physical disks pressure;
First recovery module, for reducing each of the data to be written after the item to be written takes and writes data The pressure of physical disks belonging to a stripe cell.
As the first embodiment of the third aspect, first determining module is also used to,
At least one physical disks is in current time in the physical disks belonging to each stripe cell of the data to be written Pressure be more than the preset pressure when, redefine band to be written, the band to be written redefined with originally determine Band to be written is different.
As the second embodiment of the third aspect, the pressure includes that read-write operation counts and data volume number of concurrent;
Detection module is used for, and detects physical disks belonging to each stripe cell of the data to be written in current time Whether it is more than that default read-write operation is counted and detected belonging to each stripe cell of the data to be written that read-write operation counts Physical disks in the concurrent counting number of data volume of current time whether be more than that preset data amount concurrently counts;
First writing module is used for, and increases the read-write behaviour of physical disks belonging to each stripe cell of the data to be written Make to count and data volume number of concurrent;Wherein, the incrementss that the read-write operation of each physical disks counts are 1, the number of each physical disks Incrementss according to amount number of concurrent are the logic number of blocks that data are actually written into corresponding stripe cell.
As the third embodiment of the third aspect, described device further includes the first read module, and described first reads mould Block is used for,
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and are increased in the logical block that need to be read belonging to each logical block Physical disks pressure;
After running through data from the logical block that need to be read, each logical block institute in the logical block that need to be read is reduced The pressure of the physical disks of category.
Fourth aspect, provides a kind of apparatus for controlling of disk array, and described device includes:
Second receiving module, for receiving write request, the write request includes that the data of disk array need to be written;The magnetic Disk array includes multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes extremely A few logical block;
Second determining module, for determining the smallest physical disks of pressure in the multiple physical disks of current time;
Second writing module, for the number that disk array need to be written to be written in the smallest physical disks of the pressure According to, and increase the pressure of the smallest physical disks of the pressure;
Second recovery module, for after writing data, reducing the pressure of the smallest physical disks of the pressure.
As the first embodiment of fourth aspect, the pressure includes that read-write operation counts and data volume number of concurrent;
Second writing module is used for, and the read-write operation for increasing the smallest physical disks of the pressure is counted with data volume simultaneously Send out counting number, wherein the incrementss that the read-write operation counts are 1, and the incrementss of the data volume number of concurrent are to be actually written into The logic number of blocks of data.
As the second embodiment of fourth aspect, described device further includes the second read module, and described second reads mould Block is used for,
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and are increased in the logical block that need to be read belonging to each logical block Physical disks pressure;
After running through data from the logical block that need to be read, each logical block institute in the logical block that need to be read is reduced The pressure of the physical disks of category.
Technical solution provided in an embodiment of the present invention has the benefit that
By receiving write request, which includes that the data of disk array need to be written;According to write request, item to be written is determined Band;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes includes less than disk array Physical disks sum, stripe cell that different bands include is different, and different stripe cells are located at different physics in a band Disk;Detect whether physical disks belonging to each stripe cell of data to be written in band to be written surpass in the pressure of current time Cross preset pressure;The physical disks belonging to each stripe cell of data to be written are less than default in the pressure of current time When pressure, write-in data are taken in item to be written, and increase the pressure of physical disks belonging to each stripe cell of data to be written Power;After item to be written takes and writes data, the pressure of physical disks belonging to each stripe cell of data to be written is reduced;This The reconstruct of sample, the either write operation of host or physical disks failure triggering all considers the pressure of physical disks receiving, only in object Data are written when being less than preset pressure in the pressure of reason disk, avoid physical disks penalty, can be when physical disks reconstruct, balance The speed of speed and host the access disk array of reconstruct.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the structural schematic diagram of disk array provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the writing method for disk array that one embodiment of the invention provides;
Fig. 3 is the flow chart of the writing method for another disk array that one embodiment of the invention provides;
Fig. 4 is the flow chart of the writing method for another disk array that one embodiment of the invention provides;
Fig. 5 is the flow chart of the writing method for another disk array that one embodiment of the invention provides;
Fig. 6 is a kind of structural schematic diagram of the apparatus for controlling for disk array that one embodiment of the invention provides;
Fig. 7 is the structural schematic diagram of the apparatus for controlling for another disk array that one embodiment of the invention provides;
Fig. 8 is the structural schematic diagram of the apparatus for controlling for another disk array that one embodiment of the invention provides;
Fig. 9 is the hardware structural diagram of the apparatus for controlling for another disk array that one embodiment of the invention provides;
Figure 10 is a kind of hardware structural diagram of the apparatus for controlling for disk array that one embodiment of the invention provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Technical solution provided in an embodiment of the present invention for ease of understanding, first to disk array (Redundant Arrays Of Independent Disks, abbreviation RAID) it is introduced.
RAID includes multiple physical disks, and each physical disks are cut into multiple stripe cells, and each stripe cell includes extremely A few logical block.Logical block is minimum memory unit in physical disks.Whole stripe cells are divided into multiple bands.Each Stripe cell of the band comprising identical quantity, the stripe cell that different bands include is different, the stripe cell that a band includes point Physical disks that Wei Yu be not different.Also, the stripe cell quantity that each band includes is less than the physical disks total quantity that RAID includes.
As shown in figure 1, it is assumed that RAID includes 8 physical disks (including 0 to No. 7 physical disks), and each band includes 4 bands Unit, each stripe cell include two logical blocks.1st band includes stripe cell 1-1,1-2,1-3 and 1-4, band list First 1-1,1-2,1-3 and 1-4 are located in 0,2,3 and No. 4 physical disks.2nd band includes stripe cell 2-1,2-2,2-3 And 2-4.Stripe cell 2-1,2-2,2-3 and 2-4 are located in 1,2,5 and No. 6 physical disks.
RAID further includes controller, and controller is used to manage the reading and writing operation in multiple physical disks.Reading behaviour in physical disks Make from host connected to the controller.It is triggered when write operation in physical disks is from host and physical disks failure Reconstruct.
Fig. 2 shows a kind of writing method for disk array that one embodiment of the invention provides, this method is suitable for magnetic The controller of disk array.Referring to fig. 2, this method comprises the following steps.
Step S101, write request is received.
Wherein, which includes that the data of disk array need to be written.Disk array includes multiple physical disks, each physical disks Multiple stripe cells are divided into, each stripe cell includes at least one logical block.All stripe cells are divided into multiple Band, wherein each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than disk battle array The physical disks sum that column include.The stripe cell that different bands include is different, and different stripe cells are located at difference in a band Physical disks.
Specifically, which can be sent by host, can also be broken down and be touched in the physical disks in disk array After hair reconstruct, sent by disk array.
Step S102, according to write request, band to be written is determined.
Specifically, this step S102 includes, according to write request, determining number to be written in band to be written and band to be written According at least one stripe cell.
Step S103, physical disks belonging to each stripe cell of data to be written are detected in band to be written when current Between pressure whether be more than preset pressure.
The physical disks belonging to each stripe cell of data to be written are less than default pressure in the pressure of current time When power, step S104 is executed.At least one physical disks is being worked as in the physical disks belonging to each stripe cell of data to be written When the pressure of preceding time is more than preset pressure, step S102 is executed, that is, redefines band to be written.It should be noted that weight The band to be written newly determined is different from the band to be written originally determined.
Specifically, the pressure of physical disks can be numerical value.The initial pressure of each physical disks can be in multiple physical disks The initial pressure of preset pressure, each physical disks can be equal, for example is all 0, can also be unequal.
Step S104, write-in data are taken in item to be written, and increased belonging to each stripe cell of data to be written The pressure of physical disks.
Specifically, the incrementss of the pressure of physical disks belonging to each stripe cell of data to be written can be 1.
Step S105, it after item to be written takes and writes data, reduces belonging to each stripe cell of data to be written The pressure of physical disks.
Specifically, the reduction amount of pressure is identical as the incrementss of pressure in step S104.
It should be noted that the quantity of band to be written can be 1,1 can also be greater than.When the quantity of band to be written is big When 1, each band to be written can be successively used as to current band to be written, then execute step for current band to be written Rapid S103-S105.Specifically, detection it is current it is to be written in data to be written each stripe cell belonging to physical disks current Whether the pressure of time is more than preset pressure.The physical disks belonging to each stripe cell of current data to be written are when current Between pressure take write-in data in current item to be written when being less than preset pressure, and increase each of data to be written The pressure of physical disks belonging to stripe cell.After current item to be written takes and writes data, current data to be written are reduced The pressure of physical disks belonging to each stripe cell.In the physical disks belonging to each stripe cell of current data to be written extremely Few physical disks when the pressure of current time is more than preset pressure, redefine a band to be written with replace currently to Band is written.
For the embodiment of the present invention by receiving write request, which includes that the data of disk array need to be written;According to write request, Determine band to be written;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than The physical disks sum that disk array includes, the stripe cell that different bands include is different, different stripe cells position in a band In different physical disks;Physical disks belonging to each stripe cell of data to be written are detected in band to be written in current time Pressure whether be more than preset pressure;Pressure of the physical disks belonging to each stripe cell of data to be written in current time When being less than preset pressure, write-in data are taken in item to be written, and increase belonging to each stripe cell of data to be written Physical disks pressure;After item to be written takes and writes data, object belonging to each stripe cell of data to be written is reduced Manage the pressure of disk;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks receiving Pressure, only data are written when the pressure of physical disks is less than preset pressure, avoid physical disks penalty, can be in physics When disk reconstructs, the speed of reconstruct and the speed of host access disk array are balanced.
Fig. 3 shows the writing method of another disk array of one embodiment of the invention offer, and this method is suitable for The controller of disk array.In the present embodiment, it will be described in detail the content that the pressure of physical disks includes.Referring to Fig. 3, this method Include the following steps.
Step S201, read request is received.
Wherein, which includes that the mark of the logical block read is needed in disk array.Disk array includes multiple physics Disk, each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block.All stripe cells It is divided into multiple bands, wherein each band includes the stripe cell of identical quantity, the stripe cell number that each band includes Amount is less than the physical disks sum that disk array includes.The stripe cell that different bands include is different, different bands in a band Unit is located at different physical disks.
Specifically, which is sent by host.
Step S202, data are read from the logical block that need to be read, and increases each logical block institute in the logical block that need to be read The pressure of the physical disks of category.
Wherein, pressure may include that read-write operation counts and data volume number of concurrent.
Specifically, increase the pressure of physical disks belonging to each logical block in the logical block that need to be read, including, increase needs to read The read-write operation of physical disks belonging to each logical block counts and data volume number of concurrent, the reading of each physical disks in the logical block taken The incrementss that write operation counts are 1, and the increase number of the data volume number of concurrent of each physical disks is actually to read in each physical disks Logic number of blocks.
Step S203, after running through data from the logical block that need to be read, each logical block in the logical block that need to be read is reduced The pressure of affiliated physical disks.
Specifically, the reduction amount of the pressure of physical disks is the incrementss of the pressure of physical disks in step S202.
Step S204, write request is received.
Wherein, which includes that the data of disk array need to be written.
Specifically, which can be sent by host, can also be broken down and be touched in the physical disks in disk array After hair reconstruct, sent by disk array.
Step S205, according to write request, band to be written is determined.
Specifically, this step S205 may include steps of A to step C.
Step A determines required logic number of blocks according to the size for the data that disk array need to be written.
Specifically, the size of data that each logical block can store is identical, for example, each logical block can store The data of 512B.If the size that the data of disk array need to be written is 2KB, then 4 logical blocks are needed.
Step B selects logical address minimum and writable logical block is as to be written according to required logic number of blocks Enter the logical block of data.
Specifically, the logical address (Logical Block Address, abbreviation LBA) of logical block is numeric form, can be with First logically then the size order of the logical address of block selects writable logic block sequencing and required logical block The writable logical block of quantity Matching.
Step C, according to the mark three's of the logical address of the logical block pre-established, the mark of stripe cell and band Mapping relations determine stripe cell belonging to the logical block of selection and band.
Wherein, band belonging to the logical block selected is band to be written, stripe cell belonging to the logical block selected for The stripe cell of data to be written in band to be written.
Assuming that the logical address of the logical block of the data to be written selected is 1223 to 1226, also, each stripe cell Including 2 logical blocks.Wherein, logical block 1223 belongs to stripe cell 1-3000, and logical block 1224 and 1225 belongs to stripe cell 3-4200, logical block 1226 belong to stripe cell 6-2010.Stripe cell 1-3000,3-4200 and 6-2010 belong to same Band 80a.So, band 80a is determining band to be written, and stripe cell 1-3000,3-4200 and 6-2010 are to be written Enter the stripe cell of data.
Step S206, physical disks belonging to each stripe cell of data to be written are detected in band to be written when current Between pressure whether be more than preset pressure.
The physical disks belonging to each stripe cell of data to be written are less than default pressure in the pressure of current time When power, step S207 is executed.At least one physical disks is being worked as in the physical disks belonging to each stripe cell of data to be written When the pressure of preceding time is more than preset pressure, step S205 is executed, that is, redefines band to be written.It should be noted that weight The band to be written newly determined is different from the band to be written originally determined.
For example, the stripe cell of data to be written includes stripe cell 1-3000,3-4200 and 6- in band 80a to be written Physical disks belonging to 2010, stripe cell 1-3000 are No. 1 physical disks, and physical disks belonging to stripe cell 3-4200 are No. 3 objects Disk is managed, physical disks belonging to stripe cell 6-2010 are No. 6 physical disks.When No. 1, No. 3 and No. 6 physical disks are in the pressure of current time When power is less than preset pressure, step S207 is executed;When in No. 1, No. 3 and No. 6 physical disks at least one physical disks current When the pressure of time is more than preset pressure, step S205 is executed, that is, redefines band to be written.It should be noted that weight The band to be written newly determined is different from the band to be written originally determined.
Specifically, step S206 may include detecting physical disks belonging to each stripe cell of data to be written working as Whether it is more than that default write operation counts and detect each stripe cell institute of data to be written that the read-write operation of preceding time counts Whether the physical disks of category are more than that preset data amount concurrently counts in the concurrent counting number of data volume of current time.
Specifically, read-write operation counts and the concurrent counting number of data volume all can be numeric form.
Specifically, can be according to the disk bearing capacity parameter of disk array, each physical disks can in calculating disk array With the maximum read-write operation quantity and maximum amount of data number of concurrent of carrying.Then by maximum read-write operation quantity and maximum amount of data Number of concurrent is counted respectively as default read-write operation and data volume number of concurrent.Wherein, associative disk bearing capacity parameter can be by Disk array supplier provides.
Step S207, write-in data are taken in item to be written, and increased belonging to each stripe cell of data to be written The pressure of physical disks.
Specifically, increase the pressure of physical disks belonging to each stripe cell of data to be written, including, increase to be written The read-write operation of physical disks belonging to each stripe cell of data counts and data volume number of concurrent, and the read-write of each physical disks is grasped Making the incrementss counted is 1, and the increase number of the data volume number of concurrent of each physical disks is to be actually written into corresponding stripe cell The logic number of blocks of data.
For example, the read-write operation of No. 1 physical disks belonging to stripe cell 1-3000, which counts, increases by 1, data volume number of concurrent increases Add 1;The read-write operation of No. 3 physical disks belonging to stripe cell 3-4200, which counts, increases by 1, and data volume number of concurrent increases by 2, band list The read-write operation of No. 6 physical disks belonging to first 6-2010, which counts, increases by 1, and data volume number of concurrent increases by 1.
Step S208, it after item to be written takes and writes data, reduces belonging to each stripe cell of data to be written The pressure of physical disks.
Specifically, the reduction amount of pressure is the incrementss of pressure in step S207.For example, in stripe cell 1-3000,3- After writing data on 4200 and 6-2010, the read-write operation of No. 1 physical disks belonging to stripe cell 1-3000 is counted and reduces 1, Data volume number of concurrent reduces 1;The read-write operation of No. 3 physical disks belonging to stripe cell 3-4200, which counts, reduces 1, and data volume is concurrent Number reduces 2, and the read-write operation of No. 6 physical disks belonging to stripe cell 6-2010, which counts, reduces 1, and data volume number of concurrent reduces 1.
For the embodiment of the present invention by receiving write request, which includes that the data of disk array need to be written;According to write request, Determine band to be written;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than The physical disks sum that disk array includes, the stripe cell that different bands include is different, different stripe cells position in a band In different physical disks;Physical disks belonging to each stripe cell of data to be written are detected in band to be written in current time Pressure whether be more than preset pressure;Pressure of the physical disks belonging to each stripe cell of data to be written in current time When being less than preset pressure, write-in data are taken in item to be written, and increase belonging to each stripe cell of data to be written Physical disks pressure;After item to be written takes and writes data, object belonging to each stripe cell of data to be written is reduced Manage the pressure of disk;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks receiving Pressure, only data are written when the pressure of physical disks is less than preset pressure, avoid physical disks penalty, can be in physics When disk reconstructs, the speed of reconstruct and the speed of host access disk array are balanced.
Fig. 4 shows the writing method of another disk array of one embodiment of the invention offer, and this method is suitable for The controller of disk array.Referring to fig. 4, this method comprises the following steps.
Step S301, write request is received.
Wherein, write request includes that the data of disk array need to be written, and disk array includes multiple physical disks.
Specifically, which can be sent by host, can also be broken down and be touched in the physical disks in disk array After hair reconstruct, sent by disk array.
Step S302, the smallest physical disks of pressure in the multiple physical disks of current time are determined.
Specifically, the pressure of physical disks can be numeric form.The initial pressure of each physical disks can in multiple physical disks To be preset pressure.The initial pressure of each physical disks can be different.
Step S303, in the smallest physical disks of pressure, the data of disk array need to be written in write-in, and increase pressure minimum Physical disks pressure.
Specifically, the incrementss of the pressure of the smallest physical disks of pressure can be 1.
Step S304, after writing data, the pressure of the smallest physical disks of pressure is reduced.
Specifically, the reduction amount of the pressure of physical disks can be identical as the incrementss of pressure in step S303.
The embodiment of the present invention is by receiving write request, and write request includes that the data of disk array need to be written, disk array packet Include multiple physical disks;Determine the smallest physical disks of pressure in the multiple physical disks of current time;It is write in the smallest physical disks of pressure Enter the data that disk array need to be written, and increases the pressure of the smallest physical disks of pressure;After writing data, it is minimum to reduce pressure Physical disks pressure;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks The pressure of receiving is only written data in the smallest physical disks of pressure, avoids physical disks penalty, can reconstruct in physical disks When, balance the speed of reconstruct and the speed of host access disk array.
Fig. 5 shows the writing method of another disk array of one embodiment of the invention offer, and this method is suitable for The controller of disk array.Referring to Fig. 5, this method comprises the following steps.
Step S401, read request is received.
Wherein, which includes that the mark of the logical block read is needed in disk array.Disk array includes multiple physics Disk, each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block.
This step S401 is identical as step S201 in the embodiment shown in Fig. 4, and details are not described herein.
Step S402, data are read from the logical block that need to be read, and increases each logical block institute in the logical block that need to be read The pressure of the physical disks of category.
Wherein, pressure may include that read-write operation counts and data volume number of concurrent.Read-write operation counts and data volume is concurrent Number can be numeric form.
This step S402 is identical as step S202 in the embodiment shown in Fig. 4, and details are not described herein.
Step S403, after running through data from the logical block that need to be read, each logical block in the logical block that need to be read is reduced The pressure of affiliated physical disks.
Specifically, reduction amount is the incrementss in step S402.
Step S404, write request is received.
Wherein, write request includes that the data of disk array need to be written.
Specifically, which can be sent by host, can also be broken down and be touched in the physical disks in disk array After hair reconstruct, sent by the reconstructed module of disk array.
Step S405, the smallest physical disks of pressure in the multiple physical disks of current time are determined.
Wherein, the initial pressure of each physical disks is preset pressure, the initial pressure of each physical disks in multiple physical disks It can be different.
Optionally, pressure includes that read-write operation counts and data volume number of concurrent.
When realizing, each physical disks in disk array can be calculated according to the disk bearing capacity parameter of disk array The maximum read-write operation quantity and maximum amount of data number of concurrent that can be carried.Then by maximum read-write operation quantity and maximum data Number of concurrent is measured to count and data volume number of concurrent respectively as default read-write operation.Wherein, associative disk bearing capacity parameter can be with By disk array, supplier is provided.
Step S406, in the smallest physical disks of pressure, the data of disk array need to be written in write-in, and increase pressure minimum Physical disks pressure.
Specifically, increase the pressure of the smallest physical disks of pressure, including, increase the read-write operation of the smallest physical disks of pressure It counts and data volume number of concurrent, the incrementss that read-write operation counts is 1, the increase number of data volume number of concurrent is to be actually written into data Logic number of blocks.
This step S406 includes that the quantity of the smallest physical disks of pressure is greater than in the determining multiple physical disks of current time When 1, a physical disks are arbitrarily selected from the smallest physical disks of pressure, and disk battle array need to be written in write-in in the physical disks of selection The data of column, and increase the pressure of the physical disks of selection.
Step S407, after writing data, the pressure of the smallest physical disks of pressure is reduced.
Specifically, the reduction amount of the pressure of physical disks is the incrementss of the pressure of physical disks in step S207.
The embodiment of the present invention is by receiving write request, and write request includes that the data of disk array need to be written, disk array packet Include multiple physical disks;Determine the smallest physical disks of pressure in the multiple physical disks of current time;It is write in the smallest physical disks of pressure Enter the data that disk array need to be written, and increases the pressure of the smallest physical disks of pressure;After writing data, it is minimum to reduce pressure Physical disks pressure;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks The pressure of receiving is only written data in the smallest physical disks of pressure, avoids physical disks penalty, can reconstruct in physical disks When, balance the speed of reconstruct and the speed of host access disk array.
Fig. 6 shows a kind of apparatus for controlling of disk array of one embodiment of the invention offer, which can be set Method in the controller of disk array, suitable for the embodiment offer shown in Fig. 2 or Fig. 3.Referring to Fig. 6, which includes First receiving module 501, the first determining module 502, detection module 503, the first writing module 504 and the first recovery module 505.
First receiving module 501 is used for, and receives write request, which includes that the data of disk array need to be written;Disk battle array Column include multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block.
First determining module 502 is used for, and according to write request, determines band to be written;Each band includes identical quantity Stripe cell, the stripe cell quantity that each band includes are less than the physical disks sum that disk array includes, and different bands include Stripe cell it is different, different stripe cells are located at different physical disks in a band.
Detection module 503 is used for, and detects physical disks belonging to each stripe cell of data to be written in band to be written It whether is more than preset pressure in the pressure of current time.
First writing module 504 is used for, and the physical disks belonging to each stripe cell of data to be written are in current time Pressure when being less than preset pressure, take write-in data in item to be written, and increase each band list of data to be written The pressure of physical disks belonging to member.
First recovery module 505 is used for, and after item to be written takes and writes data, reduces each band of data to be written The pressure of physical disks belonging to unit.
For the embodiment of the present invention by receiving write request, which includes that the data of disk array need to be written;According to write request, Determine band to be written;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than The physical disks sum that disk array includes, the stripe cell that different bands include is different, different stripe cells position in a band In different physical disks;Physical disks belonging to each stripe cell of data to be written are detected in band to be written in current time Pressure whether be more than preset pressure;Pressure of the physical disks belonging to each stripe cell of data to be written in current time When being less than preset pressure, write-in data are taken in item to be written, and increase belonging to each stripe cell of data to be written Physical disks pressure;After item to be written takes and writes data, object belonging to each stripe cell of data to be written is reduced Manage the pressure of disk;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks receiving Pressure, only data are written when the pressure of physical disks is less than preset pressure, avoid physical disks penalty, can be in physics When disk reconstructs, the speed of reconstruct and the speed of host access disk array are balanced.
Fig. 7 shows the apparatus for controlling of another disk array of one embodiment of the invention offer, which can set It sets in the controller of disk array, the method provided suitable for the embodiment shown in Fig. 2 or Fig. 3.Referring to Fig. 7, the device packet Include the first receiving module 601, the first determining module 602, detection module 603, the first writing module 604 and the first recovery module 605.The first receiving module 501 and first is extensive in first receiving module 601 and device shown in first recovery module 605 and Fig. 6 Multiple module 505 is identical, and details are not described herein.The difference of device provided in this embodiment and the device shown in Fig. 6 is as follows.
Wherein, the first determining module 602 is also used to, in the physical disks belonging to each stripe cell of data to be written extremely Few physical disks redefine band to be written, what is redefined is to be written when the pressure of current time is more than preset pressure It is different from the band to be written originally determined to enter band.
Wherein, pressure includes that read-write operation counts and data volume number of concurrent.
Detection module 603 is specifically used for, and detects physical disks belonging to each stripe cell of data to be written when current Between read-write operation count whether be more than default read-write operation count and each stripe cell of detection data to be written belonging to Physical disks in the concurrent counting number of data volume of current time whether be more than that preset data amount concurrently counts.
First writing module 604 is specifically used for, and increases the reading of physical disks belonging to each stripe cell of data to be written Write operation counts and data volume number of concurrent;Wherein, the incrementss that the read-write operation of each physical disks counts are 1, each physical disks The incrementss of data volume number of concurrent be that the logic numbers of blocks of data is actually written into corresponding stripe cell.
Wherein, which further includes the first read module 606.
First read module 606 is used for, and receives read request, which includes the mark for the logical block that need to be read;From need The logical block of reading reads data, and increases the pressure of physical disks belonging to each logical block in the logical block that need to be read;When from After the logical block that need to be read runs through data, the pressure of physical disks belonging to each logical block in the logical block that need to be read is reduced.
For the embodiment of the present invention by receiving write request, which includes that the data of disk array need to be written;According to write request, Determine band to be written;Each band includes the stripe cell of identical quantity, and the stripe cell quantity that each band includes is less than The physical disks sum that disk array includes, the stripe cell that different bands include is different, different stripe cells position in a band In different physical disks;Physical disks belonging to each stripe cell of data to be written are detected in band to be written in current time Pressure whether be more than preset pressure;Pressure of the physical disks belonging to each stripe cell of data to be written in current time When being less than preset pressure, write-in data are taken in item to be written, and increase belonging to each stripe cell of data to be written Physical disks pressure;After item to be written takes and writes data, object belonging to each stripe cell of data to be written is reduced Manage the pressure of disk;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks receiving Pressure, only data are written when the pressure of physical disks is less than preset pressure, avoid physical disks penalty, can be in physics When disk reconstructs, the speed of reconstruct and the speed of host access disk array are balanced.
Fig. 8 shows the apparatus for controlling of another disk array of one embodiment of the invention offer, which can set It sets in the controller of disk array, the method provided suitable for the embodiment shown in Fig. 4 or Fig. 5.Referring to Fig. 8, the device packet Include the second receiving module 701, the second determining module 702, the second writing module 703 and the second recovery module 704.
Second receiving module 701 is used for, and receives write request, write request includes that the data of disk array need to be written;Disk battle array Column include multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block.
Second determining module 702 is used for, and determines the smallest physical disks of pressure in the multiple physical disks of current time.
Second writing module 703 is used for, and the data of disk array need to be written in write-in in the smallest physical disks of pressure, and increase The pressure of the smallest physical disks of plus-pressure.
Second recovery module 704 is used for, and after writing data, reduces the pressure of the smallest physical disks of pressure.
The embodiment of the present invention is by receiving write request, and write request includes that the data of disk array need to be written, disk array packet Include multiple physical disks;Determine the smallest physical disks of pressure in the multiple physical disks of current time;It is write in the smallest physical disks of pressure Enter the data that disk array need to be written, and increases the pressure of the smallest physical disks of pressure;After writing data, it is minimum to reduce pressure Physical disks pressure;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks The pressure of receiving is only written data in the smallest physical disks of pressure, avoids physical disks penalty, can reconstruct in physical disks When, balance the speed of reconstruct and the speed of host access disk array.
Fig. 9 shows the apparatus for controlling of another disk array of one embodiment of the invention offer, which can set It sets in the controller of disk array, the method provided suitable for the embodiment shown in Fig. 4 or Fig. 5.Referring to Fig. 9, the device packet Include the second receiving module 801, the second determining module 802, the second writing module 803 and the second recovery module 804.Second receives mould The second receiving module 701, second is true in device shown in block 801, the second determining module 802 and second recovery module 804 and Fig. 8 Cover half block 702 and the second recovery module 704 are identical, and details are not described herein.Device provided in this embodiment and the device shown in Fig. 8 Difference it is as follows.
Wherein, pressure includes that read-write operation counts and data volume number of concurrent.
Second writing module 803 is used for, and the read-write operation for increasing the smallest physical disks of pressure counts and data volume number of concurrent It counts, wherein the incrementss that read-write operation counts are 1, and the incrementss of data volume number of concurrent are the logical block for being actually written into data Quantity.
Wherein, which further includes the second read module 805.
Second read module 805 is used for, and receives read request, which includes the mark for the logical block that need to be read;From need The logical block of reading reads data, and increases the pressure of physical disks belonging to each logical block in the logical block that need to be read;When from After the logical block that need to be read runs through data, the pressure of physical disks belonging to each logical block in the logical block that need to be read is reduced.
The embodiment of the present invention is by receiving write request, and write request includes that the data of disk array need to be written, disk array packet Include multiple physical disks;Determine the smallest physical disks of pressure in the multiple physical disks of current time;It is write in the smallest physical disks of pressure Enter the data that disk array need to be written, and increases the pressure of the smallest physical disks of pressure;After writing data, it is minimum to reduce pressure Physical disks pressure;In this way, the reconstruct that the write operation or physical disks failure of either host trigger, all considers physical disks The pressure of receiving is only written data in the smallest physical disks of pressure, avoids physical disks penalty, can reconstruct in physical disks When, balance the speed of reconstruct and the speed of host access disk array.
In a particular embodiment, the apparatus for controlling of the disk array shown in earlier figures 6- Fig. 9 can be a kind of meter Calculation machine or server, as shown in Figure 10.It generally comprises at least one processor 12 (such as CPU), at least one network connects Mouth 15 or other communication interfaces, memory 16 and at least one communication bus 13.It will be understood by those skilled in the art that Fig. 8 Shown in the structure of server do not constitute the restriction to server, may include than illustrating more or fewer components, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to each component parts of the Fig. 8 to the device 10:
Communication bus 13 is for realizing the connection communication between processor 12, memory 16 and communication interface.
At least one network interface 15 (can be wired) realizes that the device 10 and at least one other computer are (such as main Machine) between communication connection, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.
Memory 16 can be used for storing software program and application module, and processor 12 is stored in memory 16 by operation Software program and application module, thereby executing the various function application and data processing of device 10.Memory 16 can be led To include storing program area and storage data area, wherein storing program area can storage program area, at least one function (such as Increase physical disks pressure) needed for application program etc.;Storage data area, which can be stored, uses created data according to device 10 (such as physical disks pressure) etc..In addition, memory 16 may include high-speed RAM (Random Access Memory, arbitrary access Memory), it can also include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage Part, flush memory device or other volatile solid-state parts.
Processor 12 is the control centre of device 10, using the various pieces of various interfaces and connection whole device, By running or execute the software program being stored in memory 16 and/or application module, and calls and be stored in memory 16 Interior data, the various functions and processing data of executive device 10, to carry out integral monitoring to device.
Specifically, by running or executing the software program being stored in memory 16 and/or application module, and calling The data being stored in memory 16, processor 12 may be implemented, and receive write request, which includes that disk array need to be written Data;Disk array includes multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least One logical block;According to write request, band to be written is determined;Each band includes the stripe cell of identical quantity, each band The stripe cell quantity for including is less than the physical disks sum that disk array includes, and the stripe cell that different bands include is different, and one Different stripe cells are located at different physical disks in a band;Detect each stripe cell of data to be written in band to be written Whether affiliated physical disks are more than preset pressure in the pressure of current time;Belonging to each stripe cell of data to be written Physical disks take write-in data when the pressure of current time is less than preset pressure, in item to be written, and increase to be written The pressure of physical disks belonging to each stripe cell of data;After item to be written takes and writes data, data to be written are reduced Each stripe cell belonging to physical disks pressure.Alternatively, processor 12 may be implemented, write request is received, write request includes The data of disk array need to be written;Disk array includes multiple physical disks, and each physical disks are divided into multiple stripe cells, each Stripe cell includes at least one logical block;Determine the smallest physical disks of pressure in the multiple physical disks of current time;Pressure most The data of disk array need to be written in write-in in small physical disks, and increase the pressure of the smallest physical disks of pressure;When writing data Afterwards, the pressure of the smallest physical disks of pressure is reduced.
It should be understood that the apparatus for controlling of disk array provided by the above embodiment writes behaviour in control disk array When making, only the example of the division of the above functional modules, in practical application, it can according to need and by above-mentioned function Distribution is completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, to complete above retouch The all or part of function of stating.In addition, the apparatus for controlling of disk array provided by the above embodiment and writing for disk array Control method embodiment belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (14)

1. a kind of writing method of disk array, which is characterized in that the described method includes:
Write request is received, the request includes that the data of disk array need to be written;The disk array includes multiple physical disks, often A physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block, and all is described Stripe cell is divided into multiple bands, and each band includes the stripe cell of identical quantity, and each band includes Stripe cell quantity be less than the physical disks sum that the disk array includes, the stripe cell that the different bands include is not Together, different stripe cells are located at different physical disks in a band;
According to the write request, band to be written is determined;
Physical disks belonging to each stripe cell of data to be written are detected in the band to be written in the pressure of current time It whether is more than preset pressure, the pressure includes that read-write operation counts and data volume number of concurrent;
The physical disks belonging to each stripe cell of the data to be written are less than described pre- in the pressure of current time If when pressure, taking write-in data in the item to be written, and increase belonging to each stripe cell of the data to be written The pressure of physical disks;
After the item to be written takes and writes data, physical disks belonging to each stripe cell of the data to be written are reduced Pressure.
2. the method according to claim 1, wherein the method also includes:
Pressure of at least one physical disks in current time in the physical disks belonging to each stripe cell of the data to be written When power is more than the preset pressure, band to be written is redefined, the band to be written redefined is to be written with originally determination Enter band difference.
3. the method according to claim 1, wherein data to be written in the detection band to be written Whether physical disks belonging to each stripe cell are more than preset pressure in the pressure of current time, comprising:
Detect physical disks belonging to each stripe cell of the data to be written current time read-write operation count whether Physical disks belonging to each stripe cell of the data to be written are counted and detected more than default read-write operation when current Between the concurrent counting number of data volume whether be more than that preset data amount concurrently counts;
The pressure of physical disks belonging to each stripe cell for increasing the data to be written, comprising:
The read-write operation for increasing physical disks belonging to each stripe cell of the data to be written counts and data volume number of concurrent; Wherein, the incrementss that the read-write operation of each physical disks counts are 1, and the incrementss of the data volume number of concurrent of each physical disks are pair The logic number of blocks of data is actually written into the stripe cell answered.
4. according to the method in any one of claims 1 to 3, which is characterized in that the method also includes:
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and increase object belonging to each logical block in the logical block that need to be read Manage the pressure of disk;
After running through data from the logical block that need to be read, reduce in the logical block that need to be read belonging to each logical block The pressure of physical disks.
5. a kind of writing method of disk array, which is characterized in that the described method includes:
Write request is received, the write request includes that the data of disk array need to be written;The disk array includes multiple physical disks, Each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one logical block;
Determine that the smallest physical disks of pressure in the multiple physical disks of current time, the pressure include that read-write operation counts sum number According to amount number of concurrent;
The data that disk array need to be written are written in the smallest physical disks of the pressure, and it is the smallest to increase the pressure The pressure of physical disks;
After writing data, the pressure of the smallest physical disks of the pressure is reduced.
6. according to the method described in claim 5, it is characterized in that, the pressure for increasing the smallest physical disks of pressure, Include:
The read-write operation for increasing the smallest physical disks of the pressure counts and the concurrent counting number of data volume, wherein the read-write behaviour Making the incrementss counted is 1, and the incrementss of the data volume number of concurrent are the logic number of blocks for being actually written into data.
7. method according to claim 5 or 6, which is characterized in that the method also includes:
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and increase object belonging to each logical block in the logical block that need to be read Manage the pressure of disk;
After running through data from the logical block that need to be read, reduce in the logical block that need to be read belonging to each logical block The pressure of physical disks.
8. a kind of apparatus for controlling of disk array, which is characterized in that described device includes:
First receiving module, for receiving write request, the request includes that the data of disk array need to be written;The disk array Including multiple physical disks, each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one Logical block, all stripe cells are divided into multiple bands, and each band includes the stripe cell of identical quantity, The stripe cell quantity that each band includes is less than the physical disks sum that the disk array includes, the different band packets The stripe cell contained is different, and different stripe cells are located at different physical disks in a band;
First determining module, for determining band to be written according to the write request;
Detection module is being worked as detecting physical disks belonging to each stripe cell of data to be written in the band to be written Whether the pressure of preceding time is more than preset pressure, and the pressure includes that read-write operation counts and data volume number of concurrent;
First writing module, for working as physical disks belonging to each stripe cell of the data to be written in the pressure of current time When power is less than the preset pressure, write-in data are taken in the item to be written, and increase each of the data to be written The pressure of physical disks belonging to a stripe cell;
First recovery module, each for reducing the data to be written after the item to be written takes and writes data The pressure of physical disks belonging to tape cell.
9. device according to claim 8, which is characterized in that first determining module is also used to,
Pressure of at least one physical disks in current time in the physical disks belonging to each stripe cell of the data to be written When power is more than the preset pressure, band to be written is redefined, the band to be written redefined is to be written with originally determination Enter band difference.
10. device according to claim 8, which is characterized in that the detection module is used for, and detects the data to be written Each stripe cell belonging to physical disks the read-write operation of current time count whether be more than default read-write operation count, with And physical disks belonging to each stripe cell of the detection data to be written are in the concurrent counting number of data volume of current time No is more than that preset data amount concurrently counts;
First writing module is used for, and increases the read-write behaviour of physical disks belonging to each stripe cell of the data to be written Make to count and data volume number of concurrent;Wherein, the incrementss that the read-write operation of each physical disks counts are 1, the number of each physical disks Incrementss according to amount number of concurrent are the logic number of blocks that data are actually written into corresponding stripe cell.
11. the device according to any one of claim 8 to 10, which is characterized in that described device further includes the first reading Module, first read module are used for,
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and increase object belonging to each logical block in the logical block that need to be read Manage the pressure of disk;
After running through data from the logical block that need to be read, reduce in the logical block that need to be read belonging to each logical block The pressure of physical disks.
12. a kind of apparatus for controlling of disk array, which is characterized in that described device includes:
Second receiving module, for receiving write request, the write request includes that the data of disk array need to be written;The disk battle array Column include multiple physical disks, and each physical disks are divided into multiple stripe cells, and each stripe cell includes at least one A logical block;
Second determining module, for determining the smallest physical disks of pressure, the press packet in the multiple physical disks of current time Read-write operation is included to count and data volume number of concurrent;
Second writing module, for the data that disk array need to be written to be written in the smallest physical disks of the pressure, and Increase the pressure of the smallest physical disks of the pressure;
Second recovery module, for after writing data, reducing the pressure of the smallest physical disks of the pressure.
13. device according to claim 12, which is characterized in that second writing module is used for, and increases the pressure The read-write operations of the smallest physical disks counts and the concurrent counting number of data volume, wherein the incrementss that the read-write operation counts are 1, the incrementss of the data volume number of concurrent are the logic number of blocks for being actually written into data.
14. device according to claim 12 or 13, which is characterized in that described device further includes the second read module, institute The second read module is stated to be used for,
Read request is received, the read request includes the mark for the logical block that need to be read;
Data are read from the logical block that need to be read, and increase object belonging to each logical block in the logical block that need to be read Manage the pressure of disk;
After running through data from the logical block that need to be read, reduce in the logical block that need to be read belonging to each logical block The pressure of physical disks.
CN201510602903.1A 2015-09-21 2015-09-21 A kind of writing method and device of disk array Active CN106547473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510602903.1A CN106547473B (en) 2015-09-21 2015-09-21 A kind of writing method and device of disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510602903.1A CN106547473B (en) 2015-09-21 2015-09-21 A kind of writing method and device of disk array

Publications (2)

Publication Number Publication Date
CN106547473A CN106547473A (en) 2017-03-29
CN106547473B true CN106547473B (en) 2019-08-13

Family

ID=58364421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510602903.1A Active CN106547473B (en) 2015-09-21 2015-09-21 A kind of writing method and device of disk array

Country Status (1)

Country Link
CN (1) CN106547473B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110673795A (en) * 2019-09-19 2020-01-10 深圳市网心科技有限公司 Data writing method and device, computer device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719050A (en) * 2009-11-25 2010-06-02 成都市华为赛门铁克科技有限公司 Data storage method and equipment
CN103488435A (en) * 2013-09-24 2014-01-01 华为技术有限公司 RAID (redundant arrays of independent disks) subsystem and data read-write method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8762771B2 (en) * 2011-11-04 2014-06-24 Lsi Corporation Method for completing write operations to a RAID drive pool with an abnormally slow drive in a timely fashion

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719050A (en) * 2009-11-25 2010-06-02 成都市华为赛门铁克科技有限公司 Data storage method and equipment
CN103488435A (en) * 2013-09-24 2014-01-01 华为技术有限公司 RAID (redundant arrays of independent disks) subsystem and data read-write method thereof

Also Published As

Publication number Publication date
CN106547473A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN110531940B (en) Video file processing method and device
CN105589812B (en) Disk fragments method for sorting, device and host
JP5781925B2 (en) Computer system and control method thereof
CN103959258B (en) Background reorders --- the preventative wear control mechanism with limited expense
CN107209714A (en) The control method of distributed memory system and distributed memory system
CN102362464B (en) Memory access monitoring method and device
JP2006099763A5 (en)
CN108710583A (en) Management method, device, computer equipment and the medium in SSD write buffers area
CN104375954B (en) The method and computer system for based on workload implementing that the dynamic of cache is enabled and disabled
CN103500072A (en) Data migration method and data migration device
CN106775496A (en) A kind of stored data processing method and device
CN112463036B (en) Method, system, terminal and storage medium for calculating block stripes by disk
CN109582219A (en) Storage system, computing system and its method
CN109582213A (en) Data reconstruction method and device, data-storage system
CN110413454A (en) Data re-establishing method, device and storage medium based on storage array
CN107544755A (en) The control method and device of a kind of reading and writing data
CN110688256A (en) Metadata power-on recovery method and device, electronic equipment and storage medium
CN106959907A (en) A kind of cloud platform fragmentation data backup and reduction system
CN114328281A (en) Method and device for processing abnormal power failure of solid state disk, electronic equipment and medium
US20120047108A1 (en) Point-in-time (pit) based thin reclamation support for systems with a storage usage map api
CN112148226A (en) Data storage method and related device
CN115639961A (en) Data writing method, storage system and server
CN106547473B (en) A kind of writing method and device of disk array
CN111338579A (en) Read-write cache optimization method, system, terminal and storage medium based on storage pool
CN106874103A (en) Heartbeat implementation method and device

Legal Events

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

Effective date of registration: 20220908

Address after: No.1899 Xiyuan Avenue, high tech Zone (West District), Chengdu, Sichuan, 611730

Patentee after: Chengdu Huawei Technologies Co.,Ltd.

Address before: 611731 Qingshui River District, Chengdu hi tech Zone, Sichuan, China

Patentee before: HUAWEI DIGITAL TECHNOLOGIES (CHENG DU) Co.,Ltd.