CN112905389A - Method for starting-up recovery and shutdown storage under Feiteng server platform - Google Patents
Method for starting-up recovery and shutdown storage under Feiteng server platform Download PDFInfo
- Publication number
- CN112905389A CN112905389A CN202110318149.4A CN202110318149A CN112905389A CN 112905389 A CN112905389 A CN 112905389A CN 202110318149 A CN202110318149 A CN 202110318149A CN 112905389 A CN112905389 A CN 112905389A
- Authority
- CN
- China
- Prior art keywords
- data
- shutdown
- application program
- opening
- recovery
- 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
- 238000011084 recovery Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000013500 data storage Methods 0.000 claims abstract description 21
- 230000006978 adaptation Effects 0.000 claims description 3
- 238000004321 preservation Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 101100498818 Arabidopsis thaliana DDR4 gene Proteins 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- 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/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1438—Restarting or rejuvenating
-
- 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/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a method for starting up recovery and shutdown storage under a Feiteng server platform, wherein the shutdown data storage software has the following processing flow: step A1: after the operating system receives a shutdown operation instruction or a restart operation instruction, the operating system calls a shutdown data storage application program through a systemctl when the operating system is shutdown, and the application program is customized, designed and developed according to the invention; step A2: the shutdown data storage application program firstly opens the device file node of the memory bank, judges whether the opening is successful, if the opening is successful, the step A3 is entered, and if the opening is unsuccessful, the step A5 is entered; step A3: the shutdown data storage application program opens file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step A4 is executed, and if the opening is unsuccessful, the step A5 is executed; step A4: the shutdown data storage application program starts to copy data from the common memory bank to the NVMe electronic disk, if the data is completely copied, the step A5 is executed, and if the data is not completely copied, new data copying continues to be started; step A5: ending the shutdown data saving application program; and boot data recovery software processing.
Description
Technical Field
The invention relates to a memory technology of a Feiteng server platform, in particular to a method for starting up recovery and shutdown storage under the Feiteng server platform.
Background
Fig. 1 is a schematic diagram of a non-volatile memory bank, and as shown in fig. 1, a DDR3 or DDR4 series of normal memory banks are commonly used as a memory on a current flyout server platform, and the normal memory banks, whether DDR3 or DDR4, are based on DRAMs. The characteristic of DRAM is that data is lost after power is off, so that the common memory bank is volatile when power is off. The principle of the non-volatile memory bank is that a block of FLASH particles without losing power-down data is added on the basis of the common memory bank. The nonvolatile memory bank is externally connected with a device which can still supply power to the nonvolatile memory bank after standby energy based on a capacitor is used as a server for power failure. And after the CPLD detects the change of the power supply of the mainboard, the CPLD informs the CPU, and the CPU triggers a nonvolatile memory data storage mechanism to realize the function of writing the data in the DRAM on the nonvolatile memory into the FLASH, as shown in the process I of figure 1. When the server is powered on and started, the CPU runs to a firmware stage, the firmware reads a relevant register on the nonvolatile memory bank, whether data recovery exists is judged, and if the data recovery exists, a hardware data recovery mechanism of the nonvolatile memory bank is triggered through the firmware. The data in the FLASH on the nonvolatile memory is restored to the DRAM, as shown in process two of fig. 1.
The existing nonvolatile memory storage and recovery functions realized based on the nonvolatile memory bank have more requirements on hardware, and software and hardware need to be modified in a customized manner, so that the application of the background technology is greatly limited, and the realization is complex. Moreover, the standby energy used needs to be charged when the computer is started, which results in a longer startup time. Meanwhile, when the nonvolatile memory stores data from the DRAM to the FLASH, the data transmission speed is limited by the data bus, so that the time for storing the data from the DRAM to the FLASH is longer when the nonvolatile memory is shut down.
Disclosure of Invention
The invention aims to provide a method for starting up recovery and shutdown saving under a Feiteng server platform, which is used for solving the problems in the prior art.
The invention discloses a method for starting up recovery and shutdown storage under a Feiteng server platform, wherein the shutdown data storage software has the following processing flow: step A1: after the operating system receives a shutdown operation instruction or a restart operation instruction, the operating system calls a shutdown data storage application program through a systemctl when the operating system is shutdown; step A2: the shutdown data storage application program firstly opens the device file node of the memory bank, judges whether the opening is successful, if the opening is successful, the step A3 is entered, and if the opening is unsuccessful, the step A5 is entered; step A3: the shutdown data storage application program opens file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step A4 is executed, and if the opening is unsuccessful, the step A5 is executed; step A4: the shutdown data storage application program starts to copy data from the common memory bank to the NVMe electronic disk, if the data is completely copied, the step A5 is executed, and if the data is not completely copied, new data copying continues to be started; step A5: ending the shutdown data saving application program; the boot data recovery software processing flow comprises the following steps: step B1: after entering an operating system, the operating system calls a starting-up data recovery application program through a systemctl; step B2: the startup data recovery application program firstly opens the device file nodes of the common memory bank, judges whether the opening is successful, and enters the step B3 if the opening is successful, and enters the step B5 if the opening is unsuccessful; step B3: the starting data recovery application program opens file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step B4 is executed, and if the opening is unsuccessful, the step B5 is executed; step B4: starting the data recovery application program to copy data from the NVMe electronic disk to a common memory bank, if the data is completely copied, entering a step B5, and if the data is not completely copied, continuing to copy new data; step B5: and ending the boot data recovery application program.
According to an embodiment of the method for booting recovery and shutdown saving under the FT server platform, according to the present invention, step A4: and the shutdown data saving application program starts to copy the data from the ordinary memory bank to the NVMe electronic disk, and 16GB of data is copied each time. After the copying of the 16GB data is completed, it is determined whether all the data copying is completed, and if the data copying is completed, the step a5 is performed, and if the data copying is not completed, the new copying of the 16GB data is continued.
According to an embodiment of the method for booting recovery and shutdown saving under the FT server platform, in the step B4: and the starting data recovery application program starts to copy the data from the NVMe electronic disk to the common memory bank. And copying the 16GB data each time, judging whether all data copying is finished or not after the copying of the 16GB data is finished, if so, entering a step B5, and if not, continuing to start copying the new 16GB data.
According to an embodiment of the method for booting recovery and shutdown saving under the FT server platform, in the step B1: and powering on the Feiteng 2000+ server platform to start up, and calling a starting-up data recovery application program by the operating system through the systemctl after entering the operating system.
According to an embodiment of the method for starting-up recovery and shutdown storage under the Feiteng server platform, the common memory bank is used as a block device by using nvdimm drive adaptation in a linux kernel.
According to an embodiment of the method for power-on recovery and power-off saving under the Feiteng server platform, when the Feiteng server is powered on, data is recovered from an NVMe electronic disk to a common memory bank.
According to an embodiment of the method for startup recovery and shutdown preservation under the Feiteng server platform, a system architecture is divided into three layers, namely a user layer, a kernel layer and a hardware layer.
According to an embodiment of the method for starting up recovery and shutdown saving under the Feiteng server platform, the user layer comprises a shutdown data saving application program and a startup data recovery application program, the kernel layer applies an nvdim drive and an NVMe drive, and the hardware layer is a common memory bank and an NVMe electronic disk.
The method is realized on a FT2000+ new-generation domestic multi-core processor server platform. The method mainly comprises the steps that a common server memory bank is utilized and is matched with the NVMe electronic disk, and when shutdown is achieved, data on the common memory bank are stored in the NVMe electronic disk. When the computer is started, the function of recovering data from the NVMe electronic disk to the common memory bank is realized. The non-volatile solution of the memory based on the non-volatile memory bank can be simulated functionally. In addition, the invention utilizes the characteristic of high-speed data transmission of the NVMe interface protocol, and the data transmission performance is higher than that of the background technology.
Drawings
FIG. 1 is a schematic diagram of a non-volatile memory bank based memory device;
FIG. 2 is a block diagram of the data save and restore feature of the present invention;
FIG. 3 is a schematic diagram of the data save and restore software of the present invention.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
Referring to fig. 2, the overall scheme architecture of the present invention is divided into three layers, namely, a user layer, a kernel layer and a hardware layer. The user layer includes a shutdown data saving application and a startup data recovery application. The second kernel layer mainly realizes the driving by using nvdim and NVMe. The hardware layer is a common memory bank and an NVMe electronic disk. The virtual frame A stores the shutdown data, and the virtual frame B recovers the startup data.
Referring to fig. 3, the shutdown data saving and startup data restoring software processes of the present invention are as follows, respectively.
The shutdown data storage software has the following processing flow:
step A1: and the operating system receives a shutdown operation instruction or a restart operation instruction, and calls a shutdown data storage application program through the systemctl when the operating system is shutdown.
Step A2: the shutdown data storage application program firstly opens the device file node of the normal memory bank, judges whether the opening is successful, if the opening is successful, the step A3 is entered, and if the opening is unsuccessful, the step A5 is entered.
Step A3: and (4) the shutdown data storage application program opens the file node of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step A4 is executed, and if the opening is unsuccessful, the step A5 is executed.
Step A4: the shutdown data saving application begins to copy data from the normal memory bank to the NVMe electronic disk. 16GB of data are copied at a time. After copying the data of 16GB, it is determined whether all data copying is completed, and if so, the process proceeds to step a 5. Without completion, the start of a new copy of 16GB of data continues.
Step A5: and ending the shutdown data saving application program.
The boot data recovery software processing flow is as follows:
step B1: and powering on the Feiteng 2000+ server platform to start up, and calling a starting-up data recovery application program by the operating system through the systemctl after entering the operating system.
Step B2: the boot data recovery application program first opens the device file node of the normal memory bank, and determines whether the opening is successful, if the opening is successful, the step B3 is entered, and if the opening is unsuccessful, the step B5 is entered.
Step B3: and the starting data recovery application program opens the file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step B4 is executed, and if the opening is unsuccessful, the step B5 is executed.
Step B4: and the starting data recovery application program starts to copy the data from the NVMe electronic disk to the common memory bank. 16GB of data are copied at a time. And after the 16GB data is copied, judging whether all the data copying is completed or not, and entering the step 5 if the data copying is completed. Without completion, the start of a new copy of 16GB of data continues.
Step B5: and ending the boot data recovery application program.
The method is mainly based on the common memory bank, and realizes that the common memory bank is used as a block device by using nvdimm drive adaptation in the linux kernel. NVMe electronic disks are used as data storage devices of the common memory bank. And when the Feiteng server is shut down, the data is copied to the NVMe electronic disk from the common memory bank. And when the Feiteng server is started, the data is recovered to the common memory bank from the NVMe electronic disk. The invention fully utilizes the high-speed read-write performance of the common memory and the high-speed read-write performance of the NVMe electronic disk. Compared with the background technical scheme, the efficiency is greatly improved by data storage and recovery.
Compared with the prior art of the nonvolatile function of the memory based on the nonvolatile memory. The technical method provided by the invention realizes the nonvolatile function of the memory by using the common memory bank and the NVMe electronic disk, so that the FT2000+ server platform can be completely realized by using a common FT2000+ server without modifying a hardware mainboard or modifying firmware. Only the linux kernel driver needs to be modified and the application program for realizing data storage and recovery needs to be modified. Compared with the background technical scheme, the performance of the startup data recovery and shutdown data storage of the invention is improved by 200 percent, and is almost improved by 2 times. The performance pairs are shown in table 1 below.
TABLE 1 comparison of the Performance of the present invention with that of the background art
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (8)
1. A method for starting up recovery and shutdown storage under a Feiteng server platform is characterized in that,
the shutdown data storage software has the following processing flow:
step A1: after the operating system receives a shutdown operation instruction or a restart operation instruction, the operating system calls a shutdown data storage application program through a systemctl when the operating system is shutdown;
step A2: the shutdown data storage application program firstly opens the device file node of the memory bank, judges whether the opening is successful, if the opening is successful, the step A3 is entered, and if the opening is unsuccessful, the step A5 is entered;
step A3: the shutdown data storage application program opens file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step A4 is executed, and if the opening is unsuccessful, the step A5 is executed;
step A4: the shutdown data storage application program starts to copy data from the common memory bank to the NVMe electronic disk, if the data is completely copied, the step A5 is executed, and if the data is not completely copied, new data copying continues to be started;
step A5: ending the shutdown data saving application program;
the boot data recovery software processing flow comprises the following steps:
step B1: after entering an operating system, the operating system calls a starting-up data recovery application program through a systemctl;
step B2: the startup data recovery application program firstly opens the device file nodes of the common memory bank, judges whether the opening is successful, and enters the step B3 if the opening is successful, and enters the step B5 if the opening is unsuccessful;
step B3: the starting data recovery application program opens file nodes of the NVMe electronic disk device, whether the opening is successful is judged, if the opening is successful, the step B4 is executed, and if the opening is unsuccessful, the step B5 is executed;
step B4: starting the data recovery application program to copy data from the NVMe electronic disk to a common memory bank, if the data is completely copied, entering a step B5, and if the data is not completely copied, continuing to copy new data;
step B5: and ending the boot data recovery application program.
2. The method for power-on recovery and power-off saving under the Feiteng server platform as claimed in claim 1, wherein step A4: and the shutdown data saving application program starts to copy the data from the ordinary memory bank to the NVMe electronic disk, and 16GB of data is copied each time. After the copying of the 16GB data is completed, it is determined whether all the data copying is completed, and if the data copying is completed, the step a5 is performed, and if the data copying is not completed, the new copying of the 16GB data is continued.
3. The method for power-on recovery and power-off saving under the Feiteng server platform as claimed in claim 1, wherein step B4: and the starting data recovery application program starts to copy the data from the NVMe electronic disk to the common memory bank. And copying the 16GB data each time, judging whether all data copying is finished or not after the copying of the 16GB data is finished, if so, entering a step B5, and if not, continuing to start copying the new 16GB data.
4. The method for power-on recovery and power-off saving under the Feiteng server platform as claimed in claim 1, wherein step B1: and powering on the Feiteng 2000+ server platform to start up, and calling a starting-up data recovery application program by the operating system through the systemctl after entering the operating system.
5. The method for boot recovery and shutdown preservation under a Feiteng server platform as claimed in claim 1, wherein the normal memory bank is implemented as one block device using nvdimm driver adaptation in a linux kernel.
6. The method for power-on recovery and power-off preservation under the Feiteng server platform according to claim 1, wherein when the Feiteng server is powered on, data is recovered from an NVMe electronic disk to a normal memory bank.
7. The method for boot recovery and shutdown saving under a Feiteng server platform as claimed in claim 1, wherein the system architecture is divided into three layers, which are a user layer, a kernel layer and a hardware layer.
8. The Feiteng server platform power-on resume and power-off save method according to claim 7,
the user layer comprises a shutdown data storage application program and a startup data recovery application program, the kernel layer applies nvdim drive and NVMe drive, and the hardware layer is a common memory bank and an NVMe electronic disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110318149.4A CN112905389A (en) | 2021-03-25 | 2021-03-25 | Method for starting-up recovery and shutdown storage under Feiteng server platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110318149.4A CN112905389A (en) | 2021-03-25 | 2021-03-25 | Method for starting-up recovery and shutdown storage under Feiteng server platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112905389A true CN112905389A (en) | 2021-06-04 |
Family
ID=76106369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110318149.4A Pending CN112905389A (en) | 2021-03-25 | 2021-03-25 | Method for starting-up recovery and shutdown storage under Feiteng server platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112905389A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005071531A1 (en) * | 2004-01-15 | 2005-08-04 | Lenovo (Beijing) Limited | A method and device for start up computer |
CN101620539A (en) * | 2008-07-01 | 2010-01-06 | 联想(北京)有限公司 | Method for start-up and shutdown and computer |
CN101937344A (en) * | 2009-06-30 | 2011-01-05 | 联想(北京)有限公司 | Computer and method for quickly starting same |
CN103207799A (en) * | 2013-04-23 | 2013-07-17 | 中国科学院微电子研究所 | Method, device and system for closing down and starting up computer system |
CN111443949A (en) * | 2020-03-25 | 2020-07-24 | 北京计算机技术及应用研究所 | Kernel memory page copying acceleration method under Feiteng server platform |
-
2021
- 2021-03-25 CN CN202110318149.4A patent/CN112905389A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005071531A1 (en) * | 2004-01-15 | 2005-08-04 | Lenovo (Beijing) Limited | A method and device for start up computer |
CN101620539A (en) * | 2008-07-01 | 2010-01-06 | 联想(北京)有限公司 | Method for start-up and shutdown and computer |
CN101937344A (en) * | 2009-06-30 | 2011-01-05 | 联想(北京)有限公司 | Computer and method for quickly starting same |
CN103207799A (en) * | 2013-04-23 | 2013-07-17 | 中国科学院微电子研究所 | Method, device and system for closing down and starting up computer system |
CN111443949A (en) * | 2020-03-25 | 2020-07-24 | 北京计算机技术及应用研究所 | Kernel memory page copying acceleration method under Feiteng server platform |
Non-Patent Citations (2)
Title |
---|
谭喆: "《应用软件开发协议栈》", 31 March 2020, 东南大学出版社, pages: 492 - 494 * |
马小陆等: "《基于ARM的嵌入式Linux开发与应用》", 31 March 2007, 北京航空航天大学出版社, pages: 73 - 18 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10387313B2 (en) | Method and system for ensuring reliability of cache data and metadata subsequent to a reboot | |
US7941700B2 (en) | Operating system-based application recovery | |
JP2779813B2 (en) | computer | |
US8135914B2 (en) | Managing cache data and metadata | |
TWI617914B (en) | Specialized boot path for speeding up resume from sleep state | |
TWI436199B (en) | Method and controller for power management | |
US20090292887A1 (en) | Method and apparatus for preserving memory contents during a power outage | |
WO2012016393A1 (en) | Method and device for cold starting android mobile terminal | |
JPH077317B2 (en) | System restart device | |
KR101845512B1 (en) | Method for initializing of memory system | |
CN101620539A (en) | Method for start-up and shutdown and computer | |
JP2012069107A (en) | Handling of error during device booting-up from nonvolatile memory | |
WO2011063584A1 (en) | Deep standby method and device for embedded system | |
CN101937344B (en) | Computer and method for quickly starting same | |
CN101634884A (en) | Power source management controller and method thereof | |
JP3047791B2 (en) | computer | |
JPH07175728A (en) | Disk cache data maintenance system | |
CN105408869A (en) | Invoking error handler to handle uncorrectable error | |
JP3963470B2 (en) | Mobile terminal and control method of the terminal | |
TW201546612A (en) | Resuming a system using state information | |
JP2003085041A (en) | Disc cache system | |
CN101436097B (en) | Electronic device and wake-up method thereof | |
CN112905389A (en) | Method for starting-up recovery and shutdown storage under Feiteng server platform | |
JP2002099390A (en) | Disk controller | |
US20130073792A1 (en) | Electronic apparatus using nand flash and memory 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 |