CN105204901A - Hot addition method and device - Google Patents

Hot addition method and device Download PDF

Info

Publication number
CN105204901A
CN105204901A CN201510613317.7A CN201510613317A CN105204901A CN 105204901 A CN105204901 A CN 105204901A CN 201510613317 A CN201510613317 A CN 201510613317A CN 105204901 A CN105204901 A CN 105204901A
Authority
CN
China
Prior art keywords
cpu
internal memory
newly added
add
udev
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
Application number
CN201510613317.7A
Other languages
Chinese (zh)
Inventor
宋秀苗
王文悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510613317.7A priority Critical patent/CN105204901A/en
Publication of CN105204901A publication Critical patent/CN105204901A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

A hot addition method comprises the steps of utilizing a device management tool UDEV to detect a newly added central processing unit (CPU) and/or a newly added memory, and conducting logic hot addition on the detected newly-added CPU and/or the detected newly-added memory. By means of the technical scheme, logic hot addition can be automatically performed after physical hot addition is achieved, and the efficiency is improved.

Description

A kind of hot adding method and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of hot adding method and device.
Background technology
Along with the development of computer technology and Intel Virtualization Technology, in order to the elasticity configuration using resource to achieve resource more efficiently.As the supvr of resource, except utilizing Intel Virtualization Technology to realize except the elasticity configuration of resource, by the interpolation of hardware resource and can also delete dynamic management of resources.In order to realize the dynamic management of hardware resource better, kernel starts to support RAS new features, and the appearance of this characteristic makes the dynamic-configuration of hardware resource when system cloud gray model, impact can be reduced further.
Hot plug: be a kind of prior art, refer to not shutdown system or power supply when, add, remove hardware device.
Heat adds: with the concept cluster of hot plug seemingly, can regard as " heat is inserted ", refer to not shutdown system or voltage when, add equipment.
In a server, comprise one or more central processor CPU, hereinafter referred to as CPU, one or more internal memory,
If add a new CPU again, technology can be added by heat, a CPU is added,
Concrete is divided into two processes, and a process is that physical thermal adds, and a process is that logic heat adds.
Physical thermal adds: refer to the angle from hardware, with the addition of new CPU, or internal memory.
Logic heat adds: refer to the angle from software, with the addition of new CPU or internal memory.
" heat adds " also can represent with another close vocabulary " carry ".
In prior art, after a new CPU is added, after physical thermal has added, can not automatically carry out logic heat to add, need artificially, all CPU are detected, judge, find out the CPU newly added, confirm the numbering of CPU newly added, then artificially is carried out logic heat in internal system and is added.Inefficiency.
Summary of the invention
The invention provides a kind of hot adding method, automatically can not carry out the hot technical matters added of logic to solve after physical thermal adds.
A kind of hot adding method, described method comprises: utilize equipment management tool UDEV, the central processor CPU newly added detected, and, or internal memory;
By the described central processor CPU newly added detected, and/or internal memory carries out logic heat and adds.
Alternatively, utilize equipment management tool UDEV, the central processor CPU newly added detected, and/or internal memory, comprising:
Newly add CPU, and/or, internal memory; Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; By the path of described event, determine the CPU newly added, and/or, internal memory.
Alternatively,
Utilize equipment management tool UDEV, the CPU newly added detected, and/or before internal memory,
Jumping cap is inserted on pin corresponding to node and makes described node power-off;
Central processor CPU, and/or memory board is inserted in draw-in groove corresponding to node;
Pull out jumping cap;
Described node refers to the described CPU newly added, and/or, the circuit unit at internal memory place.
Alternatively, described method also comprises:
Utilize equipment management tool UDEV, the central processor CPU newly added detected, and/or before internal memory, the server at the described CPU place newly added is processed, make described server support CPU, and/or the hot plug of internal memory, specifically comprises:
The basic input-output system BIOS of described server is arranged, makes it support central processor CPU, and/or, the hot plug of internal memory.
A kind of hot feeder apparatus, it is characterized in that, described device comprises:
Detection module, for utilizing equipment management tool UDEV, detects the CPU newly added, and, or internal memory;
Logic heat adds module, and for by the described CPU newly added detected, and/or internal memory carries out logic heat and adds.
Alternatively, described detection module, for utilizing equipment management tool UDEV, detects the CPU newly added, and/or internal memory, comprising: newly add CPU, and/or, internal memory; Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; By the path of described event, determine the CPU newly added, and/or, internal memory.
Technical scheme of the present invention, can realize after physical thermal adds, automatically carrying out logic heat and adding.Propose a kind of dynamic BTS configuration method of many node node---CPU and, or, the method that the automatic heat-transmission of internal memory adds, the method can realize within the shortest time node node robotization add, improve efficiency.
Accompanying drawing explanation
Fig. 1 is the hot adding method process flow diagram of one of the present invention;
Fig. 2 is the hot feeder apparatus structural drawing of one of the present invention;
Fig. 3 is the schematic diagram of a kind of embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, technical scheme of the present invention is described in detail.
It should be noted that, if do not conflicted, each feature in the embodiment of the present invention and embodiment can be combined with each other, all within protection scope of the present invention.In addition, although show logical order in flow charts, in some cases, can be different from the step shown or described by order execution herein.
A kind of hot adding method, described method comprises:
Utilize equipment management tool UDEV, the central processor CPU newly added detected, and, or internal memory;
By the described central processor CPU newly added detected, and/or internal memory carries out logic heat and adds.
Fig. 1 is the hot adding method process flow diagram of one of the present invention;
Step S01: utilize equipment management tool UDEV, detects the central processor CPU newly added, and, or internal memory;
Step S02: by the described central processor CPU newly added detected, and/or internal memory carries out logic heat and adds.
Equipment management tool, is also equipment manager, UDEV, is the function that more than Linux2.6 kernel has.
The principle of work of UDEV, UDEV runs in the mode of the process of waiting for, the uevent event of listening kernel to send by frame manages/dev/ catalogue under equipment.UDEV can dynamically add or sweep equipment, and UDEV can learn the situation of change of module in kernel, learns that the insertion of equipment removes situation, and the principle of work of concrete UDEV is prior art, does not repeat.
Alternatively, utilize equipment management tool UDEV, the central processor CPU newly added detected, and/or internal memory, comprising:
Newly add CPU, and/or, internal memory; Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; By analyzing described event, find the CPU newly added, and, or the attribute of internal memory, the CPU newly added is determined by attribute, and/or, internal memory.
A kind of embodiment, such as, on a server, there is multiple CPU, add a new CPU again, in the process that physical thermal adds, interpolation event can be produced, in interpolation event, the attribute information of the CPU newly added can be comprised, comprise numbering, position etc., by the analysis to event, find its path, determine which is the CPU newly added.Newly add internal memory similar.
Alternatively, utilize UDEV, the CPU newly added detected, and/or before internal memory,
Jumping cap is inserted on pin corresponding to node and makes described node power-off;
Central processor CPU, and/or memory board is inserted in draw-in groove corresponding to node;
Pull out jumping cap;
Described node refers to the described CPU newly added, and/or, the circuit unit at internal memory place.
Technique scheme, first makes node node power-off, after power-off, inserts the CPU that newly adds, and or internal memory, then, pulls out jumping cap, after pulling out, the CPU newly added with, or internal memory all automatically logic heat adds.
That is, the technical scheme of the application, from external hardware environment, is only one and plugs jumping cap and extract the work of jumping cap, just can automatically achieve the CPU newly added, and, or internal memory, adds physical thermal and adds by once with logic heat.
Alternatively, utilize equipment management tool UDEV, the central processor CPU newly added detected, and/or before internal memory, the server at the described CPU place newly added is processed, make described server support CPU, and/or the hot plug of internal memory, specifically comprises:
The basic input-output system BIOS of described server is arranged, makes it support central processor CPU, and/or, the hot plug of internal memory.
Fig. 2 is the hot feeder apparatus structural drawing of one of the present invention;
A kind of hot feeder apparatus, described device comprises:
Detection module 201, for utilizing equipment management tool UDEV, detects the CPU newly added, and, or internal memory;
Logic heat adds module 202, for after described physical thermal adds end, and automatic centering central processor CUP, and/or internal memory carries out logic heat and adds.
Alternatively, described detection module 201, for utilizing equipment management tool UDEV, detects the CPU newly added, and/or internal memory, comprising: newly add CPU, and/or, internal memory; Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; The CPU newly added is determined by the path of described event, and/or, internal memory.
Technical scheme of the present invention, can realize after physical thermal adds, automatically carrying out logic heat and adding.Improve efficiency.
Fig. 3 is the schematic diagram of a kind of embodiment of the present invention.
With reference to the accompanying drawings, we just once concrete CPU and the automatic heat-transmission of internal memory add process and are described.
Step S301: pull out and jump the physical thermal that cap triggers corresponding CPU and internal memory and add process;
Step S302:CPU and internal memory physical thermal add in process the add event triggering cpu and memory;
Step S303:udevd finger daemon does corresponding process according to self-defining udev rule to the add event of cpu and memory;
Step S304:shell script carries out the hot add operation of logic according to the devpath of event to corresponding cpu and memory.
For step S304, that is, by the path devpath of event, just can determine the CPU that newly adds and, or internal memory.
As described in summary of the invention, the method that a kind of CPU of the present invention and the automatic heat-transmission of internal memory add mainly comprises the following steps: (1) gets out to support the kernel of RAS characteristic and BIOS and configure server make it support the hot plug of CPU and internal memory; (2) prepare the logic heat that shell script realizes CPU and internal memory and add function; (3) prepare a self-defining udev rule file, drop it off/etc/udev/rules.d/ catalogue under; (4) jumping cap is inserted in pin corresponding to node node and makes node node power-off; (5) cpu and memory board are inserted in draw-in groove corresponding to node node; (6) pull out jumping cap, the CPU that node node is corresponding and the automatic heat-transmission of internal memory are added in system.
Get out to support the kernel of RAS characteristic and BIOS and configure server make it support the hot plug of CPU and internal memory
Download one to linux kernel official website and support good kernel to RAS, the patch then stamping oneself also correctly configures compile option makes it support the RAS characteristic of kernel better, and then compiling installation kernel gets out kernel mirror image file; Supporting that the bios program of RAS characteristic is burnt in BIOS, starting server, and BIOS is arranged, making it support the hot plug of CPU and internal memory.
The logic heat that preparation shell script realizes CPU and internal memory adds function,
A newly-built cpu_online.sh file and a mem_online.sh file after entering system, the logic heat that they realize cpu and internal memory respectively adds function.
Prepare a self-defining udev rule file, drop it off/etc/udev/rules.d/ catalogue under, be switched to/etc/udev/rules.d/ catalogue under, a newly-built cpu_mem_online.rules file, file continues to perform cpu_online.sh script after realizing executing the operation of system default to the add event of cpu subsystem; Continue to perform mem_online.sh script after executing the default action of system to the interpolation add event of memory subsystem.
That is, above-mentioned .rules file is exactly rule file, includes program in rule file, wherein a part of program, can regard detection module 201 as,
Above-mentioned .sh script, wherein containing program, wherein some just can be regarded logic heat as and adds module 202,
No matter be CPU, and, or internal memory, be all that relevant .rules file calls .sh file, particularly the detection module 201 in .rules file and the logic heat in .SH file add module in work.
Jumping cap is inserted in pin corresponding to node node and makes node power-off,
Jumping cap is inserted in pin corresponding to CPU and all non-existent node node of internal memory and makes node node power-off.
(5) CPU and memory board are inserted in draw-in groove corresponding to node node
(6) pull out jumping cap, the CPU that node node is corresponding and the automatic heat-transmission of internal memory are added in system.
The present invention mainly utilizes the uevent treatment mechanism of linux kernel, and the automatic heat-transmission being realized CPU and internal memory by the mode of self-defined udev rule file adds function.The present invention mainly comprises the following steps: (1) gets out to support the kernel of RAS characteristic and BIOS and configure server make it support the hot plug of CPU and internal memory; (2) prepare the logic heat that shell script realizes CPU and internal memory and add function; (3) prepare a self-defining udev rule file, drop it off/etc/udev/rules.d/ catalogue under; (4) jumping cap is inserted in pin corresponding to node and makes node node power-off (cpu on this node and internal memory do not exist); (5) cpu and, or memory board is inserted in draw-in groove corresponding to node node; (6) pull out jumping cap, the CPU that node node is corresponding and the automatic heat-transmission of internal memory are added in system.
Node node refers to, the CPU newly added, and, or, internal memory, the circuit unit at place.
The invention has the beneficial effects as follows: the method can add and adds with logic heat by the one-touch physical thermal realizing CPU corresponding to a certain node and internal memory in system operation, eliminate us and go to search the trouble which CPU and memory block added by successful physical thermal, also can avoid some artificial mistakes simultaneously.
The all or part of step that one of ordinary skill in the art will appreciate that in said method is carried out instruction related hardware by program and is completed, and described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can use one or more integrated circuit to realize.Correspondingly, each module/unit in above-described embodiment can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to claim of the present invention.

Claims (6)

1. a hot adding method, is characterized in that, described method comprises:
Utilize equipment management tool UDEV, the central processor CPU newly added detected, and, or internal memory;
By the described central processor CPU newly added detected, and/or internal memory carries out logic heat and adds.
2. the method for claim 1, is characterized in that, utilizes equipment management tool UDEV, the central processor CPU newly added detected, and/or internal memory, comprising:
Newly add CPU, and/or, internal memory;
Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; By the path of described event, determine the CPU newly added, and/or, internal memory.
3. the method for claim 1, is characterized in that,
Utilize equipment management tool UDEV, the CPU newly added detected, and/or, before internal memory,
Described method also comprises:
Jumping cap is inserted on pin corresponding to node and makes described node power-off;
Central processor CPU, and/or memory board is inserted in draw-in groove corresponding to node;
Pull out jumping cap;
Described node refers to the described CPU newly added, and/or, the circuit unit at internal memory place.
4. the method for claim 1, is characterized in that, described method also comprises:
Utilize equipment management tool UDEV, the central processor CPU newly added detected, and/or, before internal memory, to the described central processor CPU newly added, and/or, the server at internal memory place processes, and makes described server support CPU, and/or, the hot plug of internal memory, specifically comprises:
The basic input-output system BIOS of described server is arranged, makes it support central processor CPU, and/or, the hot plug of internal memory.
5. a hot feeder apparatus, is characterized in that, described device comprises:
Detection module, for utilizing equipment management tool UDEV, detects the CPU newly added, and/or, internal memory;
Logic heat adds module, and for by the described CPU newly added detected, and/or internal memory carries out logic heat and adds.
6. device as claimed in claim 5, it is characterized in that, described detection module, for utilizing equipment management tool UDEV, the CPU newly added being detected, and/or internal memory, comprising: newly add CPU, and/or, internal memory; Newly add CPU described, and/or the physical thermal of internal memory adds in process, trigger and add add event; The CPU newly added is determined by the path of described event, and/or, internal memory.
CN201510613317.7A 2015-09-23 2015-09-23 Hot addition method and device Pending CN105204901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510613317.7A CN105204901A (en) 2015-09-23 2015-09-23 Hot addition method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510613317.7A CN105204901A (en) 2015-09-23 2015-09-23 Hot addition method and device

Publications (1)

Publication Number Publication Date
CN105204901A true CN105204901A (en) 2015-12-30

Family

ID=54952601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510613317.7A Pending CN105204901A (en) 2015-09-23 2015-09-23 Hot addition method and device

Country Status (1)

Country Link
CN (1) CN105204901A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7418436B2 (en) * 2002-01-31 2008-08-26 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
CN102591681A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Computer equipment and starting method thereof
CN103605415A (en) * 2013-12-10 2014-02-26 上海斐讯数据通信技术有限公司 Reset circuit, reset system and method supporting hot plug board card
CN103701881A (en) * 2013-12-18 2014-04-02 中国科学院计算技术研究所 Virtual hotplug system for supporting input/output (I/O) function dynamic distribution and working method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7418436B2 (en) * 2002-01-31 2008-08-26 Matsushita Electric Industrial Co., Ltd. Information processing apparatus, memory management apparatus, memory management method, and information processing method
CN102591681A (en) * 2011-12-20 2012-07-18 华为技术有限公司 Computer equipment and starting method thereof
CN103605415A (en) * 2013-12-10 2014-02-26 上海斐讯数据通信技术有限公司 Reset circuit, reset system and method supporting hot plug board card
CN103701881A (en) * 2013-12-18 2014-04-02 中国科学院计算技术研究所 Virtual hotplug system for supporting input/output (I/O) function dynamic distribution and working method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹忠明: "Udev实现U盘或SD卡的自动挂载", 《HTTP://FARSIGHT.BLOG.51CTO.COM/1821374/372977》 *

Similar Documents

Publication Publication Date Title
JP5758995B2 (en) System, method and computer-readable storage medium for sharing analysis results between virtual machines
RU2615316C2 (en) Method, device and system for entrance to unix-like virtual container
WO2016037503A1 (en) Configuration method and device of pcie topology
US9600618B2 (en) Implementing system irritator accelerator FPGA unit (AFU) residing behind a coherent attached processors interface (CAPI) unit
CN107563201B (en) Associated sample searching method and device based on machine learning and server
US9632806B1 (en) Remote platform configuration
WO2016029792A1 (en) Hardware device debugging method, device and system
US10409744B1 (en) Low-latency wake-up in a peripheral device
US11019096B2 (en) Combining apparatus, combining method, and combining program
CN106415577B (en) System and method for identifying the source of a suspicious event
CN103257922B (en) A kind of method of quick test BIOS and OS interface code reliability
WO2017177892A1 (en) Installation of operating system
CN105786636B (en) A kind of system repair and device
CN105072140A (en) Method and device for deploying virtual platform
CN107395456B (en) Distributed file system direct current storage test method and platform
CN104063303A (en) Method for acquiring and freeing root permissions
US10944768B2 (en) System for automated signature generation and refinement
US11467946B1 (en) Breakpoints in neural network accelerator
CN105592169A (en) Terminal identification method and terminal identification device
WO2016145798A1 (en) Upgrading method and upgrading apparatus for application program of embedded system
CN107844304A (en) The hot upgrade method of virtual machine and device
US9519527B1 (en) System and method for performing internal system interface-based communications in management controller
CN105204901A (en) Hot addition method and device
US20200342109A1 (en) Baseboard management controller to convey data
CN102750167B (en) Application program launching method, device and computer system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151230

RJ01 Rejection of invention patent application after publication