CN110347532A - Multi-partitioned systems backup method and device - Google Patents
Multi-partitioned systems backup method and device Download PDFInfo
- Publication number
- CN110347532A CN110347532A CN201910625719.7A CN201910625719A CN110347532A CN 110347532 A CN110347532 A CN 110347532A CN 201910625719 A CN201910625719 A CN 201910625719A CN 110347532 A CN110347532 A CN 110347532A
- Authority
- CN
- China
- Prior art keywords
- subregion
- starting
- partitioned systems
- mirror image
- abnormal
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operations
- G06F11/1446—Point-in-time backing up or restoration of persistent data
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/128—Details of file system snapshots on the file-level, e.g. snapshot creation, administration, deletion
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of multi-partitioned systems backup method and device, the multi-partitioned systems backup method includes being first turned on system enabling dog when first set system or second set of system starting, then judging whether current system is abnormal starting;If the starting of current system is abnormal starting, system is switched to another normal system and is run;The system currently operated normally is replicated, and the system of duplication is covered to the system started extremely.The beneficial effects of the present invention are: it can guarantee the stability of system, the case where causing system to be unable to run will not be destroyed because of subregion, substantially reduce system failure rate, improve the stability of system long-play, reduce maintenance/maintenance cost.
Description
Technical field
The present invention relates to a kind of system backup method and device, a kind of multi-partitioned systems backup method and dress are referred in particular to
It sets.
Background technique
In traditional industrial application scene, embedded OS generally all only exists portion, if file system by
It is destroyed in certain reasons, it is possible to the consequence of bringing on a disaster property, therefore how to guarantee can also be normal after system is destroyed
Start up and operate program be an embedded system key point.
Summary of the invention
The technical problems to be solved by the present invention are: providing a kind of multi-partitioned systems backup method and device, it is intended to reduce
The failure rate of system improves the stability of system.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention are as follows: a kind of multi-partitioned systems backup method, institute
Stating multi-partitioned systems includes first set system and second set of system, and the first set system and second set of system are respectively equipped with interior
Core mirrored partition and file system mirror subregion;The multi-partitioned systems are matched equipped with what first set system and second set of system shared
Set subregion, user data subregion and U-boot subregion;
The multi-partitioned systems backup method includes the following steps,
Step 1: being first turned on system enabling dog when first set system or second set of system starting, then judge
Whether current system is abnormal starting;
Step 2: system is switched to another normal system and is run if the starting of current system is abnormal starting;
Step 3: the system currently operated normally is replicated, and the system of duplication is covered to the system started extremely.
Further, the step 1 specifically includes,
System enabling dog is first turned on when first set system or second set of system starting;
Reading hardware register, obtains the starting reason of system, and the system starting reason includes normal starting and exception
Starting;The abnormal starting includes that system crash or system are destroyed.
Further, the step 3 specifically includes,
The current kernel mirror image subregion for operating normally system and file system mirror subregion are replicated;
The kernel mirror image subregion of the normal operation system of duplication and file system mirror subregion are covered to starting extremely
The kernel mirror image subregion and file system mirror subregion of system.
In order to solve the above-mentioned technical problem, a kind of another technical solution used in the present invention are as follows: multi-partitioned systems backup
Device, the multi-partitioned systems include first set system and second set of system, and the first set system and second set of system are divided
It She You not kernel mirror image subregion and file system mirror subregion;The multi-partitioned systems are equipped with first set system and second set of system
Shared configuration subregion, user data subregion and U-boot subregion;
The multi-partitioned systems back-up device includes,
System starts reason judgment module, is for being first turned on when first set system or second set of system starting
System enabling dog, then judges whether current system is abnormal starting;
It is normal to be switched to another if the starting for current system is abnormal starting by system switching module for system
System operation;
System overlay module covers exception for replicating the system currently operated normally, and by the system of duplication
The system of starting.
Further, the system starting reason judgment module specifically includes,
Enabling dog opening unit is opened the door for being first turned on system when first set system or second set of system starting
Dog;
System starts reason acquiring unit and obtains the starting reason of system, the system opens for reading hardware register
Dynamic reason includes normal starting and abnormal starting;The abnormal starting includes that system crash or system are destroyed.
Further, the system overlay module specifically includes,
System copies unit, for by the current kernel mirror image subregion for operating normally system and file system mirror subregion into
Row duplication;
System capping unit, the kernel mirror image subregion and file system mirror subregion of the normal operation system for that will replicate
It covers to the kernel mirror image subregion and file system mirror subregion of the system started extremely.
The technical effects of the invention are that: the present invention is configured with two systems, and two systems share configuration subregion and user
Data subregion is switched to the operation of another system, while the system of normal operation being answered when one of system occurs abnormal
It makes and covers to pathological system;It can guarantee the stability of system, will not be destroyed because of system partitioning causes system that can not transport
Capable situation, substantially reduces system failure rate, improves the stability of system long-play, reduces maintenance/maintenance cost.
Detailed description of the invention
Specific structure of the invention is described in detail with reference to the accompanying drawing.
Fig. 1 is the multi-partitioned systems backup method flow chart of a specific embodiment of the invention;
Fig. 2 is the multi-partitioned systems back-up device block diagram of a specific embodiment of the invention;
Fig. 3 is the system partitioning figure of multi-partitioned systems backup method of the present invention.
Specific embodiment
In order to describe the technical content, the structural feature, the achieved object and the effect of this invention in detail, below in conjunction with embodiment
And attached drawing is cooperated to be explained in detail.
Embodiment one
Refering to fig. 1, Fig. 3, a kind of multi-partitioned systems backup method, the multi-partitioned systems include first set system and
Two sets of systems, the first set system and second set of system are respectively equipped with kernel mirror image subregion and file system mirror subregion;Institute
Multi-partitioned systems are stated to divide equipped with first set system and second set of system shared configuration subregion, user data subregion and U-boot
Area;
The multi-partitioned systems backup method includes the following steps,
Step S10, it is first turned on system enabling dog when first set system or second set of system starting, then judged
Whether current system is abnormal starting;
If step S20, the starting of current system is abnormal starting, system is switched to another normal system and is transported
Row;
Step S30, the system currently operated normally is replicated, and is by what the covering of the system of duplication started extremely
System.
Preferably, the step S10 is specifically included,
System enabling dog is first turned on when first set system or second set of system starting;
Reading hardware register, obtains the starting reason of system, and the system starting reason includes normal starting and exception
Starting;The abnormal starting includes that system crash or system are destroyed.
Preferably, the step S30 is specifically included,
The current kernel mirror image subregion for operating normally system and file system mirror subregion are replicated;
The kernel mirror image subregion of the normal operation system of duplication and file system mirror subregion are covered to starting extremely
The kernel mirror image subregion and file system mirror subregion of system.
In the present embodiment, the reason of being first turned on system enabling dog when system starting, then judge system starting,
It can generally be obtained by reading hardware register when system exception starts, the function of house dog is regularly to check core
Situation inside piece issues Restart Signal to chip once mistake occurs.Such as first set system starts, and has in hardware special
Register memory systems starting the reason of, read register, then can obtain system starting be it is normal or abnormal, if normally
Starting, then system continues to run;If the starting of system is abnormal starting, the reset of reset signal to chip will be provided
Pin, chip, which executes, resets operation;At this point, system is switched to second set of system operation, by the kernel mirror image of second set of system
Subregion and file system mirror subregion carry out duplication portion, then the corresponding kernel mirror image subregion and text for overriding first set system
Part system image subregion;So that the operation data of first set system is normal, then second set of system can execute house dog repeatedly
The operating condition of setting movement, second set of system of detection can all occur being arranged once system crash or system are destroyed
The case where house dog, the problem of thus triggering system reboot.
Similarly, when detecting that it is abnormal that second set of system occurs, then it is switched to the operation of first set system, and by first set system
Kernel mirror image subregion and file system mirror subregion carry out that duplication is a, the then corresponding kernel mirror for overriding second set of system
As subregion and file system mirror subregion;Another normal system is switched to when namely system is operating abnormally to continue to run,
The kernel mirror image subregion of normal system and file system mirror subregion are covered into pathological system simultaneously, this method can guarantee system
Stability, the case where causing system to be unable to run will not be destroyed because of subregion, substantially reduce system failure rate, improved and be
The stability of system long-play, reduces maintenance/maintenance cost.
As Fig. 3 multi-partitioned systems in, U-boot subregion is for storing U-boot image file;
Kernel mirror image subregion, for storing Linux Kernel mirror image;
File partition, the mirror image for file system;
Configuration subregion is used to store the configuration parameter of user application, and user data subregion is for storing user using journey
The data of sequence.
Multi-partitioned systems backup method can be widely used in built-in industrial control machine, industrial personal computer, Internet of Things, express delivery cabinet,
The related fieldss such as new retail.
Embodiment two
Referring to Fig.2, Fig. 3, a kind of multi-partitioned systems back-up device, the multi-partitioned systems include first set system and
Two sets of systems, the first set system and second set of system are respectively equipped with kernel mirror image subregion and file system mirror subregion;Institute
Multi-partitioned systems are stated to divide equipped with first set system and second set of system shared configuration subregion, user data subregion and U-boot
Area;
The multi-partitioned systems back-up device includes,
System starts reason judgment module, is for being first turned on when first set system or second set of system starting
System enabling dog, then judges whether current system is abnormal starting;
It is normal to be switched to another if the starting for current system is abnormal starting by system switching module for system
System operation;
System overlay module covers exception for replicating the system currently operated normally, and by the system of duplication
The system of starting.
Preferably, the system starting reason judgment module specifically includes,
Enabling dog opening unit is opened the door for being first turned on system when first set system or second set of system starting
Dog;
System starts reason acquiring unit and obtains the starting reason of system, the system opens for reading hardware register
Dynamic reason includes normal starting and abnormal starting;The abnormal starting includes that system crash or system are destroyed.
Preferably, the system overlay module specifically includes,
System copies unit, for by the current kernel mirror image subregion for operating normally system and file system mirror subregion into
Row duplication;
System capping unit, the kernel mirror image subregion and file system mirror subregion of the normal operation system for that will replicate
It covers to the kernel mirror image subregion and file system mirror subregion of the system started extremely.
The technical solution of apparatus of the present invention embodiment and the technical solution of embodiment of the method are corresponding, it is possible to understand that, dress
The technology contents for setting embodiment also all repeat this comprising the technology contents of embodiment of the method, therefore no longer.
In conclusion the present invention is configured with two systems, when one of system occurs abnormal, being switched to another is
System operation, while by the system copies of normal operation and covering to pathological system;It can guarantee the stability of system, it will not be because of
System partitioning is destroyed the case where causing system to be unable to run, and substantially reduces system failure rate, improves system long-play
Stability, reduce maintenance/maintenance cost.
Herein first, second ... only represents the differentiation of its title, not representing their significance level and position has what
It is different.
Herein, up, down, left, right, before and after only represents its relative position without indicating its absolute position.
The above description is only an embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (6)
1. a kind of multi-partitioned systems backup method, it is characterised in that: the multi-partitioned systems include first set system and second
Set system, the first set system and second set of system are respectively equipped with kernel mirror image subregion and file system mirror subregion;It is described
Multi-partitioned systems are equipped with configuration subregion, user data subregion and the U-boot subregion that first set system and second set of system share;
The multi-partitioned systems backup method includes the following steps,
Step 1: being first turned on system enabling dog when first set system or second set of system starting, then judgement is current
Whether system is abnormal starting;
Step 2: system is switched to another normal system and is run if the starting of current system is abnormal starting;
Step 3: the system currently operated normally is replicated, and the system of duplication is covered to the system started extremely.
2. multi-partitioned systems backup method as described in claim 1, it is characterised in that: the step 1 specifically includes,
System enabling dog is first turned on when first set system or second set of system starting;
Hardware register is read, the starting reason of system is obtained, the system starting reason includes normal starting and abnormal starting;
The abnormal starting includes that system crash or system are destroyed.
3. multi-partitioned systems backup method as described in claim 1, it is characterised in that: the step 3 specifically includes,
The current kernel mirror image subregion for operating normally system and file system mirror subregion are replicated;
The kernel mirror image subregion of the normal operation system of duplication and file system mirror subregion are covered to the system started extremely
Kernel mirror image subregion and file system mirror subregion.
4. a kind of multi-partitioned systems back-up device, it is characterised in that: the multi-partitioned systems include first set system and second
Set system, the first set system and second set of system are respectively equipped with kernel mirror image subregion and file system mirror subregion;It is described
Multi-partitioned systems are equipped with configuration subregion, user data subregion and the U-boot subregion that first set system and second set of system share;
The multi-partitioned systems back-up device includes,
System starts reason judgment module, opens for being first turned on system when first set system or second set of system starting
Door dog, then judges whether current system is abnormal starting;
System is switched to another normal system if the starting for current system is abnormal starting by system switching module
System operation;
System overlay module covers abnormal starting for replicating the system currently operated normally, and by the system of duplication
System.
5. multi-partitioned systems back-up device as claimed in claim 4, it is characterised in that: the system starts reason judgment module
It specifically includes,
Enabling dog opening unit, for being first turned on system enabling dog when first set system or second set of system starting;
System starts reason acquiring unit, for reading hardware register, obtains the starting reason of system, the system starting is former
Because including normal starting and abnormal starting;The abnormal starting includes that system crash or system are destroyed.
6. multi-partitioned systems back-up device as claimed in claim 4, it is characterised in that: the system overlay module specifically wraps
It includes,
System copies unit, for being answered the current kernel mirror image subregion for operating normally system and file system mirror subregion
System;
System capping unit, kernel mirror image subregion and file system mirror the subregion covering of the normal operation system for that will replicate
To the kernel mirror image subregion and file system mirror subregion of the system started extremely.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910625719.7A CN110347532A (en) | 2019-07-11 | 2019-07-11 | Multi-partitioned systems backup method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910625719.7A CN110347532A (en) | 2019-07-11 | 2019-07-11 | Multi-partitioned systems backup method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110347532A true CN110347532A (en) | 2019-10-18 |
Family
ID=68175721
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910625719.7A Pending CN110347532A (en) | 2019-07-11 | 2019-07-11 | Multi-partitioned systems backup method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110347532A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113672302A (en) * | 2021-08-20 | 2021-11-19 | 四川长虹网络科技有限责任公司 | Router starting method and device, router and storage medium |
| CN114168080A (en) * | 2021-12-09 | 2022-03-11 | 深圳市瑞驰信息技术有限公司 | Automatic partition switching and backup method for server |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130227259A1 (en) * | 2012-02-28 | 2013-08-29 | Pantech Co., Ltd. | Client terminal, operating system providing apparatus, and methods for supporting multiple operating systems |
| CN105138433A (en) * | 2015-09-30 | 2015-12-09 | 华立仪表集团股份有限公司 | Backup method for UBIFS file system in embedded type Linux operating system |
| CN106325912A (en) * | 2015-07-02 | 2017-01-11 | 北京东土科技股份有限公司 | Startup method and apparatus for embedded operation system |
| CN106598780A (en) * | 2016-11-22 | 2017-04-26 | 深圳中科讯联科技股份有限公司 | System backup and recovery method and device |
| CN109815061A (en) * | 2019-01-31 | 2019-05-28 | 深兰科技(上海)有限公司 | A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system |
-
2019
- 2019-07-11 CN CN201910625719.7A patent/CN110347532A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20130227259A1 (en) * | 2012-02-28 | 2013-08-29 | Pantech Co., Ltd. | Client terminal, operating system providing apparatus, and methods for supporting multiple operating systems |
| CN106325912A (en) * | 2015-07-02 | 2017-01-11 | 北京东土科技股份有限公司 | Startup method and apparatus for embedded operation system |
| CN105138433A (en) * | 2015-09-30 | 2015-12-09 | 华立仪表集团股份有限公司 | Backup method for UBIFS file system in embedded type Linux operating system |
| CN106598780A (en) * | 2016-11-22 | 2017-04-26 | 深圳中科讯联科技股份有限公司 | System backup and recovery method and device |
| CN109815061A (en) * | 2019-01-31 | 2019-05-28 | 深兰科技(上海)有限公司 | A kind of method, apparatus, equipment and the medium of the anti-brick of embedded system |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113672302A (en) * | 2021-08-20 | 2021-11-19 | 四川长虹网络科技有限责任公司 | Router starting method and device, router and storage medium |
| CN114168080A (en) * | 2021-12-09 | 2022-03-11 | 深圳市瑞驰信息技术有限公司 | Automatic partition switching and backup method for server |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109670319B (en) | Server flash safety management method and system thereof | |
| JP5120664B2 (en) | Server system and crash dump collection method | |
| KR100430468B1 (en) | Initializing and restarting operating systems | |
| US8468389B2 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
| US6763456B1 (en) | Self correcting server with automatic error handling | |
| US8176365B2 (en) | Computer apparatus and processor diagnostic method | |
| KR101283809B1 (en) | Reset method and monitoring apparatus | |
| CN109542744A (en) | Method, device, storage medium and terminal for detecting abnormal starting problem of terminal | |
| US20070234123A1 (en) | Method for detecting switching failure | |
| US20120042215A1 (en) | Request processing system provided with multi-core processor | |
| EP2189906A1 (en) | Method and apparatus for abnormality recovering of data card, and data card | |
| CN109614153B (en) | Multi-core chip and system | |
| US9715267B2 (en) | Method for switching operating systems and electronic apparatus | |
| CN107766102B (en) | Boot method of dual basic input/output system (BIOS) and electronic device with same | |
| US20070174689A1 (en) | Computer platform embedded operating system backup switching handling method and system | |
| CN110347532A (en) | Multi-partitioned systems backup method and device | |
| JP4886558B2 (en) | Information processing device | |
| CN110083491A (en) | A kind of BIOS initialization method, apparatus, equipment and storage medium | |
| CN116909633A (en) | Firmware switching use method, device and medium | |
| CN117348939A (en) | Multi-core-based software refreshing method, system, equipment, medium and vehicle | |
| JP2015102989A (en) | Peripheral device control fault avoidance method, peripheral device control fault avoidance program, processing apparatus, and processing system | |
| CN109634782B (en) | A system robustness detection method, device, storage medium and terminal | |
| CN111045899B (en) | Method for displaying BIOS information in early stage of computer system startup self-check | |
| EP2757477A1 (en) | Information processing apparatus and stored information analyzing method | |
| CN104850472B (en) | System software backup and reduction method and apparatus |
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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |