{"id":25,"date":"2008-11-14T17:44:34","date_gmt":"2008-11-14T05:44:34","guid":{"rendered":"http:\/\/www.mdickinson.dnsalias.org\/php\/wordpress\/?p=25"},"modified":"2009-05-29T19:19:55","modified_gmt":"2009-05-29T07:19:55","slug":"more-problems-with-the-boot_archive-feature","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=25","title":{"rendered":"More problems with the boot_archive feature"},"content":{"rendered":"<p>An interesting problem with opensolaris 2008.05 under qemu I have been fighting against today; it&#8217;s still beating me.<\/p>\n<p>In my qemu image I had fortunately cloned the rootfs (must write a post on how to do that one day) which was very fortunate, as I was running off the clone I had the origional system available to boot from. If you are not running off a cloned image this recovery trick won&#8217;t help you at all though.<\/p>\n<p>The problem itself is that damb boot_archive corruption issue that keeps appearing in blogs.<br \/>\nMy problem is slightly different in that it keeps happening on every reboot, when the boot archive is written at shutdown its about a tenth of the size needed to be usable.<\/p>\n<p>Anyway, I had a corruption on the clone, it wouldn&#8217;t boot saying the boot_archive was not found. So I&#8230;<\/p>\n<ol>\n<li>booted off the origional grub entry<\/li>\n<li>mounted my clone, mount -F zfs root\/RPOOL\/install-clone \/mnt<\/li>\n<li>checked \/mnt\/platform\/i86pc\/boot_archive, gosh it was small; deleted it<\/li>\n<li>bootadm update-archive -R \/mnt which said it updated both boot_archive and amd64\/boot_archive<\/li>\n<li>checked, WTF???; the amd subdirectory one had the current timestamp but there was no boot_archive created in the main i86pc directory<\/li>\n<li>copied \/platform\/i86pc\/boot_archive to \/mnt\/platform\/i86pc\/boot_archive<\/li>\n<li>another bootadm update-archive -R \/mnt which did nothing, all up to date now ?<\/li>\n<li>umounted \/mnt, a couple of sync&#8217;s, and shutdown from the desktop menu option in case my habbit os using init 5\/6 was causing the issue<\/li>\n<\/ol>\n<p>The cloned image then booted perfectly.<br \/>\nDid nothing with it, just shutdown again from the desktop menu option. It did not at any time during the shutdown mention it was updating the boot_archive, thats important.<\/p>\n<p>Booted off the clone entry again. Same problem, no boot_archive found.<\/p>\n<p>Booted of the origional grub entry again, mounted the clone on \/mnt again, had a look, and the boot_archive had shrunk back down again to the size it was before I fixed it. So copied the working boot_archive back into the clone I had mounted, again. Shutdown, and booted off the clone image, and yes it worked just perfectly again; did a bootadm update_archive while it was running, and still nothing was updated.<\/p>\n<p>Shutdown the clone image again. Haven&#8217;t had the heart to try to boot off it again yet. Something to continue with later I guess. Wasted enough time for today. Its a concern though. If it fails again I will just use zfs to destroy the clone and create another one from scratch to see if it keeps occurring; later.<\/p>\n<p>Fortunately, I like playing with this sort of thing. While frustrating I am learning more about how opensolaris works with every new problem; which is a good thing, I suppose; although I only pull down the supposedly <em>stable<\/em> releases.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An interesting problem with opensolaris 2008.05 under qemu I have been fighting against today; it&#8217;s still beating me. In my qemu image I had fortunately cloned the rootfs (must write a post on how to do that one day) which &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=25\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25"}],"version-history":[{"count":0,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}