• No results found

Boot Archive

N/A
N/A
Protected

Academic year: 2021

Share "Boot Archive"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

Boot Archive Issues

Boot Archive Issues

1.

1. T

To boot o boot from the failsafe from the failsafe archive, perform the archive, perform the following steps:following steps: T

To boot o boot from the failsafe from the failsafe archive, perform the archive, perform the following steps:following steps: SPARC servers

SPARC servers

issue “boot –F failsafe” from the

issue “boot –F failsafe” from the OBP promptOBP prompt x86 servers

x86 servers

select the “failsafe” GRUB menu item select the “failsafe” GRUB menu item Upon booting the failsafe archive, the

Upon booting the failsafe archive, the system will search for Solaris 10 system will search for Solaris 10 instances and offer to mount instances and offer to mount them.them. If you desire that it do so, select the appropriate instance.

If you desire that it do so, select the appropriate instance. NOTE:NOTE:The failsafe boot will only mount The failsafe boot will only mount rawraw disk partitions (not under SVM control) or

disk partitions (not under SVM control) or ZFS pools through this method.ZFS pools through this method. Add File(s)to the Boot Archive

Add File(s)to the Boot Archive

In the event an additional file or directory must be available in the boot

In the event an additional file or directory must be available in the boot archive, the name of the file or archive, the name of the file or  directory should be added to the following file:

directory should be added to the following file: /boot/solaris/filelist.ramdisk

/boot/solaris/filelist.ramdisk

Issue

Issue: : Boot load Boot load failed: Ifailed: It’s common t’s common issue faced issue faced on these on these server server  WARNING

WARNING - The following files in / - The following files in / differ from the boot archive: cannot differ from the boot archive: cannot find: /etc/devices/mdi_ib_cache:find: /etc/devices/mdi_ib_cache: No such file or directory

No such file or directory

The recommended action is to

The recommended action is to reboot and select "Solaris failsafe"reboot and select "Solaris failsafe" Resolution 1

Resolution 1: {0} ok boot -F failsafe: {0} ok boot -F failsafe

Mount root slice of bootdisk on a temp dir  Mount root slice of bootdisk on a temp dir 

# mount /dev/dsk/c0t0d0s0 /mnt # mount /dev/dsk/c0t0d0s0 /mnt # cd

# cd /mnt/platfor/mnt/platform/`uname -m`m/`uname -m` # mv

# mv boot_archive boot_archive XXXboot_archiveXXXboot_archive # /mnt/sbin/bootadm -a update_all # /mnt/sbin/bootadm -a update_all If you see

If you see a new boot_archive, remove XXXboot_archivea new boot_archive, remove XXXboot_archive # reboot

# reboot - Reboot - Reboot the server the server 

Resolution 2

Resolution 2 0} ok boot -F failsafe0} ok boot -F failsafe Mount root slice of bootdisk on a temp dir  Mount root slice of bootdisk on a temp dir  # mount /dev/dsk/c0t0d0s0 /mnt

# mount /dev/dsk/c0t0d0s0 /mnt #mount /dev/dsk/c0t0d0s4 /mnt/a #mount /dev/dsk/c0t0d0s4 /mnt/a # cd

# cd /mnt/platform/mnt/platform/`uname -m`/`uname -m` # mv

# mv boot_archive boot_archive XXXboot_archiveXXXboot_archive # /mnt/sbin/bootadm -a update_all # /mnt/sbin/bootadm -a update_all If you see

If you see a new boot_archive, remove XXXboot_archivea new boot_archive, remove XXXboot_archive #reboot

(2)

WARNING - The following files in / differ from the boot archive: cannot find: /etc/devices/mdi_ib_cache: No such file or directory

The recommended action is to reboot and select "Solaris failsafe" option from the boot menu. Then follow prompts to update the boot archive.

Resolution:

You do not need to use failsafe mode.

Fixing this issue is as simple as clearing the boot archive cache, rebuilding the boot archive and rebooting.

Log in at the maintenance prompt, then run: svcadm clear system/boot-archive

bootadm update-archive shutdown -i 6

Rebuilding the Boot Archive Boot into Failsafe Mode

Reset the machine and select the 'Solaris failsafe' option from the Grub menu.

The system will boot from a standalone image of Solaris (kept at /boot/x86.miniroot-safe), bypassing the broken boot archive.

Failsafe will try to mount your boot partition on /a bootadm update-archive -R /a

shutdown -i 6

x86: What to Do If the SMF Boot Archive

Service Fails During a System Reboot

Solaris 10 1/06: In this release, if the system crashes, the boot archive SMF service,

svc:/system/boot-archive:default, might fail when the system is rebooted. If the boot

archive service has failed, a message similar to the following is displayed when you run thesvcs -x command:

svc:/system/boot-archive:default (check boot archive content) State: maintenance since Fri Jun 03 10:24:52 2005

Reason: Start method exited with $SMF_EXIT_ERR_FATAL. See: http://sun.com/msg/SMF-8000-KS

See: /etc/svc/volatile/system-boot-archive:default.log

Impact: 48 dependent services are not running. (Use -v for list.)

svc:/network/rpc/gss:default (Generic Security Service) State: uninitialized since Fri Jun 03 10:24:51 2005

(3)

See: http://sun.com/msg/SMF-8000-5H See: gssd(1M)

Impact: 10 dependent services are not running. (Use -v for list.)

svc:/application/print/server:default (LP print server) State: disabled since Fri Jun 03 10:24:51 2005

Reason: Disabled by an administrator. See: http://sun.com/msg/SMF-8000-05 See: lpsched(1M)

Impact: 1 dependent service is not running. (Use -v for list.)

To correct the problem, take the following action:

1. Reboot the system and select the failsafe archive option from the GRUB boot menu. 2. Answer ywhen prompted by the system to rebuild the boot archive.

After the boot archive is rebuilt, the system is ready to boot.

3. To continue booting, clear the SMF boot archive service by using the following command.

# svcadm clear boot-archive

 Note that you must become superuser or the equivalent to run this command.

For more information on rebuilding the GRUB boot archive, see How to Boot an x86 Based System in Failsafe Mode in System Administration Guide: Basic Administration and the

bootadm(1M) man page.

SOURCE: http://docs.oracle.com/cd/E18752_01/html/817-0403/fxcmh.html

Troubleshooting is merely the methodical application of common sense and technical knowledge to the inevitable problems that crop up in a fallen world. If common sense can be codified (and  perhaps it can with AI) then it starts with answers to simple questions like: Why? How? What?

In this article I'll try to distill the issues, tools and procedures of troubleshooting Windows

(4)

administrator can write on the back of a note card or store in your PDA for easy access when the  proverbial poop hits the fan. Let's begin with the Why question.

Why do startup problems happen?

Windows may fail to start for a variety of reasons, and generally speaking in order of decreasing likelihood here they are:

• Hardware failure • Bad driver

• Corrupt file or volume • System misconfiguration • Virus infection

Let me elaborate. A common reason systems fail to start is because some element of the system's hardware has failed. This could range from the simple (someone kicked the power cord out of its socket) to the obvious (smoke emitting from the machine) to the mysterious (something transient that happens only when the moon is full or during sunspot minimum). Next most common is when you update the driver for some piece of hardware (or the BIOS for that matter) and the system won't boot afterwards. After that comes those mysterious messages we'll talk about shortly that usually indicate some key operating system file has somehow become corrupt or  gone missing. Misconfiguration is another possible source of boot problems, bu t this is

somewhat rare as in most cases you'll still be able to boot but one or more services may fail to start or your applications may not function as expected. Finally, virus infection can cause a system to fail to boot, but I've listed this in last place because I'm assuming you've got an antivirus solution in place and you're keeping the antivirus signature files updated, right?  Now that we know why Windows may fail to start properly, let's ask the logical next question:

How can we know which of these underlying causes is the one that might be preventing Windows from successfully booting?

How to diagnose startup problems

Here is where we need to apply our brains and use a bit of common sense to determine what the cause of startup failure might be. Think of the previous list above as a list of disease-causing viruses, and now you have to play doctor and figure out which virus the patient (your sick  computer) actually might have. For if you skip this step and try blasting the patient with every  possible remedy in your doctor's bag, two things may ha ppen:

• One of the remedies you try may actually make the patient worse and indeed

could prove fatal.

•  You'll waste a lot of time and the recovery of your patient will be delayed,

and your boss may get upset with you as a result since her business is losing money due to downtime.

So careful diagnosis is a step you should always take time for and never avoid, and just like in the medical profession such diagnosis usually begins with your senses. For example, do you smell something burning? Better unplug your system immediately and wait for things to cool off,

(5)

then open the case and inspect the damage. Do you hear your CPU fan making a slow grinding sound? Power down your system and replace the fan before your processor burns out and needs replacing. Is your video display flickering? Maybe try reseating the video card after checking if  the video cable is seated properly.

OK let's assume its not such a simple and obvious problem. Instead, say you get a black screen with one of the following dreaded messages when you try and boot your system:

• "NTLDR is missing"

• "A disk read error occurred" • "Invalid partition table"

• "Error loading operating system"

• "Could not read from selected boot disk"

• "Windows could not start because the following file is missing or corrupt"

Or you might get a blue screen (called a STOP screen) with some obscure message on it. Or if  you're lucky you might make it all the way through the Windows splash screen to the logon box and then suddenly get a dialog box saying "One or more services failed to start". Or your mouse  pointer might freeze and your system hang either b efore or immediately after logon. How can

you match these symptoms to the underlying condition that might be causing them? First let's look at some possible "black screen" messages that can occur after the BIOS POST routine finishes but before the Windows splash screen appears:

Symptom Probable Cause

• "Invalid Partition Table" • "Missing Operating System" • "Invalid Partition Table"

Master boot record is corrupt due to hard disk  errors or virus infection

• "NTLDR is missing"

• "A disk read error occurred" • System hangs after BIOS POST

finishes

Boot sector is corrupt due to hard disk errors or virus infection

• "Windows could not start

because of a computer disk

hardware configuration problem"

• "Could not read from selected

boot disk"

• "Check boot path and disk

hardware"

Boot.ini file is corrupt, missing, or needs updating.

• "Windows could not start

because the following file is missing or corrupt"

Boot volume is corrupt or the referenced system file is missing.

(6)

• Blue screens. These are typically caused by hardware failure or driver

problems but can also be due to virus infection.

• Hung system. These are typically caused by buggy drivers or by registry

corruption but can also be due to virus infection.

• Dialog box saying "One or more services failed to start". This is

typically caused by misconfiguration or registry corruption but can also be caused by application incompatibility of some form.

So what should you do to resolve such problems?

How to resolve startup problems

Like a doctor's mysterious black medical bag full of medical instruments (at least in old movies on TV) the system administrator also has a set of tools provided by Microsoft for resolving startup problems like the ones in the table above. In a nutshell, here's a quick inventory of the main tools:

• Last known good. Restores the HKLM\System\CurrentControlSet portion of 

the registry its version during the last successful logon to the system.

• Safe mode. Starts Windows with a minimal set of drivers and creates a

record of which drivers load in %windir%\Ntbtlog.txt.

• System Restore. Windows XP only feature to restore system to previously

saved configuration.

• Recovery Console. Boots to a command line that allows you to run various

commands, see this article by Johannes Helmig for more info.

• Automated System Recovery (ASR). Restores the boot volume from

backup, see this article by Johannes Helmig for more info.

• Repair. Run Windows Setup from your product CD and select the option to

try and repair your installation.

Which tool should you use to address each of the symptoms we described earlier? Assuming there is no obvious hardware problem (no funny smell) and you've already asked yourself the Golden Question ("What was the last thing I did to this system?") then here's a quick outline that maps the type of knife (may be several in order of severity) to the kind of surgery (underlying  problem or visible symptom) you need to perform on your system:

Problem/Symptom Tool(s) to Use

Corrupt master boot record Recovery Console (fixmbr)

Corrupt boot sector Recovery Console (fixboot)

Corrupt or missing boot.ini Recovery Console (bootcfg /rebuild)

Corrupt system file Recovery Console (chkdsk) Restore from ASR backup

(7)

Perform a Repair install

Corrupt registry Recovery Console (chkdsk) System Restore (XP only)

Restore system state from backup Perform a Repair install

Blue screen See this resource first Last known good

System Restore (XP only)

Safe mode (roll back suspect driver using Device Manager)

Hung system Last known good

System Restore (XP only)

Safe mode (roll back suspect driver using Device Manager)

"One or more services failed to start"

Don't logon! Reboot and select last known good, log on, undo the last configuration steps you performed.

Safe mode (undo last configuration steps you performed)

Keeping a System Bootable

The bootadm command handles the details of boot archive update and verification. During the

 process of a normal system shutdown, the shutdown process compares the boot archive's contents with the root file system. If there have been updates to the system such as drivers or  configuration files, the boot archive is rebuilt to include these changes so that upon reboot, the  boot archive and root file system are synchronized.

The files in the x86 boot archive are located in the/platform/i86pc/amd64/boot_archive

directory.

The files in the SPARC boot archive are located in the /platform directory.

To list the contents of the boot archive by using thebootadm list-archivecommand, as

(8)

# bootadm list-archive

Whenever any files in the boot archive are updated, the archive must be rebuilt. For 

modifications to take effect, the rebuild of the archive must take place before the next system reboot.

Determining Whether the

 boot-archive

SMF Service

Is Running

If the boot-archive service is disabled, automatic recovery of the boot archives upon a system

reboot might not occur. As a result, the boot archives could become unsynchronized or  corrupted, preventing the system from booting.

To determine whether theboot-archive service is running, use thesvcs command, as follows:

$ svcs boot-archive

STATE STIME FMRI

online Mar_31 svc:/system/boot-archive:d efault

To enable or disable theboot-archive service, type:

# svcadm enable | disable system/boot-archive

To verify the state of the boot-archive service, type:

# svcs boot-archive

If the service is running, the output displays an online service state.

How to Clear a Failed Automatic Boot

Archive Update by Manually Updating

the Boot Archive

During the process of booting the system, if a warning message that is similar to the following is displayed, take action accordingly:

WARNING: Automatic update of the boot archive failed. Update the archives using 'bootadm update-archive'

command and then reboot the system from the same device that was previously booted.

The following procedure describes how to manually update an out-of-date boot archive by using the bootadm command.

(9)

1.Become the rootrole.

2. To update the boot archive, type the following command:

# bootadm update-archive

Note - To update the boot archive on an alternate root, type the following command:

# bootadm update-archive -R /a -R altroot 

Specifies an alternaterootpath to apply to theupdate-archive subcommand.

Caution - The root file system of any non-global zone must not be referenced with the -Roption. Doing so might damage the global zone's file system, compromise

the security of the global zone, or damage the non-global zone's file system. See the

zones(5) man page.

3. Reboot the system.

# reboot

x86: How to Clear a Failed Automatic

Boot Archive Update by Using the

auto-reboot-safe

Property

Boot archive recovery on x86 platforms is automated through the Fast Reboot feature. However, during the process of booting the system, if a warning similar to the following is displayed:

WARNING: Reboot required.

The system has updated the cache of files (boot archive) that is used during the early boot sequence. To avoid booting and running the system with the previously out-of-sync version of these files, reboot the

system from the same device that was previously booted.

The system then enters system maintenance mode. As a result, the automatic update of the boot archive fails. To correct the problem, follow the steps in this procedure.

1.Become the rootrole.

(10)

# reboot

3.If the active BIOS boot device and the GRUB menu entries point to the current boot instance, follow these steps to prevent a boot archive update failure:

a. Set the auto-reboot-safeproperty of thesvc:/system/boot-configSMF service totrue, as follows:

# svccfg -s svc:/system/boot-config:default setprop config/auto-reboot-safe = true

b. Verify that the auto-reboot-safeproperty is set correctly.

c. # svccfg -s svc:/system/boot-config:default listprop |grep config/auto-reboot-safe

config/auto-reboot-safe boolean true

References

Related documents

Additionally, this study examined the influence of student mobility on the graduation rate when controlled by the student characteristic variables of socioeconomic status,

That unit takes the casting value minus the threshold S3 hits each turn until the spell is ended by the caster or dispelled. The caster may not cast any other spells while this

When trying to guess the meaning of an unknown word, always look for clues in the context (the words before and after it as well as the previous and following sentences).

Do teacher portfolio-evaluation and classroom observation have the same significant effect on Iranian intermediate EFL learners' general language proficiency achievement.. Review

So to reduce the need for mailbox sizes quotas, we need to minimize the total amount of data needed to be held in the Exchange server mailboxes and manage the information for

The next issue noticed was the tendency of the screw to rise when plastic accu- mulated in the bottom of the heating barrel so another version of the hopper was made to allow for

Seedling densities of understory-intolerant species were not significantly different between natural communities, for any treatment level (Figure 3c). In xeric woodlands, the

The attacker then uses the stolen synchronization token to connect with the victim’s file synchronization account (using, for example, the Switcher tool on the attacker’s