Friday, October 22, 2010

can't open boot_archive

Today I rebooted a server and switched disk0->disk1/disk1->disk0 for mirroring consistency.  I didn't
remember to edit vfstab first though, so I had to boot it to a milax live CD and edit the /etc/vfstab file.
Then rebooted.  Should be easy and smooth.

Unfortunately somewhere in there the boot_archive file got trashed, so then the system wouldn't boot at all.
So I brought it down to the boot prompt and ran

boot -F failsafe

to bring it up in failsafe mode.  At that point I should have been able to run

bootadm update-archive -R /a

(failsafe mounts the drive as /a) and it should have fixed the boot_archive and been able to boot
just fine.  However it kept mounting /a read only so the update didn't work correctly.  After a few
iterations of all that it finally worked.

Then it was back to trying to create the mirror.  There's some indication that the problem may have
been caused by creating the metadb before rebooting without finishing the mirror creation.

No comments: