CN107957968A - A kind of hot plug treating method and apparatus - Google Patents

A kind of hot plug treating method and apparatus Download PDF

Info

Publication number
CN107957968A
CN107957968A CN201810053635.6A CN201810053635A CN107957968A CN 107957968 A CN107957968 A CN 107957968A CN 201810053635 A CN201810053635 A CN 201810053635A CN 107957968 A CN107957968 A CN 107957968A
Authority
CN
China
Prior art keywords
hard
disk
hard disk
hot
slots
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
CN201810053635.6A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810053635.6A priority Critical patent/CN107957968A/en
Publication of CN107957968A publication Critical patent/CN107957968A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application discloses a kind of hot plug treating method and apparatus, including:The hard-disk slots on host are directly carried out with memory source in advance and reserves distribution;Hard disk driver is accordingly distributed according to reserved memory source after into operating system;Hard-disk slots on host carry out hard disk hot-plug processing after being assigned to memory source.The application takes directly carries out resource allocation in advance to the hard-disk slots on host, it can ensure hard-disk slots under operating system regardless of whether all there are the distribution of corresponding memory source in place, hot-plug hard disk function is normal, when needing to be inserted into hard disk, vacant slot can connect hard disk at any time and system will not be caused to run quickly and burst, it can in time be ensured when hard disk damages and be handled big data and do not influenced the economic loss that big data is lost and produced in real time, O&M cost and time are greatly reduced, improves the artificial work efficiency of O&M.

Description

A kind of hot plug treating method and apparatus
Technical field
The present invention relates to technical field of memory, more particularly to a kind of hot plug treating method and apparatus.
Background technology
With the rapid growth of Internet firm's business, the requirement such as requirement and processing, storage to critical data business is got over Come higher, the capacity of common hard disc and power consumption all exist with the contrast of NVME (Non-Volatile Memory express) hard disk Inferior position, the advantages of NVME hard disks are mainly reflected in lower time delay, the data transfer of higher, lower power consumption control, deposit It is big etc. to store up capacity, therefore is interconnected net company and extremely favors.
Usually, host directly can connect a certain number of NVME hard disks by NVME hard-disk slots, when internet is public Department's whole machine cabinet server occurs NVME hard-disc storages insufficient space or preassembled NVME hard disks number in service operation Not enough, at this moment need replacing or be inserted into new NVME hard disks and business normal operation cannot be influenced, therefore NVME warm connection functions are just Seem increasingly important.But the realization of NVME hard disk hot-plug functions not only needs the support that linux system drives, SBIOS is also same Sample needs to support NVME warm connection functions, and hot plug NVME is hard after start enters linux system usually when NVME hard disks connect Disk function is normal, but when NVME hard disks are not connected start shooting into linux system after hot plug can produce mistake, all NVME are hard at this time Disk can all be lost.Detrimental effects can be caused to the service operation of Internet firm in such a scenario.
Therefore, the NVME hard disks vacant slot hot plug under linux system for how making SBIOS support host to be directly connected to, It is those skilled in the art's technical problem urgently to be resolved hurrily.
The content of the invention
In view of this, it is an object of the invention to provide a kind of hot plug treating method and apparatus, it is ensured that hard disk heat It is normal to plug function, system will not be caused to be lost to routed or big data, improves maintenance work efficiency.Its concrete scheme is as follows:
A kind of hot plug processing method, including:
The hard-disk slots on host are directly carried out with memory source in advance and reserves distribution;
Hard disk driver is accordingly distributed according to the reserved memory source after into operating system;
Hard-disk slots on the host carry out hard disk hot-plug processing after being assigned to the memory source.
Preferably, in above-mentioned hot plug processing method provided in an embodiment of the present invention, the hard disk is NVME hard disks;Institute It is NVME hard-disk slots to state hard-disk slots.
Preferably, in above-mentioned hot plug processing method provided in an embodiment of the present invention, the operating system is grasped for Linux Make system.
Preferably, in above-mentioned hot plug processing method provided in an embodiment of the present invention, hard disk hot-plug processing, tool are carried out Body includes:
Hard disk is directly inserted in any vacant hard-disk slots.
Preferably, in above-mentioned hot plug processing method provided in an embodiment of the present invention, it is directly inserted in hard disk any After in the vacant hard-disk slots, further include:
Identify the hard disk being inserted into the hard-disk slots.
Preferably, in above-mentioned hot plug processing method provided in an embodiment of the present invention, hard disk hot-plug processing, tool are carried out Body further includes:
Directly carry out the renewal of data in hard disk.
The embodiment of the present invention additionally provides a kind of hot plug processing unit, including:
Resource reservation module, distribution is reserved in advance the hard-disk slots on host directly to be carried out with memory source;
Resource distribution module, carries out for hard disk driver after entering operating system according to the reserved memory source Corresponding distribution;
Hard disk hot-plug module, hard disk is carried out after being assigned to the memory source for hard-disk slots on the host Hot plug is handled.
Preferably, in above-mentioned hot plug processing unit provided in an embodiment of the present invention, the hard disk is NVME hard disks;Institute It is NVME hard-disk slots to state hard-disk slots.
Preferably, in above-mentioned hot plug processing unit provided in an embodiment of the present invention, the operating system is grasped for Linux Make system.
A kind of hot plug treating method and apparatus provided by the present invention, including:It is straight to the hard-disk slots on host in advance Tap into row memory source and reserve distribution;Hard disk driver is accordingly divided according to reserved memory source after into operating system Match somebody with somebody;Hard-disk slots on host carry out hard disk hot-plug processing after being assigned to memory source.The application is taken on host Hard-disk slots directly carry out resource allocation in advance, it is ensured that hard-disk slots under operating system are regardless of whether in place all exist accordingly Memory source distribution, hot-plug hard disk function is normal, and when needing to be inserted into hard disk, vacant slot can connect hard disk and not at any time System can be caused to run quickly to burst, can in time be ensured when hard disk damages and be handled big data and do not influenced big data in real time The economic loss lost and produced, greatly reduces O&M cost and time, improves the artificial work efficiency of O&M.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of hot plug processing method provided in an embodiment of the present invention;
Fig. 2 is the structure diagram of hot plug processing unit provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment, belongs to the scope of protection of the invention.
The present invention provides a kind of hot plug processing method, as shown in Figure 1, comprising the following steps:
S101, in advance directly carry out the hard-disk slots on host memory source and reserve distribution;
S102, accordingly distributed into hard disk driver after operating system according to reserved memory source;
S103, the hard-disk slots on host carry out hard disk hot-plug processing after being assigned to memory source.
It is straight to the hard-disk slots on host in advance first in above-mentioned hot plug processing method provided in an embodiment of the present invention Tap into row memory source and reserve distribution;Phase is carried out according to reserved memory source subsequently into hard disk driver after operating system It should distribute;Finally the hard-disk slots on host carry out hard disk hot-plug processing after being assigned to memory source.The application takes pair Hard-disk slots on host directly carry out resource allocation in advance, it is ensured that the hard-disk slots under operating system on host are either No in place all there are the distribution of corresponding memory source, hot-plug hard disk function is normal, and when needing insertion hard disk, vacant slot can be with Hard disk is connected at any time and system will not be caused to run quickly and is burst, and can in time be ensured when hard disk damages and big data is located in real time Reason and the economic loss for not influencing big data loss and producing, greatly reduce O&M cost and time, improve O&M people The work efficiency of work.
Specifically, in the specific implementation, in above-mentioned hot plug processing method provided in an embodiment of the present invention, above-mentioned hard disk Can be NVME hard disks;Hard-disk slots are NVME hard-disk slots;Aforesaid operations system can be (SuSE) Linux OS.Also It is to say, the NVME hard-disk slots start on host can support NVME hard disk hot-plug functions after entering (SuSE) Linux OS, i.e., NVME hard-disk slots can be inserted into any NVME hard disks or any NVME hard disks of renewal.
According to foregoing description, specifically, perform step S101 and memory money is directly carried out to the hard-disk slots on host in advance When distribution is reserved in source, following steps can be specifically included:
SBIOS directly distributes correspondingly sized memory source to the NVME hard-disk slots on host in advance.
Then, hard disk driver after step S102 enters operating system is performed to be carried out accordingly according to reserved memory source During distribution, following steps can be specifically included:
NVME drivers can be reserved according to SBIOS needed for NVME hard disks in linux system after into (SuSE) Linux OS Memory source carry out related distribution.
Afterwards, perform after hard-disk slots of the step S103 on host are assigned to memory source and carry out hard disk hot-plug processing When, following steps can be specifically included:
The NVME hard-disk slots that Switch converters connect under linux system carry out heat after storage allocation resource and insert Pull out processing.
Finally, accessed NVME equipment can be recognized after NVME hard-disk slots connection hard disk and system is normal.
Wherein, hot plug processing is carried out, can specifically be included:NVME hard disks are directly inserted in any vacant NVME hard disks In groove position, the NVME hard disks being inserted into NVME hard-disk slots are identified;Or, directly carry out the renewal of NVME data in hard disk.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of hot plug processing unit, due to this method solution Certainly the principle of problem is similar to a kind of foregoing hot plug processing method, therefore the implementation of the device may refer to hot plug processing side The implementation of method, overlaps will not be repeated.
In the specific implementation, hot plug processing unit provided in an embodiment of the present invention, as shown in Fig. 2, specifically including:
Resource reservation module 11, distribution is reserved in advance the hard-disk slots on host directly to be carried out with memory source;
Resource distribution module 12, phase is carried out for hard disk driver after entering operating system according to reserved memory source It should distribute;
Hard disk hot-plug module 13, hard disk hot-plug is carried out after being assigned to memory source for the hard-disk slots on host Processing.
In above-mentioned hot plug processing unit provided in an embodiment of the present invention, by the interaction of above three module, Take and resource allocation directly carried out in advance to the hard-disk slots on host, it is ensured that hard-disk slots under operating system regardless of whether In place all there are the distribution of corresponding memory source, hot-plug hard disk function is normal, and when needing insertion hard disk, vacant slot can be with When connect hard disk and will not cause system run quickly burst, can in time be ensured when hard disk damages and big data is handled in real time And the economic loss that big data is lost and produced is not influenced, O&M cost and time are greatly reduced, it is artificial to improve O&M Work efficiency, there is very strong reproducibility and expansion.
In the specific implementation, in above-mentioned hot plug processing unit provided in an embodiment of the present invention, above-mentioned hard disk can be NVME hard disks;Hard-disk slots are NVME hard-disk slots;Aforesaid operations system can be (SuSE) Linux OS.It is that is, main NVME hard-disk slots start on machine can support NVME hard disk hot-plug functions after entering (SuSE) Linux OS, i.e. NVME is hard Dish groove position can be inserted into any NVME hard disks or any NVME hard disks of renewal, so under a linux operating system on host NVME hard-disk slots connection NVME hard disks are more efficient, convenient, greatly ensure that Internet firm big data is required it is high and O&M simply and easily demand, drastically increases work efficiency.
A kind of hot plug treating method and apparatus provided in an embodiment of the present invention, including:In advance to the hdd slot on host Position carries out memory source and reserves distribution;Hard disk driver is accordingly divided according to reserved memory source after into operating system Match somebody with somebody;Hard-disk slots on host carry out hard disk hot-plug processing after being assigned to memory source.The application is taken on host Hard-disk slots carry out resource allocation in advance, it is ensured that hard-disk slots under operating system are regardless of whether in place all exist in corresponding Resource allocation is deposited, hot-plug hard disk function is normal, and vacant slot can connect hard disk at any time and will not lead when needing to be inserted into hard disk Cause system, which is run quickly, bursts, and can in time be ensured when hard disk damages and be handled big data and do not influenced big data loss in real time And the economic loss produced, O&M cost and time are greatly reduced, improves the artificial work efficiency of O&M.
Finally, it is to be noted that, herein, relational terms be used merely to by an entity or operation with it is another A entity or operation distinguish, without necessarily requiring or implying there are any this actual between these entities or operation Relation or order.Moreover, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, So that process, method, article or equipment including a series of elements not only include those key elements, but also including not having The other element being expressly recited, or further include as elements inherent to such a process, method, article, or device.Do not having There is the key element in the case of more limiting, limited by sentence "including a ...", it is not excluded that including the mistake of the key element Also there are other identical element in journey, method, article or equipment.
Hot plug treating method and apparatus provided by the present invention is described in detail above, tool used herein Body example is set forth the principle of the present invention and embodiment, and the explanation of above example is only intended to help to understand this hair Bright method and its core concept;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, specific real There will be changes in mode and application range are applied, in conclusion this specification content should not be construed as the limit to the present invention System.

Claims (9)

  1. A kind of 1. hot plug processing method, it is characterised in that including:
    The hard-disk slots on host are directly carried out with memory source in advance and reserves distribution;
    Hard disk driver is accordingly distributed according to the reserved memory source after into operating system;
    Hard-disk slots on the host carry out hard disk hot-plug processing after being assigned to the memory source.
  2. 2. hot plug processing method according to claim 1, it is characterised in that the hard disk is NVME hard disks;It is described hard Dish groove position is NVME hard-disk slots.
  3. 3. hot plug processing method according to claim 2, it is characterised in that the operating system is Linux operations system System.
  4. 4. hot plug processing method according to claim 3, it is characterised in that carry out hard disk hot-plug processing, specific bag Include:
    Hard disk is directly inserted in any vacant hard-disk slots.
  5. 5. hot plug processing method according to claim 4, it is characterised in that be directly inserted in hard disk any vacant After in the hard-disk slots, further include:
    Identify the hard disk being inserted into the hard-disk slots.
  6. 6. hot plug processing method according to claim 5, it is characterised in that hard disk hot-plug processing is carried out, it is specific to go back Including:
    Directly carry out the renewal of data in hard disk.
  7. A kind of 7. hot plug processing unit, it is characterised in that including:
    Resource reservation module, distribution is reserved in advance the hard-disk slots on host directly to be carried out with memory source;
    Resource distribution module, carries out accordingly for hard disk driver after entering operating system according to the reserved memory source Distribution;
    Hard disk hot-plug module, progress hard disk heat is inserted after being assigned to the memory source for hard-disk slots on the host Pull out processing.
  8. 8. hot plug processing unit according to claim 7, it is characterised in that the hard disk is NVME hard disks;It is described hard Dish groove position is NVME hard-disk slots.
  9. 9. hot plug processing unit according to claim 8, it is characterised in that the operating system is Linux operations system System.
CN201810053635.6A 2018-01-19 2018-01-19 A kind of hot plug treating method and apparatus Pending CN107957968A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810053635.6A CN107957968A (en) 2018-01-19 2018-01-19 A kind of hot plug treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810053635.6A CN107957968A (en) 2018-01-19 2018-01-19 A kind of hot plug treating method and apparatus

Publications (1)

Publication Number Publication Date
CN107957968A true CN107957968A (en) 2018-04-24

Family

ID=61955429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810053635.6A Pending CN107957968A (en) 2018-01-19 2018-01-19 A kind of hot plug treating method and apparatus

Country Status (1)

Country Link
CN (1) CN107957968A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932138A (en) * 2018-06-21 2018-12-04 郑州云海信息技术有限公司 A kind of configuration method, device, equipment and the medium of RSSD hard disk
CN109324991A (en) * 2018-09-21 2019-02-12 郑州云海信息技术有限公司 A kind of hot plug device of PCIE device, method, medium and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530124A (en) * 2013-10-18 2014-01-22 中安消技术有限公司 Method and device for sharing hot plug device in Linux system
CN106126460A (en) * 2016-06-16 2016-11-16 迈普通信技术股份有限公司 Hot-plug equipment reserves resource allocation methods, device and system
CN106326160A (en) * 2015-06-26 2017-01-11 华为技术有限公司 Processing system and processing method
CN107133185A (en) * 2017-04-19 2017-09-05 深圳市同泰怡信息技术有限公司 The method and mainboard of PCIE device warm connection function are realized by BIOS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530124A (en) * 2013-10-18 2014-01-22 中安消技术有限公司 Method and device for sharing hot plug device in Linux system
CN106326160A (en) * 2015-06-26 2017-01-11 华为技术有限公司 Processing system and processing method
CN106126460A (en) * 2016-06-16 2016-11-16 迈普通信技术股份有限公司 Hot-plug equipment reserves resource allocation methods, device and system
CN107133185A (en) * 2017-04-19 2017-09-05 深圳市同泰怡信息技术有限公司 The method and mainboard of PCIE device warm connection function are realized by BIOS

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932138A (en) * 2018-06-21 2018-12-04 郑州云海信息技术有限公司 A kind of configuration method, device, equipment and the medium of RSSD hard disk
CN109324991A (en) * 2018-09-21 2019-02-12 郑州云海信息技术有限公司 A kind of hot plug device of PCIE device, method, medium and system
CN109324991B (en) * 2018-09-21 2021-12-03 郑州云海信息技术有限公司 Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment

Similar Documents

Publication Publication Date Title
EP2965207B1 (en) System and method for managing storage system snapshots
US6725328B2 (en) Automated on-line capacity expansion method for storage device
JP4351409B2 (en) File device and file access method
CN101727293B (en) Method, device and system for setting solid state disk (SSD) memory
US5504888A (en) File updating system employing the temporary connection and disconnection of buffer storage to extended storage
CN102681789A (en) Method for generating a virtual volume (VV) in a storage system architecture
CN104850358A (en) Magnetic-optical-electric hybrid storage system and data acquisition and storage method thereof
US7085907B2 (en) Dynamic reconfiguration of memory in a multi-cluster storage control unit
CN104272242A (en) Creating encrypted storage volumes
JPWO2008072590A1 (en) Write-once recording device, controller, access device, and write-once recording system
US7567995B2 (en) Method and apparatus for the defragmentation of a file system
US20150293719A1 (en) Storage Space Processing Method and Apparatus, and Non-Volatile Computer Readable Storage Medium
CN107957968A (en) A kind of hot plug treating method and apparatus
CN105808157A (en) Storage architecture creating method, storage access method and storage system
US20180253233A1 (en) Storage in tiered environment with cache collaboration
EP3444722A1 (en) Installation of operating system
CN108304044A (en) A kind of setting method and system of NVME hard disk hot-plugs
CN106201652A (en) A kind of data processing method and virtual machine
CN102096679A (en) Method and device for merging and writing index segments in disk
CN104461705B (en) A kind of method and storage control, cluster storage system of business access
CN101398822B (en) Method for dynamically extending network memory space by virtual file systems technology
CN102622315B (en) Method, device and system for controlling disc visiting
US7099995B2 (en) Metadata access during error handling routines
CN107423157A (en) A kind of hard disk hanging method, module and operating system
CN103119567A (en) Systems and methods for managing a virtual tape library domain

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180424