On Thu, Feb 14, 2008 at 5:42 PM, Dave <[EMAIL PROTECTED]> wrote:
> Is there a way to prevent zpools from being imported on system bootup? I
>  want to prevent a machine that crashes from rebooting and reimporting
>  any pool.
>
>  I know I can delete /etc/zfs/zpool.cache before a reboot, but this
>  wouldn't help in crash scenarios. Maybe there is a way to have
>  /etc/zfs/zpool.cache deleted in the bootup sequence before it is read by
>  ZFS?

I think the following should do the job.

ok boot -m milestone=none
Password: superDuperSecret
# mount -o remount,rw /
# mv /etc/zfs/zpool.cache /etc/zfs/zpool.cache.bad
# reboot

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to