CN114168080A - Automatic partition switching and backup method for server - Google Patents
Automatic partition switching and backup method for server Download PDFInfo
- Publication number
- CN114168080A CN114168080A CN202111499571.0A CN202111499571A CN114168080A CN 114168080 A CN114168080 A CN 114168080A CN 202111499571 A CN202111499571 A CN 202111499571A CN 114168080 A CN114168080 A CN 114168080A
- Authority
- CN
- China
- Prior art keywords
- server
- starting
- repair
- backups
- partitions
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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 operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a method for automatically switching partitions and backups of servers, which belongs to the technical field of servers and aims to solve the problems that in most servers, a fault occurs and a system cannot be accessed, and at the moment, a repair person is needed to manually repair the fault, if a maintenance person is feasible on site, and if a maintenance person is available in a machine room on the other place, a technical person is needed to go to repair the fault, and manpower and material resources are consumed very much, and the method comprises the following steps: s1: reading starting parameters in the starting process of the server; s2: the watchdog function is opened through Kernel, and the number of times of feeding dogs is set; s3: normally starting the system, setting the watchdog state as enable, setting a starting parameter, and backing up the system to another partition; the invention can save manpower and material resources, intelligently switch the partitions to repair the abnormal starting condition of the server, and backup the system to another partition, thereby ensuring the normal and stable operation of the server, and reducing the complicated process and the cost.
Description
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a method for automatically switching partitions and backups of a server.
Background
In most servers, a fault occurs, and the system cannot be accessed, so that manual repair is needed, if maintenance personnel are feasible on site, technicians are needed to go to repair in a non-local machine room, and manpower and material resources are consumed;
the method for repairing the damage of the previous server system (see the attached figure 1 in the specification):
1. accessing into a system through UART
2. Switching partitions under uboot
3. After entering the system, the partition file is backed up to another partition
Through the method, when a large number of servers are arranged outside, the partition system is abnormal, a large amount of manpower is needed to go to the site for repair, the process is very complicated, and the method is not intelligent.
Disclosure of Invention
The present invention provides a method for automatically switching partitions and backups for a server, so as to solve the problems in the background art.
In order to achieve the purpose, the invention provides the following technical scheme: a method for automatically switching partitions and backups of a server comprises the following steps:
s1: reading starting parameters in the starting process of the server;
s2: the watchdog function is opened through Kernel, and the number of times of feeding dogs is set;
s3: normally starting the system, setting the watchdog state as enable, setting a starting parameter, and backing up the system to another partition;
s4: when the system is abnormally started, the watchdog timeout enters the uboot state, the read starting parameter is unchanged, the partition is automatically switched, and then the step S2 is executed.
The scheme is as follows: the start parameters in S1 include a partition name and an operating state.
In a preferred embodiment, the number of times of feeding dogs in S2 includes multiplying 100 times by 1 second.
In a preferred embodiment, the start parameter in S3 includes a partition name and a status bit.
Compared with the prior art, the method for automatically switching the partitions and the backup of the server, provided by the invention, at least has the following beneficial effects:
the invention can save manpower and material resources, intelligently switch the partitions to repair the abnormal starting condition of the server, and backup the system to another partition, thereby ensuring the normal and stable operation of the server, and reducing the complicated process and the cost.
Drawings
FIG. 1 is a block diagram of a prior art server system corruption remediation arrangement of the present invention;
fig. 2 is a system architecture diagram of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples.
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described below clearly and completely with reference to the drawings of the embodiments of the present disclosure, and it is obvious that the described embodiments are some embodiments of the present disclosure, but not all embodiments, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts based on the described embodiments of the present disclosure belong to the protection scope of the present disclosure.
Unless otherwise defined, technical or scientific terms used herein should be understood as having a common meaning as understood by those of ordinary skill in the art to which this disclosure belongs, and the use of "including" or "comprising" and the like in this disclosure means that the element or item appearing before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items, that "connected" or "connected" and the like are not limited to physical or mechanical connections, and may include electrical connections, whether direct or indirect, "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, which may also change accordingly when the absolute position of the object being described changes.
The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention. The conditions in the embodiments can be further adjusted according to specific conditions, and simple modifications of the method of the present invention based on the concept of the present invention are within the scope of the claimed invention.
Referring to fig. 2, the present invention provides a method for automatically switching partitions and backups of a server, including the following steps:
s1: reading starting parameters in the starting process of the server;
s2: the watchdog function is opened through Kernel, and the number of times of feeding dogs is set;
s3: normally starting the system, setting the watchdog state as enable, setting a starting parameter, and backing up the system to another partition;
s4: when the system is abnormally started, the watchdog timeout enters the uboot state, the read starting parameter is unchanged, the partition is automatically switched, and then the step S2 is executed.
The scheme is as follows: the start parameter in S1 includes a partition name and a running state, the number of dog feeding in S2 includes 100 times 1 second, and the start parameter in S3 includes a partition name and a status bit.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (4)
1. A method for automatically switching partitions and backups of a server is characterized by comprising the following steps:
s1: reading starting parameters in the starting process of the server;
s2: the watchdog function is opened through Kernel, and the number of times of feeding dogs is set;
s3: normally starting the system, setting the watchdog state as enable, setting a starting parameter, and backing up the system to another partition;
s4: when the system is abnormally started, the watchdog timeout enters the uboot state, the read starting parameter is unchanged, the partition is automatically switched, and then the step S2 is executed.
2. The method for automatically switching partitions and backups of a server according to claim 1, wherein: the start parameters in S1 include a partition name and an operating state.
3. The method for automatically switching partitions and backups of the server according to claim 2, wherein: the number of times of feeding dogs in S2 includes multiplying 100 times by 1 second.
4. The method for automatically switching partitions and backups of a server according to claim 3, wherein: the start parameter in S3 includes a partition name and a status bit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111499571.0A CN114168080A (en) | 2021-12-09 | 2021-12-09 | Automatic partition switching and backup method for server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111499571.0A CN114168080A (en) | 2021-12-09 | 2021-12-09 | Automatic partition switching and backup method for server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114168080A true CN114168080A (en) | 2022-03-11 |
Family
ID=80485126
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111499571.0A Pending CN114168080A (en) | 2021-12-09 | 2021-12-09 | Automatic partition switching and backup method for server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114168080A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347532A (en) * | 2019-07-11 | 2019-10-18 | 陕西瑞迅电子信息技术有限公司 | Multi-partitioned systems backup method and device |
CN113360347A (en) * | 2021-06-30 | 2021-09-07 | 南昌华勤电子科技有限公司 | Server and control method thereof |
-
2021
- 2021-12-09 CN CN202111499571.0A patent/CN114168080A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110347532A (en) * | 2019-07-11 | 2019-10-18 | 陕西瑞迅电子信息技术有限公司 | Multi-partitioned systems backup method and device |
CN113360347A (en) * | 2021-06-30 | 2021-09-07 | 南昌华勤电子科技有限公司 | Server and control method thereof |
Non-Patent Citations (1)
Title |
---|
砸漏: ""详解linux 看门狗驱动编写"", pages 1 - 3, Retrieved from the Internet <URL:《https://cloud.tencent.com/developer/article/1722377?from=15425》> * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100517246C (en) | Computer remote control method and system | |
CN100426247C (en) | Data recovery method | |
CN101788936B (en) | Snapshot backup and restoration method and device when in running of mobile terminal | |
CN100492305C (en) | Fast restoration method of computer system and apparatus | |
CN111858176A (en) | Remote monitoring fault self-healing system and method | |
CN103412801A (en) | Method for file backup based on process identification file | |
CN101207519A (en) | Version server, operation maintenance unit and method for restoring failure | |
CN114116280A (en) | Interactive BMC self-recovery method, system, terminal and storage medium | |
CN109344004A (en) | A kind of memory database backup management method, device, terminal and storage medium | |
CN108376110A (en) | A kind of automatic testing method, system and terminal device | |
CN100531048C (en) | Method for dynamic setting management function at management interface of intelligent interface | |
US6732359B1 (en) | Application process monitor | |
CN114168080A (en) | Automatic partition switching and backup method for server | |
JPH0822424A (en) | Client server system and its control method | |
WO2023240944A1 (en) | Data recovery method and apparatus, electronic device, and storage medium | |
CN1148646C (en) | High-safety shtdown method for protecting Window 9X system | |
CN104158843A (en) | Storage unit invalidation detecting method and device for distributed file storage system | |
CN109104314B (en) | Method and device for modifying log configuration file | |
CN201047943Y (en) | Fast recovery equipment of computer system | |
CN111158952A (en) | Method for automatically backing up configuration file by using external storage equipment | |
CN101022633A (en) | Allocation data recovering method, system and device | |
CN112055086B (en) | IIS site, release and management method of Windows service, operation and maintenance system and platform | |
CN100445982C (en) | Computer restoration system and method with multiple restoring points | |
CN107590647A (en) | The servo supervisory systems of ship-handling system | |
CN111177116B (en) | Intelligent database management platform and management method thereof |
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 |