The present invention relates to a computer apparatus and a method of diagnosing, and more particularly to a computer apparatus in which a hardware component may be replaced, repaired, or added with power on and a method of diagnosing that uses the computer apparatus.
As described in “PCI Hot-Plug Specification Revision 1.0”, Oct. 6, 1997 (Copyright(c) 1997, PCI Special Interest Group), a PCI card connected to the PCI bus on a today's computer apparatus may be removed, repaired, replaced, and then connected again for continued PCI card operation even during OS operation without turning off the computer power (hereinafter called “hot swapping”).
Recently, a computer, especially a server, is required to perform non-stop operation (24 hours a day, 365 days a year). Therefore, hot swapping described above makes it possible to repair or replace a hardware component, such as a PCI card, with the OS running and, then, to put the component into operation again under control of the OS again.
However, when a hardware component such as a PCI card is repaired or replaced with the OS running and then is put into operation again under control of the OS, there is no way to check if the repaired or replaced PCI card operates properly or if the card is mounted correctly. Whether or not the repair or replacement has been done successfully is not known until control is passed back to the OS and the component starts operation under control of the OS. For a server that is required to perform non-stop operation, it is dangerous to put a repaired or replaced PCI card under OS control while worrying whether it operates properly.
Similarly, a PCI card or a peripheral device may be added even during non-stop operation (hereinafter called “hot plugging”). However, after addition, it is dangerous to put the added PCI card or peripheral device under OS control without checking the operation.
To avoid such a danger, a PCI card is repaired, replaced or added with the power off. Then, after the hardware component is repaired, replaced, or added, the OS environment containing a test program for checking the hardware is started and, after confirming that the hardware operation is normal with the use of the test program, the power is turned off or the system is re-booted to start the main OS and to bring the system back into normal operation. The problem with this method is that the non-stop operation cannot be performed because this method requires the main OS to stop operation while the hardware component is repaired, replaced, or added and while the test/maintenance program checks the hardware operation.
It is an object of the present invention to provide a computer apparatus and a method of diagnosing that ensure high reliability and non-stop operation even when a hardware component is repaired, replaced, or added.
To achieve the above object, the present invention provides a computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein the repaired, replaced, or added hardware component is disconnected from the first OS and, after an operation of the repaired, replaced, or added hardware component is checked by the second OS with the first OS performing usual processing, a control of the hardware component is passed to the first OS.
This configuration ensures increased reliability even at a hardware component repair, replacement, or addition time and, at the same time, makes non-stop operation possible.
In addition, to achieve the above object, the present invention provides a method of diagnosing that uses a computer apparatus in which a first OS and a second OS may be installed and in which a hardware component may be repaired, replaced, or added with power on, wherein, with the first OS performing usual processing, the second OS uses a test program to check an operation of the repaired, replaced, or added hardware component.
This method ensures increased reliability even at a hardware component repair, replacement, or addition time and, at the same time, makes non-stop operation possible.
Other objects, features and advantages of the invention will become apparent from the following description of the embodiments of the invention taken in conjunction with the accompanying drawings.
With reference to
First, with reference to
First, the hardware will be described. The computer apparatus comprises a hardware core 1, a periperal device control circuit 2, and an I/O bus control circuit 3. The hardware core 1 comprises a CPU, a memory, a power supply, and so on. When the hardware core 1 fails, the computer apparatus cannot perform operation. The peripheral device control circuit 2 controls peripheral devices (6-1 and/or 6-2). The I/O bus control circuit 3 controls I/O cards (7-1 and/or 7-2).
Peripheral device connection switches (4-1 and/or 4-2) are provided between the peripheral devices (6-1 and/or 6-2) and the peripheral device control circuit 2 to allow the peripheral devices (6-1 and/or 6-2) to be hot-swapped or hot-plugged. Note that, depending upon the interface between the peripheral devices (6-1 and/or 6-2) and the peripheral device control circuit 2, the peripheral device connection switches (4-1 and/or 4-2) are not always needed. I/O bus connection switches (5-1 and/or 5-2) are provided in an I/O bus, such as a PCI bus connecting the I/O cards (7-1 and/or 7-2) to the I/O bus control circuit 3, and support hot-swapping.
Next, the software configuration will be described. A multiple-OS controller 11 enables a plurality of OSs to be installed on one hardware unit. Under control of the multiple-OS controller 11, a main OS 8 and a sub OS 9 are installed. Under control of the sub OS 9, a test/maintenance program 10 is installed. The main OS 8 and the sub OS 9 may control the peripheral devices (6-1 and/or 6-2) and the I/O cards (7-1 and/or 7-2) as necessary. For example, DAL (DARMA (Dependable Autonomous Hard Real-Time Management) Abstraction Layer), described in the pamphlet “Ex-Manager”, Dec. 1999, Information Device Operation Division of Hitachi Ltd., may be used as the multiple-OS controller 11. Windows NT may be used, for example, as the main OS 8 installed under control of the multiple-OS controller 11, and Ex-Kernel may be used as the sub OS 9.
“Windows NT is a product and trademark of Microsoft Corporation of Redmond, Wash.”
Next, a hardware diagnosing method in the embodiment will be described with reference to
Normally, the peripheral devices (6-1 and/or 6-2) or the I/O cards (7-1 and/or 7-2) operate under control of the main OS 8.
When the main OS 8 detects a failure in the peripheral devices (6-1 and/or 6-2) or the I/O cards (7-1 and/or 7-2) during operation in step S10, processing in the steps beginning with step S20 are executed. In this embodiment, the failed peripheral devices (6-1 and/or 6-2) or I/O cards (7-1 and/or 7-2) is repaired or replaced and then safely put under the control of the main OS 8 again without stopping the operation of the main OS 8. In the description below, it is assumed that an I/O card 1 (7-1) has failed. The description also applies when an I/O card 2 (7-2) or peripheral device 6-1 or 6-2 fails.
For example, when a failure is detected in the I/O card 1 (7-1), the main OS 8 disconnects the failed I/O card 1 (7-1) from the control in step S20.
Next, in step S30, the failed I/O card 1 (7-1) is electrically disconnected from the I/O bus control circuit 3 by an I/O bus connection switch 5-1. The I/O bus connection switch 5-1 may be switched off, for example, by the main OS 8, by a repairman of the failed part, or by removing the failed I/O card.
Next, in step S40, the repairman removes the I/O card 1 (7-1) from the computer for repairing it. The repaired I/O card 1 (7-1) is installed in the slot from where it was removed.
Next, in step S50, the repaired I/O card 1 (7-1) is electrically connected to the I/O bus control circuit 3 by the operation of the I/O bus connection switch 5-1.
Next, in step S60, the sub OS 9 controls the repaired I/O card 1 (7-1). That is, this embodiment is characterized in that the sub OS 9 controls the repaired I/O card 1 (7-1). This allows the main OS 8 to continue normal operation, making non-stop operation possible.
Next, in step S70, the sub OS 9 uses the test/maintenance program 10 to check the operation of the repaired I/O card 1 (7-1).
Next, in step S80, the sub OS 9 checks if the operation of the I/O card 1 (7-1) for which the test/maintenance program 10 was executed is normal. If the operation is not normal, control is passed to step S90; if the operation is normal, control is passed to step S100.
If the operation of the I/O card 1 (7-1) is not normal, the sub OS 9 disconnects the abnormal I/O card 1 (7-1) from the control in step S90 and repeats the operations following step S30 to repair the I/O card 1 (7-1) again.
On the other hand, if the operation of the I/O card 1 (7-1) is normal, the sub OS 9 removes the repaired I/O card 1 (7-1) from the control in step S100 and passes the control of the I/O card 1 (7-1) to the main OS 8.
Next, in step S110, the main OS 8 puts the repaired I/O card 1 (7-1) in normal operation. Through the sequence of operations described above, the failed I/O card 1 (7-1) is repaired without having to interrupt the operation of the main OS.
In the above description, the method is used to repair or replace a failed peripheral devices (6-1 and/or 6-2) or I/O cards (7-1 and/or 7-2). The processing steps following step S50 may also be used to add a peripheral devices (6-1 and/or 6-2) or an I/O cards (7-1 and/or 7-2) without having to interrupt the processing of the main OS.
For a PC card used on a notebook PC, when a new PC card is inserted into the PC card slot, it is also possible to check the operation of the inserted PC card with the use of the sub OS and then to pass the control of the inserted PC card to the main OS.
In this embodiment, because the test/maintenance program is used to check the operation of a repaired or added hardware component after it is installed on the computer as described above, the hardware component is passed reliably to the main OS. Thus, the so-called the hot-swapping or hot-plugging operation may be executed under guarantee of the test/maintenance program. The main OS may use the hardware that is guaranteed to operate properly and, therefore, ensures increased reliability. In addition, the main OS, capable of continuing usual processing, may perform non-stop operation.
From a security point of view, the main OS is responsible for managing critical processing or important data while the sub OS is responsible only for computer apparatus maintenance operations such as the execution of the test/maintenance program. The task steps may be divided as follows: the security manager executes steps S10 and S20, the computer repair and maintenance engineer executes steps S30–S90, and the security manager executes step S100 and S110 again. This eliminates the need for the repair and maintenance engineer to directly operate the main OS with human errors taken into consideration and therefore increases system reliability.
The method according to the present invention increases security at the time of hardware repair, replacement, or addition and, at the same time, makes it possible to perform non-stop operation.
It should be further understood by those skilled in the art that although the foregoing description has been made on embodiments of the invention, the invention is not limited thereto and various changes and modifications may be made without departing from the spirit of the invention and the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2001-170117 | Jun 2001 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6212585 | Chrabaszcz | Apr 2001 | B1 |
6247080 | Wallach et al. | Jun 2001 | B1 |
6487623 | Emerson et al. | Nov 2002 | B1 |
6691146 | Armstrong et al. | Feb 2004 | B1 |
20020087611 | Tanaka et al. | Jul 2002 | A1 |
20020108074 | Shimooka et al. | Aug 2002 | A1 |
20020133743 | Oldfield et al. | Sep 2002 | A1 |
20020184576 | Arndt et al. | Dec 2002 | A1 |
Number | Date | Country |
---|---|---|
2001236237 | Aug 2001 | JP |
200282816 | Mar 2002 | JP |
Number | Date | Country | |
---|---|---|---|
20020184563 A1 | Dec 2002 | US |