Embodiments of the invention provide for automatically resolving computer system boot-up problems and for ensuring the reliability of boot-up. According to embodiments, a test of a condition of a computer system may be performed prior to attempting to load an operating system, to ensure the reliability of the system. In other embodiments, a boot-up may be attempted from a plurality of different operating system images, in the event a boot-up from a given operating system image fails.
|
22. A method comprising:
during a boot of a computer system, executing an application-specific test of a condition of said computer system, prior to loading a first operating system image;
determining whether said application-specific test was passed; and
if said application-specific test was not passed, automatically attempting to load a second operating system image different from said first operating system image.
1. A method comprising:
during a boot of a computer system, executing an application-specific test of a condition of said computer system, prior to loading an operating system;
applying first criteria to determine whether said application-specific test was passed; and
if said test was not passed according to said first criteria, automatically causing said computer system to perform a predetermined responsive action according to second predetermined criteria.
7. A method comprising:
attempting to load a first operating system image in a computer system, the first operating system image being one of plurality of locally-stored alternative operating system images; and
if said first operating system image is not successfully loaded, performing an application-specific test on said computer system; and
determining based on said application-specific test which of said plurality of locally-stored alternative operating system images to attempt to load next.
20. A machine-readable medium tangibly embodying computer-executable instructions, said instructions when executed by a processor implementing a process comprising:
attempting to load a first operating system image in a computer system, the first operating system image being one of plurality of locally-stored alternative operating system images;
performing an application-specific test on said computer system; and
determining based on said application-specific test which of said plurality of locally-stored alternative operating system images to attempt to load next.
18. A machine-readable medium tangibly embodying computer-executable instructions, said instructions when executed by a processor implementing a process comprising:
during a boot of a computer system, executing an application-specific test of a condition of said computer system, prior to loading an operating system;
applying first criteria to determine whether said application-specific test was passed; and
if said test was not passed according to said first criteria, automatically causing said computer system to perform a predetermined responsive action according to second predetermined criteria.
15. A computer system comprising,
computer-executable instructions stored in a memory; and
a processor coupled to said memory to execute said instructions;
wherein said instructions are configured to attempt a load of a first operating system image, the first operating system image being one of plurality of locally-stored alternative operating system images; and
if said attempted load fails, to perform an application-specific test on said computer system, and determine based on said application-specific test which of said plurality of locally-stored alternative operating system images to attempt to load next.
11. A computer system comprising:
computer-executable instructions stored in a memory;
a processor coupled to said memory to execute said instructions; and
logic circuitry configured to perform a set of functions;
wherein said instructions are configured to be executed during a boot of said computer system and prior to loading an operating system of said computer system, to apply an application-specific test to determine whether said logic circuitry meets first predetermined criteria before loading said operating system, and, if said application-specific test is not passed according to said first criteria, to automatically cause said computer system to perform a predetermined responsive action according to second predetermined criteria.
2. The method of
3. The method of
4. The method of
5. The method of
6. The method of
8. The method of
9. The method of
10. The method of
12. The computer system of
13. The computer system of
14. The computer system of
16. The computer system of
17. The computer system of
19. The machine-readable medium of
21. The machine-readable medium of
23. The method of
24. The method of
|
Embodiments of the present invention relate to generally to computer systems, and more particularly to a method for improving computer system boot reliability.
The term “boot” or “boot up” is commonly used to describe loading operating system software into a computer system. More specifically, booting may comprise a process including several operations culminating in the loading of an operating system into system RAM. In many well-known systems, the boot process may begin with the loading of a BIOS (Basic Input/Output System) program from a ROM (Read-Only Memory) device. After performing some self-testing operations, the BIOS typically loads and then branches to a program called a “boot loader” that will actually load the operating system software. The boot loader typically resides in a reserved location on the system hard disk, for example, in the starting sectors of the hard disk.
After the BIOS program branches to the boot loader, the boot loader typically loads system initialization files that then proceed to load the operating system. Such initialization files may be known as “kernels” or operating system (OS) “images.” A kernel or OS image may specify a basic configuration of the OS, such which OS files need to be loaded. For example, an OS image could specify which device drivers needed to be loaded.
As is well known, during a typical OS boot process, the process can “hang”; i.e., the process may stop short of a complete, successful boot due to some hardware or software problem, such as a corrupted or missing OS image. Typically, the first approach to addressing the problem of a boot that fails to complete successfully is to re-boot the system, usually from the same OS image.
In many settings, re-booting the system is performed by a human user; i.e., a user manipulates some control means of the computer, such as a keyboard or reset button, to cause the re-boot to be initiated. However, in other settings such human intervention is not readily available. For example, a computer in a remote base station of a telecommunications network may not be easily accessible by a user in the event that a boot of the computer hangs.
It is known to attempt to re-boot the system automatically (i.e., without human intervention). However, in known systems, the re-boot may be continually attempted from the same OS image. If the OS image is corrupted, for example, this can lead to an infinite loop of system resets, making the system unusable.
Additionally, known boot routines do not perform a rigorous test of the condition of the devices of the hardware platform in which an OS is to be loaded, prior to loading the OS. Examples of such devices include memory controllers, Ethernet cards, serial I/O cards and custom ASICs (Application Specific Integrated Circuits). Thus, an OS may appear to boot successfully, while in fact one or more devices of the hardware platform may not be operating or may be operating in a sub-standard condition. This can lead to problems later on, as the OS begins to run application programs that require the inoperative or sub-standard devices. The problems may be worsened, for example, in settings as discussed above, where there is no human operator available to monitor the computer and take corrective action if needed.
A method and system are needed to address the problems outlined in the foregoing discussion.
Embodiments of the invention provide for automatically resolving computer system boot problems without human intervention and for improving the reliability of a computer system that does successfully load an OS. According to embodiments of the invention, a method and system are provided wherein, during a boot of a computer system and prior to loading an operating system (OS) of the system, a test of a condition of the computer system is executed. The test may be designed to be application-specific; i.e., depending on what kind of application or applications are intended to be run on the computer system, certain predetermined criteria may or may not need to be satisfied.
Depending on the results of the test, one or more predetermined responsive actions may be taken automatically (i.e., without user intervention). For example, if the test is passed, according to first predetermined criteria, the OS may be loaded and the computer system may go on to run applications, with a reasonable certainty that system will operate reliably. On the other hand, if the test is not passed according to the first predetermined criteria, the computer may automatically be caused to attempt some corrective action based on second predetermined criteria. For example, the computer may be caused to be rebooted, without proceeding to attempt to load the OS. The re-boot alone, by resetting various devices of the computer system, may resolve the initial problem, enabling the test to be passed during the re-boot. If the test is passed, the boot process may proceed to load the OS. Other examples of predetermined responsive actions that may be performed depending on results of the test and the second predetermined criteria include loading a different OS image, entering a diagnostic mode, or even shutting the system down.
Advantages provided by the foregoing embodiments include that by testing the computer system prior to loading the OS, it may be assured to a measurable degree that the system is operational as required for particular applications. By contrast, as noted above, in known systems, even though some pre-OS load testing may be performed, an OS may successfully be loaded even though devices of the system may be operating in a sub-standard condition. For example, BIOS performs some testing before the OS is loaded, but because BIOS is intended mainly for the PC market, it applies only generalized testing, involving only the writing of some simple test patterns to system memory and checking to see whether the memory responds correctly. BIOS is not known to perform in-depth testing of peripheral devices, for example. Additionally, BIOS is not known to be application-specific. For example, BIOS code has no detailed knowledge of custom devices, such as custom ASICs, which may be present on a computer platform and whose performance may be critical to particular applications intended to be run on the platform.
By automatically performing a predetermined responsive action based on second predetermined criteria as described above in the event that the test is not passed according to first predetermined criteria, a need for user intervention may be avoided. Additionally, because the test may be application-specific, it may be determined that a computer system is usable and that the OS may be fully loaded if the only devices that fail the test are not critical to the application. Or, it may be determined, for example, based on the second predetermined criteria, that the computer system is usable by one OS image but not another, and the OS image that is able to use the computer system may be loaded.
According to alternative embodiments of the invention, without necessarily first performing a test of a condition of a computer system as described above, a boot of a computer system may be attempted from a first OS image, and if the boot from the first OS image does not complete successfully, a re-boot may automatically be attempted from a second OS image different from the first OS image. To facilitate a decision as to whether to attempt to boot from the second OS image, embodiments may further provide a boot status record to record whether the computer system has failed to boot successfully in an earlier attempt. The computer system may automatically be caused to attempt to boot from a first OS image a predetermined number of times before it is decided to attempt to boot from a different OS image.
The foregoing embodiments offer advantages including avoiding a need for user intervention in the event of an unsuccessful boot. By automatically falling back to a second OS image different from a first OS image that failed to successfully boot, the probability of a boot that is eventually successful is increased.
As shown in
Storage 106 may comprise test code 107, BIOS code 112, boot loader code 113, a plurality of different OS images 108, and a boot status record 109 as discussed in more detail below.
Boot loader code 113 may then be loaded as shown in block 202. Then, according to embodiments of the invention, prior to loading an OS, an application-specific test of the computer system may be executed as shown in block 203. Referring to
Test code 107 may comprise instructions which when executed apply a test to the computer system to determine its readiness for supporting applications to be run once an OS is loaded. The test may comprise, for example, the application of stimuli to logic circuitry of the computer system, and it may be determined whether the logic circuitry responds correctly to the stimuli. The test may be based on functions that the logic circuitry is configured to perform. For example, test code 107 may cause selected system devices, such as a memory controller, an Ethernet card, a serial I/O card, or various custom ASICs to attempt to execute operations which they would normally need to execute to support applications running on a fully operational system. However, as noted earlier, test code 107 may be made application-specific, and therefore the test code may include first predetermined criteria established to decide what constitutes successfully passing the test depending on what applications are intended to be run on the computer system. For example, a given application may require serial and Ethernet capability, and therefore a test may be designed to ensure that devices that provide these capabilities are performing adequately.
On the other hand, a different computer system might be used for applications which require only Ethernet capability, but no serial capability. Or, for example, newer versions of a given application that had previously required both serial and Ethernet capability might no longer need serial capability. In such cases, the test could be designed to test only for Ethernet capability. In this way, computer systems which might not be fully operational in the sense that every device of the systems was adequately functional could still be used.
According to embodiments, the first predetermined criteria could be “rules-based.” That, the first predetermined criteria could comprise a set of rules for determining whether the test was successfully passed. The rules could have an “IF-THEN-ELSE” structure. For example, a rule according to the first predetermined criteria might be stated as “IF device X is at least 75% operational, THEN load the default OS, ELSE apply second predetermined criteria.”
In view of the foregoing, the test code could further include second predetermined criteria established to decide what predetermined responsive action to perform if the test is not passed according to the first predetermined criteria. By applying the second predetermined criteria, a decision, for example, that could be made based on the test results is that while a particular system might not be in a condition that would allow a given OS image to be loaded and function properly, that system might allow a different OS image to be loaded and still obtain satisfactory functionality. Like the first predetermined criteria, the second predetermined criteria could be rules-based with an IF-THEN-ELSE structure. Thus, for example, a rule according to the second predetermined criteria might be stated as “IF device X is at least 75% operational, THEN load an alternative OS, ELSE reboot the system.”
Other examples of predetermined responsive actions that may be taken based on the second predetermined criteria include entering a diagnostic mode, or shutting the system down. The diagnostic mode could include executing diagnostic code simply to obtain more information on which to base a decision according to the second predetermined criteria. For example, based on diagnostic code executed in the diagnostic mode, it could be determined that the system is in poor enough condition that it should simply be shut down. Alternatively, based on diagnostic code executed in the diagnostic mode, it could be determined that whatever condition led to the test being failed according to the first predetermined criteria is correctable. The diagnostic code could include code for correcting such correctable conditions. Thus, for example, a rule according to the second predetermined criteria might alternatively be stated as “IF results of the test are Y or Z, THEN execute diagnostic code to obtain more information; ELSE shut the system down.”
The application-specific test, first predetermined criteria and the second predetermined criteria are arbitrary and modifiable, and typically would be user-tailored to fit specific, varied hardware and software configurations, based on user knowledge, for example, about what applications are intended to be run, system parameters and capabilities, and the like.
Accordingly, as shown in block 204, it may be determined whether the test was passed based on the first predetermined criteria. If the test is passed, the process may go on to load the OS, as shown in block 205. On the other hand, if the test is not passed according to the first predetermined criteria, a predetermined responsive action may be automatically performed based on the second predetermined criteria, as shown in block 206.
According to alternative embodiments of the invention, a history of failed boot attempts of a computer system may be maintained, so that corrective action may be taken upon subsequent boot attempts. The corrective action may include automatically attempting to boot the system from a series of different system images. The computer system may automatically be caused to attempt to boot from a given OS image a predetermined number of times before it is decided to attempt to boot from a different OS image.
Keeping a record of a failed boot attempt and performing a predetermined action upon the detection of a previous failed boot attempt is known in the art. For example, Windows® OS software provides for booting in a “safe mode” upon the detection of a previous failed boot attempt. However, the “safe mode” does not include automatically performing a self-correcting process according to embodiments of the invention as described in more detail below. Rather, the “safe mode” requires user intervention.
A process according to the alternative embodiments is shown in
One possible format for the boot status record 109 is further illustrated in
As shown in block 303, if an attempted boot has previously failed, the process may proceed to block 305. If an attempted boot has not previously failed, the failed boot indicator field 109.1 may be updated to indicate that a failed boot has occurred, as shown in block 304. Then, the process may continue to block 305.
In block 305, it may be determined whether a predetermined number of boots from the same OS image have been attempted. This may be implemented, for example, by storing a predetermined number of boots that may be attempted in field 109.3 of the boot status record. If the predetermined number of boots have not yet been attempted, the process may proceed to block 309, wherein the number of attempts may be updated. This may be implemented, for example, by decrementing the number in field 109.3 of the boot status record. Then, the process may attempt to boot again from the current OS image.
If, on the other hand, the predetermined number of boots has been attempted from the current OS image (as indicated, for example, by the value in field 109.3 being decremented to zero), it may next be determined whether boots have been attempted from all available local OS images, as shown in block 306. In the example shown in
If boots have not been attempted from each of all local OS images, then the OS image from which the next boot is to be attempted may be changed to the next available local OS image, as shown in block 307. This next available local image then becomes the “current” image, and the process may return to block 301 to boot the current image. When the OS image is changed, the failed boot indicator 109.1 and the count of attempted boots 109.3 may be reset and the OS image field 109.4 of the boot status record 109 may be updated accordingly.
If, instead, all local OS images have been tried, as shown in block 308 a boot may be attempted from an OS image or images accessible via network interface 110 and network 111 as illustrated in
As an illustrative example, the process shown in
This process might continue until 5 attempts to load the “bronze” image had failed. At this point, the failed boot indicator 109.1 would be reset, the value in field 109.3 would be reset to “5” and the OS image field 109.4 would be updated to specify the “silver” image. A load of the “silver” image could succeed, or could fail up to 5 times. If the attempted load of the “silver” image failed 5 times, up to 5 attempts to load the “gold” image would be made, and so on.
It may be readily appreciated that the processes illustrated in
Generally, however, the process illustrated in
In view of the above-described features, embodiments of the invention may be advantageously used, for example, in systems such as telecommunication networks. Telecommunication networks often comprise widely scattered stations having pluralities of computers to support telecommunication applications. Moreover, in the commercial market for such networks, high availability is an absolute requirement. One measure of availability that is often referred to in the field is “five-nines” availability, wherein a network can have at most only a few minutes of down time per year. Usually, it is impractical to have human operators at every station site to resolve boot-up problems, or to continuously monitor system devices to ensure that they are meeting application needs, even though the OS may be successfully loaded. Accordingly, embodiments of the present invention provide for automatically resolving boot-up problems without the need for human intervention, and for ensuring the reliability of systems that do successfully load an OS. It may further be appreciated that existing art that does include some generalized system pre-testing without automated self-correction, such as BIOS, is completely inadequate to meet the requirements of telecommunications networks.
Software comprising computer-executable instructions according to embodiments of the present invention may be stored and transported on a computer-usable medium such as diskette, magnetic tape, disk or CD-ROM. The instructions may be downloaded to another storage medium such as a memory 101 on system 100, from which they may be fetched and executed by a processor 102 of system 100 to effect the advantageous features of the invention.
Several embodiments of the present invention are specifically illustrated and described herein. However, it will be appreciated that modifications and variations of the present invention are covered by the above teachings and within the purview of the appended claims without departing from the spirit and intended scope of the invention.
Huff, Robert L., Rich, Daniel A.
Patent | Priority | Assignee | Title |
10534618, | Sep 27 2016 | AMERICAN MEGATRENDS INTERNATIONAL, LLC | Auto bootloader recovery in BMC |
10986220, | May 16 2017 | John Thomas, Walker, II | Device for radio communications and method for establishing and maintaining communications between device and fixed location radio communication facilities |
11775315, | Jan 31 2018 | HEWLETT-PACKARD DEVELOPMENT COMPANY, L P | BIOS code to store operating systems on computer-readable media |
7409536, | Feb 18 2004 | Lenovo PC International | Computer systems with several operating systems coexisting thereon and swapping between these operating systems |
9946553, | May 04 2016 | AMERICA MEGATRENDS, INC. | BMC firmware recovery |
Patent | Priority | Assignee | Title |
5708776, | May 09 1996 | PDACO LTD | Automatic recovery for network appliances |
6098158, | Dec 18 1997 | Lenovo PC International | Software-enabled fast boot |
6145102, | Jan 20 1998 | Hewlett Packard Enterprise Development LP | Transmission of an error message over a network by a computer which fails a self-test |
6393585, | Dec 23 1998 | SYNAMEDIA LIMITED | Method and apparatus for restoring operating systems in a set-top box environment |
656702, | |||
JP52128031, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Jun 28 2002 | Intel Corporation | (assignment on the face of the patent) | / | |||
Aug 12 2002 | HUFF, ROBERT L | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 013217 | /0651 | |
Aug 12 2002 | RICH, DANIEL A | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 013217 | /0651 |
Date | Maintenance Fee Events |
Sep 21 2006 | ASPN: Payor Number Assigned. |
Apr 21 2010 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Mar 20 2014 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Jun 04 2018 | REM: Maintenance Fee Reminder Mailed. |
Nov 26 2018 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Oct 24 2009 | 4 years fee payment window open |
Apr 24 2010 | 6 months grace period start (w surcharge) |
Oct 24 2010 | patent expiry (for year 4) |
Oct 24 2012 | 2 years to revive unintentionally abandoned end. (for year 4) |
Oct 24 2013 | 8 years fee payment window open |
Apr 24 2014 | 6 months grace period start (w surcharge) |
Oct 24 2014 | patent expiry (for year 8) |
Oct 24 2016 | 2 years to revive unintentionally abandoned end. (for year 8) |
Oct 24 2017 | 12 years fee payment window open |
Apr 24 2018 | 6 months grace period start (w surcharge) |
Oct 24 2018 | patent expiry (for year 12) |
Oct 24 2020 | 2 years to revive unintentionally abandoned end. (for year 12) |