CN106648947A - Method and device for testing storage device with multiple controllers - Google Patents

Method and device for testing storage device with multiple controllers Download PDF

Info

Publication number
CN106648947A
CN106648947A CN201611196787.9A CN201611196787A CN106648947A CN 106648947 A CN106648947 A CN 106648947A CN 201611196787 A CN201611196787 A CN 201611196787A CN 106648947 A CN106648947 A CN 106648947A
Authority
CN
China
Prior art keywords
controller
tested
operating system
storage device
controllers
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
Application number
CN201611196787.9A
Other languages
Chinese (zh)
Other versions
CN106648947B (en
Inventor
杨学龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihai Shengyun Technology Co Ltd
Original Assignee
Beihai Shengyun Technology 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 Beihai Shengyun Technology Co Ltd filed Critical Beihai Shengyun Technology Co Ltd
Priority to CN201611196787.9A priority Critical patent/CN106648947B/en
Publication of CN106648947A publication Critical patent/CN106648947A/en
Application granted granted Critical
Publication of CN106648947B publication Critical patent/CN106648947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0727Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a storage system, e.g. in a DASD or network based storage system
    • 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/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides a method and device for testing a storage device with multiple controllers. According to the technical scheme, in the process of testing the storage device with multiple controllers, part of the controllers which normally operate in the storage device with multiple controllers are adopted as work controllers, the work controllers are responsible for stable operation of the storage device system with multiple controllers, the rest controllers which operate normally are adopted as controllers to be tested, the controllers to be tested are subjected to restarting testing, the controllers to be tested of which restarting testing fails are subjected to marking, the controllers to be tested of which restarting testing succeeds enters the next round of testing. The method and device for testing the storage device with multiple controllers can improve testing efficiency with low cost.

Description

A kind of method and apparatus of test multi-controller storage device
Technical field
The present invention relates to technical field of data storage, the method and dress of more particularly to a kind of test multi-controller storage device Put.
Background technology
For the test of multi-controller storage device, the abnormality test of storage is the most key, is related to storage device system Abnormality processing situation in system running between controller, to realize high availability, does not affect business on line.
The method of testing for generally using at present is artificial plug controller, restarts controller or introduce third party's hardware Analog controller signal interruption.Wherein, the method for testing of controller relatively actually used situation is manually plugged, restarts, but Testing efficiency is very low;And the testing efficiency of the method for testing of introduction third party's hardware simulation controller signal interruption is higher, but It is to produce extra high cost.
The content of the invention
In view of this, it is an object of the invention to provide a kind of method and apparatus of test multi-controller storage device, energy It is enough that testing efficiency is improved with relatively low cost.
In order to achieve the above object, the invention provides following technical scheme:
A kind of method of test multi-controller storage device, including:
Step A, the controller kind from the normal operation of multi-controller storage device select working controller and control to be tested Device processed, keeps working controller normally to run and restart all controllers to be tested;
Step B, after the preset duration for restarting all controllers to be tested, detect whether each controller to be tested is equal Successfully start up, if all controllers to be tested are successfully started up, return execution step A, otherwise, execution step C;
Step C, the controller that the controller to be tested of unsuccessful startup is labeled as operation exception, if normal operation Controller number is not more than 1, then terminate testing process, and otherwise, return to step A is performed.
A kind of device of test multi-controller storage device, including:Select unit, start unit, detector unit, labelling list Unit;
The select unit, for selecting working controller in the controller of normal operation from multi-controller storage device With controller to be tested;
The start unit, for keeping working controller normally to run and restarting all controllers to be tested;
The detector unit, restarts after the preset duration of all controllers to be tested for start unit, detects that each is treated Whether test controller successfully starts up, if all controllers to be tested are successfully started up, it indicates that select unit is entered again Row selects working controller and controller to be tested, and otherwise, notification indicia unit enters to the controller to be tested of unsuccessful startup Row abnormal marking;
The indexing unit, for after the notice for receiving detector unit, by the controller mark to be tested of unsuccessful startup The controller of operation exception is designated as, if the controller number of normal operation is not more than 1, terminates testing process, otherwise, indicated Select unit re-starts selection working controller and controller to be tested.
From technical scheme above, in the present invention, in every wheel test, run just from multi-controller storage device Working controller and controller to be tested are selected in normal controller, treating test controller carries out restarting test, will restart into The controller to be tested of work(is tested as the controller of normal operation into next round, until only remaining 1 in control storage device more The controller of platform normal operation.The present invention can realize the abnormality test in the case of unmanned to multi-controller storage device, Reach simulated field and controller occur and restart troubleshooting, so as to improve the stability and testing efficiency of storage product.
Description of the drawings
Fig. 1 is the method flow diagram that the embodiment of the present invention tests multi-controller storage device;
Fig. 2 is the structural representation of the device of embodiment of the present invention test multi-controller storage device.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with the accompanying drawings and according to embodiment, Technical scheme is described in detail.
In the present invention, during test multi-controller storage device, by normal operation in multi-controller storage device Controller in segment controller as working controller, be responsible for the even running of multi-controller memory apparatus system, other The controller of normal operation carries out restarting test then as controller to be tested.
Referring to Fig. 1, Fig. 1 is the method flow diagram that the embodiment of the present invention tests multi-controller storage device, as shown in figure 1, The method is mainly included the following steps that:
Step 101, select from the controller of normal operation in multi-controller storage device working controller and to be tested Controller, keeps the normal operation of working controller and restarts all controllers to be tested.
In the present invention, in the control tested multi-controller storage device, the flat of multi-controller storage device need to be ensured Steady operation, still is able to process the I/O request of front end.For this purpose, it is normal to retain at least one of multi-controller storage device controller Work, while carrying out restarting test to remaining controller, thereby may be ensured that while testing multi-controller village equipment, Ensure that front end IO does not interrupt, whole multi-controller storage device normal work.
It is preferred that a controller is selected from the controller of normal operation in multi-controller storage device as work control Device processed, the controller of other normal operations is then as controller to be tested.Working controller is kept normally to run, so that many Controller storage device normal process front end I/O request, while all controllers to be tested are restarted, to carry out restarting test.
Step 102, after the preset duration for restarting all controllers to be tested, detect whether each controller to be tested equal Successfully start up, if all controllers to be tested are successfully started up, return execution step 101, otherwise, execution step 103;
After controller to be tested is restarted, after preset duration, success or not can be restarted to it and be detected, if All controllers to be tested are restarted successfully, then illustrate that test of the epicycle to multi-controller storage device passes through, under can continuing One wheel test, otherwise, needs execution further to process, referring in particular to step 103.
In the present embodiment, successfully started up with the operating system of controller to be tested and all starting up in the operating system Program normally starts, and as controller to be tested successfully mark is restarted, that is, detecting whether each controller to be tested is successful When starting (restarting), whether the operating system that need to detect each controller to be tested successfully starts up, and the controller to be tested Operating system in all starting up's programs whether normally start, if the operating system of the controller to be tested is successfully opened All starting up's programs normally start in the dynamic and operating system, it is determined that the controller to be tested is successfully started up, otherwise Determine the unsuccessful startup of the controller to be tested.
After the operating system of controller to be tested is successfully restarted, miscellaneous equipment can carry out proper communication with device to be controlled, In the present embodiment, by the ping messages to the IP address that controller sending destination location to be tested is the controller to be tested come Whether the operating system for detecting controller to be tested successfully starts up, if ping is logical, namely receives the controller to be tested Response message, then illustrate the controller to be tested can proper communication, it is thus determined that the operating system of the controller to be tested into Work(start, otherwise, illustrate the controller to be tested can not proper communication, it is thus determined that the operating system of the controller to be tested is not Successfully start up.
Under normal circumstances, authorized user can just log in controller, authorized user namely have been authorized to be used using certain The user of name in an account book and the code entry controller.
In order to whether all starting up's programs normally start in the operating system for detecting controller to be tested, need advance Obtain the user name and modification logging of each controller in multi-controller storage device;In the operation for detecting the controller to be tested When whether all starting up's programs normally start in system, only using the user name of the controller to be tested and need to log in close Code logs in the controller to be tested, it is possible to all starts in the controller to be tested are detected using the method for prior art Whether startup program has been turned on, and whether having been turned on of for example checking in the operating system of the controller to be tested includes in program All starting up's programs, are illustrate that all starting up's programs in the controller to be tested have been turned on, and otherwise, are said Starting up's program in the bright controller to be tested is not all normal to be started.
Step 103, the controller that the controller to be tested of unsuccessful startup is labeled as operation exception, if normal operation Controller number be not more than 1, then execution step 104, otherwise, return to step 101 is performed.
In the present embodiment, it is marked for successful controller to be tested is not restarted, in next round test, no longer joins With test, for successful controller to be tested is restarted, will test into next round as the controller of normal operation.
Step 104, end testing process.
From above method as can be seen that in the present embodiment, to the often wheel test of multi-controller storage device in, all select Used as working controller, other carry out restarting test segment controller as controller to be tested, as long as multi-controller storage sets The controller of normal operation is no less than one in standby, it is possible to many wheel tests are carried out to multi-controller storage device, it is not necessary to people Work is intervened, and in every wheel test process, because working controller is still in normal operation, therefore multi-controller storage device can With normal process front end I/O request.It can be seen that, using the method for the present embodiment, unmanned value can be realized to multi-controller storage device Abnormality test in the case of keeping, reaches simulated field and controller occurs and restart troubleshooting, so as to improve stablizing for storage product Property.
The method of present invention test multi-controller storage device is described in detail above, present invention also offers one The device of test multi-controller storage device is planted, is described in detail below in conjunction with Fig. 2.
Referring to Fig. 2, Fig. 2 be the embodiment of the present invention test multi-controller storage device device structural representation, such as Fig. 2 Shown, the device includes:Select unit 201, start unit 202, detector unit 203, indexing unit 204;Wherein,
Select unit 201, for selecting working controller in the controller of normal operation from multi-controller storage device With controller to be tested;
Start unit 202, the working controller for keeping select unit 201 to select normally runs and restarts all to be measured Examination controller;
Detector unit 203, restarts after the preset duration of all controllers to be tested for start unit 202, detects each Whether controller to be tested successfully starts up, if all controllers to be tested are successfully started up, it indicates that select unit is again Carry out selecting working controller and controller to be tested, otherwise, to be tested controller of the notification indicia unit to unsuccessful startup Carry out abnormal marking;
Indexing unit 204, for after the notice for receiving detector unit 203, by the controller to be tested of unsuccessful startup The controller of operation exception is labeled as, if the controller number of normal operation is not more than 1, terminates testing process, otherwise, referred to Show that select unit 201 re-starts selection working controller and controller to be tested with into the test of a new round.
In Fig. 2 shown devices,
The select unit 201, selects a controller from the controller of the normal operation of multi-controller storage device Used as working controller, other controllers are then as controller to be tested.
In Fig. 2 shown devices,
The detector unit 203, when detecting whether each controller to be tested successfully starts up, is used for:Detect that each is treated Whether the operating system of test controller successfully starts up, and all starting up's journeys in the operating system of the controller to be tested Whether sequence normally starts, if the operating system of the controller to be tested is successfully started up and all starts are opened in the operating system Dynamic program normally starts, it is determined that the controller to be tested is successfully started up, and otherwise determines this controller to be tested is unsuccessful and open It is dynamic.
In Fig. 2 shown devices,
The detector unit 203, when detecting whether the operating system of each controller to be tested successfully starts up, is used for:To The controller sending destination location to be tested is the ping messages of the IP address of the controller to be tested, if it is to be measured to receive this The response message of examination controller, it is determined that the operating system of the controller to be tested is successfully started up, otherwise, it determines the control to be tested The unsuccessful startup of operating system of device processed.
In Fig. 2 shown devices, also including acquiring unit, for obtaining each controller in multi-controller storage device in advance User name and modification logging;
The detector unit 203, detects whether all starting up's programs are equal in the operating system of the controller to be tested During normal startup, it is used for:The controller to be tested is logged in using the user name and modification logging of the controller to be tested, and is based on It is all in the operating system of the controller to be tested to have been turned on all starting up's journeys that program is determined in the controller to be tested Whether sequence has been turned on.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (10)

1. it is a kind of test multi-controller storage device method, it is characterised in that the method includes:
Step A, the controller kind from the normal operation of multi-controller storage device select working controller and controller to be tested, Working controller is kept normally to run and restart all controllers to be tested;
Step B, after the preset duration for restarting all controllers to be tested, detect whether each controller to be tested is successful Start, if all controllers to be tested are successfully started up, return execution step A, otherwise, execution step C;
Step C, the controller that the controller to be tested of unsuccessful startup is labeled as operation exception, if the control of normal operation Device number is not more than 1, then terminate testing process, and otherwise, return to step A is performed.
2. method according to claim 1, it is characterised in that
A controller is selected from the controller of the normal operation of multi-controller storage device as working controller, other controls Device processed is then as controller to be tested.
3. method according to claim 1, it is characterised in that
Detect that the method whether each controller to be tested successfully starts up is:Detect the operating system of each controller to be tested Whether successfully start up, and whether all starting up's programs normally start in the operating system of the controller to be tested, such as Really the operating system of the controller to be tested is successfully started up and all starting up's programs normally start in the operating system, then Determine that the controller to be tested is successfully started up, otherwise determine the unsuccessful startup of the controller to be tested.
4. method according to claim 3, it is characterised in that
Detect that the method whether operating system of each controller to be tested successfully starts up is:Mesh is sent to the controller to be tested Address be the controller to be tested IP address ping messages, if receiving the response message of the controller to be tested, The operating system for then determining the controller to be tested is successfully started up, otherwise, it determines the operating system of the controller to be tested not into Work(starts.
5. method according to claim 3, it is characterised in that
The user name and modification logging of each controller in multi-controller storage device are obtained in advance;
Detect whether the normal method that starts is for all starting up's programs in the operating system of the controller to be tested:Use The user name and modification logging of the controller to be tested logs in the controller to be tested, and the operation based on the controller to be tested It is all in system to have been turned on whether all starting up's programs that program determined in the controller to be tested have been turned on.
6. it is a kind of test multi-controller storage device device, it is characterised in that the device includes:Select unit, start unit, Detector unit, indexing unit;
The select unit, for working controller being selected from the controller of normal operation in multi-controller storage device and being treated Test controller;
The start unit, for keeping working controller normally to run and restarting all controllers to be tested;
The detector unit, restarts after the preset duration of all controllers to be tested for start unit, detects that each is to be tested Whether controller successfully starts up, if all controllers to be tested are successfully started up, it indicates that select unit re-starts choosing Working controller and controller to be tested are selected, otherwise, notification indicia unit carries out different to the controller to be tested of unsuccessful startup Normal labelling;
The indexing unit, for after the notice for receiving detector unit, the controller to be tested of unsuccessful startup being labeled as The controller of operation exception, if the controller number of normal operation is not more than 1, terminates testing process, otherwise, indicates to select Unit re-starts selection working controller and controller to be tested.
7. method according to claim 6, it is characterised in that
The select unit, selects a controller as work from the controller of the normal operation of multi-controller storage device Controller, other controllers are then as controller to be tested.
8. device according to claim 6, it is characterised in that
The detector unit, when detecting whether each controller to be tested successfully starts up, is used for:Detect each control to be tested Whether the operating system of device successfully starts up, and whether all starting up's programs are equal in the operating system of the controller to be tested It is normal to start, if the operating system of the controller to be tested is successfully started up and all starting up's programs are equal in the operating system It is normal to start, it is determined that the controller to be tested is successfully started up, otherwise determine the unsuccessful startup of the controller to be tested.
9. device according to claim 7, it is characterised in that
The detector unit, when detecting whether the operating system of each controller to be tested successfully starts up, is used for:It is to be tested to this Controller sending destination location is the ping messages of the IP address of the controller to be tested, if receiving the controller to be tested Response message, it is determined that the operating system of the controller to be tested is successfully started up, otherwise, it determines the behaviour of the controller to be tested Make the unsuccessful startup of system.
10. device according to claim 7, it is characterised in that
The device also includes acquiring unit, for obtaining in multi-controller storage device the user name of each controller in advance and stepping on Land password;
The detector unit, detects whether all starting up's programs normally start in the operating system of the controller to be tested When, it is used for:The controller to be tested is logged in using the user name and modification logging of the controller to be tested, and it is to be tested based on this Whether all in the operating system of controller to have been turned on all starting up's programs that program determined in the controller to be tested equal Have been turned on.
CN201611196787.9A 2016-12-22 2016-12-22 A kind of method and apparatus of test multi-controller storage equipment Active CN106648947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611196787.9A CN106648947B (en) 2016-12-22 2016-12-22 A kind of method and apparatus of test multi-controller storage equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611196787.9A CN106648947B (en) 2016-12-22 2016-12-22 A kind of method and apparatus of test multi-controller storage equipment

Publications (2)

Publication Number Publication Date
CN106648947A true CN106648947A (en) 2017-05-10
CN106648947B CN106648947B (en) 2019-09-13

Family

ID=58834274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611196787.9A Active CN106648947B (en) 2016-12-22 2016-12-22 A kind of method and apparatus of test multi-controller storage equipment

Country Status (1)

Country Link
CN (1) CN106648947B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220140A (en) * 2017-06-29 2017-09-29 郑州云海信息技术有限公司 The method for testing reliability and system of a kind of dual control storage system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373420A (en) * 2008-09-09 2009-02-25 创新科存储技术(深圳)有限公司 Multi-controller disk array and command processing method thereof
CN102289398A (en) * 2010-06-17 2011-12-21 英业达股份有限公司 Restart testing method
CN102457547A (en) * 2010-10-20 2012-05-16 英业达股份有限公司 Upgrading method for storage area network equipment of multiple controllers
CN103634388A (en) * 2013-11-22 2014-03-12 华为技术有限公司 Method for processing restarting of controllers in storage server, related equipment and communication system
CN105027080A (en) * 2013-03-14 2015-11-04 密克罗奇普技术公司 Boot sequencing for multi boot devices
EP3278214A4 (en) * 2015-03-31 2018-11-21 Zuora, Inc. Systems and methods for live testing performance conditions of a multi-tenant system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101373420A (en) * 2008-09-09 2009-02-25 创新科存储技术(深圳)有限公司 Multi-controller disk array and command processing method thereof
CN102289398A (en) * 2010-06-17 2011-12-21 英业达股份有限公司 Restart testing method
CN102457547A (en) * 2010-10-20 2012-05-16 英业达股份有限公司 Upgrading method for storage area network equipment of multiple controllers
CN105027080A (en) * 2013-03-14 2015-11-04 密克罗奇普技术公司 Boot sequencing for multi boot devices
CN103634388A (en) * 2013-11-22 2014-03-12 华为技术有限公司 Method for processing restarting of controllers in storage server, related equipment and communication system
EP3278214A4 (en) * 2015-03-31 2018-11-21 Zuora, Inc. Systems and methods for live testing performance conditions of a multi-tenant system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220140A (en) * 2017-06-29 2017-09-29 郑州云海信息技术有限公司 The method for testing reliability and system of a kind of dual control storage system

Also Published As

Publication number Publication date
CN106648947B (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN109726099B (en) Application gray level publishing method, device and equipment
CN106681924A (en) Software testing method and software testing system
CN106776243B (en) Monitoring method and device for monitoring software
CN104731701B (en) Test system and the method and apparatus for performing test assignment
CN111078484B (en) Power-off test method, device, equipment and storage medium for system upgrade
CN104850475B (en) A kind of test method and device of equipment
CN111258591A (en) Program deployment task execution method and device, computer equipment and storage medium
CN107329914A (en) It is a kind of that the out of order method and device of hard disk is detected based on linux system
CN106815137A (en) Ui testing method and apparatus
CN116680101A (en) Method and device for detecting downtime of operating system, and method and device for eliminating downtime of operating system
CN105843675B (en) Thread exit method and device
CN106648947A (en) Method and device for testing storage device with multiple controllers
CN116909800B (en) Method and device for locating crash information and storage medium
CN101706752B (en) Method and device for in-situ software error positioning
CN107105100B (en) Method and system for monitoring mobile terminal game
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN111124828B (en) Data processing method, device, equipment and storage medium
CN116974941A (en) Testing method for management interface function of intelligent platform of baseboard management controller
CN111090557B (en) Management method, device and equipment for abnormal bandwidth reduction of PCIE (peripheral component interface express) equipment
CN105915686A (en) Device detection method and device of mobile terminal
CN115391110A (en) Test method of storage device, terminal device and computer readable storage medium
CN115580550A (en) Network card stability testing method, device, equipment and storage medium
CN110399258B (en) Stability testing method, system and device for server system
CN110764940A (en) Processing method and device for service exception of distributed system
CN107102938B (en) Test script updating method and device

Legal Events

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