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!

This article was posted by Matty on 2009-06-21 09:56:00 -0400 -0400