CN109976886A - The long-range switching method of kernel and device - Google Patents
The long-range switching method of kernel and device Download PDFInfo
- Publication number
- CN109976886A CN109976886A CN201711465639.7A CN201711465639A CN109976886A CN 109976886 A CN109976886 A CN 109976886A CN 201711465639 A CN201711465639 A CN 201711465639A CN 109976886 A CN109976886 A CN 109976886A
- Authority
- CN
- China
- Prior art keywords
- kernel
- new kernel
- new
- file
- server
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/481—Exception handling
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Hardware Redundancy (AREA)
Abstract
The present invention relates to linux system technical field, a kind of long-range switching method of kernel and device are provided.The described method includes: receiving the new kernel file that baseboard management controller is sent;Obtain the trigger signal that the baseboard management controller is sent;According to the trigger signal, the system management interrupt handler for stopping service processes being executed;According to the new kernel file, loads and start new kernel;The service processes are continued to execute using the new kernel.The method and device, which can solve, can not be quickly switched into new kernel under linux system operating status, can not effectively guarantee the problems such as server is without completing kernel upgrading or solving operation troubles when restarting.
Description
Technical field
The present invention relates to linux system technical fields, and in particular to a kind of long-range switching method of kernel and device.
Background technique
With the continuous development of server technology, performance and function are become stronger day by day, multichannel CPU, large capacity memory, Gao Ke
The demands such as scalability make hardware design complicated, and equipment is various, need largely to be initialized and detected in startup stage, school
Work is tested, starting up speed is slower.And server usually requires prolonged continuous service, the requirement to availability and stability
It is very high, therefore seldom restarted, but still it is likely encountered the operation troubles that can not be retrieved or installation is restarted can just come into force
The situations such as security patch, influence service and provide.It and in the prior art, must be into when linux system kernel is switched to new kernel
Row is restarted, and causes switching efficiency lower.
Summary of the invention
In view of this, can solve existing skill the embodiment of the invention provides a kind of long-range switching method of kernel and device
Linux system can not be quickly switched into new kernel under operation, can not effectively guarantee in server without restarting in art
In the case of complete kernel upgrading or solve operation troubles the problems such as.
The embodiment of the present invention provides a kind of long-range switching method of kernel, comprising:
Receive the new kernel file that baseboard management controller is sent;
Obtain the trigger signal that the baseboard management controller is sent;
According to the trigger signal, the system management interrupt handler for stopping service processes being executed;
According to the new kernel file, loads and start new kernel;
The service processes are continued to execute using the new kernel.
Optionally, the new kernel file that baseboard management controller is sent is received, comprising:
Receive the new kernel file that baseboard management controller is sent by inband network management mode or Outband network management mode.
Optionally, after receiving the new kernel file that baseboard management controller is sent, further includes:
Former kernel file is backed up, the new kernel file is covered into former kernel file;
According to the new kernel file, corresponding configuration information is modified.
Optionally, it according to the new kernel file, loads and starts new kernel, comprising:
According to the new kernel file, by calling boot program loads in system management interrupt handler and starting
New kernel.
The embodiment of the present invention provides a kind of long-range switching device of kernel, comprising:
Receiving module, for receiving the new kernel file of baseboard management controller transmission;
Module is obtained, the trigger signal sent for obtaining the baseboard management controller;
Execution module is handled for according to the trigger signal, executing the system management interrupt for stopping service processes
Program;
Loading module, for loading and starting new kernel according to the new kernel file;
Opening module, for continuing to execute the service processes using the new kernel.
The embodiment of the present invention provides a kind of long-range switching method of kernel, comprising:
New kernel file is sent to server;
And trigger signal is sent to the server;The trigger signal is used to indicate server and stops service processes, root
New kernel is loaded and started according to the new kernel file, continues to execute the service processes using the new kernel.
Optionally, new kernel file is sent to server, comprising:
New kernel file is sent to server by inband network management mode or Outband network management mode.
The embodiment of the present invention provides a kind of long-range switching device of kernel, comprising:
Sending module, for sending new kernel file to server;
Trigger module, for sending trigger signal to the server;The trigger signal is used to indicate server stopping
Service processes load according to the new kernel file and start new kernel, using the new kernel continue to execute it is described service into
Journey.
The embodiment of the present invention provides a kind of computer equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor, which is characterized in that when the processor executes described program, realize in any of the above-described
The step of core long-range switching method.
Existing beneficial effect is technical solution used in the embodiment of the present invention compared with prior art: the embodiment of the present invention
The new kernel file sent by receiving baseboard management controller, then obtain the triggering letter that the baseboard management controller is sent
Number, and according to the trigger signal, the system management interrupt handler for stopping service processes being executed, further according to described new
Kernel file loads and starts new kernel, the service processes is continued to execute using the new kernel, so that kernel run
It is quickly switched into new kernel under state, for server without restarting, service just fast quick-recovery after briefly stopping can be used for kernel
Upgrading or solution operation troubles etc., convenience and high-efficiency have skipped hardware device and have restarted, is solid compared to the process of tradition switching kernel
Multiple stages such as part initialization and verification can reach quickly, in the kernel of batch updating destination server, or rapid exclusion
The purpose of core failure guarantee service processes stable operation.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the long-range switching method flow chart of kernel that the embodiment of the present invention one provides;
Fig. 2 is the long-range switching device frame assumption diagram of kernel provided by Embodiment 2 of the present invention;
Fig. 3 is the long-range switching method flow chart of kernel that the embodiment of the present invention three provides;
Fig. 4 is the long-range switching device frame assumption diagram of kernel that the embodiment of the present invention four provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Referring to Fig. 1, the long-range switching method of kernel of the offer of the embodiment of the present invention one, comprising:
Step S101 receives the new kernel file that baseboard management controller is sent.
The executing subject of method can be server in the present embodiment one.The server is for storing new kernel file simultaneously
Execute service processes.The present invention devises the remote control function based on baseboard management controller, and has cluster management function,
The batch monitoring to the server may be implemented, the baseboard management controller is built on the mainboard of the server
Hardware module can carry out the remote control management, the server to server by Intelligent Platform Management Interface IPMI protocol
It can receive the new kernel file of baseboard management controller transmission, and new kernel file be stored in the hard disk of linux system.
Specifically, the new kernel file that baseboard management controller is sent is received, may include: reception baseboard management controller
The new kernel file sent by inband network management mode or Outband network management mode.
In the present embodiment, the mode that baseboard management controller sends new kernel file to server may include inband network management
Mode or Outband network management mode, wherein inband network management makes network management data in network and business datum in identical link
Middle transmission, when management data (including Simple Network Management Protocol SNMP, data exchange Netflow, service for checking credentials Radius and meter
Take) it is more when, it will the performance for influencing whole network, when management data flow it is less, to the performance shadow of whole network
Sound is unobvious, and inband network management can be used;The network management control information of Outband network management and the bearer service information of user network exist
Different logic channel transmission, network management data and business datum are separated, and autonomous channel are established for network management data, in this channel
In, transfer management data, statistical information, charge information etc., network management data is separated with business datum, and the effect of network management can be improved
Rate and reliability are also beneficial to improve the safety of network management data, and therefore, baseboard management controller can be according to different situations
Select the mode of the different new kernel files of transmission.
It optionally, can also include: to back up former kernel after receiving the new kernel file that baseboard management controller is sent
The new kernel file is covered former kernel file by file;According to the new kernel file, corresponding configuration information is modified.
In the present embodiment, the server will backup original after receiving the new kernel file that baseboard management controller is sent
Kernel file does later period operational failure analysis etc. to save former kernel file, after the completion of backup, server will be new to memory
Former kernel file in kernel file covering linux system simultaneously modifies corresponding configuration information, such as by new kernel file name
Unified matching is carried out, server can be used for according to the configuration information and execute system management interrupt handler, wherein covering
Former kernel file be the operation of linux system Central Plains kernel based on former kernel file be not to back up in the original of memory
Core file.
Step S102 obtains the trigger signal that the baseboard management controller is sent.
In the present embodiment, after receiving the new kernel file that baseboard management controller is sent, server obtains the substrate
The trigger signal that Management Controller is sent, the trigger signal are used to indicate server and stop service processes, at this time former kernel meeting
Out of service, the service processes being currently running will also stop, and just can restore service processes after the new kernel starting.
Step S103 executes the system management interrupt handler for stopping service processes according to the trigger signal.
In the present embodiment, after the server gets the trigger signal, according to the trigger signal, the server
On CPU enter system administration SMM mode and execute the system management interrupt handler registered in server start-up phase.
Step S104 is loaded according to the new kernel file and is started new kernel.
Specifically, according to the new kernel file, by calling bootstrap to add in system management interrupt handler
It carries and starts new kernel.
In the present embodiment, according to the new kernel file, the system management interrupt handler is designed to call
UEFI BIOS is loaded directly into new kernel in the bootstrap of BDS phase, and former kernel can be out of service at this time, the clothes being currently running
Business process will also stop, and start to start new kernel.
Step S105 continues to execute the service processes using the new kernel.
In the present embodiment, it just can restore the service processes after the new kernel starting.
In the present embodiment, the new kernel file sent by receiving baseboard management controller, then obtain the substrate management
The trigger signal that controller is sent, and according to the trigger signal, it executes at the system management interrupt for stopping service processes
Manage program and further according to the new kernel file load and start new kernel, using the new kernel continue to execute it is described service into
Journey, so that kernel to be quickly switched into new kernel under operation, server services after briefly stopping just without restarting
Fast quick-recovery, can be used for kernel upgrading or solve operation troubles etc., convenience and high-efficiency is jumped compared to the process of tradition switching kernel
Multiple stages such as hardware device is restarted, firmware is initialized and verified have been spent, can reach quick, batch updating destination server
Kernel, or the purpose that kernel failure guarantees service processes stable operation is excluded rapidly.
Referring to fig. 2, the long-range switching device of kernel that the present embodiment two provides, may include: receiving module 201, for connecing
Receive the new kernel file that baseboard management controller is sent;Module 202 is obtained, for obtaining the baseboard management controller transmission
Trigger signal;Execution module 203, for executing the system management interrupt for stopping service processes according to the trigger signal
Processing routine;Loading module 204, for loading and starting new kernel according to the new kernel file;Opening module 205, is used for
The service processes are continued to execute using the new kernel.
The long-range switching device of kernel in the present embodiment can be used for executing the long-range switching method of kernel shown in FIG. 1,
Specific implementation principle may refer to above method embodiment, and details are not described herein again.
In the present embodiment two, by setting receiving module 201, module 202, execution module 203, loading module 204 are obtained
And opening module 205, the new kernel file for being sent by receiving baseboard management controller, then obtain the substrate management
The trigger signal that controller is sent, and according to the trigger signal, it executes at the system management interrupt for stopping service processes
Manage program and further according to the new kernel file load and start new kernel, using the new kernel continue to execute it is described service into
Journey, so that kernel to be quickly switched into new kernel under operation, server services after briefly stopping just without restarting
Fast quick-recovery, can be used for kernel upgrading or solve operation troubles etc., convenience and high-efficiency is jumped compared to the process of tradition switching kernel
Multiple stages such as hardware device is restarted, firmware is initialized and verified have been spent, can reach quick, batch updating destination server
Kernel, or the purpose that kernel failure guarantees service processes stable operation is excluded rapidly.
Wherein, the receiving module 201 of setting be specifically used for receiving baseboard management controller by inband network management mode or
The new kernel file that Outband network management mode is sent;The long-range switching device of kernel further includes backup module, the backup module
It, will be described new for after the new kernel file that receiving module 201 receives that baseboard management controller is sent, backing up former kernel file
Kernel file covers former kernel file;The loading module 204 is specifically used for according to the new kernel file, by system pipes
Boot program loads are called in reason interrupt handling routine and start new kernel.
In the present embodiment, the spare module is specifically used for receiving what baseboard management controller was sent in receiving module 201
Former kernel file will be backed up after new kernel file to memory, do later period operational failure analysis to save former kernel file
Deng, after the completion of backup, server by new kernel file cover linux system in former kernel file and modify corresponding configuration
Information.
The module 202 that obtains is specifically used for after receiving the new kernel file that baseboard management controller is sent, server
The trigger signal that the baseboard management controller is sent is obtained, the trigger signal is used to indicate server and stops service processes,
Former kernel can be out of service at this time, and the service processes being currently running will also stop, and just can restore to take after the new kernel starting
Business process.
The execution module 203 is specifically used for the server after getting the trigger signal, according to the triggering
Signal, the CPU on the server enter system administration SMM mode and execute in the system administration that server start-up phase is registered
Disconnected processing routine.
The loading module 204 is specifically used for according to the new kernel file, the system management interrupt handler quilt
It is designed to call UEFI BIOS in the bootstrap of BDS phase, is loaded directly into new kernel, former kernel can be out of service at this time, just
It will also stop in the service processes of operation, and start to start new kernel.
The opening module 205 be specifically used for can restoring after the new kernel starting and continue to execute it is described service into
Journey.
Referring to Fig. 3, the long-range switching method of kernel of the offer of the present embodiment three, comprising:
Step S301 sends new kernel file to server.
The executing subject of method can be baseboard management controller in the present embodiment three.The baseboard management controller is used for
The remote control management is carried out to server by IPMI protocol.The present invention devises the long-range control based on baseboard management controller
Function, and have cluster management function, the batch monitoring to the server may be implemented, the baseboard management controller is interior
The hardware module on the mainboard of the server is set, server can be carried out by Intelligent Platform Management Interface IPMI protocol
The remote control management, the baseboard management controller can send new kernel file into server.
Specifically, new kernel file is sent to server, may include: by inband network management mode or Outband network management side
Formula sends new kernel file to server.
In the present embodiment, baseboard management controller can transmit file by inband network management mode or Outband network management mode
With the operation server, the file may include new kernel file, if baseboard management controller uses business network interface,
Baseboard management controller can be by safety shell protocol SSH, or uses private NNI, and baseboard management controller can be with
Pass through KVM (keyboard display mouse) remotely control etc., wherein inband network management makes network management data and business datum in network
Transmitted in identical link, when management data (including Simple Network Management Protocol SNMP, data exchange Netflow, verifying clothes
Be engaged in Radius and charging etc.) it is more when, it will the performance for influencing whole network, when management data flow it is less, to entire
The performance influence of network is unobvious, and inband network management can be used;The network management control information of Outband network management and holding for user network
It carries business information to transmit in different logic channels, network management data and business datum is separated, established for network management data independent logical
Road, in this channel, transfer management data, statistical information, charge information etc., network management data is separated with business datum, can
To improve the efficiency and reliability of network management, it is also beneficial to improve the safety of network management data, therefore, baseboard management controller can be with
The mode of the different new kernel files of transmission is selected according to different situations.
Step S302, Xiang Suoshu server sends trigger signal;The trigger signal is used to indicate server and stops service
Process loads according to the new kernel file and starts new kernel, continues to execute the service processes using the new kernel.
In the present embodiment, the baseboard management controller triggers system administration after sending new kernel file to the server
It interrupts SMI and sends trigger signal to the server, so that after the server gets the trigger signal, according to institute
Trigger signal is stated, makes the CPU on the server enter system administration SMM mode and execute what server start-up phase was registered to be
Reason interrupt handling routine under the overall leadership, the system management interrupt handler are designed to call UEFI BIOS drawing in BDS phase
Lead sequence is loaded directly into new kernel, and former kernel can be out of service at this time, and the service processes being currently running will also stop, and start
Start new kernel, just can restore the service processes after the new kernel starting.
Wherein, on the x86 platform for having baseboard management controller, the baseboard management controller need to connect system administration
SMI interrupt pin is interrupted, linux system is installed under X86-based, is write in UEFI bios code in corresponding system administration
Disconnected processing routine, and the system management interrupt handler is registered in server booting.
In the present embodiment, baseboard management controller is by sending new kernel file to server and sending to the server
Trigger signal, so that the server stops service processes according to the instruction of trigger signal, further according to the new kernel file
New kernel is loaded and started, the service processes are continued to execute using the new kernel, so that kernel is fast under operation
Speed is switched to new kernel, and server is without restarting, service just fast quick-recovery after briefly stopping, can be used for kernel upgrading or
Solve operation troubles etc., convenience and high-efficiency, compared to the process of tradition switching kernel, skipped hardware device restart, firmware initialization
With multiple stages such as verification, can reach quickly, the kernel of batch updating destination server, or exclude kernel failure rapidly and protect
Demonstrate,prove the purpose of service processes stable operation.
Referring to fig. 4, the long-range switching device of kernel that the present embodiment four provides, comprising:
Sending module 401, for sending new kernel file to server;Trigger module 402, for being sent out to the server
Send trigger signal;The trigger signal is used to indicate server and stops service processes, loads and opens according to the new kernel file
New kernel is moved, continues to execute the service processes using the new kernel.
The long-range switching device of kernel in the present embodiment can be used for executing the long-range switching method of kernel shown in Fig. 3,
Specific implementation principle may refer to above method embodiment, and details are not described herein again.
In the present embodiment four, by setting sending module 401 and trigger module 402, for being controlled by substrate management
Device sends new kernel file to server, and sends trigger signal to the server, and instruction server stops service processes, root
New kernel is loaded and started according to the new kernel file, continues to execute the service processes using the new kernel, thus will be interior
Core is quickly switched into new kernel under operation, and server is without restarting, and service just fast quick-recovery after briefly stopping can
For kernel upgrading or solution operation troubles etc., convenience and high-efficiency has skipped hardware device compared to the process of tradition switching kernel
Restart, multiple stages such as firmware initialization and verification, can reach quickly, the kernel of batch updating destination server, Huo Zhexun
Speed excludes the purpose that kernel failure guarantees service processes stable operation.
Wherein, the sending module 401 is specifically used for baseboard management controller by inband network management mode or with outer net
Pipe mode sends new kernel file to server;The trigger module 402 is specifically used for instruction server and stops service processes, root
New kernel is loaded and started according to the new kernel file, continues to execute the service processes using the new kernel.
In the present embodiment, the baseboard management controller triggers system administration after sending new kernel file to the server
It interrupts SMI and sends trigger signal to the server, so that after the server gets the trigger signal, according to institute
Trigger signal is stated, makes the CPU on the server enter system administration SMM mode and execute what server start-up phase was registered to be
Reason interrupt handling routine under the overall leadership, the system management interrupt handler are designed to call UEFI BIOS drawing in BDS phase
Lead sequence is loaded directly into new kernel, and former kernel can be out of service at this time, and the service processes being currently running will also stop, and start
Start new kernel, just can restore the service processes after the new kernel starting.
The embodiment of the present invention also provides a kind of long-range switching method of kernel, including step S501 to step S508:
Step S501 starts;
Step S502, baseboard management controller are connected remotely on server;
Step S503, the baseboard management controller send new kernel by inband network management mode or Outband network management mode
File is to the server;
Step S504, the server backup original kernel file, and will new interior kernel covering original kernel;
Step S505, the baseboard management controller triggers system management interrupt SMI, to make on the server
CPU enters SMM mode, executes corresponding system management interrupt handler;
Step S506, the system management interrupt handler call bootstrap, execute new kernel;
Step S507, new kernel complete starting, continue to execute service processes;
Step S508 terminates.
Wherein, the system management interrupt SMI is that CPU level is other, transparent to operating system, and software occurs in operating system
In the case where the severely subnormals such as delay machine, the collapse of level, the system management interrupt SMI also can triggered as normal, enter CPU
SMM mode, executes the system management interrupt handler being pre-designed, and the system management interrupt handler is opened in server
The machine stage is registered by BIOS, and is stored in memory.
Computer equipment provided by the invention, including memory, processor and storage are on a memory and can be in processor
The computer program of upper operation, when the processor executes described program, the step of above method may be implemented.
Computer equipment in the present embodiment can be used for executing Fig. 1 and/or the long-range switching method of kernel shown in Fig. 3,
It, which implements principle, may refer to above method embodiment, and details are not described herein again.
Computer readable storage medium provided by the invention, the computer-readable recording medium storage have computer journey
Sequence, when the computer program is executed by one or more processors, the step of above method may be implemented.
Computer readable storage medium in the present embodiment can be used for executing Fig. 1 and/or kernel shown in Fig. 3 is remotely cut
Method is changed, specific implementation principle may refer to above method embodiment, and details are not described herein again.
Baseboard management controller is connected remotely to server by the long-range switching method of setting kernel and device by the present invention
On, the baseboard management controller sends new kernel file to the service by inband network management mode or Outband network management mode
Device, the server backup original kernel file, and newly interior kernel covering original kernel, the baseboard management controller will trigger system pipes
Reason interrupts SMI and executes corresponding system management interrupt handler so that the CPU on the server be made to enter SMM mode,
The system management interrupt handler calls bootstrap, executes new kernel, and new kernel completes starting, continue to execute service into
Journey.To which kernel to be quickly switched into new kernel under operation, server services after briefly stopping just without restarting
Fast quick-recovery, can be used for kernel upgrading or solve operation troubles etc., convenience and high-efficiency is jumped compared to the process of tradition switching kernel
Multiple stages such as hardware device is restarted, firmware is initialized and verified have been spent, can reach quick, batch updating destination server
Kernel, or the purpose that kernel failure guarantees service processes stable operation is excluded rapidly.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of long-range switching method of kernel characterized by comprising
Receive the new kernel file that baseboard management controller is sent;
Obtain the trigger signal that the baseboard management controller is sent;
According to the trigger signal, the system management interrupt handler for stopping service processes being executed;
According to the new kernel file, loads and start new kernel;
The service processes are continued to execute using the new kernel.
2. the long-range switching method of kernel according to claim 1, which is characterized in that receive what baseboard management controller was sent
New kernel file, comprising:
Receive the new kernel file that baseboard management controller is sent by inband network management mode or Outband network management mode.
3. the long-range switching method of kernel according to claim 1, which is characterized in that sent receiving baseboard management controller
New kernel file after, further includes:
Former kernel file is backed up, the new kernel file is covered into former kernel file;
According to the new kernel file, corresponding configuration information is modified.
4. the long-range switching method of kernel according to claim 3, which is characterized in that according to the new kernel file, load
And start new kernel, comprising:
According to the new kernel file, by calling boot program loads in system management interrupt handler and starting in new
Core.
5. a kind of long-range switching device of kernel characterized by comprising
Receiving module, for receiving the new kernel file of baseboard management controller transmission;
Module is obtained, the trigger signal sent for obtaining the baseboard management controller;
Execution module, for executing the system management interrupt handler for stopping service processes according to the trigger signal;
Loading module, for loading and starting new kernel according to the new kernel file;
Opening module, for continuing to execute the service processes using the new kernel.
6. a kind of long-range switching method of kernel characterized by comprising
New kernel file is sent to server;
And trigger signal is sent to the server;The trigger signal is used to indicate server and stops service processes, according to institute
It states new kernel file and loads and start new kernel, continue to execute the service processes using the new kernel.
7. the long-range switching method of kernel according to claim 6, which is characterized in that new kernel file is sent to server,
Include:
New kernel file is sent to server by inband network management mode or Outband network management mode.
8. a kind of long-range switching device of kernel characterized by comprising
Sending module, for sending new kernel file to server;
Trigger module, for sending trigger signal to the server;The trigger signal is used to indicate server and stops service
Process loads according to the new kernel file and starts new kernel, continues to execute the service processes using the new kernel.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that when the processor executes described program, realize such as any one of Claims 1-4 the method
The step of.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that when the processor executes described program, realize the step of method as claimed in claims 6 or 7
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711465639.7A CN109976886B (en) | 2017-12-28 | 2017-12-28 | Kernel remote switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711465639.7A CN109976886B (en) | 2017-12-28 | 2017-12-28 | Kernel remote switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109976886A true CN109976886A (en) | 2019-07-05 |
CN109976886B CN109976886B (en) | 2021-10-22 |
Family
ID=67075250
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711465639.7A Active CN109976886B (en) | 2017-12-28 | 2017-12-28 | Kernel remote switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109976886B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851138A (en) * | 2019-11-06 | 2020-02-28 | 山东超越数控电子股份有限公司 | BMC software development method for separating kernel and application |
CN111131296A (en) * | 2019-12-30 | 2020-05-08 | 杭州迪普科技股份有限公司 | Message distribution method and device |
WO2022022185A1 (en) * | 2020-07-29 | 2022-02-03 | 华为技术有限公司 | Kernel restarting method |
CN116383091A (en) * | 2023-05-29 | 2023-07-04 | 珠海妙存科技有限公司 | Starting method and starting device of eMMC verification platform and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324850A (en) * | 2007-06-12 | 2008-12-17 | 中兴通讯股份有限公司 | LINUX inner core dynamic loading method |
CN101556547A (en) * | 2009-05-25 | 2009-10-14 | 芯通科技(成都)有限公司 | Safe method and system used for remotely upgrading embedded Linux kernel |
CN102629206A (en) * | 2012-02-29 | 2012-08-08 | 深圳市赛格导航科技股份有限公司 | Embedded system software upgrading method and system |
CN103984585A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode |
WO2015021548A1 (en) * | 2013-08-12 | 2015-02-19 | Graphite Software Corporation | Secure authentication and switching to encrypted domains |
CN106446305A (en) * | 2016-12-23 | 2017-02-22 | 网际傲游(北京)科技有限公司 | System and method for Linux browser to realize Webkit/IE dual-core seamless browsing |
CN106708619A (en) * | 2015-07-21 | 2017-05-24 | 华为技术有限公司 | Resource management method and apparatus |
-
2017
- 2017-12-28 CN CN201711465639.7A patent/CN109976886B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101324850A (en) * | 2007-06-12 | 2008-12-17 | 中兴通讯股份有限公司 | LINUX inner core dynamic loading method |
CN101556547A (en) * | 2009-05-25 | 2009-10-14 | 芯通科技(成都)有限公司 | Safe method and system used for remotely upgrading embedded Linux kernel |
CN102629206A (en) * | 2012-02-29 | 2012-08-08 | 深圳市赛格导航科技股份有限公司 | Embedded system software upgrading method and system |
WO2015021548A1 (en) * | 2013-08-12 | 2015-02-19 | Graphite Software Corporation | Secure authentication and switching to encrypted domains |
CN103984585A (en) * | 2014-06-06 | 2014-08-13 | 浪潮电子信息产业股份有限公司 | Method for upgrading Linux kernel in running process of kernel module capable of being plugged in thermal mode |
CN106708619A (en) * | 2015-07-21 | 2017-05-24 | 华为技术有限公司 | Resource management method and apparatus |
CN106446305A (en) * | 2016-12-23 | 2017-02-22 | 网际傲游(北京)科技有限公司 | System and method for Linux browser to realize Webkit/IE dual-core seamless browsing |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110851138A (en) * | 2019-11-06 | 2020-02-28 | 山东超越数控电子股份有限公司 | BMC software development method for separating kernel and application |
CN111131296A (en) * | 2019-12-30 | 2020-05-08 | 杭州迪普科技股份有限公司 | Message distribution method and device |
WO2022022185A1 (en) * | 2020-07-29 | 2022-02-03 | 华为技术有限公司 | Kernel restarting method |
CN114064128A (en) * | 2020-07-29 | 2022-02-18 | 华为技术有限公司 | Kernel restarting method |
CN114064128B (en) * | 2020-07-29 | 2024-01-02 | 华为技术有限公司 | Kernel restarting method |
CN116383091A (en) * | 2023-05-29 | 2023-07-04 | 珠海妙存科技有限公司 | Starting method and starting device of eMMC verification platform and storage medium |
CN116383091B (en) * | 2023-05-29 | 2023-08-29 | 珠海妙存科技有限公司 | Starting method and starting device of eMMC verification platform and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109976886B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10102170B2 (en) | System and method for providing input/output functionality by an I/O complex switch | |
US9652281B2 (en) | System and method for virtualization aware server maintenance mode | |
US8127289B2 (en) | Enabling a third party application to participate in migration of a virtualized application instance | |
CN109976886A (en) | The long-range switching method of kernel and device | |
US20090144720A1 (en) | Cluster software upgrades | |
CN111669284B (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
US20230229423A1 (en) | Pushing a firmware update patch to a computing device via an out-of-band path | |
CN114741233A (en) | Quick start method | |
US11544148B2 (en) | Preserving error context during a reboot of a computing device | |
US11520648B2 (en) | Firmware emulated watchdog timer controlled using native CPU operations | |
CN116521209B (en) | Upgrading method and device of operating system, storage medium and electronic equipment | |
JP2002183105A (en) | Method for processing unit synchronization for scalable parallel processing | |
US20200371853A1 (en) | Secure backwards compatible orchestration of isolated guests | |
US11516082B1 (en) | Configuration of a baseboard management controller (BMC) group leader responsive to load | |
US20230325222A1 (en) | Lifecycle and recovery for virtualized dpu management operating systems | |
CN117667465B (en) | Code sharing method, device, switch, multi-host system, equipment and medium | |
US20240111579A1 (en) | Termination of sidecar containers | |
US9569324B2 (en) | System and method for reducing boot time of a workload configuration on a target server | |
KR102647728B1 (en) | System and method for integrated management of data center devices based on virtualization technology | |
US20240143305A1 (en) | Aggregation of data for distributed management framework | |
US11921582B2 (en) | Out of band method to change boot firmware configuration | |
US20240095053A1 (en) | Virtual machine creation based on dynamic group host node feature set | |
CN112558999B (en) | Mass node firmware version management and network loading method based on BMC (baseboard management controller) | |
WO2024076425A1 (en) | Termination of sidecar containers |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |