CN101059766A - Quick prompt system and method during hot plugging - Google Patents

Quick prompt system and method during hot plugging Download PDF

Info

Publication number
CN101059766A
CN101059766A CN 200610074493 CN200610074493A CN101059766A CN 101059766 A CN101059766 A CN 101059766A CN 200610074493 CN200610074493 CN 200610074493 CN 200610074493 A CN200610074493 A CN 200610074493A CN 101059766 A CN101059766 A CN 101059766A
Authority
CN
China
Prior art keywords
hardware unit
information
computing machine
identification code
look
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
CN 200610074493
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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN 200610074493 priority Critical patent/CN101059766A/en
Publication of CN101059766A publication Critical patent/CN101059766A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a quick prompt system in hot plug process and a relative method, wherein the system comprises an interruption processing module connected with a hardware device, to generate an interruption signal when the hardware device leaves a computer, while the interruption signal contains the connected position information of the hardware device, and a drive module connected with the hardware device, which records a distribution information at least containing a connected position information of the hardware device and a recognize code relative to the hardware device, to obtain relative recognize code according to the connected position information of the interruption signal when the interruption signal is generated, and respond a prompt message to all requests for operating the hardware device according to the recognize code, before the operation system removes the hardware device. The invention can quickly respond the prompt information that the hardware device is off the computer, when the request for removing the hardware device from the computer occurs, to avoid error data process.

Description

Quick prompt system in a kind of hot plug process and method thereof
Technical field
The present invention relates to quick prompt system and method thereof in a kind of hot plug (Hot Plug) process, relate in particular to a kind of in hot plug process, by the link position information of hardware unit and the corresponding relation of identification code, learn the quick prompt system and the method thereof of the hardware unit of disengaging.
Background technology
When hardware unit was carried out the action of hot plug, the processing for the hardware unit that breaks away from generally was divided into two parts, and the one, physical removal hardware unit, the 2nd, logic removes hardware unit.The physical removal hardware unit is the manual hardware unit of pulling out, and is the action of a hardware, and is simple and quick; And removing hardware unit, logic in operating system, removes hardware unit exactly, it is the action of a software, whole process is comparatively complicated, after the look-at-me that hardware unit breaks away from produces, just can begin to handle the action that removes hardware unit after also needing other relative program in the operating system by the time to execute, therefore can need the long time.With the hard disk is example, after the look-at-me of pulling out hard disk produces, storage management module and the message processing module processing that also will wait for the upper strata remove relative programs such as hard disk, relative program just can be pulled out by notifying device driver module hard disk after finishing, the action that so removes hardware unit is just finished, can respond error message of request that desire is operated the hardware unit that has broken away from this moment, and making calls request can't operate the hardware unit that has broken away from.
Yet, break away from from hardware unit, to finish remove hardware unit during this period of time among, still have request constantly producing, but finish before the action that removes hardware unit finishes, request can't obtain the information that hardware unit has been removed, therefore proceed operation, then can't obtain correct data, cause the mistake of data or processing, the result of generation can not expect fully.Such processing mode is unfavorable for obtaining the information that hardware unit breaks away from fast on the one hand, also is unfavorable for the reliability on the data processing on the other hand.
Summary of the invention
Technical matters to be solved by this invention is to provide quick prompt system and the method thereof in a kind of hot plug process, to support the link position information and the corresponding identification code recording of the hardware unit of hot plug to get off, utilize the configuration information of record gained, when the look-at-me of hardware unit divorced from computer takes place, can finish before the action that removes hardware unit finishes in operating system, learn the identification code of the hardware unit of divorced from computer, in the time of so can taking place in the request of the hardware unit that the operation divorced from computer is arranged, respond the hardware unit information of divorced from computer fast, avoid the mistake of data processing to take place.
For achieving the above object, quick prompt system in the hot plug process provided by the present invention comprises: an interruption processing module, be connected with this hardware unit, in order to when this hardware unit breaks away from this computing machine, produce a look-at-me, wherein this look-at-me includes the link position information of this hardware unit; An and device driving module, be connected with this hardware unit, wherein also record a configuration information, link position information that this configuration information comprises this hardware unit at least and a identification code corresponding to this hardware unit, in order to after being produced when this look-at-me, obtain this corresponding identification code according to this link position information of this look-at-me, and this operating system finish remove this hardware unit before, according to this identification code, respond the request that an information is given this hardware unit of all operations.
And for achieving the above object, the quick prompt method in the plug process provided by the present invention includes the following step: at first when the hardware unit divorced from computer is arranged, produce the look-at-me of the link position information of the hardware unit that has disengaging; Subsequently according to link position information, can learn the identification code of the hardware unit of corresponding disengaging by the link position information that records hardware unit and the configuration information of corresponding identification code; At last operating system finish remove hardware unit before, according to information of request of this hardware unit of identity response all operations.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the system architecture diagram of the quick prompt system in the hot plug process that the present invention carried;
Fig. 2 is the method flow diagram of the quick prompt method in the hot plug process that the present invention carried;
Fig. 3 A is the link position synoptic diagram of six hard disks on the server carried of the embodiment of the invention;
Fig. 3 B is the content of the configuration information carried of the embodiment of the invention.
Wherein, Reference numeral:
100: computing machine 110: interruption processing module
130: device driving module 140: the storage management module
150: message processing module 191: hardware unit
192: hardware unit 199: hardware unit
300: the first server 310:SCSI buses
Channel 312 in 311: the first: second channel
314: the four channels of 313: the three channels
322: the second hard disks of 321: the first hard disks
324: the four hard disks of 323: the three hard disks
400: configuration information 410: identification code
420: link position information
Step 220 produces and breaks away from look-at-me
Step 230 obtains identification code
Step 240 response information
Embodiment
As shown in Figure 1, the system architecture diagram of the quick prompt system in the hot plug process of the present invention illustrates System Operation of the present invention.Hardware unit 191 of the present invention, 192......199 are including, but not limited to Winchester disk drive, CD-ROM drive, internal memory, scanning machine, printer ... or the like.
With the hard disk is example, and system of the present invention contains interruption processing module 110, device driving module 130, and other handles the correlation module that removes hard disk, non-category of the present invention as storage management module 140, message processing module 150 for operating system.Interruption processing module 110 is responsible for when the hard disk divorced from computer, produce a look-at-me that includes the positional information that this hard disk is connected with this computing machine, and with this look-at-me feed apparatus driver module 130, also can send the look-at-me of hard disk divorced from computer and carry out subsequent treatment for storage management module 140 simultaneously as traditional processing mode; Device driving module 130 is after receiving look-at-me, can be by recording hard disk coupling position information and corresponding identification code in configuration information wherein, read the identification code of hard disk according to the link position information of the hard disk in the look-at-me, and before message processing module 150 removes hard disk the information of finishing and delivers to device driving module 130, respond an information and will operate the request of hard disk for all.
System of the present invention is except that above-mentioned function mode, recording hard disk coupling position information and corresponding identification code can be changed by device driving module 130 in wherein configuration information and be located in the interruption processing module 110, so, after interruption processing module 110 includes institute's look-at-me of hard disk link position information in generation, read corresponding identification code by configuration information, and identification code delivered to device driving module 130, also send the look-at-me of hard disk divorced from computer simultaneously and carry out subsequent treatment for storage management module 140; Device driving module 130 will be after the identification code of the hard disk of obtaining divorced from computer, before message processing module 150 removes hard disk the information of finishing and delivers to device driving module 130, responds an information and will operate the request of the hard disk of disengaging for all.
Fig. 2 is the method flow diagram of the quick prompt method in the hot plug process of the present invention, by Fig. 2 operation workflow of the present invention is described.At first when interrupting processing module 110 when detecting hard disk and being pulled away computing machine, can produce a look-at-me (step 220) that has this hard disk link position information, then look the position of configuration information running, interruption processing module 110 or device driving module 130 will configuration data by link position information that records hard disk and identification code in, read corresponding identification code (step 230) according to the link position information that look-at-me has, at last before message processing module 150 removes hard disk the information of finishing and delivers to device driving module 130, respond all requests (step 240) of an information to the hard disk that will operate disengaging.
Then explain orally operation system of the present invention and method with an embodiment.As shown in Figure 3A, first server 300 of supporting the present invention and hot plug is arranged, and first server 300 is provided with four hard disk slots, all be equiped with the SCSI hard disk of supporting hot plug in the slot, first hard disk 321 that is respectively of four hard disks is connected on first channel 311, second hard disk 322 is connected on the 3rd channel 313, the 3rd hard disk 323 is connected on the second channel 312, the 4th hard disk 324 is connected on the 4th channel 314, first to fourth channel is connected with SCSI bus 310 respectively, and four hard disks such as first hard disk 321 and second hard disk 322 are used for setting up a RAID device.In the process of first server, 300 normal operations, pull out second hard disk 322 on the 3rd channel 313, so first look-at-me produces, then according to link position information (the 3rd channel 313 in first look-at-me, the SCSI device is recorded as host:BusLogic0 in operating system, channel:0, id:2, lun:0), the identification code 410 of being found out second hard disk, 322 correspondences by the link position information 420 in the configuration information shown in Fig. 3 B 400 is sdb, if there is first request of reading second hard disk 322 to produce at this moment, then first request will be received the information that one second hard disk 322 has removed, can not finish the processing that removes second hard disk 322 as yet, cause first request to obtain the data that to expect because of the operating system that first server 300 is moved.
Explain orally operation system of the present invention and method with an embodiment again.On the USB slot on first computing machine, be connected with first printer, when first printer power supply is closed, first computing machine can assert that first printer has broken away from first computing machine, so produce second look-at-me, then read the link position information that stores first printer and the configuration information file of identification code, link position information (device 28 by first printer, function 1, position 0) learns that the hardware unit that breaks away from first computing machine is first printer, so before operating system is finished the action that removes first printer, the present invention will respond desire and use the error message of the request of first printer for " first printer does not exist ".
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (9)

1. the quick prompt system in the hot plug process is applied to support a computing machine of hot plug, and this computing machine has at least one hot swappable hardware unit, and this computing machine carries out an operating system is arranged, and it is characterized in that this system comprises:
One interruption processing module is connected with this hardware unit, in order to when this hardware unit breaks away from this computing machine, produces a look-at-me, and wherein this look-at-me includes the link position information of this hardware unit; And
One device driving module, be connected with this hardware unit, wherein also record a configuration information, link position information that this configuration information comprises this hardware unit at least and a identification code corresponding to this hardware unit, in order to after being produced when this look-at-me, obtain this corresponding identification code according to this link position information of this look-at-me, and this operating system finish remove this hardware unit before, according to this identification code, respond the request that an information is given this hardware unit of all operations.
2. quick prompt system according to claim 1 is characterized in that, the form that this device driving module can file writes down this configuration information.
3. quick prompt system according to claim 1 is characterized in that, this information of this device driving module response can be an error message.
4. the quick prompt system in the hot plug process is applied to support a computing machine of hot plug, and this computing machine has at least one hot swappable hardware unit, and this computing machine carries out an operating system is arranged, and it is characterized in that this system comprises:
One interruption processing module, be connected with this hardware unit, wherein also record a configuration information, link position information that this configuration information comprises this hardware unit at least and a identification code corresponding to this hardware unit, in order to when this hardware unit breaks away from this computing machine, produce a look-at-me, wherein this look-at-me includes the link position information of this hardware unit, obtains this corresponding identification code according to this link position information; And
One device driving module is connected with this hardware unit, in order to after being produced when this look-at-me, before this operating system is finished and removed this hardware unit, according to this identification code, responds the request that an information is given this hardware unit of all operations.
5. quick prompt system according to claim 4 is characterized in that, the form that this interruption processing module can file writes down this configuration information.
6. quick prompt system according to claim 4 is characterized in that, this information of this device driving module response can be an error message.
7. the quick prompt method in the hot plug process is applied to support a computing machine of hot plug, and this computing machine has at least one hot swappable hardware unit, and this computing machine carries out an operating system is arranged, and it is characterized in that this method comprises the following step:
When detecting this hardware unit and breaking away from this computing machine, send a look-at-me, wherein this look-at-me includes the link position information of this hardware unit;
According to this link position information, by obtaining this corresponding identification code in the configuration information, wherein this configuration information record has link position information of this hardware unit and a identification code corresponding to this hardware unit; And
This operating system finish remove this hardware unit before, according to this identification code, respond an information give the operation this hardware unit all requests.
8. quick prompt method according to claim 7 is characterized in that, this this configuration information of obtaining the step of this identification code can be by reading at least one file.
9. quick prompt method according to claim 7 is characterized in that, this information that responds the step of this information can be an error message.
CN 200610074493 2006-04-21 2006-04-21 Quick prompt system and method during hot plugging Pending CN101059766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610074493 CN101059766A (en) 2006-04-21 2006-04-21 Quick prompt system and method during hot plugging

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610074493 CN101059766A (en) 2006-04-21 2006-04-21 Quick prompt system and method during hot plugging

Publications (1)

Publication Number Publication Date
CN101059766A true CN101059766A (en) 2007-10-24

Family

ID=38865883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610074493 Pending CN101059766A (en) 2006-04-21 2006-04-21 Quick prompt system and method during hot plugging

Country Status (1)

Country Link
CN (1) CN101059766A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303137A (en) * 2013-01-07 2017-01-04 株式会社东芝 Communication system
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN113010462A (en) * 2021-03-12 2021-06-22 英业达科技有限公司 Circuit structure and method for automatically adjusting PCIe channel configuration

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303137A (en) * 2013-01-07 2017-01-04 株式会社东芝 Communication system
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN113010462A (en) * 2021-03-12 2021-06-22 英业达科技有限公司 Circuit structure and method for automatically adjusting PCIe channel configuration
CN113010462B (en) * 2021-03-12 2023-02-17 英业达科技有限公司 Circuit structure and method for automatically adjusting PCIe channel configuration
US11625354B2 (en) 2021-03-12 2023-04-11 Inventec (Pudong) Technology Corporation Circuit structure with automatic PCIe link configuration adjustment and method thereof

Similar Documents

Publication Publication Date Title
US8055843B2 (en) Method for configuring RAID
CN102103629B (en) Online data migration method
CN1722137A (en) External metadata processing
CN1655134A (en) Method for data exchange between data handling equipment and operating system
CN101059766A (en) Quick prompt system and method during hot plugging
CN101051283A (en) Hard disc data backup system and method
CN1808365A (en) Automatic reconstruction method for disk redundancy array device
US20070294430A1 (en) Generating a device address persistent across different instantiations of an electronic device
CN102789369A (en) Method for adding SCSI (Small Computer System Interface) and RAID (Redundant Array of Independent Disk) drives by using a USB (Universal Serial Bus) flash disk to install windows2003
US20100191944A1 (en) Data storage apparatus
WO2009125586A1 (en) Device control method, device control program, and device selecting apparatus
CN1641610A (en) Hard disk replacement control and management method for network storage system
CN1303530C (en) Security device for a mass storage
CN1357840A (en) Computer security system
JP2004319030A (en) Storage device, control method, program, program recording medium, and data recording medium
JPH1083258A (en) Test method for cd-rom drive
CN101114244A (en) Method for simultaneously copying data of a plurality of bracket
EP0524810A2 (en) Recording information sent by host computer over a SCSI-bus
CN1149482C (en) Method for selecting initial partition of hard disk
US20130311718A1 (en) System and method of making golden master
CN1752952A (en) Installation method of driving program built in hardware device
CN1932777A (en) Hard disk main guiding recording recovery system and method
TWI307021B (en)
JP3128102B2 (en) Information recording / reproducing method
JP2008310752A (en) Error verification method in disk array unit, error verification program, and error verification unit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication