CN104391767A - Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card - Google Patents

Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card Download PDF

Info

Publication number
CN104391767A
CN104391767A CN201410721000.0A CN201410721000A CN104391767A CN 104391767 A CN104391767 A CN 104391767A CN 201410721000 A CN201410721000 A CN 201410721000A CN 104391767 A CN104391767 A CN 104391767A
Authority
CN
China
Prior art keywords
file
bbu
data
raid card
files
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
CN201410721000.0A
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 Group Co Ltd
Original Assignee
Inspur Group 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 Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201410721000.0A priority Critical patent/CN104391767A/en
Publication of CN104391767A publication Critical patent/CN104391767A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention provides a method for testing a power failure data protection function of a BBU (battery backup unit) of an RAID (redundant array of independent disks) card. The method includes preparing a testing machine, installing a windows system, creating a folder in the system and storing large quantities of files with different sizes in the folder; copying the folder twice and respectively naming folders; verifying MD5 (message digest 5) values of files in the three folders by the aid of md5summer software, and storing and recording the MD5 values. The files in the three folders are identical to one another, so that the verified MD5 values are required to be identical to one another, and the files are recorded as 'original MD5.txt'. Compared with the prior art, the method has the advantages that effects of the BBU on data can be visually displayed, the protection efficiency of the BBU can be counted by means of batch tests and comparison, and the method is simple, is easy to handle and low in cost and has excellent service value.

Description

A kind of method of testing the power-down data protection function of RAID card BBU
Technical field
The present invention relates to data security technical field of memory, specifically a kind of method of testing the power-down data protection function of RAID card BBU.
Background technology
Along with the blast of information and the continuous progress of memory technology, constantly increase buffer memory and become the important method that people improve message transmission rate.But the increase of buffer memory, what bring is the hidden danger of the loss of data that accident power-off causes thereupon.In this time, BBU becomes the data cached a kind of important means of protection.But how obvious BBU has to data cached defencive function, but need some effective method of testings to check actually.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method of testing the power-down data protection function of RAID card BBU be provided, mainly by during contrast attenation factor BBU with when not being with BBU, accident power-off is checked the destruction of data.
Technical scheme of the present invention realizes in the following manner, and concrete testing procedure is as follows:
1) first prepare a test machine, windows system is installed, the file not of uniform size of create a file under system folder, file internal memory amplification quantity; File copied two parts and name respectively; Suppose original folder called after " former data ", two files copied are respectively " having BBU copies data " and " without BBU copies data "; By the MD5 value of file in these three files of md5summer software check, and keeping records; Because file in three files is identical, so the MD5 value of verification also should be the same, be recorded as " former MD5.txt ";
2), respectively at system RAID card configuration BBU with without configuration BBU, " former data " file is moved to the disk space that RAID card connects, in data mobile process, note not power-off; After data mobile terminates, the file md5summer software after movement and " former MD5.txt " contrasted, under normal circumstances due to without file corruption, comparing result should be consistent; This step is mainly for getting rid of the impact that in document transmission process, some factors cause test;
3) when system RAID card configuration BBU, the file that will " have BBU copies data " moves to the disk space that RAID card connects, and pulls out system power supply in data mobile process, simulates accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " having BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result;
4) when system RAID card is without configuration BBU, " without BBU copies data " file is moved to the disk space that RAID card connects, in data mobile process, pull out system power supply, simulation accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " without BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result.
Advantage of the present invention is:
A kind of method of testing the power-down data protection function of RAID card BBU of the present invention compared to the prior art; the effect of BBU to data can be presented very intuitively; and contrasted by batch testing; can add up the protective efficacy of BBU; and this method of testing is simple to operation; and cost is low, thus, there is good use value.
Embodiment
Below a kind of method of testing the power-down data protection function of RAID card BBU of the present invention is described in detail below.A kind of method of testing the power-down data protection function of RAID card BBU of the present invention, concrete testing procedure is as follows:
1) first prepare a test machine, windows system is installed, the file not of uniform size of create a file under system folder, file internal memory amplification quantity; File copied two parts and name respectively; Suppose original folder called after " former data ", two files copied are respectively " having BBU copies data " and " without BBU copies data "; By the MD5 value of file in these three files of md5summer software check, and keeping records; Because file in three files is identical, so the MD5 value of verification also should be the same, be recorded as " former MD5.txt ";
2), respectively at system RAID card configuration BBU with without configuration BBU, " former data " file is moved to the disk space that RAID card connects, in data mobile process, note not power-off; After data mobile terminates, the file md5summer software after movement and " former MD5.txt " contrasted, under normal circumstances due to without file corruption, comparing result should be consistent; This step is mainly for getting rid of the impact that in document transmission process, some factors cause test;
3) when system RAID card configuration BBU, the file that will " have BBU copies data " moves to the disk space that RAID card connects, and pulls out system power supply in data mobile process, simulates accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " having BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result;
4) when system RAID card is without configuration BBU, " without BBU copies data " file is moved to the disk space that RAID card connects, in data mobile process, pull out system power supply, simulation accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " without BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result.
By contrasting 3) step and 4) result of step, can see that RAID card BBU is when system accident power-off very intuitively, to data defencive function.
This method of testing carries out the verification of MD5 value by performing (1) respectively to 3 groups of identical data sources of content with md5summer software; then carry out (2) normally movement respectively, (3) band BBU abnormal power-down moves and (4) are not with BBU abnormal power-down to move; finally the data after movement and former data are verified, intuitively can effectively test out the defencive function of BBU to data.
Md5summer software is file MD5 verification software, it is characterized in that to carry out batch verification to All Files in file and file, and can to the process of verification different item mark.
A kind of its processing and fabricating of method testing the power-down data protection function of RAID card BBU of the present invention is very simple and convenient, can process to specifications.
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (1)

1. test a method for the power-down data protection function of RAID card BBU, it is characterized in that concrete testing procedure is as follows:
(1) first prepare a test machine, windows system is installed, the file not of uniform size of create a file under system folder, file internal memory amplification quantity; File copied two parts and name respectively; Suppose original folder called after " former data ", two files copied are respectively " having BBU copies data " and " without BBU copies data "; By the MD5 value of file in these three files of md5summer software check, and keeping records; Because file in three files is identical, so the MD5 value of verification also should be the same, be recorded as " former MD5.txt ";
(2), respectively at system RAID card configuration BBU with without configuration BBU, " former data " file is moved to the disk space that RAID card connects, in data mobile process, note not power-off; After data mobile terminates, the file md5summer software after movement and " former MD5.txt " contrasted, under normal circumstances due to without file corruption, comparing result should be consistent; This step is mainly for getting rid of the impact that in document transmission process, some factors cause test;
(3) when system RAID card configuration BBU, the file that will " have BBU copies data " moves to the disk space that RAID card connects, and pulls out system power supply in data mobile process, simulates accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " having BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result;
(4) when system RAID card is without configuration BBU, " without BBU copies data " file is moved to the disk space that RAID card connects, in data mobile process, pull out system power supply, simulation accident power-off situation; Wait for a period of time by demand, then give system electrification, continue the disk space residue file in " without BBU copies data " being moved to RAID card connection, if any duplication of name file, perform " skipping " operation, do not cover; After data mobile completes, the file md5summer software after movement is contrasted with " former MD5.txt ", observe the quantity that file is inconsistent, preserve comparing result.
CN201410721000.0A 2014-12-03 2014-12-03 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card Pending CN104391767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410721000.0A CN104391767A (en) 2014-12-03 2014-12-03 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410721000.0A CN104391767A (en) 2014-12-03 2014-12-03 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card

Publications (1)

Publication Number Publication Date
CN104391767A true CN104391767A (en) 2015-03-04

Family

ID=52609675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410721000.0A Pending CN104391767A (en) 2014-12-03 2014-12-03 Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card

Country Status (1)

Country Link
CN (1) CN104391767A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699579A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 Method for testing cache data protection function for system battery
CN106850342A (en) * 2017-01-20 2017-06-13 郑州云海信息技术有限公司 The method and device of test interchanger compatibility and stability
CN107515376A (en) * 2017-08-30 2017-12-26 郑州云海信息技术有限公司 A kind of method of testing and device of battery back unit
CN108845900A (en) * 2018-06-07 2018-11-20 郑州云海信息技术有限公司 A kind of method and device of test b BU data protection consistency

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699579A (en) * 2015-03-20 2015-06-10 浪潮集团有限公司 Method for testing cache data protection function for system battery
CN106850342A (en) * 2017-01-20 2017-06-13 郑州云海信息技术有限公司 The method and device of test interchanger compatibility and stability
CN106850342B (en) * 2017-01-20 2020-11-24 苏州浪潮智能科技有限公司 Method and device for testing compatibility and stability of switch
CN107515376A (en) * 2017-08-30 2017-12-26 郑州云海信息技术有限公司 A kind of method of testing and device of battery back unit
CN108845900A (en) * 2018-06-07 2018-11-20 郑州云海信息技术有限公司 A kind of method and device of test b BU data protection consistency

Similar Documents

Publication Publication Date Title
CN104932965B (en) Object method for real-time monitoring and device
US9372743B1 (en) System and method for storage management
CN103473158A (en) Disk pressure testing method for Linux server
CN105550229B (en) The method and apparatus of distributed memory system data reparation
CN104391767A (en) Method for testing power failure data protection function of BBU (battery backup unit) of RAID (redundant array of independent disks) card
CN103026342B (en) method and system for verifying memory device integrity
CN103003799A (en) Methods and system for verifying memory device integrity
RU2013156675A (en) MANAGING DUPLICATED VIRTUAL STORAGE ON RECOVERY SITES
CN102722536B (en) Method and device for realizing snapshot based on distributed file system
CN105468479B (en) A kind of disk array RAID bad block processing methods and device
CN104077380A (en) Method and device for deleting duplicated data and system
US20130332413A1 (en) Reducing data transfers while eliminating data loss for asynchronous replication of databases
CN104077373B (en) A kind of data consistency verification method
CN107391333A (en) A kind of OSD disk failures method of testing and system
CN103678517B (en) Method for fixing logical errors of hard disk and controller
CN105045685A (en) Backup method and apparatus for cached data and recovery method and apparatus for cached data
CN102750195A (en) Method for cluster file system data fault tolerance
CN107704347A (en) A kind of automatic method for carrying out hard disc data uniformity test
CN102981936A (en) Method for reconstructing disk array data
KR101351561B1 (en) Big data extracting system and method
CN104375905A (en) Incremental backing up method and system based on data block
CN106681874B (en) Test method and device for storage power-down protection function
US20190138386A1 (en) Recovering log-structured filesystems from physical replicas
CN103176867A (en) Fast file differential backup method
CN203260027U (en) Backup device and data backup system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150304