Mike Gerdts
2008-Feb-15 12:30 UTC
[zfs-discuss] [storage-discuss] Preventing zpool imports on boot
On Thu, Feb 14, 2008 at 11:17 PM, Dave <dave-opensolaris at dubkat.com> wrote:> 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. >Like this? temporary By default, all pools are persistent and are automati- cally opened when the system is rebooted. Setting this boolean property to "on" causes the pool to exist only while the system is up. If the system is rebooted, the pool has to be manually imported by using the "zpool import" command. Setting this property is often useful when using pools on removable media, where the devices may not be present when the system reboots. This pro- perty can also be referred to by its shortened column name, "temp".> (I am trying to move this thread over to zfs-discuss, since I originally > posted to the wrong alias)storage-discuss trimmed in my reply. -- Mike Gerdts http://mgerdts.blogspot.com/
Mike Gerdts
2008-Feb-16 00:34 UTC
[zfs-discuss] [storage-discuss] Preventing zpool imports on boot
On Feb 15, 2008 2:31 PM, Dave <dave-opensolaris at dubkat.com> wrote:> This is exactly what I want - Thanks! > > This isn''t in the man pages for zfs or zpool in b81. Any idea when this > feature was integrated?Interesting... it is in b76. I checked several other releases both before and after and they didn''t have it either. Perhaps it is not part of the committed interface. I stumbled upon it because I thought that I remembered "zpool import -R / poolname" having the behavior you were looking for. The rather consistent documentation for "zpool import -R" mentioned the temporary attribute. -- Mike Gerdts http://mgerdts.blogspot.com/
George Wilson
2008-Feb-16 05:51 UTC
[zfs-discuss] [storage-discuss] Preventing zpool imports on boot
Mike Gerdts wrote:> On Feb 15, 2008 2:31 PM, Dave <dave-opensolaris at dubkat.com> wrote: > >> This is exactly what I want - Thanks! >> >> This isn''t in the man pages for zfs or zpool in b81. Any idea when this >> feature was integrated? >> > > Interesting... it is in b76. I checked several other releases both > before and after and they didn''t have it either. Perhaps it is not > part of the committed interface. I stumbled upon it because I thought > that I remembered "zpool import -R / poolname" having the behavior you > were looking for. The rather consistent documentation for "zpool > import -R" mentioned the temporary attribute. > >We actually changed this to make it more robust. Now the property is called ''cachefile'' and you can set it to ''none'' if you want it to behave like the older ''temporary'' property. - George