Hello, 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. Regards, Pierre This message posted from opensolaris.org
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
Thanks for your answer Eric! I don''t see any problem mounting a filesystem under ''legacy'' options as long as i can have the freedom of ZFS features by being able to add/remove/play around with disks really! I tested the ''zfs mount -a'' and of course my /var/log[b]/test[/b] became visible and my ZONES (playing a little there as well). 1, What kind draw backs are there to have a filesystem mounted as ''legacy'' ? 2, What kind of ''features'' of ZFS will remain ? Regards, Pierre This message posted from opensolaris.org
Hello Pierre, Tuesday, August 8, 2006, 4:51:20 PM, you wrote: PK> Thanks for your answer Eric! PK> I don''t see any problem mounting a filesystem under ''legacy'' PK> options as long as i can have the freedom of ZFS features by being PK> able to add/remove/play around with disks really! PK> I tested the ''zfs mount -a'' and of course my /var/log[b]/test[/b] PK> became visible and my ZONES (playing a little there as well). PK> 1, What kind draw backs are there to have a filesystem mounted as ''legacy'' ? PK> 2, What kind of ''features'' of ZFS will remain ? legacy only means that ZFS won''t mount/umount these file systems and you should manage them manually or via /etc/vfstab. Nothing else. There''s one drawback when using legacy mountpoints - when you move a pool of disks to different server then you also have to copy proper vfstab entries - but it''s not a problem in your case. Other than that lagacy mountpoint do not impose any restrictions, etc. -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com