Solaris boot archive corrupt

Similar documents
Mirroring the Boot Drive with Solstice Disk Suite/Solaris Volume Manager. Brad Isbell, Seeds of Genius June 2006

Solaris Patches Installation Instructions

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

Input the disk name to be replaced. One of the following notation can be used:

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

Alternative Boot Solutions

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

File System: Interface and Implmentation

Sun StorEdge MultiPack Storage Guide

Manual File System Check Linux Command Line

Solaris 10. DI Gerald Hartl. Account Manager for Education and Research. Sun Microsystems GesmbH Wienerbergstrasse 3/VII A Wien

Disk Replacement. Introduction CHAPTER

Solaris 10. DI Gerald Hartl. Account Manager for Education and Research. Sun Microsystems GesmbH Wienerbergstrasse 3/VII A Wien

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

How To Force Restore A Computer That Won Boot Up After System

NVIDIA RAID Installation Guide

Installing the IBM ServeRAID Cluster Solution

Platform Notes: Sun Enterprise 250 Server

How To Resize ext3 Partitions Without Losing Data

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

The Btrfs Filesystem. Chris Mason

Fedora Linux Installation Guide

Ubuntu - How to Create Software RAID 1 in Ubuntu Linux - Tutorial

Changing user login password on templates

Booting up and Shutting down A primer for troubleshooting

Initial Bootloader > Flash Drive. Warning. If not used carefully this process can be dangerous

Saving and Restoring the System on the Fast Internet Computers CFS-249 December 15, 2004

Manually Mount Usb Device Linux Command Line Ubuntu 12.04

NVIDIA RAID Installation Guide

Lionstracs Groove X-R

This course is for those wanting to learn basic to intermediate topics in Solaris 10 system administration.

FireWolf OS X PE V7 All-in-one Manual

Upgrading Prime Optical

VERITAS Volume Manager Hardware Application Note

Full System Restore Manually Windows 7 No Disk

Configuring a RAID Set

ETERNUS DX80 S2, DX90 S2, DX410 S2 and DX440 S2

Cracked Stellar Volume Optimizer download free software for pc ]

Configuration and Administration Guide 4.2

VERITAS Storage Migrator 3.4 VERITAS Storage Migrator Remote 3.4

NVIDIA / JMicron RAID Installation Guide

ADVANCED DRIVER MANAGEMENT IN WINDOWS 7

R ev D. DTA Control System 1.2 Installation and Operation Guide

Ubuntu Manual Fsck Must Performed Debian

Chapter 11: File System Implementation. Objectives

This is Lab Worksheet 13 - not an Assignment. Boot Process and GRUB

How To Reset Locked Ipod Touch To Factory Settings Without Computer

Veritas Volume Manager Conversion

Backup & Recovery. Sun Microsystems Korea. ning.co.kr

TECHNICAL WHITE PAPER

More on file systems, Booting Todd Kelley CST8177 Todd Kelley 1

Porting ZFS 1) file system to FreeBSD 2)

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

How To Fix Regedit Windows Xp With Disk Boot Failure

ExpressCluster X 3.1 for Solaris

UNIX System Administration

IT Essentials v6.0 Windows 10 Software Labs

Guide to SATA Hard Disks Installation and RAID Configuration

Windows 7 Manual Partition Hard Drive During Install Xp

Figure 1.0 ULTRA 22C Board Layout JP1 JP5. Table 1.0 Default Jumper Settings

RocketRAID 231x/230x SATA Controller Fedora Linux Installation Guide

Outline. Computer Center, CS, NCTU. Interfaces Geometry Add new disks RAID. Appendix SCSI & SAS

Rev B. DVD Upgrade Installation Guide for System Release 5.0 with Integrated Application Server

Getting Started with OpenSolaris An Introduction for Technical Evaluators

Rev B. DVD Upgrade Installation Guide for System Release 5.0 with Standalone Application Server


Outline. Computer Center, CS, NCTU. q Interfaces q Geometry q Add new disks. q RAID

client X11 Linux workstation

HP-UX System Administration Course Overview. Skills Gained. Who will the Course Benefit?

Reborn software ADV 9.01 installation guide custom installation

System Administration for the Oracle Solaris 10 OS Part 1 Student Guide - Volume I

RocketRAID 231x/230x SATA Controller Debian Linux Installation Guide

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Step by Step Installation of CentOS Linux 7 and Active Circle

Configuration and Administration Guide 4.3

RocketRAID 2522 SATA Controller Ubuntu Linux Installation Guide

Examples What it means

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

Managing RAID. Entering the RAID Management Command Environment CHAPTER

Manual Format Windows 7 Using Usb Drive Fat32

Getting Started. System Requirements. Installation

RAID Technology White Paper

your Apple warranty; see There are two main failure modes for a mirrored RAID 1 set:

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Juniper EX4200 and EX4500 Update Guide for IBM Smart Analytics System 7700 and IBM Smart Analytics System 7710

Outline. Computer Center, CS, NCTU. Interfaces Geometry Add new disks RAID. Appendix SCSI & SAS

Do A Manual System Restore On Windows 8 From Startup Repair

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

System Administration for Beginners

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

Partitioning and Formatting Reference Guide

Solaris 9 Mount Cdrom Manually

How To Remove Only Outlook From Office 2007 Pst Files Outlook

Fedora Linux Installation Guide

412 Notes: Filesystem

EMC Host Connectivity Guide for Sun Solaris

If any issues are encountered, please contact your service representative for assistance.

FreeBSD/ZFS last word in operating/file systems. BSDConTR Paweł Jakub Dawidek


G4120: Introduction to Computational Biology

Transcription:

Solaris boot archive corrupt fixing a solaris boot archive Solaris 10 x86 Server can't Boot! Error messages at startup: On booting you get an error message of the form: panic: cannot mount boot archive Press any key to reboot or diskread: reading beyond end of ramdisk start = 0x2000, size = 0x2000 failed to read superblock diskread: reading beyond end of ramdisk start = 0x8000, size = 0x800 failed to read superblock panic: cannot mount boot archive Press any key to reboot or 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" Error messages at reboot or shutdown: When a Solaris 10 x86 machine is shutdown, the system checks whether the boot archive needs updating. If it does, you will see a message of the form: updating /platform/i86pc/boot_archive...this may take a minute cannot find: mountpoint in /etc/fstab or any other error

Special Case: mdi_ib_cache If on booting you get an error message of the form: 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. 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 The boot-archive is located in /a/platform/i86pc/boot_archive Rename or remove existing /a/platform/i86pc/boot_archive before creating a new boot_archive. Simple Root Partition If your root filesystem is a simple partition (not mirrored by Solaris) Solaris will offer to mount your Solaris install on /a, accept this. You may also be prompted to repair your boot archive, if so follow the instructions and reboot. If you need or want to manually update the boot archive, run the following command, then reboot: #bootadm update-archive -R /a You should now have a working system. Mirrored Root Partition

If your system uses a metadevice mirror for the root partition you will receive a message about the partitions being skipped because they are meta devices, for example: Searching for installed OS instances... /dev/dsk/c3t0d0s0 is under md control, skipping. /dev/dsk/c3t1d0s0 is under md control, skipping. No installed OS instance found. The process to fix the boot archive in this case is longer, but provided you follow all the steps, still straightforward. Mount Filesystem Start by mounting the first half of the mirror onto /a. The name of the first half of the mirror is given in the 'md control' message, in this case '/dev/dsk/c3t0d0s0': #mount /dev/dsk/c3t0d0s0 /a Update vfstab You must now update the /a/etc/vfstab file to use this single partition as the root filesystem. If you don't, the two halves of the mounted root filesystem will be out of sync after you reboot and you'll have serious problems. NB. You only need to change the entry for / in vfstab. Take a backup of the vfstab: #cp /a/etc/vfstab /a/etc/vfstab_backup Open the vfstab file in an editor and comment out the existing line for the root filesystem then add a new line for the single partition. For example you might have the following line in your vfstab: #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options /dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no -

REMEMBER: use TAB instead of spaces! In our example the partition is called /dev/dsk/c3t0d0s0, so would update the vfstab with (note the rdsk in the second column of the new entry): #device device mount FS fsck mount mount #to mount to fsck point type pass at boot options # /dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no - /dev/dsk/c3t0d0s0 /dev/rdsk/c3t0d0s0 / ufs 1 no - Turn of volume manager in /etc/system comment out: rootdev:/pseudo/md@0:0,0,blk in /etc/system * Begin MDD root info (do not edit) *rootdev:/pseudo/md@0:0,0,blk * End MDD root info (do not edit) Update Boot Archive # bootadm update-archive -R /a Mount the second (mirror) harddisk Just to make sure the mirror harddisk doesn't interfere. unmount /dev/dsk/c3t0d0s0 /a and mount the mirrordisk, e.g. /dev/dsk/c3/t1/do/so /a and follw the steps from " Update vfstab" Update Boot Archive We can now safely update the boot archive and reboot: bootadm update-archive -R /a shutdown -i 6 At the Grub menu select the normal Solaris option (not failsafe). If the boot fails because of mount problems, reboot into failsafe mode and check your vfstab file is correct. Fixing the Root Mirror

You should now have a working Solaris system, but your root filesystem is no longer mirrored. To fix this you need to rebuild the meta device. Identify the name of the root filesystem metadevice from vfstab (it's the line you commented out earlier: /dev/md/dsk/d10 in this example). Then use metastat to determine the components of the mirror: # metastat d10 d10: Mirror Submirror 0: d11 Submirror 1: d12 Pass: 1 Read option: roundrobin (default) Write option: parallel (default) Size: 20482875 blocks (9.8 GB) d11: Submirror of d10 Size: 20482875 blocks (9.8 GB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c3t0d0s0 0 No Okay Yes d12: Submirror of d10 Size: 20482875 blocks (9.8 GB) Stripe 0: Device Start Block Dbase State Reloc Hot Spare c3t1d0s0 0 No Okay Yes In our example we can see that the mirror is composed of two submirrors, d11 (Device: c3t0d0s0) and d12 (Device: c3t1d0s0). The boot archive was fixed on c3t0d0s0, so d11 is the good half, and d12 the faulty half. You should therefore detach d12 # metadetach d10 d12 We can now switch back to using the metadevice as the root filesystem (using the backup of the vfstab you created earlier) and reboot: # cp /a/etc/vfstab_backup /a/etc/vfstab # shutdown -i 6 Once your systems has rebooted the root filesystem is back on the metadevice, but it's not mirrored, to re-enable the mirror you just need to reattach the device you detached above (in this case d12):

# metattach d10 d12 The mirror will now resync, you can check on its progress with metastat: # metastat d12 Once syncing is complete you have a working mirrored root filesystem.