Manipulating ZFS filesystems during Jumpstart install

From Peter Pap's Technowiki
Revision as of 04:28, 18 May 2011 by Ppapa (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

By default, when you build a server with a ZFS root pool in Jumpstart, it creates two additional ZFS file systems within the root pool, rpool/export and rpool/export/home. I personally have no use for these. So to delete them, add this to your finish script:

  /usr/sbin/zfs destroy -r rpool/export

There's no need to chroot first!

If you want to create a new ZFS filesystem, within the root pool, you can add this to the finish script:

  /usr/sbin/zfs create -o mountpoint=/home rpool/home

and Bob's your mothers brother! Again, there is no need to chroot when you do this!