On 02/14/2008 08:42 PM, Mike Gerdts wrote:
> 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
> 

That would work, but I think I am not being clear on what I (don't) want.

I don't want Solaris to import any pools at bootup, even when there were 
pools imported at shutdown/at crash time. The process to prevent 
importing pools should be automatic and not require any human 
intervention. I want to *always* import the pools manually.

Hrm... what if I deleted zpool.cache after importing/exporting any pool? 
Are these the only times zpool.cache is created?

I wish zpools had a property of 'atboot' or similar, so that you could 
mark a zpool to be imported at boot or not.

(I am trying to move this thread over to zfs-discuss, since I originally 
posted to the wrong alias)

--
Dave
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to