CN101556527B - System and method for judging disk connecting level of double-backup memory - Google Patents

System and method for judging disk connecting level of double-backup memory Download PDF

Info

Publication number
CN101556527B
CN101556527B CN2008100897702A CN200810089770A CN101556527B CN 101556527 B CN101556527 B CN 101556527B CN 2008100897702 A CN2008100897702 A CN 2008100897702A CN 200810089770 A CN200810089770 A CN 200810089770A CN 101556527 B CN101556527 B CN 101556527B
Authority
CN
China
Prior art keywords
disk
configuration
random number
master controller
slave controller
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.)
Expired - Fee Related
Application number
CN2008100897702A
Other languages
Chinese (zh)
Other versions
CN101556527A (en
Inventor
陈志伟
卢晓芬
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN2008100897702A priority Critical patent/CN101556527B/en
Publication of CN101556527A publication Critical patent/CN101556527A/en
Application granted granted Critical
Publication of CN101556527B publication Critical patent/CN101556527B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates a system and a method for judging the disk connecting level of a double-backup memory, mainly applied in memories of master and slave controllers with double backups. Random numerical values are written in sequence through each disk in a disk group and are read out for interpretation so as to judge whether the connecting sequences that each disk in the disk group is connectedto the master and the slave controllers are consistent or not.

Description

The judgement System and method for of the disk connecting level of double-backup memory
Technical field
The present invention relates to a kind of judgement System and method for of disk connecting level, particularly relate in a kind of storer of the master and slave controller that is applied to have double copies, in order to judge the technology of disk connecting level.
Background technology
In data storage technology, linear extension disk group (JBOD, Just a Bunch of Drives) is that a plurality of hard disks are connected to a central controller simultaneously and are combined into a virtual disk that capacity is bigger.Because of the total volume of linear extension disk group (JBOD) is formed the summation of hard disk for all, so can satisfy the demand of a large amount of storeies.But using linear extension disk group (JBOD) when the storage data, is that data are disperseed to be stored on each physical hard disk (physical disk drives), so can improve the efficient of data access, is particularly suitable for being used for storing the data of larger capacity.But linear extension disk group (JBOD) does not have the function of avoiding the hard disk damage.
Therefore if will store the significant data that needs protection; with linear extension disk group (JBOD) be connected in master (Master) with mutual backup, from the double-backup memory of (Slave) controller; in master controller and slave controller rear end; connect in regular turn and go up a plurality of hard disks, and form a linear extension disk group (JBOD).The connected mode of linear extension disk group (JBOD) is that master and slave controller is connected to same disk respectively, another disk is connected in after this disk again, and the rest may be inferred.Therefore, if a central disk for master controller and slave controller be connected level when inconsistent, will derive the mistake of master and slave controller data access, make master and slave controller that the function of mutual backup can't be provided.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of judgement System and method for of disk connecting level of double-backup memory, mainly be that master (Master) controller that is applied to have double copies reaches from the storer of (Slave) controller, see through master controller each disk in the disk group is write random number in regular turn, reading described random number by slave controller in disk group again and carry out interpretation, whether consistent to judge each disk in the disk group if being connected to the connection level of master and slave controller.
The technology that disk level of the present invention is judged is to utilize because of disk group is connected to master controller with the one first articulamentum level that disposes, and therefore writes the described random number of disk in regular turn, for having the ordered series of numbers of this first configuration sequence.Because of disk group is connected to slave controller with the one second articulamentum level that disposes, therefore the described random number of reading in disk group can become the ordered series of numbers with second configuration sequence again.See through the ordered series of numbers that contrast has the described random number of second configuration sequence again, with the ordered series of numbers of the described random number with first configuration sequence, whether consistent to judge each disk in the disk group if being connected to the connection level of master and slave controller.
To achieve these goals, the present invention proposes a kind of judgement system of disk connecting level of double-backup memory, comprises a disk group at least, has a plurality of disks for access data; One master controller is the described disk to this disk group of being linked in sequence with one first configuration, with access data in this disk group; One slave controller is with the described disk to this disk group of being linked in sequence of one second configuration, and the backup of this master controller can be provided, with access data in this disk group; One numerical value writing module is located at this master controller, in order to producing a plurality of random numbers, and described random number is write to described disk in regular turn; And a reading module, be located at this slave controller, in described disk, read described random number by this slave controller with connection level of this second configuration, provide this second configuration of judging described disk first to dispose and whether conform to this.
To achieve these goals, the present invention also proposes a kind of determination methods of disk connecting level of double-backup memory, comprises the following step at least: see through a master controller and produce a plurality of random numbers; This master controller writes to a disk group with described random number according to the one first connection level that disposes; Described random number is sent to a slave controller; This slave controller is read described random number according to the connection level of one second configuration in this disk group; And judge whether this second configuration conforms to this first configuration.
Description of drawings
For above and other objects of the present invention, feature, advantage and embodiment can be become apparent, being described in detail as follows of appended accompanying drawing:
Fig. 1 is the synoptic diagram of judgement system of the disk connecting level of double-backup memory of the present invention;
Fig. 2 is the flow chart of steps of determination methods of the disk connecting level of double-backup memory of the present invention.
[primary clustering symbol description]
100: the judgement system of disk connecting level
110: master controller
111: the numerical value writing module
120: slave controller
121: reading module
130: disk group
131~130n: disk
Configuration in 140: the first
Configuration in 150: the second
200~240: method step
Embodiment
The present invention is a kind of judgement System and method for of disk connecting level of double-backup memory.Below cooperate the icon preferred embodiment of the judgement system of explanation disk connecting level of the present invention earlier, use the inventive method technology again, describe the steps flow chart of the determination methods of disk connecting level of the present invention in detail.
Fig. 1 is the synoptic diagram of judgement system of the disk connecting level of double-backup memory of the present invention.As shown in the figure, the judgement system 100 of the disk connecting level of double-backup memory of the present invention is to be applied to have in the double-backup memory of a master controller 110, a slave controller 120 and a disk group 130.Master controller 110 is master (Master) who produces according to an established rule in this double-backup memory and the central controller that concerns from (Slave) with slave controller 120, and both can provide backup mutually in this storer.(the JBOD of linear extension disk group that disk group 130 can be formed for the disk 131~130n by a plurality of physical hard disks (physical disk drives), Just a Bunch of Drives), wherein said disk 131~130n all is connected to master controller 110 and slave controller 120, can be respectively for master controller 110 accesses or for slave controller 120 accesses.And each the described disk 131~130n in the disk group 130 is to be connected to master controller 110 with first configuration, 140 the order of connection, and is connected to slave controller 120 with the order of connection of second configuration 150 again simultaneously.In addition, in master controller 110, have numerical value writing module 111, can provide to produce a plurality of random numbers, and described random number is write to described disk 131~130n.In slave controller 120, then have reading module 121, can in described disk 131~130n, read described random number, and provide second configuration 150 of judging described disk 131~130n whether to conform to first configuration 140.
Wherein, master controller 110 is by numerical value writing module 111, described random number is write to described disk 131~130n in regular turn, and because of being writes to described disk 131~130n by master controller 110, therefore described random number has the order of this first configuration 140.And numerical value writing module 111 also can be sent to reading module 121 with this random number that produces, with the foundation as the postorder contrast.Slave controller 120 is read described random number by reading module 121 in described disk 131~130n, therefore described random number has the order of this second configuration 150.So, the reading module 121 of slave controller 120, can see through the ordered series of numbers that contrast has the described random number of second configuration, 150 orders,, whether conform to first configuration 140 to judge second configuration 150 with the ordered series of numbers of described random number with first configuration, 140 orders.If do not conform to, it is inconsistent with the order of connection that is connected to slave controller 120 to represent that then disk 131~130n is connected to master controller 110, so slave controller 120 promptly stops the backup functionality to this master controller 110.
Fig. 2 is the flow chart of steps of determination methods of the disk connecting level of double-backup memory of the present invention.As shown in the figure, the determination methods of disk connecting level of the present invention, at first, see through master controller 110 and produce a plurality of random numbers (step 200), and the ordered series of numbers that will have a described random number of these first configuration, 140 orders is sent to slave controller 120 (step 210).Then, master controller 110 writes to disk group 130 (step 220) with described random number according to first configuration, 140 connection level.Treat described random number write finish after, slave controller 120 is read described random number (step 230) with the connection level of one second configuration 150 in disk group 130, therefore can obtain one and have the ordered series of numbers that this second configuration 150 described random number is in proper order formed.Then, judge whether this second configuration 150 conforms to (step 240) with this first configuration 140, promptly see through the ordered series of numbers that contrasts described random number and judge with the mode of ordered series of numbers with this first configuration 140 described random number in proper order with these second configuration, 150 orders.And the judged result of above-mentioned steps 240, if this second configuration 150 does not conform to this first configuration 140, then represent described disk 131~130n and master controller 110, slave controller 120 to be connected level inconsistent, if still the master and slave controller with this situation backs up, the mistake of data access will take place, and causes the damage or the loss of data.Therefore, should stop the backup functionality (step 250) of 120 pairs of these master controllers 110 of slave controller, allow all working all temporarily be responsible for, be excluded up to this situation by master controller.So, can guarantee the stability that the data access of storer backs up mutually.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (13)

1. the judgement system of the disk connecting level of a double-backup memory is characterized in that, comprises at least:
One disk group is made up of a plurality of disks by physical hard disk, for access data;
One master controller, with the described disk to this disk group of being linked in sequence of one first configuration, with access data in this disk group;
One slave controller, the described disk to this disk group of being linked in sequence with one second configuration can provide the backup of this master controller, with access data in this disk group;
One numerical value writing module is located at this master controller, in order to producing a plurality of random numbers, and described random number is write to described disk in regular turn; And
Whether one reading module is located at this slave controller, reads described random number by this slave controller with the connection level of this second configuration in described disk, provide this second configuration of judging described disk to conform to this first configuration.
2. the judgement system of disk connecting level according to claim 1 is characterized in that, this disk group is a linear extension disk group.
3. the judgement system of disk connecting level according to claim 1 is characterized in that, this numerical value writing module also comprises the described random number that it is produced and is sent to this reading module.
4. the judgement system of disk connecting level according to claim 1 is characterized in that, is write the described random number of described disk in regular turn, has the order of this first configuration.
5. the judgement system of disk connecting level according to claim 4 is characterized in that, the described random number that is read out in described disk has the order of this second configuration.
6. the judgement system of disk connecting level according to claim 5, it is characterized in that, whether this reading module is the described random number and the described random number with this first configuration sequence that has this second configuration sequence by contrast, conform to this first configuration to judge this second configuration.
7. the judgement system of disk connecting level according to claim 1 is characterized in that, this reading module does not conform to this first configuration as if judging this second configuration, also comprises to stop the backup functionality of this slave controller to this master controller.
8. the determination methods of the disk connecting level of a double-backup memory is characterized in that, comprises step at least:
See through a master controller and produce a plurality of random numbers;
This master controller writes to a disk group with described random number according to the one first connection level that disposes;
Described random number is sent to a slave controller;
This slave controller is read described random number according to the connection level of one second configuration in this disk group; And
Judge whether this second configuration conforms to this first configuration.
9. the determination methods of disk connecting level according to claim 8, it is characterized in that, this disk group is by a plurality of linear extension disk groups that form for the disk of physical hard disk, described disk all is connected to this master controller and this slave controller, can be respectively for this master controller access or for this slave controller access.
10. the determination methods of disk connecting level according to claim 9 is characterized in that, this first configuration is meant that each described disk in this disk group is connected to the order of connection of this master controller.
11. the determination methods of disk connecting level according to claim 9 is characterized in that, this second configuration is meant that each described disk in this disk group is connected to the order of connection of this slave controller.
12. the determination methods of disk connecting level according to claim 8, it is characterized in that, judging this second configuration and the step whether this first configuration conforms to, is to see through the described random number and the described random number with this first configuration sequence that contrast has this second configuration sequence.
13. the determination methods of disk connecting level according to claim 8, it is characterized in that, judge this second configuration and this step of whether conforming to of first configuration, do not conform to, also comprise and stop the step of this slave controller the backup functionality of this master controller as if being judged as.
CN2008100897702A 2008-04-10 2008-04-10 System and method for judging disk connecting level of double-backup memory Expired - Fee Related CN101556527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100897702A CN101556527B (en) 2008-04-10 2008-04-10 System and method for judging disk connecting level of double-backup memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100897702A CN101556527B (en) 2008-04-10 2008-04-10 System and method for judging disk connecting level of double-backup memory

Publications (2)

Publication Number Publication Date
CN101556527A CN101556527A (en) 2009-10-14
CN101556527B true CN101556527B (en) 2010-10-27

Family

ID=41174652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100897702A Expired - Fee Related CN101556527B (en) 2008-04-10 2008-04-10 System and method for judging disk connecting level of double-backup memory

Country Status (1)

Country Link
CN (1) CN101556527B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325488A (en) * 1990-03-08 1994-06-28 Bull S.A. Peripheral mass memory subsystem have identical controllers connected to two parallel buses for accessing disk memory banks, solid-state disks, and cache memories
CN1601484A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Disk data backup system and method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325488A (en) * 1990-03-08 1994-06-28 Bull S.A. Peripheral mass memory subsystem have identical controllers connected to two parallel buses for accessing disk memory banks, solid-state disks, and cache memories
CN1601484A (en) * 2003-09-23 2005-03-30 华为技术有限公司 Disk data backup system and method thereof

Also Published As

Publication number Publication date
CN101556527A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN101625627B (en) Data read-in method, disc redundant array and controller thereof
CN102945212B (en) Collect zoning and expression
CN101582076A (en) Data de-duplication method based on data base
US20150193473A1 (en) Database Storage System based on Optical Disk and Method Using the System
CN103136074A (en) Data storage method and data storage system of multiple disk array systems
CN102033793A (en) Snapshot method and solid-state hard disk
JP2010079526A5 (en)
CN103019623A (en) Memory disc processing method and device
CN103092765B (en) Solid-state memory system, device and method for writing data
CN102226892B (en) Disk fault tolerance processing method and device thereof
CN101984400A (en) RAID control method, device and system
CN106095330B (en) A kind of storage method and device of metadata
CN103823641B (en) The virtual volume system of a kind of on-line rapid estimation and its implementation
CN102314321A (en) Storage system and method and device for accessing data by using same
CN102520885B (en) Data management system for hybrid hard disk
CN102981977A (en) Data storage method capable of prolonging service life of abode flash player (FLASH)
CN111737162A (en) Solid state disk using method for quickly recovering data and computer readable storage medium
CN103309619A (en) NAND Flash memory data storage method
CN109669621A (en) A kind of file management method, file management system, electronic equipment and storage medium
CN104932830A (en) Information processing method and electronic device
CN101556527B (en) System and method for judging disk connecting level of double-backup memory
CN101661378B (en) Disk array 1 system and reading method for improving reading efficiency
CN102681918B (en) Data storage and backup method and device
CN109597587A (en) A kind of method for writing data, medium and Nonvolatile memory
CN207557929U (en) Available for realizing the low capacity OTPROM memories and chip of fault tolerance

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
CB03 Change of inventor or designer information

Inventor after: Wei Hongli

Inventor after: Jiang Lina

Inventor after: Li Xiaofu

Inventor after: Li Yanyan

Inventor before: Chen Zhiwei

Inventor before: Lu Xiaofen

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20170328

Address after: Huanan County town of Jiamusi city of Heilongjiang province Huanan struggle community seven Committee 1 Group No. 337

Patentee after: Wei Hongli

Patentee after: Jiang Lina

Patentee after: Li Xiaofu

Patentee after: Li Yanyan

Address before: Taipei City, Taiwan Chinese Shilin District Hougang Street No. sixty-six

Patentee before: Inventec Corporation

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101027

Termination date: 20170410

CF01 Termination of patent right due to non-payment of annual fee