CN105700976A - Detection method and apparatus for exception processing mechanism of diskette array system - Google Patents

Detection method and apparatus for exception processing mechanism of diskette array system Download PDF

Info

Publication number
CN105700976A
CN105700976A CN201511017429.2A CN201511017429A CN105700976A CN 105700976 A CN105700976 A CN 105700976A CN 201511017429 A CN201511017429 A CN 201511017429A CN 105700976 A CN105700976 A CN 105700976A
Authority
CN
China
Prior art keywords
floppy disc
array system
disc array
disk
present day
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.)
Pending
Application number
CN201511017429.2A
Other languages
Chinese (zh)
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201511017429.2A priority Critical patent/CN105700976A/en
Publication of CN105700976A publication Critical patent/CN105700976A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Embodiments of the present invention provide a detection method and apparatus for an exception processing mechanism of a diskette array system. The method comprises: selecting an operating disk in a diskette array system as a current simulation fault disk, and simulating the current simulation fault disk entering a fault state; removing the current simulation fault disk out of the diskette array system, connecting a standby disk into a slot of the current simulation fault disk, and reconstructing a diskette array system; and determining whether the reconstructed diskette array system can normally operate, and if no, determining that a diskette array exception processing mechanism is abnormal, and if yes, selecting another operating disk as a next simulation fault disk. It can be known previously whether the diskette array system can normally operate after replacing a fault operating disk with a standby disk, so that operating stability of the diskette array system is improved, and the application risk is reduced.

Description

A kind of floppy disc array system exception handling detection method and device
Technical field
The present invention relates to field, particularly relate to a kind of floppy disc array system exception handling detection method and device。
Background technology
Disk array (RAID, RedundantArrayofIndependentDisks) it is that the working disks (physical disk) of a kind of polylith independence combines to form a disk group (logic magnetic disc) differently, thus providing the memory property higher than single disk and providing the technology of data redundancy, there is hard RAID and software PLC both of which。Adopt disk array technology some low capacity physical disks can be formed a Large Copacity virtual memory facilities, improve the read-write efficiency of physical store, or provide redundancy to improve the safety of data storage。
At present, when in floppy disc array system, certain working disks breaks down, this floppy disc array system will be chosen a backup diskette and substitute the working disks of this fault and be operated, thus ensureing the stability that this floppy disc array system works。But, after the working disks that certain backup diskette is replaced certain fault, this floppy disc array system still possibly cannot work, user can only in certain working disks fault, and replace the working disks of this fault with certain backup diskette after, just can learn after the working disks replacing certain fault with certain backup diskette floppy disc array system whether can normal operation, the job stability of floppy disc array system is relatively low, has bigger application risk。
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of floppy disc array system exception handling detection method and device, to solve in prior art after the working disks that certain backup diskette is replaced certain fault, this floppy disc array system still possibly cannot work, user can only in certain working disks fault, and replace the working disks of this fault with certain backup diskette after, just can learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation, the job stability of floppy disc array system is relatively low, has bigger application risk。
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of floppy disc array system exception handling detection method, including:
Choosing a working disks in floppy disc Array System is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette in the groove position of described present day analog failed disk, rebuild floppy disc array system;
Judge rebuild floppy disc array system can normal operation, if can not, it is determined that floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。
Wherein, choosing a working disks in floppy disc Array System described in is also include before present day analog failed disk:
All working disk is accessed floppy disc array system, starts described floppy disc array system;
Judge that can described floppy disc array system normal operation;
If can, then choosing a working disks in floppy disc array is present day analog failed disk。
Wherein, described access before floppy disc array system by all working disk also includes: install operating system in described floppy disc array system;
Can described judgement described floppy disc array system normal operation be: judges that can described floppy disc array system normal operation by judging that can described operating system normally start, if described operating system can normally start, it is determined that described floppy disc array system energy normal operation。
Wherein, described to choose a working disks in floppy disc Array System be also include before present day analog failed disk: chooses a working disks for currently testing disk, floppy disc array system only accesses described current test disk, the floppy disc array system of described current test disk is only accessed described in startup, obtain described current test disk list and start test result, obtain another working disks for next test disk;
Also include after described reconstruction floppy disc array system: in floppy disc array system, only access described backup diskette, described in startup, only access the floppy disc array system of described backup diskette, obtain described backup diskette list and start test result。
Wherein, the number of described backup diskette is at least 2;
The described groove position in described present day analog failed disk also includes before accessing a backup diskette: chooses arbitrary backup diskette in all backup diskettes or chooses the backup diskette that described present day analog failed disk is corresponding in all backup diskettes, the backup diskette chosen described in accessing in the groove position of described present day analog failed disk。
Wherein, access a backup diskette in the groove position of described present day analog failed disk to include:
Described backup diskette being carried out multidomain treat-ment, obtains backup diskette after subregion, after described subregion, the partitioned organization of backup diskette and the partitioned organization of working disks are identical;
Backup diskette after described subregion is formatted process, and Multi-zone disk after being formatted, after described formatting, the file system format of Multi-zone disk and the file system format of working disks are identical;
Floppy disc partition identification is added for backup diskette after described formatting。
Wherein, also include before described reconstruction floppy disc array system:
Judge that whether the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks;
If so, floppy disc array system is then rebuild。
A kind of floppy disc array system exception handling detecting device, including: simulated failure module, standby AM access module and judge module, wherein,
Described simulated failure module, being used for choosing in floppy disc array a working disks is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Described standby AM access module, for described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette, rebuilds floppy disc array system in the groove position of described present day analog failed disk;
Described judge module, for judge rebuild floppy disc array system can normal operation, if can not, it is determined that floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。
Wherein, described floppy disc array system exception handling detecting device also includes: starts test module, for all working disk is accessed floppy disc array system, starts described floppy disc array system, it is judged that can described floppy disc array system normal operation;
Described simulated failure module is after described startup detection module judges described floppy disc array system energy normal operation, and choosing a working disks in floppy disc array is present day analog failed disk。
Wherein, described floppy disc array system exception handling detecting device also includes: singly start detection module, for choosing a working disks for currently testing disk, floppy disc array system only accesses described current test disk, the floppy disc array system of described current test disk is only accessed described in startup, obtain described current test disk list and start test result, obtain another job evaluation for next test disk;And after floppy disc array system is rebuild in described standby AM access module, floppy disc array system only accesses described backup diskette, described in startup, only accesses the floppy disc array system of described backup diskette, obtain described backup diskette list and start test result。
Based on technique scheme, the floppy disc array system exception handling detection method of embodiment of the present invention offer and device, choosing a working disks in floppy disc array is present day analog failed disk, simulation present day analog failed disk enters malfunction, then this present day analog failed disk is removed this floppy disc array system, a backup diskette is accessed in the groove position of simulated failure disk in this prior, rebuild floppy disc array system, judge that can the floppy disc array system rebuild normal operation, if can not, then illustrate that this floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。Can simulation test when in floppy disc array system certain working disks fault and when replacing with certain backup diskette, can this floppy disc array system normal operation, learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation in advance, improve the job stability of floppy disc array system, and reduce application risk。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided。
The flow chart of the floppy disc array system exception handling detection method that Fig. 1 provides for the embodiment of the present invention;
The floppy disc array system exception handling detection method that Fig. 2 provides for the embodiment of the present invention starts the method flow diagram of detection;
The floppy disc array system exception handling detection method that Fig. 3 provides for the embodiment of the present invention accesses the method flow diagram of a backup diskette in the groove position of present day analog failed disk;
The floppy disc array system exception handling detection method that Fig. 4 provides for the embodiment of the present invention is rebuild the method flow diagram of floppy disc array system;
The system block diagram of the floppy disc array system exception handling detecting device that Fig. 5 provides for the embodiment of the present invention;
Another system block diagram of the floppy disc array system exception handling detecting device that Fig. 6 provides for the embodiment of the present invention;
The another system block diagram of the floppy disc array system exception handling detecting device that Fig. 7 provides for the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
The flow chart of the floppy disc array system exception handling detection method that Fig. 1 provides for the embodiment of the present invention, can simulation test when in floppy disc array system certain working disks fault and when replacing with certain backup diskette, can this floppy disc array system normal operation, learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation in advance, improve the job stability of floppy disc array system, and reduce application risk;With reference to Fig. 1, this floppy disc array system exception handling detection method may include that
Step S100: choosing a working disks in floppy disc array is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Optionally, this present day analog failed disk can be simulated enter malfunction by present day analog failed disk subregion in floppy disc array system being all labeled as fail。
Optionally, if system includes working disks sd1 and sd2, present day analog failed disk is sd2, sd1 subregion respectively sda1, sda2, sda3 and sda4 present day analog failed disk sd2 subregion respectively sdb1, sdb2, sdb3 and sdb4, respectively md0 (sda2 and sdb2), md1 (sda1 and sdb1), md2 (sda3 and sdb3) and md3 (sda4 and sdb4) are formatted as floppy disc array apparatus, then can pass through instruction " mdadm--manage/dev/md0--fail/dev/sdb2;Mdadm--manage/dev/md1--fail/dev/sdb1;Mdadm--manage/dev/md2--fail/dev/sdb3;Mdadm--manage/dev/md3--fail/dev/sdb4 ", present day analog failed disk subregion in floppy disc array system is all labeled as fail and enters malfunction to simulate this present day analog failed disk。
Optionally, in choosing floppy disc array, a working disks is before present day analog failed disk, also all working disk should be accessed floppy disc array system, and start floppy disc array system, can start judge after floppy disc array system this floppy disc array system can normal operation, choosing a working disks in floppy disc array after determining this floppy disc array system energy normal operation is present day analog failed disk。
Optionally, before all working disk is accessed floppy disc array system, operating system also can be installed in this floppy disc array system, then pass through and judge that can this operating system normally start to judge that can this floppy disc array system normal operation。If this operating system can normally start, it is determined that this floppy disc array system energy normal operation, anyway, it is determined that this floppy disc array system cisco unity malfunction。
Optionally, can pass through to access the USB flash drive 2 of a USB flash drive 1 including operating system installation file and a sky, after USB flash drive 1 internal operating system is installed, then file in USB flash drive 2 is copied in disk, to install operating system in this floppy disc array system。Wherein, in USB flash drive 2, file obtains after installation file for installing in USB flash drive 1。
Optionally, after being installed by USB flash drive 1 internal operating system, can extracting USB flash drive 1, file copies to after in disk in by USB flash drive 2, can extract USB flash drive 2。
Optionally, can be floppy disc array apparatus by utilizing " mkfs.vfat/dev/md2 " command format md2。After having been formatted by md2, available order " ddif=/dev/sde1of=/dev/md2 " is carried out file in USB flash drive 2 and is copied in md2。File copies to after in md2 in by USB flash drive 2, also should revise/etc/fstab content。
Optionally, in choosing floppy disc array, a working disks is before present day analog failed disk, also can singly start test, choose any operative disk for currently testing disk, then in floppy disc array system, only access test disk before deserving, start and only access the floppy disc array system deserving front test disk, obtain described current test disk list and start test result。Can test, by single startup, the situation that in imitation soft-magnetic disk array system, other disks all break down except current test disk。
If only access should start successfully by the front floppy disc array system testing disk, then the list startup test result obtaining front testing disk is successfully, and illustrating also can normal operation when system only accesses and front should test disk;Otherwise, if only access should fail to start successfully by the front floppy disc array system testing disk, then obtaining deserving the front list startup test result testing disk is identify, illustrating cannot normal operation when system only accesses and front should test disk。Starting after test result obtaining currently test disk list, obtain another working disks for next test disk, to this, next test disk singly starts test, until the startup test of all working disk list completes。
Such as, if system includes working disks sd1 and sd2, then can arranging sd1 in place, sd2 is not in place, starts floppy disc array system, simulates sd2 failure condition, and the list carrying out sd1 starts test。If sd1 is in place, floppy disc array system energy normal operation when sd2 is not in place, then illustrate that mono-startup of sd1 is successfully tested, afterwards, then it is in place to arrange sd2, and sd1 is not in place, starts floppy disc array system, and the list carrying out sd2 starts test。
Optionally, after carrying out single startup test, also two pieces of working disks should be turned back to simultaneously, simultaneously, after normally starting the operating system, occurring that floppy disc array system loses the situation of subregion, available order " mdadm--add/dev/md1/dev/sdb1 " recovers disk array information。
Optionally, synchronize can restart after recovery completes system at disk array information, and by ordering " cat/proc/mdstat " to verify whether floppy disc Array System has rebuild。
Step S110: described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette in the groove position of described present day analog failed disk, rebuilds floppy disc array system;
Optionally, if present day analog failed disk is sd2, then can pass through to order " mdadm--manage/dev/md0--remove/dev/sdb2;Mdadm--manage/dev/md1--remove/dev/sdb1;Mdadm--manage/dev/md2--remove/dev/sdb3;Mdadm--manage/dev/md3--remove/dev/sdb4 ", sdb is fallen at the whole remove of subregion of floppy disc array system, realizes present day analog failed disk is removed floppy disc array system。
Optionally, after described present day analog failed disk is removed described floppy disc array system, this present day analog failed disk can be extracted。
Optionally, after a backup diskette is accessed in the groove position of present day analog failed disk, can by judging whether that recognizing this backup diskette judges whether this backup diskette is successfully accessed, if recognizing, then determine that this backup diskette is successfully accessed, otherwise, then it is assumed that this backup diskette is not successfully accessed, again access this backup diskette, rebuild floppy disc array system determining again after this backup diskette is successfully accessed。
Optionally, backup diskette system that is general and that access will recognize automatically, if system cannot recognize the backup diskette of access automatically, then can pass through to input instruction " echo--->/sys/class/scsi_host/host1/scan " and carry out manual identification backup diskette。
Optionally, the number of the backup diskette that can include in floppy disc array system can be at least 2, before a backup diskette is accessed in the groove position of present day analog failed disk, backup diskette to be accessed can be chosen in all backup diskettes, this backup diskette to be accessed is accessed the groove position of present day analog failed disk, namely substitutes this present day analog failed disk and be operated。
Optionally, can pass through in all backup diskettes, choose arbitrary backup diskette and be used as backup diskette to be accessed, also can choose the corresponding backup diskette of this present day analog failed disk in all backup diskettes as backup diskette to be accessed, access this backup diskette chosen in the groove position of present day analog failed disk。
Optionally, according to the partitioned organization of working disks, backup diskette can be carried out multidomain treat-ment, obtain backup diskette after subregion, make the partitioned organization of backup diskette after this subregion identical with the partitioned organization of working disks, then according to the file system format of working disks, backup diskette after subregion is formatted process, Multi-zone disk after being formatted, make the file system format of Multi-zone disk after this formatting identical with the file system format of working disks, it is finally that after this formatting, backup diskette adds floppy disc partition identification, a backup diskette is accessed in the groove position of present day analog failed disk。
Optionally, before rebuilding floppy disc array system, can first judge that whether the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks, when the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks, rebuild floppy disc array system。
Optionally, can pass through to order " mdadm manage/dev/md0--add/dev/sdb2;Mdadm--manage/dev/md1--add/dev/sdb1;Mdadm--manage/dev/md2--add/dev/sdb3;Mdadm--manage/dev/md3--add/dev/sdb4 " rebuild floppy disc array system。
Optionally, in rebuilding floppy disc array system, floppy disc array system rebuilds progress to utilize order " mdadm D/dev/md " to check。
Step S120: judge that can the floppy disc array system rebuild normal operation;
Step S130: if can not, it is determined that floppy disc array exception handling is abnormal;
Step S140: if can, then choosing another working disks is next simulated failure disk。
After rebuilding floppy disc array system, can the floppy disc array system can rebuild by starting the floppy disc array system of this reconstruction to judge normal operation, if can not, then illustrate that floppy disc array exception handling is abnormal, work is proceeded to the working disks substituting this fault when certain backup diskette cannot be utilized after certain working disks fault, if can, then continuing to choose another working disks is next simulated failure disk, simulate this next simulated failure disk and enter malfunction, if to the equal simulated failure of all working disk in this floppy disc array system, and after utilizing backup diskette to be replaced, this floppy disc array system all can normal operation, then think that this floppy disc array system exception handling is normal。
Optionally, after floppy disc array system has been rebuild, can be open to traffic execution " cat/proc/mdstat ", can check whether to obtain to perform floppy disc array system that result judges to rebuild normal operation, if obtaining performing result, then determine reconstruction floppy disc array system can normal operation, otherwise, it is determined that the floppy disc array system of reconstruction cannot normal operation。
Based on technique scheme, the floppy disc array system exception handling detection method of embodiment of the present invention offer and device, choosing a working disks in floppy disc array is present day analog failed disk, simulation present day analog failed disk enters malfunction, then this present day analog failed disk is removed this floppy disc array system, a backup diskette is accessed in the groove position of simulated failure disk in this prior, rebuild floppy disc array system, judge that can the floppy disc array system rebuild normal operation, if can not, then illustrate that this floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。Can simulation test when in floppy disc array system certain working disks fault and when replacing with certain backup diskette, can this floppy disc array system normal operation, learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation in advance, improve the job stability of floppy disc array system, and reduce application risk。
Optionally, Fig. 2 illustrates the method flow diagram starting detection in the floppy disc array system exception handling detection method that the embodiment of the present invention provides;With reference to Fig. 2, the method for this startup detection may include that
Step S200: all working disk is accessed floppy disc array system, starts described floppy disc array system;
Step S210: judge that can described floppy disc array system normal operation;
Before imitation soft-magnetic disk array system working disks fault, need this floppy disc array system itself fault-free, in order to avoid abnormal sound testing result, therefore, in choosing floppy disc array, a working disks is before present day analog failed disk, need first all working disk to be accessed floppy disc array system, and start floppy disc array system, it is judged that can this floppy disc array system normal operation。
Step S220: if can, then choosing a working disks in floppy disc array is present day analog failed disk。
If this floppy disc array system energy normal operation, then this floppy disc array system itself fault-free being described, can choose a working disks in this floppy disc array is present day analog failed disk, and this present day analog failed disk is carried out fault simulation;If this floppy disc array system cisco unity malfunction, then illustrate that this floppy disc array system itself has fault, needing first to repair fault, choosing a working disks in this floppy disc array again after repairing fault is present day analog failed disk, and this present day analog failed disk is carried out fault simulation。
Optionally, Fig. 3 illustrates the method flow diagram accessing a backup diskette in the floppy disc array system exception handling detection method that the embodiment of the present invention provides in the groove position of present day analog failed disk;With reference to Fig. 3, the method that should access a backup diskette in the groove position of present day analog failed disk may include that
Step S300: described backup diskette is carried out multidomain treat-ment, obtains backup diskette after subregion, and after described subregion, the partitioned organization of backup diskette and the partitioned organization of working disks are identical;
Optionally, if system includes working disks sd1 and sd2, present day analog failed disk is sd2, then sd2 is being removed floppy disc array system, after backup diskette is accessed, the drive that this backup diskette is identified will for sdb, and the sdb recognized is divided into the partitioned organization the same with sda by available parted order, and wherein Start and the End parameter of subregion inputs start and the end value that each subregion in sda is corresponding respectively。
Step S310: backup diskette after described subregion is formatted process, Multi-zone disk after being formatted, after described formatting, the file system format of Multi-zone disk and the file system format of working disks are identical;
Optionally, after obtaining subregion after backup diskette, can pass through to order " mkfs.ext3/dev/sdb1, mkswap/dev/sdb2, mkfs.vfat/dev/sdb3 " that the zoned format of sdb2 turns to the file system format that same sda correspondence subregion is same。
Step S320: add floppy disc partition identification for backup diskette after described formatting。
Optionally, can pass through to order " (parted) set1raidon;(parted) set2raidon;(parted) set3raidon;(parted) set4raidon " to add floppy disc partition identification for backup diskette after formatting。Wherein, 1,2,3 and 4 the Number of sda1, sda2, sda3 and sda4 is referred respectively to。
Optionally, Fig. 4 illustrates the method flow diagram rebuilding floppy disc array system in the floppy disc array system exception handling detection method that the embodiment of the present invention provides;With reference to Fig. 4, the method for this reconstruction floppy disc array system may include that
Step S400: judge that whether the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks;
Step S410: if so, then rebuild floppy disc array system。
Before rebuilding floppy disc array system, can first judge that whether the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks, if the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks, then rebuild floppy disc array system。
The floppy disc array system exception handling detection method that the embodiment of the present invention provides, can simulation test when in floppy disc array system certain working disks fault and when replacing with certain backup diskette, can this floppy disc array system normal operation, learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation in advance, improve the job stability of floppy disc array system, and reduce application risk。
The floppy disc array system exception handling the detecting device below embodiment of the present invention provided is introduced, and floppy disc array system exception handling detecting device described below and above-described floppy disc array system exception handling detection method can mutually to should refer to。
The system block diagram of the floppy disc array system exception handling detecting device that Fig. 5 provides for the embodiment of the present invention, with reference to Fig. 5, this floppy disc array system exception handling detecting device may include that simulated failure module 100, standby AM access module 200 and judge module 300, wherein
Simulated failure module 100, being used for choosing in floppy disc array a working disks is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Standby AM access module 200, for described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette, rebuilds floppy disc array system in the groove position of described present day analog failed disk;
Judge module 300, for judge rebuild floppy disc array system can normal operation, if can not, it is determined that floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。
Optionally, Fig. 6 illustrates another system block diagram of the floppy disc array system exception handling detecting device that the embodiment of the present invention provides, and with reference to Fig. 6, this floppy disc array system exception handling detecting device can also include: start test module 400。
Start test module 400, for all working disk is accessed floppy disc array system, start described floppy disc array system, it is judged that can described floppy disc array system normal operation;
Described simulated failure module is after described startup detection module judges described floppy disc array system energy normal operation, and choosing a working disks in floppy disc array is present day analog failed disk。
Optionally, Fig. 7 illustrates the another system block diagram of the floppy disc array system exception handling detecting device that the embodiment of the present invention provides, and with reference to Fig. 7, this floppy disc array system exception handling detecting device can also include: single start detection module 500。
Singly start detection module, for choosing a working disks for currently testing disk, floppy disc array system only accesses described current test disk, the floppy disc array system of described current test disk is only accessed described in startup, obtain described current test disk list and start test result, obtain another job evaluation for next test disk;And after floppy disc array system is rebuild in described standby AM access module, floppy disc array system only accesses described backup diskette, described in startup, only accesses the floppy disc array system of described backup diskette, obtain described backup diskette list and start test result。
The floppy disc array system exception handling detecting device that the embodiment of the present invention provides, can simulation test when in floppy disc array system certain working disks fault and when replacing with certain backup diskette, can this floppy disc array system normal operation, learn after the working disks replacing certain fault with certain backup diskette that floppy disc array system whether can normal operation in advance, improve the job stability of floppy disc array system, and reduce application risk。
In this specification, each embodiment adopts the mode gone forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually referring to。For device disclosed in embodiment, owing to it corresponds to the method disclosed in Example, so what describe is fairly simple, relevant part illustrates referring to method part。
Professional further appreciates that, the unit of each example described in conjunction with the embodiments described herein and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate the interchangeability of hardware and software, generally describe composition and the step of each example in the above description according to function。These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme。Professional and technical personnel specifically can should be used for using different methods to realize described function to each, but this realization is it is not considered that beyond the scope of this invention。
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention。The multiple amendment of these embodiments be will be apparent from for those skilled in the art, and generic principles defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments。Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty。

Claims (10)

1. a floppy disc array system exception handling detection method, is wherein in that, including:
Choosing a working disks in floppy disc Array System is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette in the groove position of described present day analog failed disk, rebuild floppy disc array system;
Judge rebuild floppy disc array system can normal operation, if can not, it is determined that floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。
2. floppy disc array system exception handling detection method according to claim 1, it is characterised in that described in choose a working disks in floppy disc Array System be also include before present day analog failed disk:
All working disk is accessed floppy disc array system, starts described floppy disc array system;
Judge that can described floppy disc array system normal operation;
If can, then choosing a working disks in floppy disc array is present day analog failed disk。
3. floppy disc array system exception handling detection method according to claim 1, it is characterised in that
Described access before floppy disc array system by all working disk also includes: install operating system in described floppy disc array system;
Can described judgement described floppy disc array system normal operation be: judges that can described floppy disc array system normal operation by judging that can described operating system normally start, if described operating system can normally start, it is determined that described floppy disc array system energy normal operation。
4. floppy disc array system exception handling detection method according to claim 1, it is characterised in that
Described to choose a working disks in floppy disc Array System be also include before present day analog failed disk: chooses a working disks for currently testing disk, floppy disc array system only accesses described current test disk, the floppy disc array system of described current test disk is only accessed described in startup, obtain described current test disk list and start test result, obtain another working disks for next test disk;
Also include after described reconstruction floppy disc array system: in floppy disc array system, only access described backup diskette, described in startup, only access the floppy disc array system of described backup diskette, obtain described backup diskette list and start test result。
5. floppy disc array system exception handling detection method according to claim 1, it is characterised in that
The number of described backup diskette is at least 2;
The described groove position in described present day analog failed disk also includes before accessing a backup diskette: chooses arbitrary backup diskette in all backup diskettes or chooses the backup diskette that described present day analog failed disk is corresponding in all backup diskettes, the backup diskette chosen described in accessing in the groove position of described present day analog failed disk。
6. floppy disc array system exception handling detection method according to claim 1, it is characterised in that access a backup diskette in the groove position of described present day analog failed disk and include:
Described backup diskette being carried out multidomain treat-ment, obtains backup diskette after subregion, after described subregion, the partitioned organization of backup diskette and the partitioned organization of working disks are identical;
Backup diskette after described subregion is formatted process, and Multi-zone disk after being formatted, after described formatting, the file system format of Multi-zone disk and the file system format of working disks are identical;
Floppy disc partition identification is added for backup diskette after described formatting。
7. floppy disc array system exception handling detection method according to claim 1, it is characterised in that also include before described reconstruction floppy disc array system:
Judge that whether the backup diskette accessing floppy disc array system is all consistent with subregion Number, Start and End parameter of working disks;
If so, floppy disc array system is then rebuild。
8. a floppy disc array system exception handling detecting device, is wherein in that, including: simulated failure module, standby AM access module and judge module, wherein,
Described simulated failure module, being used for choosing in floppy disc array a working disks is present day analog failed disk, simulates described present day analog failed disk and enters malfunction;
Described standby AM access module, for described present day analog failed disk is removed described floppy disc array system, accesses a backup diskette, rebuilds floppy disc array system in the groove position of described present day analog failed disk;
Described judge module, for judge rebuild floppy disc array system can normal operation, if can not, it is determined that floppy disc array exception handling is abnormal, if can, then choosing another working disks is next simulated failure disk。
9. floppy disc array system exception handling detecting device according to claim 8, it is characterized in that, also include: start test module, for all working disk is accessed floppy disc array system, start described floppy disc array system, it is judged that can described floppy disc array system normal operation;
Described simulated failure module is after described startup detection module judges described floppy disc array system energy normal operation, and choosing a working disks in floppy disc array is present day analog failed disk。
10. floppy disc array system exception handling detecting device according to claim 8, it is characterized in that, also include: singly start detection module, for choosing a working disks for currently testing disk, floppy disc array system only accesses described current test disk, only access the floppy disc array system of described current test disk described in startup, obtain described current test disk list and start test result, obtain another job evaluation for next test disk;And after floppy disc array system is rebuild in described standby AM access module, floppy disc array system only accesses described backup diskette, described in startup, only accesses the floppy disc array system of described backup diskette, obtain described backup diskette list and start test result。
CN201511017429.2A 2015-12-29 2015-12-29 Detection method and apparatus for exception processing mechanism of diskette array system Pending CN105700976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017429.2A CN105700976A (en) 2015-12-29 2015-12-29 Detection method and apparatus for exception processing mechanism of diskette array system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017429.2A CN105700976A (en) 2015-12-29 2015-12-29 Detection method and apparatus for exception processing mechanism of diskette array system

Publications (1)

Publication Number Publication Date
CN105700976A true CN105700976A (en) 2016-06-22

Family

ID=56225974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017429.2A Pending CN105700976A (en) 2015-12-29 2015-12-29 Detection method and apparatus for exception processing mechanism of diskette array system

Country Status (1)

Country Link
CN (1) CN105700976A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193700A (en) * 2017-05-22 2017-09-22 郑州云海信息技术有限公司 A kind of method that RAID card rebuild and hot-backup function are tested by simulated failure hard disk
CN112463472A (en) * 2020-10-30 2021-03-09 苏州浪潮智能科技有限公司 Automatic testing method and device for disk array, electronic equipment and storage medium
CN117312054A (en) * 2023-10-30 2023-12-29 广州鼎甲计算机科技有限公司 Target data recovery method and device of disk array and computer equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201763A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method and system for testing reliably alternation dispersion storage mode of magnetic disc array device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201763A (en) * 2006-12-14 2008-06-18 英业达股份有限公司 Method and system for testing reliably alternation dispersion storage mode of magnetic disc array device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193700A (en) * 2017-05-22 2017-09-22 郑州云海信息技术有限公司 A kind of method that RAID card rebuild and hot-backup function are tested by simulated failure hard disk
CN112463472A (en) * 2020-10-30 2021-03-09 苏州浪潮智能科技有限公司 Automatic testing method and device for disk array, electronic equipment and storage medium
CN117312054A (en) * 2023-10-30 2023-12-29 广州鼎甲计算机科技有限公司 Target data recovery method and device of disk array and computer equipment
CN117312054B (en) * 2023-10-30 2024-05-14 广州鼎甲计算机科技有限公司 Target data recovery method and device of disk array and computer equipment

Similar Documents

Publication Publication Date Title
CN103970481B (en) The method and apparatus rebuilding memory array
US6442709B1 (en) System and method for simulating disaster situations on peer to peer remote copy machines
US5574855A (en) Method and apparatus for testing raid systems
US7721142B2 (en) Copying procedures including verification in data networks
CN106776122A (en) A kind of method of main-apparatus protection in start-up course based on Flash
CN104461791B (en) Information processing method and device
CN111274077A (en) Disk array reliability testing method, system, terminal and storage medium
CN110187841A (en) A kind of method, apparatus and storage server of system management memory disk
CN110399247A (en) A kind of data reconstruction method, device, equipment and computer readable storage medium
JP2006172320A (en) Data duplication controller
CN105700976A (en) Detection method and apparatus for exception processing mechanism of diskette array system
CN115657965B (en) Method, device and medium for configuring metadata
CN109408088A (en) CPLD upgrade method, device, system and computer readable storage medium
CN110502386B (en) Method and device for diagnosing faults of hard disk on line
CN1504893A (en) Hard disk data controlling method
CN105868047A (en) Repairing method and device of data partition, and terminal
CN112463472B (en) Automatic testing method and device for disk array, electronic equipment and storage medium
US20090192780A1 (en) Hardware emulation using on-the-fly virtualization
CN102520880B (en) System raid management module design method
JP2006268502A (en) Array controller, media error restoring method and program
JP2012509533A (en) Apparatus, method, and computer program for operating mirrored disk storage system
JP2868001B1 (en) Disk array device control method and disk array device
CN109117190A (en) System start method and device
JP2008084168A (en) Information processor and data restoration method
CN111209146B (en) RAID card aging test method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622

RJ01 Rejection of invention patent application after publication