OS Hacking and more.

6.27.2008

Now: ZFS Boot in Opensolaris

The Heart of the Beast: BOOTFS



OpenSolaris currently provides many different boot options, varying from version to version.
To summarize:
2008.05
Live CD/ Live USB: mounts ramdisk (/devices/ramdisk:a on / -- read-write) and extracts rootfs files (x86.microroot) from an iso image to Ramdisk fs. Two other iso images with non-essential files are loopback mounted as read-only later in the boot.

Installed (HD): boots and finds ZFS root among /devices as specified by zpool.cache. This is mounted as / and normal boot proceeds

OpenSolaris SXCE b9X
UFS boot: Workjavascript:void(0)
Publish Posts like a conventional Unix boot...
ZFS boot: in GRUB it finds the ZFS root by a signature using findroot, then extracts the device id from the ZFS headers on disk. These are passed on to the kernel, instead of potentially expired/damaged zpool.cache on disk. Boot proceeds normally.

These are our options in selecting a host to modify so that we can get a mobile ZFS boot. We can either take an existing ZFS boot setup and add in some component to get around its hardware id ties, or we can take a non-hardware tied boot (liveCD, UFS) and add a ZFS setup following the normal boot.



Previous Step

Next Step

<<<<>>>>

1 comment:

Unknown said...

I tried zfs boot from a live-cd of OpenSolaris2008.11 on x86

I used a script ( http://pastesite.com/4660 ) which i created referring to following :

1. http://opensolaris.org/os/community/zfs/boot/zfsboot-manual/
2. http://alexeremin.blogspot.com/ (minimal solaris part)
3. http://src.opensolaris.org/source/xref/caiman/slim_prototype/bootcd_skel/root/installer/install_live
4. http://src.opensolaris.org/source/xref/caiman/slim_source/usr/src/cmd/slim-install/finish/install-finish
5. http://src.opensolaris.org/source/xref/caiman/slim_source/usr/src/lib/libict_pymod/ict.py
6. http://www.mail-archive.com/zfs-discuss@opensolaris.org/msg12052.html

The script I wrote is same as zfs-actual-root-install script; but I guess that was done from a ufs hard-disk boot to zfs hard-disk boot.

After I choose an option from menu list machine doesn't show anything & reboots and on booting from failsafe menu it panics (not the bug you specified).

Any clues which steps I miss ?