CN102968358A - Quick recovery method of soft RAID1 deployment system - Google Patents

Quick recovery method of soft RAID1 deployment system Download PDF

Info

Publication number
CN102968358A
CN102968358A CN2012104532060A CN201210453206A CN102968358A CN 102968358 A CN102968358 A CN 102968358A CN 2012104532060 A CN2012104532060 A CN 2012104532060A CN 201210453206 A CN201210453206 A CN 201210453206A CN 102968358 A CN102968358 A CN 102968358A
Authority
CN
China
Prior art keywords
dev
raid1
soft
mbr
dish
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
CN2012104532060A
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 Electronic Information Industry Co Ltd
Original Assignee
Inspur 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 Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN2012104532060A priority Critical patent/CN102968358A/en
Publication of CN102968358A publication Critical patent/CN102968358A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a quick recovery method of a soft RAID1 deployment system, wherein a soft RAID member disk is completely uniform; an operating system RAID 1 is in the system deploying process, a hard RAID can realize that two member disks are completely uniform, and the soft RAID only ensures the partitioned file created with a system partition and mounted with a system to be correspondenceaccordant; the grub information in a master boot record (MBR) only has a basic input/output system (BIOS) to write in a first disc found by the system, namely in the MBR partition of the master member disk, the slave member disk does not include the start information of the system in the partition; and through uniforming the MBR partition completely, that is to realize that two member disks can be completely uniform at RAID1 so as to solve a fault that the system can not be started after the master disc is damaged.

Description

A kind of quick recovery method of soft RAID1 deployment system
Technical field
The present invention relates to the computerized information field, specifically a kind of quick recovery method of soft RAID1 deployment system.
Background technology
Message area is more and more higher to the requirement of equipment dependability, and in the deployment, its operating system guarantees the reliability of operating system to most servers by disposing RAID1 again.Yet because the integrated hardware RAID of mainboard can't normally satisfy deployment request under cost control and the part operation system, have to adopt the implementation of RAID in the deployment in the process.Soft RAID deployment is not difficult, yet in a single day soft RAID has member's hair updo to give birth to fault, and when especially the master hair updo was given birth to fault, the operation that system is recovered was with the complicated difficulty.
Therefore Software Raid in this patent is controlled by operating system and realized, distinct issues are arranged: his data can only be synchronized in most cases operating system synchronously in that part of normal visible disk in service and subregion.Take Raid1 as example, if all system partitionings all are installed on the Raid1, the synchronous information of Software Raid can only be that the first subregion begins to that part of disk end so, and some contents before the first subregion, in fact two disks are nonsynchronous.Briefly be exactly to have contents such as starting leader record on first dish identifying during system installs, and just do not had on second dish.This with regard to the problem that produces a trouble is, if we are installed in all system partitionings on the disk array of soft Raid-1 structure, if second adjustment debit is bad so, system's use and this disk array also can be demoted of still can starting shooting, if but exactly damage is first dish, cause system to start owing to being not activated guidance information at second dish, naturally add again mirror image and so on incomparable trouble that also will become this time.
The present invention is applied in the deployment of the operating systems such as message area server, and particularly the higher occasion of reliability requirement belongs to highly reliable, the high available area of electronic information.Developing rapidly so that IT user pays much attention to Systems balanth of IT industry, the stability of whole system is based upon again on the operating system, and the reliable availability of operating system be unable to do without the reliability of its carrier storage hard disk.It all is by operating system installation is guaranteed its reliability on the RAID1 disk that present most server is used.RAID1 consists of the RAID disk array with two hard disks, and its capacity only equals the capacity of a hard disk, because another piece just is used as data " mirror image ".RAID 1 disk array obviously is the most reliable a kind of array, because it always keeps a complete data backup.Its performance does not have RAID 0 disk array good like that naturally, but its data read really than single hardware come fast because data can be from two hard disks are read in one faster.The writing speed of RAID 1 disk array is usually slower, because data must write respectively in two hard disks and compare.RAID 1 disk array is generally supported " heat interchange ", and the removing or replace in the time of can moving in system and carry out of hard disk in the array need not interrupt logging off in other words.RAID 1 disk array is foolproof, but also is more expensive a kind of RAID disk array solution, because two hard disks only can provide the capacity of a hard disk.It is very high that RAID 1 disk array mainly is used in data security, and the fast occasion of the destroyed data of quick-recovery of requirement.
Summary of the invention
The complicacy of soft RAID1 operating system recovery is to realize the in full accord of two member's dishes that as hard RAID1 the guidance information among its MBR closely is placed in the MBR subregion of first disk (master member's dish).
The quick recovery method that the purpose of this invention is to provide a kind of soft RAID1 deployment system.
The objective of the invention is to realize in the following manner, concrete steps are as follows:
By backup tool the MBR subregion of master member dish is backed up to slave member and coil the MBR subregion, because when installing operating system, use soft RAID1, the partition list of two member's dishes has thought that setting is in full accord, namely the 447th to the 512nd byte from hard disk has realized unanimously, system is installed on the RAID1, it is in full accord to have guaranteed that the member is coiled the later data division of 512 bytes, therefore front 446 bytes of two member's dishes the consistance backup operation need to be carried out, front 446 of master member's dish slave member's dish must be backed up to; Recorded the necessary information of load operation system in the system starting process in this 446 byte, system starting process is for loading BIOS, point to the MBR subregion of member's dish by BIOS, by grub file pointing system intrd document location, and then enter follow-up start-up course in this subregion;
By backup tool the MBR subregion carry out in full accordization, namely front 446 bytes of master member's dish must be backed up to slave member's dish, recorded the necessary information of load operation system in the system starting process in this 446 byte, realize that by the method two member's dishes also can be in full accord under soft RAID1, thereby solved the problem that system can't start after the master master damaged, after having ensured that soft RAID1 system starts, finish rapidly reconstruct after adding new hard disk, the mirror image safety of recovery system; Concrete operations are as follows:
Select when 1) linux operating system being installed to be installed under the soft RAID1 pattern of storage resources;
2) after system installed, the MBR subregion of general/dev/sda backed up to/dev/sdb, and realization/dev/sda is in full accord with/two disc informations of dev/sdb.Can realize by order:
dd?if=/dev/sda?of=/dev/sdb?bs=446?count=1
3) low-quality disk restoration methods:
A) low-quality disk is taken away rear system and be in degrading state;
B) by order sfdisk – p/dev/sda | sfdisk/dev/sdb with in the system/partition information of dev/sda is divided to/dev/sdb on;
C) utility command mdadm – manage – add/dev/md0/dev/sdb1 general/dev/sdb1 joins among soft RAID/dev/md0;
D) Cat/proc/mdstat can see that md0 is in the restructuring procedure, treats that reconstruct finishes,
E) re-execute the MBR consistency operation, the mirror image guard mode of raid1 is recovered by system.
The invention has the beneficial effects as follows: be that soft RAID member coils in full accordization, that operating system RAID1 is in system's deployment, hard RAID can realize that two member's dishes have in full accord, and soft RAID has only guaranteed to have created system partitioning and it is consistent that the partitioned file after the system has been installed, grub information among the MBR only has BIOS to be written to first disk of system discovery, be in the MBR subregion of master member's dish, slave member's dish does not comprise the log-on message of system in this subregion, by the MBR subregion carry out in full accordization, realized that namely two member's dishes also can be in full accord under soft RAID1, damaged the fault that rear system can't start thereby solved the master master.
Description of drawings
Fig. 1 is that system starts process flow diagram;
Fig. 2 is effect contrast figure before and after soft RAID the method is disposed.
Embodiment
Explain below with reference to Figure of description method of the present invention being done.
Linux redhat5.3 is installed as example take the soft RAID of tide NF5280 server:
Select when 1, linux operating system being installed to be installed under the soft RAID1 pattern of storage resources;
2, after system installed, the MBR subregion of general/dev/sda backed up to/dev/sdb, and realization/dev/sda is in full accord with/two disc informations of dev/sdb.Can realize by order:
dd?if=/dev/sda?of=/dev/sdb?bs=446?count=1
3, low-quality disk restoration methods:
A) low-quality disk is taken away rear system and be in degrading state;
B) by order sfdisk – p/dev/sda | sfdisk/dev/sdb with in the system/partition information of dev/sda is divided to/dev/sdb on;
C) utility command mdadm – manage – add/dev/md0/dev/sdb1 general/dev/sdb1 joins among soft RAID/dev/md0;
D) Cat/proc/mdstat can see that md0 is in the restructuring procedure, treats that reconstruct finishes,
E) re-execute the MBR consistency operation, the mirror image guard mode of raid1 is recovered by system.
Except the described technical characterictic of instructions, be the known technology of those skilled in the art.

Claims (1)

1. the quick recovery method of a soft RAID1 deployment system, it is characterized in that, by backup tool the MBR subregion of master member dish is backed up to slave member and coil the MBR subregion, because when installing operating system, use soft RAID1, the partition list of two member's dishes has thought that setting is in full accord, namely the 447th to the 512nd byte from hard disk has realized unanimously, system is installed on the RAID1, it is in full accord to have guaranteed that the member is coiled the later data division of 512 bytes, therefore front 446 bytes of two member's dishes the consistance backup operation need to be carried out, front 446 of master member's dish slave member's dish must be backed up to; Recorded the necessary information of load operation system in the system starting process in this 446 byte, system starting process is for loading BIOS, point to the MBR subregion of member's dish by BIOS, by grub file pointing system intrd document location, and then enter follow-up start-up course in this subregion;
By backup tool the MBR subregion carry out in full accordization, namely front 446 bytes of master member's dish must be backed up to slave member's dish, recorded the necessary information of load operation system in the system starting process in this 446 byte, realize that by the method two member's dishes also can be in full accord under soft RAID1, thereby solved the problem that system can't start after the master master damaged, after having ensured that soft RAID1 system starts, finish rapidly reconstruct after adding new hard disk, the mirror image safety of recovery system; Concrete steps are as follows:
Select when 1) linux operating system being installed to be installed under the soft RAID1 pattern of storage resources;
2) after system installed, the MBR subregion of general/dev/sda backed up to/dev/sdb, and realization/dev/sda is in full accord with/two disc informations of dev/sdb, and input command is as follows:
dd?if=/dev/sda?of=/dev/sdb?bs=446?count=1
3) low-quality disk restoration methods:
A) low-quality disk is taken away rear system and be in degrading state;
B) by order sfdisk – p/dev/sda | sfdisk/dev/sdb with in the system/partition information of dev/sda is divided to/dev/sdb on;
C) utility command mdadm – manage – add/dev/md0/dev/sdb1 general/dev/sdb1 joins among soft RAID/dev/md0;
D) Cat/proc/mdstat can see that md0 is in the restructuring procedure, treats that reconstruct finishes,
E) re-execute the MBR consistency operation, the mirror image guard mode of raid1 is recovered by system.
CN2012104532060A 2012-11-13 2012-11-13 Quick recovery method of soft RAID1 deployment system Pending CN102968358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104532060A CN102968358A (en) 2012-11-13 2012-11-13 Quick recovery method of soft RAID1 deployment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104532060A CN102968358A (en) 2012-11-13 2012-11-13 Quick recovery method of soft RAID1 deployment system

Publications (1)

Publication Number Publication Date
CN102968358A true CN102968358A (en) 2013-03-13

Family

ID=47798511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104532060A Pending CN102968358A (en) 2012-11-13 2012-11-13 Quick recovery method of soft RAID1 deployment system

Country Status (1)

Country Link
CN (1) CN102968358A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020965A (en) * 2014-06-27 2014-09-03 浪潮(北京)电子信息产业有限公司 Method for achieving soft redundant array of independent disc (RAID) redundancy and microcomputer system thereof
WO2018000816A1 (en) * 2016-06-29 2018-01-04 华为技术有限公司 Method and device for triggering disk array to be reconstructed
CN107544780A (en) * 2016-06-23 2018-01-05 北京忆恒创源科技有限公司 The installation method and erecting device of a kind of operating system
CN108459822A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
CN113504946A (en) * 2021-07-26 2021-10-15 联想长风科技(北京)有限公司 Method and system for realizing mirror function when soft RAID logs in OS

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281560A (en) * 1997-10-08 2001-01-24 西加特技术有限责任公司 Hybrid data storage and reconstruction system and method for data storage device
CN101038562A (en) * 2006-03-15 2007-09-19 联想(北京)有限公司 Memory device key data backup and recovering system and method thereof
CN101477446A (en) * 2009-02-12 2009-07-08 杭州华三通信技术有限公司 Disk array system and its logical resource processing method in degradation or reconstruction state

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1281560A (en) * 1997-10-08 2001-01-24 西加特技术有限责任公司 Hybrid data storage and reconstruction system and method for data storage device
CN101038562A (en) * 2006-03-15 2007-09-19 联想(北京)有限公司 Memory device key data backup and recovering system and method thereof
CN101477446A (en) * 2009-02-12 2009-07-08 杭州华三通信技术有限公司 Disk array system and its logical resource processing method in degradation or reconstruction state

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋明: "《基于三层架构体系的软件容错技术研究》", 《万方数据》, 31 July 2012 (2012-07-31), pages 3 - 2 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020965A (en) * 2014-06-27 2014-09-03 浪潮(北京)电子信息产业有限公司 Method for achieving soft redundant array of independent disc (RAID) redundancy and microcomputer system thereof
CN107544780A (en) * 2016-06-23 2018-01-05 北京忆恒创源科技有限公司 The installation method and erecting device of a kind of operating system
WO2018000816A1 (en) * 2016-06-29 2018-01-04 华为技术有限公司 Method and device for triggering disk array to be reconstructed
US10732870B2 (en) 2016-06-29 2020-08-04 Huawei Technologies Co., Ltd. Method and apparatus for triggering raid reconstruction
CN108459822A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
WO2019020074A1 (en) * 2017-07-28 2019-01-31 紫光华山信息技术有限公司 Installation of operating system
CN108459822B (en) * 2017-07-28 2020-05-12 新华三信息技术有限公司 Installation method and device of operating system
US11023153B2 (en) 2017-07-28 2021-06-01 New H3C Information Technologies Co., Ltd. Installation of operating system
CN113504946A (en) * 2021-07-26 2021-10-15 联想长风科技(北京)有限公司 Method and system for realizing mirror function when soft RAID logs in OS

Similar Documents

Publication Publication Date Title
CN102473089B (en) File system for dual operating systems
EP2652599B1 (en) System reset
EP1907935B1 (en) System and method for virtualizing backup images
US9552168B2 (en) Virtual machine backup from storage snapshot
CN102713856B (en) Method and system for recovering file system of computer system
US8464010B2 (en) Apparatus and method for data backup
EP2539804B1 (en) Systems and methods for enabling replication targets to reclaim unused storage space on thin-provisioned storage systems
CN105446826A (en) Virtual machine backup and recovery method and device
CN103793258A (en) Hypervisor-based server duplication system and method
CN101770410A (en) System restore method, virtual machine managing device and system based on client operating system
CN104823160A (en) Virtual machine-preserving host updates
CN102591675A (en) Method and system for management of multiple software images with shared memory blocks
CN104216793A (en) Application program backing up and restoring method and device
CN105138431A (en) Linux system back-up and restoring method
CN102968358A (en) Quick recovery method of soft RAID1 deployment system
US20150293719A1 (en) Storage Space Processing Method and Apparatus, and Non-Volatile Computer Readable Storage Medium
CN101694635A (en) Control method and system based on virtual tape library backup and near-line storage node
CN101114228A (en) Method for rapid installing operating system and system thereof
CN101140537A (en) Backup and recovery operation method of built-in operating system
CN102495812A (en) Hard disk data protection and recovery method of Linux platform
US7089433B2 (en) Method and system for operating system quiescent state
JP2007323657A (en) Method and system for storing transient state information, and computer program
JP2007080012A (en) Rebooting method, system and program
US10296218B2 (en) Update control method, update control apparatus, and storage medium
US8938596B2 (en) Storage apparatus, control apparatus, and storage apparatus control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130313