LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 11-19-2012, 10:34 PM   #1
happymonkey
LQ Newbie
 
Registered: Nov 2012
Location: Canada
Distribution: Sun Blade 2500 2x1.28Ghz 8GigRAM - Solaris 10 u11
Posts: 8

Rep: Reputation: Disabled
Angry Solaris 10 boot-archive question


Hi,

I'm new to Solaris 10 and I'm trying to learn compiling and installing software; right now I try to complile VLC 2.0.4 by myself... I installed some packages from Sunfreeware, some packages from OpenCSW and other that I compiled myself ("make install")... I installed a lot of libraries and then when I tried to reboot my Solaris 10 U7 SPARC I got the following error regarding the boot archive:

Code:
WARNING: The following files in / differ from the boot archive: 
...
big bunch of lines like
new   /platform/sun4u/...
....

The recommended action is to reboot to the failsafe archive to correct the above inconsistency. To accomplish this, on a GRUB-based platform, reboot and select the "solaris failsafe" option from the boot menu. On an OBP-based platform, reboot and type "boot -F failsafe". Then follow the prompts to update the boot archive. Alternatively, to contntinue booting at your own risk, you may clear the service bby running: "svcadm clear system/boot-archive"

svc.startd(7): svc/system/boot-archive:default: Method "/lib/svc/method/boot-archivew" failed with exit status 95.
svc.startd(7): system /boot-archive:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
I then booted in failsafe mode and when asked if I wanted to repair the boot archive I wrote "yes"; now they don't ask me to repair it anymore when I boot in "failsafe" mode but I still get that message when I boot in "normal" mode.

When I boot in maintenance mode and type

Code:
svcadm clear system/boot-archive
the system boot into X-Windows but there's a lot of errors and I don't have any network access, so I figure it's not the right thing to do for fixing permanently the problem...

I then tried in failsafe mode:

Code:
rm -f /a/platform/'uname -i'/boot-archive
rm -f /a/platform/sun4u/boot-archive
/usr/sbin/bootadm update-archive -R /a
init 6
I don't really know what to do next, I had figured that booting into fail-safe mode and repairing the boot-archive would fix the problem... I would really like to salvage this Solaris installation since there's many hours put into compiling and installing libraries and packages...

Last edited by happymonkey; 11-20-2012 at 12:23 AM.
 
Old 11-24-2012, 07:44 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 249Reputation: 249Reputation: 249
Greetingz!

The boot-archive is a lot like the initrd on a Linux system. It contains a filesystem mounted by the kernel that has scripts/modules/etc that help the kernel find all the hardware it needs to boot the server.

However, boot-archive problems typically occur when a change to an /etc/ file, an update to a module, or a change to another critical part of the Solaris OS has not been 'brought into the fold' during a shutdown.

So has the Solaris system lost-power or otherwise not been shutdown correctly?

There's two services you need to check on, svc:/system/boot-archive:default and svc:/system/boot-archive-update:default.

The error you spoke of was probably along the lines of "WARNING: The following files in / differ from the boot archive". Do this;
(Note: /mnt/tmp is where I mounted my root, YMMV)

1) Get into the system and mount the root filesystem
2) rename the existing boot archive
Code:
mv  /mnt/tmp/platform/`uname -i`/boot_archive
3) Rebuild the boot-archive
Code:
/usr/sbin/bootadm -R /mnt/tmp/ update-archive
4) Reboot. (Might want to unmount root first.)

P.S: if you have DiskSuite be sure to activate the mirrors first.

Last edited by xeleema; 11-24-2012 at 07:46 AM.
 
Old 11-25-2012, 02:48 AM   #3
happymonkey
LQ Newbie
 
Registered: Nov 2012
Location: Canada
Distribution: Sun Blade 2500 2x1.28Ghz 8GigRAM - Solaris 10 u11
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile

Hi,

Thanks for the answer; however it did not solved the problem; I tried something else and it kind of worked even if I'm not certain of the quality of that quick fix... I looked at the file /lib/svc/method/boot-archive and since it was a script I simply commented out the lines calling the check of the boot archive:

Code:
#
# Now check the archive.
#

#Lines comented by me; left only the one where it call an exit without error
##/sbin/bootadm update-archive -vnC 2> /dev/null
##if [ $? = 0 ]; then
	exit $SMF_EXIT_OK
##fi
Then to solve the network access problem I simply did "sys-unconfig" to return to a blank system... I don't know if those fixes are going to work on the long-term, but Solaris 10 is far too complicated for a Unix newbie like me...

In any case thanks for the help.

Last edited by happymonkey; 11-25-2012 at 02:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Solaris 10 Unix Patch Update Boot Archive Woes LXer Syndicated Linux News 0 01-20-2009 07:10 PM
Solaris and Linux dual boot question (again) Reisswolf Solaris / OpenSolaris 5 01-02-2008 01:35 PM
Solaris Flash archive to tape issues keysorsoze Solaris / OpenSolaris 1 09-03-2007 03:39 AM
Windows and FC3 and Solaris---and only Solaris boot error message zillah Linux - Laptop and Netbook 1 07-07-2005 10:17 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration