CN102495812A - Hard disk data protection and recovery method of Linux platform - Google Patents
Hard disk data protection and recovery method of Linux platform Download PDFInfo
- Publication number
- CN102495812A CN102495812A CN2011104200056A CN201110420005A CN102495812A CN 102495812 A CN102495812 A CN 102495812A CN 2011104200056 A CN2011104200056 A CN 2011104200056A CN 201110420005 A CN201110420005 A CN 201110420005A CN 102495812 A CN102495812 A CN 102495812A
- Authority
- CN
- China
- Prior art keywords
- file system
- file
- root
- read
- hard disk
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a hard disk data protection and recovery method of a Linux platform. The method implements protection and recovery for the data in a file system through a write operation redirection technology based on a hybrid file system, a protection technology based on a read-only compressed file system, an Initrd-based configuration technology for initializing a sub-system when a kernel moves later, a file system quick detection and repair technology and a root file system detection technology based on a file system identifier; and the method transparently protects the file system data of an operating system without using own file system access control of the operating system, records file modifications of the running process and recoveries the data as needed.
Description
Technical field
The present invention relates to a kind of Linux platform and realize hard disk data protection and restoration methods based on aufs and squashfs.
Background technology
Linux is a kind of class Unix operating system of free and open source code, exist many different Linux at present, but they has all used linux kernel.Linux can be installed in the various computer hardware equipments, from mobile phone, panel computer, router and video game console, to desk-top computer, large scale computer and supercomputer.Linux is a leading operating system, and what 10 supercomputers that computing is the fastest in the world moved all is (SuSE) Linux OS.
The operating system that Linux is generally acknowledge stable, security is higher, but server hardware fault and various unexpected factor all can cause loss of data on the Linux server hard disc.Special in the Linux server that is used in the commercial field, the data recovery capability after safety of data, integrality and the disaster is the problem that each linux system keeper is concerned about the most.Linux is as new generation network operating system, and the application aspect server more and more widely.
In the solution that is applied to embedded platform or public service platform that realizes based on (SuSE) Linux OS at present, important data can not be destroyed because of user's faulty operation or need to have removed simply completely suitable the time data that the user produces in the file system that needs protection.
But can not use the access control of operating system self to solve such needs in such solution again, for example the user need be in system set up applications.
Summary of the invention
But providing, technical matters to be solved by this invention a kind ofly using on any hard disk platform of (SuSE) Linux OS software all to realize the method for Data Protection and recovery.
In order to solve above-mentioned technical matters, Linux platform hard disk data protection of the present invention and restoration methods may further comprise the steps:
1) beamhouse operation system root file system, through the operating system installation program, installing operating system on hard disk;
2) use the squashfs file system that ready operating system root file system is packaged into an image file;
3) kernel increases aufs, squashfs and the employed file system support of memory device, and recompilates kernel with the built-in mode;
4) making realizes that based on the kernel initialization subsystem of Initrd detection, the Flase File System of external equipment file system detects and repair and the read-write root file system of mixing carry, switches in the root file system at last to start the operating system;
The detection of external equipment file system; After Initrd initialization subsystem has started the UDev service; In/dev/disk catalogue, will generate the file system device file chaining file of dividing by label or UUID mode, relatively the sign of appointment can find correct file system in the configuration file.
Flase File System detect and reparation be file system detect with repair before earlier with file system mounted, deletion read-write catalogue wherein then, unloading of file system, and then detect and reparation as a branch of aufs.
Mix the read-write root file system of carry, at first file system to the interim catalogue that detects of carry, the root file system image file of carry the inside again; Prepare a read-write catalogue, this catalogue can ram disk or outside in the deposit, and use aufs file mixing carry to become a read-write operating system root directory; Use the switch_root mode to switch in the new root system system at last and start the operating system.
5) making can guide boot disk, writes root file system image file, kernel and boot configuration file.
Cardinal principle of the present invention:
1. use read-only compressed file system storage operating system data file, guarantee that file system data is not easy to be distorted and can seek easily.
2. kernel Initrd promoter systems; In the os starting process, will utilize sign given in the start-up parameter from the list of devices of current operation system, to find correct root file system device node file, and use file system detection and fast repairing method to overhaul.
3. kernel Initrd promoter systems generates interim read-write branch catalogue in the os starting process, and uses the mixed file system that read-only file system and read-write branch catalogue are merged into read-write catalogue.It will use a plurality of file system branch to be merged into a virtual separate file system, and the write operation of file is redirected in the read-write branch catalogue.
The present invention can accomplish data protection and recovery that relative operating system access controlling mechanism is transparent on the basis of the file system access control of not using operating system self, satisfy the technical need under the specific environment.Protect the file system data of operating system pellucidly, the file modification in when operation record, and can be in needs restore data.
Embodiment
The present invention adopts following technical scheme:
1. based on the write operation redirecting technique of mixed file system.
2. based on read-only compressed file system resist technology.
3. the configuring technical of initialization subsystem when starting based on the kernel of Initrd.
4. file system fast detecting and recovery technique.
5. the root file system Detection Techniques that identify based on file system.
Be specially:
1. beamhouse operation system root file system, through the operating system installation program, installing operating system on hard disk.
2. use the squashfs file system that ready operating system root file system is packaged into an image file.
3. kernel increases aufs, squashfs and the employed file system of memory device (like ext4 etc.) and supports, and recompilates kernel with the built-in mode.
4. make the kernel initialization subsystem based on Initrd, detection, the Flase File System of realization external equipment file system detect and repair, mix the read-write root file system of carry, switch at last in this root file system to start the operating system.
The detection of external equipment file system: after Initrd initialization subsystem has started UDev service, in/dev/disk catalogue, will generate the file system device file chaining file of dividing by modes such as label or UUID.Relatively the sign of appointment can find correct file system in the configuration file.
Flase File System detects and repairs: file system file tree construction more complicated or the very big situation of file system capacity are found in practice, and the detection of file system and repair time can be long., file system, deletes read-write catalogue wherein then before detecting and repair as a branch of aufs earlier with file system mounted, unloading of file system, and then detect and repair.
Mix the read-write root file system of carry: at first file system to the interim catalogue that detects of carry, the root file system image file of carry the inside again.Prepare a read-write catalogue, this catalogue can be at ram disk or is deposited outward.And use aufs file mixing carry to become a read-write operating system root directory.Use the switch_root mode to switch in the new root system system at last and start the operating system.
5. make and to guide boot disk, write the root file system image file, kernel and boot configuration file.
The foregoing description does not limit the present invention in any way, and every employing is equal to the technical scheme that replacement or the mode of equivalent transformation obtain and all drops in protection scope of the present invention.
Claims (4)
1. Linux platform hard disk data protection and restoration methods is characterized in that may further comprise the steps:
1) beamhouse operation system root file system, through the operating system installation program, installing operating system on hard disk;
2) use the squashfs file system that ready operating system root file system is packaged into an image file;
3) kernel increases aufs, squashfs and the employed file system support of memory device, and recompilates kernel with the built-in mode;
4) making realizes that based on the kernel initialization subsystem of Initrd detection, the Flase File System of external equipment file system detects and repair and the read-write root file system of mixing carry, switches in the root file system at last to start the operating system;
5) making can guide boot disk, writes root file system image file, kernel and boot configuration file.
2. Linux platform hard disk data protection according to claim 1 and restoration methods; It is characterized in that: the detection of said external equipment file system is after Initrd initialization subsystem has started the UDev service; In/dev/disk catalogue, will generate the file system device file chaining file of dividing by label or UUID mode, relatively the sign of appointment can find correct file system in the configuration file.
3. Linux platform hard disk data protection according to claim 1 and restoration methods; It is characterized in that: said Flase File System detects and reparation is earlier with file system mounted before file system detects and repairs; Delete read-write catalogue wherein then as a branch of aufs; Unloading of file system, and then detect and repair.
4. Linux platform hard disk data protection according to claim 1 and restoration methods; It is characterized in that: the read-write root file system of said mixing carry; At first file system to the interim catalogue that detects of carry, the root file system image file of carry the inside again; Prepare a read-write catalogue, this catalogue can ram disk or outside in the deposit, and use aufs file mixing carry to become a read-write operating system root directory; Use the switch_root mode to switch in the new root system system at last and start the operating system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104200056A CN102495812A (en) | 2011-12-15 | 2011-12-15 | Hard disk data protection and recovery method of Linux platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104200056A CN102495812A (en) | 2011-12-15 | 2011-12-15 | Hard disk data protection and recovery method of Linux platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102495812A true CN102495812A (en) | 2012-06-13 |
Family
ID=46187637
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104200056A Pending CN102495812A (en) | 2011-12-15 | 2011-12-15 | Hard disk data protection and recovery method of Linux platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102495812A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831033A (en) * | 2012-07-26 | 2012-12-19 | 深圳市同洲电子股份有限公司 | Recovery method and recovery device for file system data |
CN102831034A (en) * | 2012-08-14 | 2012-12-19 | 中国电力科学研究院 | Multimode backup and quick recovery method based on embedded Linux device |
CN104199750A (en) * | 2014-08-26 | 2014-12-10 | 上海天脉聚源文化传媒有限公司 | File recovery method and device of linux system |
CN107977572A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of application program operation method and device, intelligent terminal |
CN109445861A (en) * | 2018-10-18 | 2019-03-08 | 深圳市网心科技有限公司 | System start method, device, computer installation and storage medium |
CN110837437A (en) * | 2018-08-17 | 2020-02-25 | 中标软件有限公司 | Power-down protection method based on general computer operating system |
CN112015587A (en) * | 2019-05-31 | 2020-12-01 | 烽火通信科技股份有限公司 | Method and device for enhancing reliability of operating system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984399A (en) * | 2010-10-29 | 2011-03-09 | 中兴通讯股份有限公司 | Management method and system of soft redundant array of independent disk |
US20110179259A1 (en) * | 2010-01-21 | 2011-07-21 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Method for integrating operating system into bios chip and method for booting operating system integrated into bios chip |
CN102135897A (en) * | 2011-03-18 | 2011-07-27 | 浪潮电子信息产业股份有限公司 | Convenient server maintenance tool integration manufacturing method |
-
2011
- 2011-12-15 CN CN2011104200056A patent/CN102495812A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110179259A1 (en) * | 2010-01-21 | 2011-07-21 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Method for integrating operating system into bios chip and method for booting operating system integrated into bios chip |
CN101984399A (en) * | 2010-10-29 | 2011-03-09 | 中兴通讯股份有限公司 | Management method and system of soft redundant array of independent disk |
CN102135897A (en) * | 2011-03-18 | 2011-07-27 | 浪潮电子信息产业股份有限公司 | Convenient server maintenance tool integration manufacturing method |
Non-Patent Citations (2)
Title |
---|
孙小芳等: "WinPE在电脑系统维护中的应用", 《光盘技术》 * |
杨声春等: "基于USB接口的微型桌面Linux系统", 《计算机系统应用》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102831033A (en) * | 2012-07-26 | 2012-12-19 | 深圳市同洲电子股份有限公司 | Recovery method and recovery device for file system data |
CN102831034A (en) * | 2012-08-14 | 2012-12-19 | 中国电力科学研究院 | Multimode backup and quick recovery method based on embedded Linux device |
CN102831034B (en) * | 2012-08-14 | 2016-04-20 | 中国电力科学研究院 | Based on multimode backup and the quick recovery method of embedded equipment Linux |
CN104199750A (en) * | 2014-08-26 | 2014-12-10 | 上海天脉聚源文化传媒有限公司 | File recovery method and device of linux system |
CN104199750B (en) * | 2014-08-26 | 2017-07-28 | 上海天脉聚源文化传媒有限公司 | A kind of file access pattern method and device of Linux system |
WO2018076699A1 (en) * | 2016-10-25 | 2018-05-03 | 西安中兴新软件有限责任公司 | Application running method, device, and storage medium |
CN107977572A (en) * | 2016-10-25 | 2018-05-01 | 中兴通讯股份有限公司 | A kind of application program operation method and device, intelligent terminal |
CN107977572B (en) * | 2016-10-25 | 2022-11-18 | 中兴通讯股份有限公司 | Application program running method and device and intelligent terminal |
CN110837437A (en) * | 2018-08-17 | 2020-02-25 | 中标软件有限公司 | Power-down protection method based on general computer operating system |
CN109445861A (en) * | 2018-10-18 | 2019-03-08 | 深圳市网心科技有限公司 | System start method, device, computer installation and storage medium |
CN109445861B (en) * | 2018-10-18 | 2022-04-01 | 深圳市网心科技有限公司 | System starting method, device, computer device and storage medium |
CN112015587A (en) * | 2019-05-31 | 2020-12-01 | 烽火通信科技股份有限公司 | Method and device for enhancing reliability of operating system |
CN112015587B (en) * | 2019-05-31 | 2023-03-24 | 烽火通信科技股份有限公司 | Method and device for enhancing reliability of operating system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9823877B2 (en) | Virtual machine backup from storage snapshot | |
EP1907935B1 (en) | System and method for virtualizing backup images | |
CN102495812A (en) | Hard disk data protection and recovery method of Linux platform | |
US8738883B2 (en) | Snapshot creation from block lists | |
US8627012B1 (en) | System and method for improving cache performance | |
US8930947B1 (en) | System and method for live migration of a virtual machine with dedicated cache | |
US9235524B1 (en) | System and method for improving cache performance | |
CN102591675B (en) | Method and system for management of multiple software images with shared memory blocks | |
US20150074058A1 (en) | Container-based processing method, apparatus, and system | |
CN105446826A (en) | Virtual machine backup and recovery method and device | |
CN101770410A (en) | System restore method, virtual machine managing device and system based on client operating system | |
CN116457760A (en) | Asynchronous cross-region block volume replication | |
US9805068B1 (en) | Systems and methods for facilitating features of system recovery environments during restore operations | |
CN104216793A (en) | Application program backing up and restoring method and device | |
CN102830990A (en) | Computer system starting method and computer terminal | |
US10169027B2 (en) | Upgrade of an operating system of a virtual machine | |
CN104572354A (en) | Backup and restoration method for operating system based on restoration service and equipment thereof | |
CN101140537A (en) | Backup and recovery operation method of built-in operating system | |
US7603392B2 (en) | System, method and computer program product for storing transient state information | |
CN104142838A (en) | Method and equipment for starting up mobile communication terminal | |
US9053033B1 (en) | System and method for cache content sharing | |
CN102968358A (en) | Quick recovery method of soft RAID1 deployment system | |
US9009416B1 (en) | System and method for managing cache system content directories | |
CN116841799A (en) | Virtual machine backup method, system, equipment and readable storage medium | |
CN109710377B (en) | Method for recovering kvm virtual machine from faulty distributed storage |
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: 20120613 |