Ref: http://blogs.sun.com/timf/entry/zfs_bootable_datasets_happily_rumbling
Ref: http://mediacast.sun.com/share/timf/zfs-actual-root-install.sh

This is my errata for Tim Foster's zfs root install script:

1/ Correct mode for /tmp should be 1777.

2/ The zfs boot install should allow you to have /usr on a separate zpool:

        a/ We need to create /zfsroot/usr/lib in the root partition and copy 
/usr/lib/libdiskmgt.so* to it.

        b/ During boot up, solaris will mount an optimized libc on top of 
/lib/libc.so.1,
        and Tim's script fails to copy it correctly. Init will be killed in a 
loop if the C library is absent.
        In the part of the script which populates the devices and /dev 
directories,
        we must copy /zfs-root-tmp.$$/lib/libc.so.1 /zfsroot/lib.

Now you can have /usr, /opt, /var and /home on a separate raidz zpool.
My zfs root takes only 500 megs and sits nicely on two 1 gig USB flash disks.

  zfs create tank/usr
  zfs set mountpoint=legacy tank/usr
  mkdir /mnt/usr
  mount -F zfs tank/usr /mnt/usr
  /usr/sfw/bin/gtar Ccp /usr . | /usr/sfw/bin/gtar Cxp /mnt/usr
  echo >>/zfsroot/etc/vfstab tank/usr - /usr zfs - yes -

If you move /var to a separate partition, make sure you keep /var/run directory 
in your zfs root.

Tested on b75a and  b75a xVm  should also work with b70, etc.

kugutsumen

You can find a patch for Tim's script here:
http://www.kugutsumen.com/showthread.php?t=1740
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to