On Wed, Aug 18, 2010 at 12:16:04AM -0700, Alxen4 wrote:
> Is there any way run start-up script before non-root pool is mounted ?
> 
> For example I'm trying to use ramdisk as ZIL device (ramdiskadm )
> So I need to create ramdisk before actual pool is mounted otherwise it 
> complains that log device is missing :)

Yes, it's actually quite easy.  You need to create an SMF manifest and
method.  The manifest should make the ZFS mount dependant on it with
the `dependent' and `/dependent' tag pair.  It also needs to be
dependant on resources it needs, with the `dependency' and
`/dependency' pairs. It should also specify a `single_instance/' and
`transient' service.  The method script can do whatever the mount
requires, such as creating the ramdisk.

-- 
-Gary Mills-        -Unix Group-        -Computer and Network Services-
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to