storage-disk
2006-Dec-14 14:06 UTC
[zfs-code] How does zfs mount at boot? How to let the system not to mount zfs?
Hi all, I hope that I this is not the old thread. I''d like to know how zfs get mounted. After a pool is created, zfs got mounted? Where is the record? Which file got written? Traditional /etc/vfstab will mount all entries in that file. Where does Solaris find zfs mount at boot? How to I tell the system not to mount certain zfs at boot? Thank you. Giang -- This messages posted from opensolaris.org
Noël Dellofano
2006-Dec-14 20:35 UTC
[zfs-code] How does zfs mount at boot? How to let the system not to mount zfs?
> After a pool is created, zfs got mounted?yes, when you create a pool, the zfs filesystem within it is mounted. (Each pool will have a top level filesystem created for it when the pool is created, then you can use that and also create as many new filesystems within it as you like)> Where does Solaris find zfs mount at boot?ZFS keeps its record of what pools are on the system in /etc/zfs/ zpool.cache. That''s the file that gets read at boot> How to I tell the system not to mount certain zfs at boot?you can set the ''canmount'' property to ''off'' for whatever filesystem you do not want mounted: Check out the zfs man pages for more filesystem properties stuff: http://docs.sun.com/app/docs/doc/819-2240/6n4htdnpr?a=view " canmount=on | off If this property is set to ?off?, the file system cannot be mounted, and is ignored by ?zfs mount -a?. This is similar to setting the ?mountpoint? property to ?none?, except that the dataset still has a normal ?mountpoint? property which can be inherited. This allows datasets to be used solely as a mechanism to inherit properties. One use case is to have two logically separate datasets have the same mountpoint, so that the children of both datasets appear in the same directory, but may have different inherited characteristics. The default value is ?on?. This property is not inherited. " Noel On Dec 14, 2006, at 6:06 AM, storage-disk wrote:> Hi all, > > I hope that I this is not the old thread. > > I''d like to know how zfs get mounted. After a pool is created, zfs > got mounted? Where is the record? Which file got written? > > Traditional /etc/vfstab will mount all entries in that file. Where > does Solaris find zfs mount at boot? > > How to I tell the system not to mount certain zfs at boot? > > Thank you. > Giang > -- > This messages posted from opensolaris.org > _______________________________________________ > zfs-code mailing list > zfs-code at opensolaris.org > http://opensolaris.org/mailman/listinfo/zfs-code
Matthew Ahrens
2006-Dec-14 23:23 UTC
[zfs-code] How does zfs mount at boot? How to let the system not to mount zfs?
No?l Dellofano wrote:>> How to I tell the system not to mount certain zfs at boot? > you can set the ''canmount'' property to ''off'' for whatever filesystem you > do not want mounted:Or if you don''t want anything mounted, ''zfs set mountpoint=none <poolname>''. (the mountpoint property is inherited.) --matt
Ricardo Correia
2006-Dec-14 23:45 UTC
[zfs-code] How does zfs mount at boot? How to let the system not to mount zfs?
On Thursday 14 December 2006 20:35, No?l Dellofano wrote:> > Where does Solaris find zfs mount at boot? > > ZFS keeps its record of what pools are on the system in /etc/zfs/ > zpool.cache. That''s the file that gets read at bootI''m also interested to know where in the code are the filesystems mounted at boot. Is there some code that does it when the zfs module loads or does OpenSolaris simply call ''zfs mount -a'' as part of the boot process?
Robert Milkowski
2006-Dec-15 08:20 UTC
[zfs-code] How does zfs mount at boot? How to let the system not to mount zfs?
Hello Ricardo, Friday, December 15, 2006, 12:45:42 AM, you wrote: RC> On Thursday 14 December 2006 20:35, No?l Dellofano wrote:>> > Where does Solaris find zfs mount at boot? >> >> ZFS keeps its record of what pools are on the system in /etc/zfs/ >> zpool.cache. That''s the file that gets read at bootRC> I''m also interested to know where in the code are the filesystems mounted at RC> boot. RC> Is there some code that does it when the zfs module loads or does OpenSolaris RC> simply call ''zfs mount -a'' as part of the boot process? zfs mount -a is called from fs-local -- Best regards, Robert mailto:rmilkowski at task.gda.pl http://milek.blogspot.com