Configuring jumpstart to install Solaris on a ZFS root

I was playing around with ZFS root a week or two back, and wanted to be able to create the ZFS root pool and associated file systems (dump device, swap, /var) through jumpstart. To install to a ZFS root pool, you can add the “pool” directive to your client profile:

pool rpool auto 4g 4g rootdisk.s0

The entry above breaks down as follows:

pool <root pool name> <pool size> <swap size> <dump device size> <device list>

The device list can contain a single device for non-mirrored configurations, or multiple devices for mirrored configurations. If you specify a mirrored configuration, you will need to include the “mirror” keyword in your profile:

pool rpool auto 4g 4g mirror c0t0d0s0 c0t1d0s0

If you are using live upgrade, you can also name the boot environment with the “bootenv” keyword. This is pretty cool stuff, and it’s nice having the various ZFS features (checksums, snapshots, compression, etc.) available in the root pool!

2 Comments

Mike Morgan  on June 22nd, 2009

JET has an easy install for this. I have a post-install script to get rid of the /export/home partition/mount point that I think is annoying.

disksuite  on July 11th, 2011

Excellent summary, thanks

Leave a Comment