On Mon, Aug 07, 2006 at 09:47:17AM -0700, Pierre Klovsjo wrote:
> 
> Is a ZFS filesystem visible in Single-user mode ? I would like to have
> /var/log as an example under ZFS control and /export/home may be
> another candidate.
>

Depends on whether you want to use legacy mountpoints or not.  The
mounted filesystems are divided up into two main SMF services,
filesystem/minimal (enabled as part of single-user) and filesystem/local
(not part of single user).  There is also filesystem/root and
filesystem/usr, but we'll ignore those for the purposes of this
discussion.

filesystem/minimal is responsible for mounting some basic filesystems,
as documented in the method script (/lib/svc/method/fs-minimal):

# Mount other file systems to be available in single user mode.
# Currently, these are /var, /var/adm, /var/run and /tmp.  A change
# here will require a modification to the following programs (and
# documentation): /sbin/mountall, /sbin/umountall, and
# /lib/svc/bin/svc.startd.

So if you want any of the above filesystems to be ZFS filesystems, you
will have to do 'zfs set mountpoint=legacy' and put them in your
/etc/vfstab.

For all other filesystems, you can leave them as ZFS-managed
mountpoints, as 'zfs mount -a' is run as part of filesystem/local.  If
you want /export/home to be a ZFS filesystem, you can still access it in
single user mode by running 'zfs mount -a', but this is the same as if
you used any other filesystem (albeit with /sbin/mountall).

So short answer is: if your want /var, /var/adm, /var/run, or /tmp on
ZFS, use legacy mountpoints and put in /etc/vfstab.  All other
filesystems can use standard ZFS mountpoints.

- Eric

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to