Tuesday, August 31, 2010

Fix Solaris 10 ZFS Error 16: Inconsistent filesystem structure.

I just installed Solaris 10 guest (ZFS root) under VirtualBox 3.2.8. After I installed the guest add-on, then rebooted the Solaris 10 guest and I had the following error:
  • Error 16: Inconsistent filesystem structure
The instructions documented in Bug 5982 appear to work fine. Here's the complete instructions I took:

1) Boot into failsafe mode

2) Select yes to mount the ZFS root under /a:

3) Re-build the boot archive
# rm /a/platform/i86pc/boot_archive
# bootadm update-archive -f -R /a
Creating boot_archive for /a
updating /a/platform/i86pc/amd64/boot_archive
updating /a/platform/i86pc/boot_archive
# reboot

Friday, August 20, 2010

三国有感之仁义

最近看了新版三国,颇有一番感慨。百年历史,波澜壮阔,英雄辈出。正如杨慎《临江仙·滚滚长江东逝水》所述:
滚滚长江东逝水,浪花淘尽英雄。
是非成败转头空。青山依旧在,几度夕阳红。
白发渔樵江渚上,惯看秋月春风。一壶浊酒喜相逢。
古今多少事,都付笑谈中。

东汉末年,群雄逐鹿,直至魏、蜀、吴三国鼎立。刘备仁义为本,兼是皇叔,可谓民心所向。然而,刘备却为仁义所困,该取荆州不取,失去良机。后来,关羽失荆州被杀;刘备却举国之力以七十万兵力攻打吴国以报兄弟之仇,不料夷陵之战大败于吴,几全军覆没。让人惋惜。倘若刘备始终以仁义和恢复大汉为先,应不至于出兵攻吴。看看曹操,虽被三国演义描为奸雄,却能看透仁义,取舍自如,最终统一北方,奠定魏晋基业。