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

三国有感之仁义

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

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

Sunday, June 13, 2010

iPad Wireless Connection Issue

I received my iPad which I ordered two weeks ago. It seems that I may be one of those small number of iPad users who are experience wireless connection issues. The wireless signal fluctuated from strong to weak, while my other laptops and iPhone showed a consistent signal at the same location. In addition, I was asked to re-type the password in order to connect to the wireless network from time to time. I found the Apple knowledge note and changed my WiFi router setting to use WPA/WPA2 security. Hopefully the rest of the connection issue can be addressed in the upcoming iOS release.

Thursday, April 8, 2010

Shrinking a VirtualBox image

I followed the tutorial "How to Shrink Your VirtualBox VM" and found it's very useful to reduce the image size. Since I'm using the Oracle Enterprise Linux as the guest, I need to get the zerofree rpm package first.

1) Verify the current disk partition of the OEL guest (e.g. /dev/hda3)

2) Assign a OEL Boot into Linux rescue mode (e.g. using OEL or OVM) and mount the file system as read only.
# mount -n -o remount,ro -t ext3 /dev/hda3 /
# zerofree /dev/hda3
3) Shutdown the OEL VM.
# shutdown -h now
# poweroff

4) Shrink the VM (from the host OS)
# vboxmanage modifyhd EnterpriseLinux.vdi compact

For the guest VMs, such as Ubunutu 9.10 where ext4 file system is used, I can not get zerofree to work; but a good workaround is to CloneVDI tool.

Thursday, April 1, 2010

Recover from a failed upgrade with ZFS

Working on my SPARC box, I came across some serious issues during the upgrade and must revert back to a previous boot environment (ZFS as the root file system). So I logged into ILOM service processor, sent a break to bring the system to the OK prompt, then specified the boot environment. Now I'm recovered from a failed upgrade. It's really cool!

-> set /HOST send_break_action=break
Set 'send_break_action' to 'break'

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type #.
Debugging requested; hardware watchdog suspended.
Type 'go' to resume

{0} ok boot disk -Z rpool/ROOT/snv_134

Monday, March 1, 2010

Use Serial Port from VirtualBox Linux Guest

From time to tome, I need to connect to a serial console of another computer. My laptop runs Windows XP. Unfortunately, the hyperterminal program is not installed. So I have to look for an alternative. I'm reading the blog entry (How To Use Host Serial Port From Guest In VirtualBox) and it's worth a try.

First I verified the serial port configuration in the host OS.

Then I configured the serial port setting for the Linux guest.
Once I log into the Linux guest OS, I can use the minicom or cutecom software. Here's the minicom configuration example and save it as the default value.
$ sudo minicom -s





Then I can easily connect to the serial console of a remote computer.

$ sudo minicom

Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Sep 25 2009, 23:40:20.
Port /dev/ttyS0

SUNSP00144FD11817 login: root
Password:
Waiting for daemons to initialize...

Daemons ready

Sun(TM) Integrated Lights Out Manager

Version 2.0.4.0

Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

->

Tuesday, February 23, 2010

Wireless Connection

My laptop (Dell D630) has Intel Pro/Wireless 3945ABG interface. Recently I upgraded the driver to the latest version (12.4.4.5) and had the issue of the frequent connection drop. Then I downgraded the driver to the previous version (12.4.3.9) and everything is back to normal.

See the error message when the connection was dropped.

Event Type: Information
Event Source: NETw5x32
Event Category: None
Event ID: 5005
Date: 2/17/2010
Time: 10:42:38 PM

Description:
The description for Event ID ( 5005 ) in Source ( NETw5x32 ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: , \DEVICE\{921C7BED-D86C-4EDB-BCDA-024961743117}.
Data:
0000: 00 00 08 00 02 00 62 00 ......b.
0008: 00 00 00 00 8d 13 00 60 ......`
0010: 00 00 00 00 00 00 00 00 ........
0018: 00 00 00 00 00 00 00 00 ........
0020: 00 00 00 00 00 00 00 00 ........
0028: 4d 4d 41 43 20 00 00 00 MMAC ...

Sunday, January 24, 2010

Firefox 3.6 and Add-on Compatibility Reporter

Firefox 3.6 was out last week. I didn't upgrade the browser due to a number of incompatible add-ons, see the ones marked in the left picture. Then the Add-on Compatibility Reporter came to my attention. I gave it a try, now all the incompatible add-ons are enabled, actually they are just working fine. Really cool!