CN103514916A - Optical disc base, data asynchronization parallel reading-writing method for optical disc base and control device - Google Patents
Optical disc base, data asynchronization parallel reading-writing method for optical disc base and control device Download PDFInfo
- Publication number
- CN103514916A CN103514916A CN201310438826.1A CN201310438826A CN103514916A CN 103514916 A CN103514916 A CN 103514916A CN 201310438826 A CN201310438826 A CN 201310438826A CN 103514916 A CN103514916 A CN 103514916A
- Authority
- CN
- China
- Prior art keywords
- rom drive
- server
- stored
- read
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a data asynchronization parallel reading-writing method for an optical disc base. The method comprises the steps that A. a CD driver set in the optical disc base is selected, the CD driver set comprises at least two CD drivers; B. a usable CD driver which is ready in the CD driver set is identified, the usable CD driver is driven to write a data block to be stored into an optical disc in the corresponding CD driver or read a data block to be assembled from the optical disc, the data block to be stored is formed by dividing a data file to be stored, the data block to be assembled is used for being combined to form a target data file; C. the step B is repeatedly carried out until all the CD drivers in the CD driver set are identified to be usable CD drivers. Correspondingly, the invention further provides a control device for optical disc base data asynchronization parallel reading and writing and the optical disc base with the control device. The overall reading-writing speed of the optical disc base can be effectively improved, and meanwhile response time of the optical disc base is shortened to be preparing time of one CD driver.
Description
Technical field
The present invention relates to CD storage technique field, relate in particular to a kind of CD server, for data asynchronous parallel reading/writing method and the control device of CD server.
Background technology
According to Internet data center (IDC, Internet Data Center) statistics, global metadata amount in 2010 is less than 1ZB, more than will reaching 35ZB to the year two thousand twenty.80% left and right that the filing data of wherein often not using account for total amount of data, i.e. 28ZB left and right.How to these data carry out low cost, safety and greenly long preservation become one of difficult problem of data storage industry.In numerous data storage mediums, CD media is owing to being to realize the storage of data by physical method, has can not be subject to the interference of electromagnetic radiation and to the insensitive advantage of temperature and humidity, being therefore recognized is the final form of medium that filing data is preserved.
In recent years, more and more utilize CD to come out as the data storage device of storage medium, wherein, CD server is applied to file on a large scale field as a kind of modal data storage device gradually by people.And along with the increase greatly of individual capacity of optical storage, compared to such as other memory devices such as hard disks, the advantages such as the cost performance of CD server are also obvious all the more.But CD server also has certain weak point:
The first, existing CD server is when reading and writing data file, all to adopt the mode that a complete data file is saved in a CD or reads out a complete data file from a CD, and the read or write speed of CD slow (4.5MB/s~54MB/s), it is only 1/10th of common hard disc read or write speed, therefore, existing CD server cannot realize the high-speed read-write of data file.Especially, when CD server is read and write larger data file, its weak point is more obvious.
The second, first existing CD server, when data file is read and write, need to drive all CD-ROM drives to enter read-write standby condition.Wherein, drive all CD-ROM drives to enter the process of read-write standby condition as follows: first driving device arm takes out a CD this CD is inserted in corresponding CD-ROM drive from CD casket, then continue driving device arm and from CD casket, take out another Zhang Guangpan and this CD is inserted in corresponding CD-ROM drive, repeat above-mentioned steps until enter CD in all CD-ROM drive interpolations.The operation that utilizes mechanical arm that CD is inserted to CD-ROM drive belongs to mechanically actuated, and generally, the process of a CD being inserted to CD-ROM drive at least needs the time of 5 seconds.Therefore,, in the situation that CD-ROM drive number is more, needs the longer time of cost to go to wait for that all CD-ROM drives enter read-write standby condition, thereby affect the read-write efficiency of data file.If just comprise the CD not taking out after front single job in CD-ROM drive, going back demand motive mechanical arm takes out this CD put back to after CD casket, this CD to be operated could be inserted to CD-ROM drive, thus, waiting for that all CD-ROM drives enter time of read-write standby condition will be longer.Illustrate, when CD-ROM drive number is during more than 10, need to wait for that CD-ROM drives all about 1 minute just can enter read-write standby condition, if add the CD that takes out front single job from CD-ROM drive, need to wait for that nearly 2 minutes ability starts to carry out the read-write of data file.
Summary of the invention
In order to overcome above-mentioned defect of the prior art, the invention provides a kind of data asynchronous parallel reading/writing method for CD server, the method comprises:
A. the CD-ROM drive group of selective light in making an inventory of goods in a warehouse, described CD-ROM drive group at least comprises two CD-ROM drives;
B. identify ready available CD-ROM drive in described CD-ROM drive group, and drive this available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
C. repeating step B is until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
According to an aspect of the present invention, CD server described in the method comprises at least two described CD-ROM drive groups; In the CD-ROM drive set that in described CD server, arbitrary described CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.
According to another aspect of the present invention, in the method, the CD-ROM drive group of selective light in making an inventory of goods in a warehouse comprises: according to preset parameter, select described CD-ROM drive group.
According to a further aspect of the invention, preset parameter described in the method comprises number and/or the whole writing speed of described data file to be stored.
According to a further aspect of the invention, in the method, identifying ready available CD-ROM drive in described CD-ROM drive group comprises: receive a standby ready signal that CD-ROM drive sends in described CD-ROM drive group, and according to described standby ready signal, described CD-ROM drive is identified as to described available CD-ROM drive.
According to a further aspect of the invention, in the method mechanical arm to insert CD in described CD-ROM drive and wait for described CD enter read-write standby condition after described CD-ROM drive trigger described standby ready signal.
According to a further aspect of the invention, the size of data block to be stored described in the method equals preset value.
The present invention also provides a kind of control device of the read-write of the data asynchronous parallel for CD server, and this control device comprises:
Select module, the CD-ROM drive group of making an inventory of goods in a warehouse for selective light, described CD-ROM drive group at least comprises two CD-ROM drives;
Identification module, for identifying the ready available CD-ROM drive of described CD-ROM drive group, and triggers driver module operation;
Described driver module, for driving described available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
Described identification module continuous firing is until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
According to an aspect of the present invention, CD server described in this control device comprises at least two described CD-ROM drive groups; In the CD-ROM drive set that in described CD server, arbitrary described CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.
According to another aspect of the present invention, described in this control device, select module to select described CD-ROM drive group according to preset parameter.
According to a further aspect of the invention, preset parameter described in this control device comprises number and/or the whole writing speed of described data file to be stored.
According to a further aspect of the invention, described in this control device, identification module comprises: receiving element, the standby ready signal sending for receiving CD-ROM drive of described CD-ROM drive group; Recognition unit, for being identified as described available CD-ROM drive according to described standby ready signal by described CD-ROM drive.
According to a further aspect of the invention, in this control device mechanical arm to insert CD in described CD-ROM drive and wait for described CD enter read-write standby condition after described CD-ROM drive trigger described standby ready signal.
According to a further aspect of the invention, this control device is cutting unit also, and for described data file to be stored is cut apart to form described data block to be stored, wherein, the size of described data block to be stored equals preset value.
The present invention also provides a kind of CD server, comprises read-write equipment, and this read-write equipment comprises CD-ROM drive, CD, CD casket and mechanical arm, and described CD server also comprises above-mentioned control device, wherein:
Described control device drives the CD-ROM drive in described read-write equipment to carry out the read-write of data asynchronous parallel in its built-in CD.
According to an aspect of the present invention, control device described in this CD server carries out data transmission by data transmission interface and described read-write equipment.
According to another aspect of the present invention, data transmission interface described in this CD server comprises USB interface, SATA interface, scsi interface, SAS interface or ISCASI interface.
According to a further aspect of the invention, control device described in this CD server and described read-write equipment are integrated in a rack.
CD server provided by the present invention, for the data asynchronous parallel reading/writing method of this CD server and control device, by parallel mode, the built-in CD to a plurality of CD-ROM drives writes data block to be stored or read data block to be assembled from the built-in CD of a plurality of CD-ROM drives on the one hand, thus, can greatly improve the whole read or write speed of CD server, particularly in the situation that CD-ROM drive number is more, can make the whole read or write speed of CD server reach hard disk even higher than the effect of R/W speed of hard disc; On the other hand, owing to having adopted asynchronous mode to be shortened to the setup time of a CD-ROM drive response time of CD server, once arbitrary CD-ROM drive in CD server be detected, enter read-write standby condition, start to be undertaken by this CD-ROM drive the read-write operation of data file, thus, further improved the read-write efficiency of data file.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is done of doing with reference to the following drawings, it is more obvious that other features, objects and advantages of the present invention will become:
Fig. 1 is according to the method flow diagram of the read-write of the data asynchronous parallel for CD server of the present invention;
Fig. 2 is according to the control device structural representation of the read-write of the data asynchronous parallel for CD server of the present invention;
Fig. 3 is a specific embodiment structural representation realizing the CD server of data asynchronous parallel read-write according to of the present invention;
Fig. 4 is another specific embodiment structural representation of realizing the CD server of data asynchronous parallel read-write according to of the present invention.
In accompanying drawing, same or analogous Reference numeral represents same or analogous parts.
Embodiment
For a better understanding and interpretation of the present invention, below in conjunction with accompanying drawing, the present invention is described in further detail.
According to an aspect of the present invention, provide a kind of data asynchronous parallel reading/writing method for CD server.Please refer to Fig. 1, Fig. 1 is according to the method flow diagram of the read-write of the data asynchronous parallel for CD server of the present invention.As shown in the figure, the method comprises the following steps:
In step S101, the CD-ROM drive group of selective light in making an inventory of goods in a warehouse, described CD-ROM drive group at least comprises two CD-ROM drives;
In step S102, identify ready available CD-ROM drive in described CD-ROM drive group, and drive this available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
In step S103, repeating step S102 is until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
Particularly, in step S101, from CD server, select CD-ROM drive group to carry out the read-write of data file.Hereinafter, for data file to be written, be called data file to be stored, wherein, data file to be stored will be written in the included CD of CD-ROM drive group; For file to be read, be called target data file, wherein, target data file will read out in the included CD of CD-ROM drive group.
In the present embodiment, CD server comprises at least one CD-ROM drive group, and each CD-ROM drive group comprises at least two CD-ROM drives.If only comprise a CD-ROM drive group in CD server, the CD-ROM drive number that this CD-ROM drive group comprises equals the sum of CD-ROM drive in CD server; If CD server comprises two or more CD-ROM drive groups, the summation of the CD-ROM drive number that all CD-ROM drive groups comprise equals the sum of CD-ROM drive in CD server, that is to say, in the CD-ROM drive set that in CD server, arbitrary CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.With CD server comprise 20 CD-ROM drives (these 20 CD-ROM drives represent with CD-ROM drive i respectively, i=1 wherein, 2 ... 20) be example explanation, if the number of CD-ROM drive group equals 1, the CD-ROM drive number that this CD-ROM drive group comprises equals 20(and comprises that CD-ROM drive 1 is to CD-ROM drive 20); If the number of CD-ROM drive group equals 3, the CD-ROM drive number that these 3 CD-ROM drive groups comprise can equal respectively 10 (CD-ROM drive 1 is to CD-ROM drives 10), 6 (CD-ROM drive 11 is to CD-ROM drive 16) and 4 (CD-ROM drive 17 is to CD-ROM drive 20).Above are only for example, in actual applications, in CD server, the number of CD-ROM drive is determined by the memory capacity of data, therefore the CD-ROM drive number that CD server comprises can be that 10,20,50 are even more, and in being also not limited only to for example 1 or 3 of the number of CD-ROM drive group, it can be also more than 3 can being 2.It should be noted that, in the present embodiment, the CD-ROM drive group in CD server is to form according to all CD-ROM drives in described CD server are carried out to logic groups setting in advance.
When treating storing data files and carry out write operation, need to the CD-ROM drive group in CD server, select according to preset parameter.In a specific embodiment, described preset parameter is the number of data file to be stored, that is, select the CD-ROM drive group equating with data file number to be stored to write from CD server.Illustrate, CD server comprises 5 CD-ROM drive groups, if the number of data file to be stored equals 3, need to from these 5 CD-ROM drive groups, select 3 CD-ROM drive groups as CD-ROM drive group to be written arbitrarily.In another specific embodiment, described preset parameter can also be the whole writing speed of data file to be stored, that is, select the CD-ROM drive group that can meet whole writing speed to write from CD server.Illustrate, CD server comprises 5 CD-ROM drive groups, the CD-ROM drive number that these 5 CD-ROM drive groups comprise is respectively 10, 8, 6, 5 and 3, the number of data file to be stored equals 3, the writing speed of individual CD equals 4.5MB/s, if expect that the whole writing speed of each data file to be stored is greater than or equal to 25MB/s, need to select CD-ROM drive number to be respectively 10, 8 and 6 s' CD-ROM drive group, if expect that the whole writing speed of each data file to be stored is greater than or equal to 20MB/s, can be respectively 10 from CD-ROM drive number, 8, in 6 and 5 s' CD-ROM drive group, select arbitrarily 3 CD-ROM drive groups.
When target data file is carried out to read operation, because target data file is stored in CD with the form of data block to be assembled, therefore according to the corresponding CD-ROM drive group of selecting from CD server of the number of this CD as CD-ROM drive group to be read.
In step S102, for the situation that writes data file to be stored, after determining CD-ROM drive group to be written, demand motive mechanical arm correctly takes out the CD that writes for data file to be stored and this CD is inserted in the CD-ROM drive that CD-ROM drive group to be written comprises from CD casket, repeats above-mentioned steps until all CD-ROM drive interpolations that comprise in CD-ROM drive group to be written enter CD.The CD-ROM drive interpolation comprising to CD-ROM drive group to be written when mechanical arm enters after CD, wait CD enters and writes standby condition, once any CD be detected, enter and write standby condition, this CD place CD-ROM drive triggers standby ready signal, shows that this CD-ROM drive is ready.Receive after the standby ready signal of a CD-ROM drive transmission in CD-ROM drive group, according to this standby ready signal, this CD-ROM drive is identified as to available CD-ROM drive, can start the CD in this CD-ROM drive to carry out write operation.Identify after available CD-ROM drive, drive this available CD-ROM drive to write corresponding data block to be stored in its built-in CD.Wherein, described data block to be stored forms by cutting apart data file to be stored.In a specific embodiment, the size of described data block to be stored equals preset value, such as 4K, 512K or 1M etc.Described preset value can be in advance by manually arranging or carrying out self-adaptation adjustment according to actual conditions.When treating storing data files according to preset value and cut, if there is the data block to be stored that is less than preset value, by writing supplementary data to this data block to be stored, make its size reach preset value.After data block to be stored forms, if the number of data block to be stored is more than when preserving the CD-ROM drive number that the CD-ROM drive group of this data block to be stored comprises, can adopt the mode of poll that data block to be stored is write in the CD that built-in CD drive.Illustrate, the size of a data file to be stored equals 20M, according to preset value, being divided into is 20 data blocks to be stored (representing with data block 1 to be stored to data block 20 to be stored), the size that is each data block to be stored equals 1M, if comprise 10 CD-ROM drives (representing with CD-ROM drive 1 to CD-ROM drive 10) for writing the CD-ROM drive group of this data file to be stored, the CD-ROM drive that drives so CD-ROM drive group to comprise is write fashionable by data block 1 to be stored, 11 write in the built-in CD of CD-ROM drive 1, by data block 2 to be stored, 12 write in the built-in CD of CD-ROM drive 2, data block 3 to be stored, 13 write in the built-in CD of CD-ROM drive 3, by that analogy.
Similarly, for the situation that reads target data file, after determining CD-ROM drive group to be read, demand motive mechanical arm correctly take out to be preserved and is needed to be assembled the CD of data block and this CD is inserted in the CD-ROM drive that corresponding CD-ROM drive group to be read comprises from CD casket, repeats above-mentioned steps until all CD-ROM drive interpolations that comprise in CD-ROM drive group to be read enter CD.The CD-ROM drive interpolation comprising to CD-ROM drive group to be read when mechanical arm enters after CD, wait CD enters and reads standby condition, once any CD be detected, enter and read standby condition, this CD place CD-ROM drive triggers standby ready signal, shows that this CD-ROM drive is ready.Receive after the standby ready signal of a CD-ROM drive transmission in CD-ROM drive group, according to this standby ready signal, this CD-ROM drive is identified as to available CD-ROM drive, can start the CD in this CD-ROM drive to carry out read operation.Identify after available CD-ROM drive, drive this available CD-ROM drive to read data block to be assembled in its built-in CD, this data block to be assembled is for the synthetic target data file of subsequent group.
In step S103, repeat above-mentioned steps S102 until all CD-ROM drives that CD-ROM drive group comprises are all identified as described available CD-ROM drive.Now, all CD-ROM drives have all entered read-write state.After all data blocks to be stored be written to by CD-ROM drive group to be written read out in CD by CD-ROM drive group to be read in CD or by need to be assembled data block, the writing or having read of data file.
It should be noted that, when the part CD-ROM drive in CD-ROM drive group is available CD-ROM drive, this part CD-ROM drive carries out concurrent reading and concurrent writing operation, when all CD-ROM drives in CD-ROM drive group are available CD-ROM drive, these all CD-ROM drives carry out concurrent reading and concurrent writing operation, and now the whole read or write speed of data file reaches the highest.The writing speed of individual CD of still take equals 4.5MB/s as example explanation, if the CD-ROM drive number of concurrent working equals at 50 o'clock, whole read or write speed is the highest will reach 225MB/s.In addition, if the CD-ROM drive group that the length of definition CD server response time equals from selective light is made an inventory of goods in a warehouse is carried out the length during this period of time of read-write operation to the CD-ROM drive that starts to comprise by this CD-ROM drive group, after CD server adopts above-mentioned CD-ROM drive Asynchronous operation mode, the response time of CD server only equals the read-write setup time of a CD-ROM drive so.
It should be noted that, although described in the accompanying drawings the operation of the inventive method with particular order, but this not requires or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expectation.On the contrary, the step of describing in process flow diagram can change execution sequence.Additionally or alternatively, can omit some step, a plurality of steps be merged into a step and carry out, and/or a step is decomposed into a plurality of steps carries out.
A kind of control device of the read-write of the data asynchronous parallel for CD server is also provided according to another aspect of the present invention.Please refer to Fig. 2, Fig. 2 is according to the control device structural representation of the read-write of the data asynchronous parallel for CD server of the present invention.As shown in the figure, this control device 20 comprises:
Select module 201, the CD-ROM drive group of making an inventory of goods in a warehouse for selective light, described CD-ROM drive group at least comprises two CD-ROM drives;
Described driver module 203, for driving described available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
Described identification module 202 continuous firings are until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
Below, the specific works process to upper module is elaborated.
Particularly, select module 201 from CD server, to select CD-ROM drive group to carry out the read-write of data file.CD server comprises at least one CD-ROM drive group, and each CD-ROM drive group at least comprises two CD-ROM drives.If only comprise a CD-ROM drive group in CD server, the CD-ROM drive number that this CD-ROM drive group comprises equals the sum of CD-ROM drive in CD server; If CD server comprises two or more CD-ROM drive groups, the summation of the CD-ROM drive number that all CD-ROM drive groups comprise equals the sum of CD-ROM drive in CD server, that is to say, in the CD-ROM drive set that in CD server, arbitrary CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.With CD server comprise 20 CD-ROM drives (these 20 CD-ROM drives represent with CD-ROM drive i respectively, i=1 wherein, 2 ... 20) be example explanation, if the number of CD-ROM drive group equals 1, the CD-ROM drive number that this CD-ROM drive group comprises equals 20(and comprises that CD-ROM drive 1 is to CD-ROM drive 20); If the number of CD-ROM drive group equals 3, the CD-ROM drive number that these 3 CD-ROM drive groups comprise can equal respectively 10 (CD-ROM drive 1 is to CD-ROM drives 10), 6 (CD-ROM drive 11 is to CD-ROM drive 16) and 4 (CD-ROM drive 17 is to CD-ROM drive 20).Above are only for example, in actual applications, in CD server, the number of CD-ROM drive is determined by the memory capacity of data, therefore the CD-ROM drive number that CD server comprises can be that 10,20,50 are even more, and in being also not limited only to for example 1 or 3 of the number of CD-ROM drive group, it can be also more than 3 can being 2.It should be noted that, in the present embodiment, the CD-ROM drive group in CD server is that user presets and forms, once set, in the read-write of follow-up data file, will CD-ROM drive group be selected based on this setting in advance.
When treating storing data files and carry out write operation, select module 201 to the CD-ROM drive group in CD server, to select according to preset parameter.In a specific embodiment, described preset parameter is the number of data file to be stored, that is, select module 201 from CD server, to select the CD-ROM drive group equating with data file number to be stored to write.Illustrate, CD server comprises 5 CD-ROM drive groups, if the number of data file to be stored equals 3, selects 201 needs of module from these 5 CD-ROM drive groups, to select arbitrarily 3 CD-ROM drive groups as CD-ROM drive group to be written.In another specific embodiment, described preset parameter can also be the whole writing speed of data file to be stored, that is, select module 201 from CD server, to select the CD-ROM drive group that can meet whole writing speed to write.Illustrate, CD server comprises 5 CD-ROM drive groups, the CD-ROM drive number that these 5 CD-ROM drive groups comprise is respectively 10, 8, 6, 5 and 3, the number of data file to be stored equals 3, the writing speed of individual CD equals 4.5MB/s, if expect that the whole writing speed of each data file to be stored is greater than or equal to 25MB/s, select 201 needs of module to select CD-ROM drive number to be respectively 10, 8 and 6 s' CD-ROM drive group, if expect that the whole writing speed of each data file to be stored is greater than or equal to 20MB/s, select 201 of modules to be respectively 10 from CD-ROM drive number, 8, in 6 and 5 s' CD-ROM drive group, select arbitrarily 3 CD-ROM drive groups.
When target data file is carried out to read operation, because target data file is stored in CD with the form of data block to be assembled, therefore select module 201 according to the corresponding CD-ROM drive group of selecting from CD server of the number of this CD as CD-ROM drive group to be read.
For the situation that writes data file to be stored, when identification module 202 triggers after driver module 203, driver module 203 drives available CD-ROM drive to write corresponding data block to be stored in its built-in CD, and wherein said data block to be stored forms by cutting apart data file to be stored.Preferably, control device provided by the present invention further comprises cuts apart module 204, and for described data file to be stored is cut apart to form described data block to be stored, wherein, the size of described data block to be stored equals preset value.In a specific embodiment, the size of described data block to be stored equals preset value, such as 4K, 512K or 1M etc.Described preset value can be in advance manually arranges or cuts apart module 204 and carry out self-adaptation adjustment according to actual conditions by cutting apart module 204.When cutting apart module 204 and treat storing data files and cut according to preset value, if there is the data block to be stored that is less than preset value, by writing supplementary data to this data block to be stored, make its size reach preset value.After data block to be stored forms, if the number of data block to be stored more than when preserving the CD-ROM drive number that the CD-ROM drive group of this data block to be stored comprises, driver module 203 can adopt the mode of poll that data block to be stored is write in the CD that built-in CD drive.Illustrate, the size of a data file to be stored equals 20M, cutting apart that module 204 is divided into according to preset value is 20 data blocks to be stored (representing with data block 1 to be stored to data block to be stored 20), the size that is each data block to be stored equals 1M, if comprise 10 CD-ROM drives (representing with CD-ROM drive 1 to CD-ROM drive 10) for writing the CD-ROM drive group of this data file to be stored, the CD-ROM drive that drives so CD-ROM drive group to comprise is write fashionable by data block 1 to be stored, 11 write in the built-in CD of CD-ROM drive 1, by data block 2 to be stored, 12 write in the built-in CD of CD-ROM drive 2, data block 3 to be stored, 13 write in the built-in CD of CD-ROM drive 3, by that analogy.For the situation that reads target data file, when identification module 202 triggers after driver module 203, driver module 203 drives available CD-ROM drive to read data block to be assembled in its built-in CD, wherein, described in data block to be assembled for the synthetic target data file of subsequent group.
The term that this part occurs and noun with above in identical term or noun there is consistent implication, such as described " data file to be stored ", " target data file ", " CD-ROM drive group to be written ", " CD-ROM drive group to be read ", " available CD-ROM drive " etc., above-mentioned term or noun and the principle of work relating to thereof all can be with reference to description and the explanations of middle relevant portion above, in order not repeat them here for simplicity.
According to a further aspect of the invention, also provide a kind of CD server.Please refer to Fig. 3, Fig. 3 is the CD server structural representation of the realized data asynchronous parallel read-write of a specific embodiment according to the present invention.As shown in the figure, described CD server comprises read-write equipment 30, this read-write equipment 30 comprises CD-ROM drive 301, CD 302, CD casket 303 and mechanical arm 304, wherein, CD casket 303 is for placing compact disc 303, mechanical arm 304 is put into CD casket 303 by this CD 302 after this CD 302 being inserted to CD-ROM drive 301 or take out CD 302 from CD-ROM drive 301 from CD casket 303 takes out CD 302, and described CD-ROM drive 301 is for reading or data writing file from its built-in CD 302.Described CD server further comprises previously described control device 20, and wherein, described control device 20 is for driving the CD-ROM drive of described read-write equipment 30 to carry out the read-write of data asynchronous parallel in its built-in CD 302.Owing to driving CD-ROM drive in described read-write equipment 30 to describe in detail to the process of carrying out the read-write of data asynchronous parallel in its built-in CD 302 to control device 20 in above, therefore for brevity, at this, be no longer repeated in this description.
In a specific embodiment, if control device 20 is embodied as a kind of computer program, and this computer program operates in a computer equipment, in this case, as shown in Figure 3, described read-write equipment 30 is integrated in a rack 40, and the computer equipment (not shown) that moves this control device 20 carries out data transmission by data transmission interface and described read-write equipment 30.Wherein, described data transmission interface includes but not limited to USB interface, SATA interface, scsi interface, SAS interface or ISCASI interface.
In another specific embodiment, as shown in Figure 4, described control device 20 also can be integrated in a rack with described read-write equipment 30.
Provided by the inventionly for being identified for the data asynchronous parallel reading/writing method of CD server, can realize by programmable logic device (PLD), also may be embodied as computer software, according to embodiments of the invention, can be for example a kind of computer program, move this program product computing machine is carried out for demonstrated method.Described computer program comprises computer-readable recording medium, comprises computer program logic or code section on this medium, for realizing each step of said method.Described computer-readable recording medium can be the removable medium (for example hot-plugging technology memory device) that is installed in the built-in medium in computing machine or can dismantles from basic computer.Described built-in medium includes but not limited to rewritable nonvolatile memory, for example RAM, ROM, flash memory and hard disk.Described removable medium includes but not limited to: optical storage media (for example CD-ROM and DVD), magneto-optic storage media (for example MO), magnetic recording medium (for example tape or portable hard drive), have the media (for example storage card) of built-in rewritable nonvolatile memory and have the media (for example ROM box) of built-in ROM.
It will be appreciated by those skilled in the art that any computer system with suitable programmer all can carry out all steps of the method for the present invention being included in program product.Although most embodiments of describing in this instructions all lay particular emphasis on software program, the alternate embodiment that realizes method provided by the invention as firmware and hardware is equally within the scope of protection of present invention.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned one exemplary embodiment, and in the situation that not deviating from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, is therefore intended to be included in the present invention dropping on the implication that is equal to important document of claim and all changes in scope.Any Reference numeral in claim should be considered as limiting related claim.In addition, obviously miscellaneous part, unit or step do not got rid of in " comprising " word, and odd number is not got rid of plural number.A plurality of parts of stating in device claim, unit or device also can be realized by software or hardware by parts, unit or device.
CD server provided by the present invention, for the data asynchronous parallel reading/writing method of this CD server and control device, by parallel mode, the built-in CD to a plurality of CD-ROM drives writes data block to be stored or read data block to be assembled from the built-in CD of a plurality of CD-ROM drives on the one hand, thus, can greatly improve the whole read or write speed of CD server, particularly in the situation that CD-ROM drive number is more, can make the whole read or write speed of CD server reach hard disk even higher than the effect of R/W speed of hard disc; On the other hand, owing to having adopted asynchronous mode to be shortened to the setup time of a CD-ROM drive response time of CD server, once arbitrary CD-ROM drive in CD server be detected, enter read-write standby condition, start to be undertaken by this CD-ROM drive the read-write operation of data file, thus, further improved the read-write efficiency of data file.
Above disclosed is only preferred embodiments more of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.
Claims (18)
1. for a data asynchronous parallel reading/writing method for CD server, the method comprises:
A. the CD-ROM drive group of selective light in making an inventory of goods in a warehouse, described CD-ROM drive group at least comprises two CD-ROM drives;
B. identify ready available CD-ROM drive in described CD-ROM drive group, and drive this available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
C. repeating step B is until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
2. method according to claim 1, wherein:
Described CD server comprises at least two described CD-ROM drive groups;
In the CD-ROM drive set that in described CD server, arbitrary described CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.
3. method according to claim 1, wherein, the CD-ROM drive group of selective light in making an inventory of goods in a warehouse comprises:
According to preset parameter, select described CD-ROM drive group.
4. method according to claim 3, wherein, described preset parameter comprises number and/or the whole writing speed of described data file to be stored.
5. method according to claim 1, wherein, identifies ready available CD-ROM drive in described CD-ROM drive group and comprises:
Receive a standby ready signal that CD-ROM drive sends in described CD-ROM drive group, and according to described standby ready signal, described CD-ROM drive is identified as to described available CD-ROM drive.
6. method according to claim 5, wherein:
Mechanical arm to insert CD in described CD-ROM drive and wait for described CD enter read-write standby condition after described CD-ROM drive trigger described standby ready signal.
7. method according to claim 1, wherein, the size of described data block to be stored equals preset value.
8. a control device of reading and writing for the data asynchronous parallel of CD server, this control device comprises:
Select module, the CD-ROM drive group of making an inventory of goods in a warehouse for selective light, described CD-ROM drive group at least comprises two CD-ROM drives;
Identification module, for identifying the ready available CD-ROM drive of described CD-ROM drive group, and triggers driver module operation;
Described driver module, for driving described available CD-ROM drive to write data block to be stored or read data block to be assembled in described CD in its built-in CD, wherein said data block to be stored forms by cutting apart data file to be stored, described in data block to be assembled for being combined into target data file;
Described identification module continuous firing is until all CD-ROM drives that described CD-ROM drive group comprises are all identified as described available CD-ROM drive.
9. control device according to claim 8, wherein:
Described CD server comprises at least two described CD-ROM drive groups;
In the CD-ROM drive set that in described CD server, arbitrary described CD-ROM drive group comprises and this CD server, the included CD-ROM drive intersection of sets collection of arbitrary other CD-ROM drive groups is sky.
10. control device according to claim 9, wherein, described selection module is selected described CD-ROM drive group according to preset parameter.
11. control device according to claim 10, wherein, described preset parameter comprises number and/or the whole writing speed of described data file to be stored.
12. control device according to claim 8, wherein, described identification module comprises:
Receiving element, the standby ready signal sending for receiving CD-ROM drive of described CD-ROM drive group;
Recognition unit, for being identified as described available CD-ROM drive according to described standby ready signal by described CD-ROM drive.
13. control device according to claim 12, wherein:
Mechanical arm to insert CD in described CD-ROM drive and wait for described CD enter read-write standby condition after described CD-ROM drive trigger described standby ready signal.
14. control device according to claim 8, this control device also comprises;
Cutting unit, for described data file to be stored is cut apart to form described data block to be stored, wherein, the size of described data block to be stored equals preset value.
15. 1 kinds of CD server, comprise read-write equipment, and this read-write equipment comprises CD-ROM drive, CD, CD casket and mechanical arm, it is characterized in that, described CD server also comprises the control device as described in claim 8 to 14, wherein:
Described control device drives the CD-ROM drive in described read-write equipment to carry out the read-write of data asynchronous parallel in its built-in CD.
16. CD server according to claim 15, wherein, described control device carries out data transmission by data transmission interface and described read-write equipment.
17. CD server according to claim 16, wherein, described data transmission interface comprises USB interface, SATA interface, scsi interface, SAS interface or ISCASI interface.
18. CD server according to claim 15, wherein, described control device and described read-write equipment are integrated in a rack.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310438826.1A CN103514916B (en) | 2013-09-24 | 2013-09-24 | CD server, for the data asynchronous parallel reading/writing method of CD server and control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310438826.1A CN103514916B (en) | 2013-09-24 | 2013-09-24 | CD server, for the data asynchronous parallel reading/writing method of CD server and control device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103514916A true CN103514916A (en) | 2014-01-15 |
CN103514916B CN103514916B (en) | 2016-06-01 |
Family
ID=49897515
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310438826.1A Active CN103514916B (en) | 2013-09-24 | 2013-09-24 | CD server, for the data asynchronous parallel reading/writing method of CD server and control device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103514916B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104134447A (en) * | 2014-05-04 | 2014-11-05 | 武汉光忆科技有限公司 | Compact disc storage system and compact disc data reading and writing method |
CN113611333A (en) * | 2021-07-14 | 2021-11-05 | 武汉光忆科技有限公司 | Optical disk library cluster system and read-write method |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1172322A (en) * | 1997-06-13 | 1998-02-04 | 清华大学 | Multifunctional optical disk array and using implementation data parallel write/read method |
JPH1145497A (en) * | 1997-07-24 | 1999-02-16 | Nippon Telegr & Teleph Corp <Ntt> | Optical disk library device, data recording/reproducing method and recording medium with data recording/ reproducing program |
US5936794A (en) * | 1994-10-17 | 1999-08-10 | Nippon Telegraph & Telephone Corp. | Media library system using media management scheme for reducing recording medium access time |
JP2002298476A (en) * | 2001-03-30 | 2002-10-11 | Nec Corp | Library system with inter-device carrier |
US6754768B2 (en) * | 2001-04-26 | 2004-06-22 | International Business Machines Corporation | Library of hard disk drives with transparent emulating interface |
US20050007898A1 (en) * | 2003-07-11 | 2005-01-13 | Takeshi Maeda | Large capacity high speed read/write optical disk system |
US20050182888A1 (en) * | 2004-02-16 | 2005-08-18 | Akira Murotani | Disk array apparatus and disk array apparatus control method |
CN201323055Y (en) * | 2008-12-22 | 2009-10-07 | 苏州互盟信息存储技术有限公司 | Mark automatic recognition device of disc box |
CN101661773A (en) * | 2009-09-14 | 2010-03-03 | 苏州互盟信息存储技术有限公司 | Automatic identification device of compact disc cassette in compact disc library |
CN201570260U (en) * | 2009-12-02 | 2010-09-01 | 苏州互盟信息存储技术有限公司 | CD-ROM jukebox array |
CN102193751A (en) * | 2010-03-15 | 2011-09-21 | 日立-Lg数据存储韩国公司 | Optical disk drive RAID driving method |
-
2013
- 2013-09-24 CN CN201310438826.1A patent/CN103514916B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5936794A (en) * | 1994-10-17 | 1999-08-10 | Nippon Telegraph & Telephone Corp. | Media library system using media management scheme for reducing recording medium access time |
CN1172322A (en) * | 1997-06-13 | 1998-02-04 | 清华大学 | Multifunctional optical disk array and using implementation data parallel write/read method |
JPH1145497A (en) * | 1997-07-24 | 1999-02-16 | Nippon Telegr & Teleph Corp <Ntt> | Optical disk library device, data recording/reproducing method and recording medium with data recording/ reproducing program |
JP2002298476A (en) * | 2001-03-30 | 2002-10-11 | Nec Corp | Library system with inter-device carrier |
US6754768B2 (en) * | 2001-04-26 | 2004-06-22 | International Business Machines Corporation | Library of hard disk drives with transparent emulating interface |
US20050007898A1 (en) * | 2003-07-11 | 2005-01-13 | Takeshi Maeda | Large capacity high speed read/write optical disk system |
US20050182888A1 (en) * | 2004-02-16 | 2005-08-18 | Akira Murotani | Disk array apparatus and disk array apparatus control method |
CN201323055Y (en) * | 2008-12-22 | 2009-10-07 | 苏州互盟信息存储技术有限公司 | Mark automatic recognition device of disc box |
CN101661773A (en) * | 2009-09-14 | 2010-03-03 | 苏州互盟信息存储技术有限公司 | Automatic identification device of compact disc cassette in compact disc library |
CN201570260U (en) * | 2009-12-02 | 2010-09-01 | 苏州互盟信息存储技术有限公司 | CD-ROM jukebox array |
CN102193751A (en) * | 2010-03-15 | 2011-09-21 | 日立-Lg数据存储韩国公司 | Optical disk drive RAID driving method |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104134447A (en) * | 2014-05-04 | 2014-11-05 | 武汉光忆科技有限公司 | Compact disc storage system and compact disc data reading and writing method |
CN104134447B (en) * | 2014-05-04 | 2017-01-25 | 武汉光忆科技有限公司 | Compact disc storage system and compact disc data reading and writing method |
CN113611333A (en) * | 2021-07-14 | 2021-11-05 | 武汉光忆科技有限公司 | Optical disk library cluster system and read-write method |
Also Published As
Publication number | Publication date |
---|---|
CN103514916B (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Goda et al. | The history of storage systems | |
CN102929748B (en) | Data back up method and device | |
CN102326141A (en) | Processing method and apparatus for raid configuration information and raid controller | |
CN105224237A (en) | A kind of date storage method and device | |
CN103870211A (en) | Method of writing a file to a plurality of media and a storage system thereof | |
CN103793666A (en) | Data file protecting method and system | |
CN102880428A (en) | Distributed RAID (redundant array of independent disks) establishing method and device | |
CN101334708A (en) | Storage device with write barrier sensitive write commands and write barrier insensitive commands | |
CN1773467A (en) | Storage device having superset format, method and system for use therewith | |
CN103077241A (en) | Method for loading data in parallel after splitting files | |
CN103514901A (en) | Optical disc base, data parallel reading-writing method for optical disc base and control device | |
CN103514916A (en) | Optical disc base, data asynchronization parallel reading-writing method for optical disc base and control device | |
CN102169419A (en) | RAID (redundant array of independent disks) data block splitting and assembling method based on SATA (serial advanced technology attachment) controller | |
CN104133640B (en) | From the fast quick-recovery of dormancy | |
CN114138200A (en) | Pre-writing log method and system based on rocksDB | |
CN115933994B (en) | Data processing method and device, electronic equipment and storage medium | |
TWI559139B (en) | Data storage device and data maintenance method thereof | |
CN104793892A (en) | Method for accelerating random in-out (IO) read-write of disk | |
CN103530068A (en) | Data reading-writing method and control device for light storage array network | |
Coughlin et al. | Digital storage and memory technology (part 1) | |
EP3920184A1 (en) | Recording device, recording method, recording program, and magnetic tape | |
CN103617250A (en) | File management method based on optical storage array and file format system | |
CN100489779C (en) | Method and apparatus for determining load of input/output command in input/output subsystem | |
US10585605B1 (en) | Configuring a data storage system by analyzing and grouping activity data of multiple LUNs | |
CN111415697B (en) | Method, device and system for verifying flash translation layer algorithm |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |