Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2013 03:54:28 -0500
From:      Allan Jude <freebsd@allanjude.com>
To:        freebsd-current@freebsd.org
Subject:   Re: zpool requires re-import on reboot
Message-ID:  <5289D5C4.1020202@allanjude.com>
In-Reply-To: <CAPSTskso8HqSh_j=c2tnY_mKctMvPr2U9ToFnDedgDcW5o89UA@mail.gmail.com>
References:  <1384760874666-5861930.post@n5.nabble.com> <5289CFDD.9090708@FreeBSD.org> <CAPSTskso8HqSh_j=c2tnY_mKctMvPr2U9ToFnDedgDcW5o89UA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On 2013-11-18 03:51, Beeblebrox wrote:
>> Is there anything "non-standard" about your configuration?
>> All pools that are present in /boot/zfs/zpool.cache on a root filesystem of a
>> root pool should be automatically imported.
> Yes I know that, hence the reason I posted.
>
> ll /boot/zfs  shows recently updated zpool.cache =>
> -rw-r--r--  1 root  wheel  3736 Nov 18 10:03 zpool.cache
>
> * No special setting on pool or datasets of the pool
> * /etc/src.conf even has "LOADER_ZFS_SUPPORT= yes"
> * custom kernel has label disabled (#options        GEOM_LABEL ).
> However, generic kernel shows same behavior.
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
In /boot/loader.conf try adding:

zpool_cache_load="YES"
zpool_cache_type="/boot/zfs/zpool.cache"
zpool_cache_name="/boot/zfs/zpool.cache"


This should make it read the zpool.cache file and mount all of the pools, instead of only the one which contains your root file system



-- 
Allan Jude



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSidXHAAoJEJrBFpNRJZKf16IP/2pSPC2F2ElJkc1ucymwA65Z
i4uCkKWTFCY9iiCXGPpgqgOz6b+CqgCPB8mmBH4oqXE4R+CW2hquH1WSsa7R74e4
iY6BKrmDIXr5EbXakdombG91J8InggEXUu/fDbX52+MuKHglHyCN0xdqesgZoBO+
weOPqwoNH6a2a7EMKG8ApoSqhenwmCTXnfDCti1w/jnmmfPG6aJJcu+714uCiSM3
IYVwxMebWH5RMIdBMzoAx31mQ4Vr1ETYTDesBPjPfXuuREdw3rP3LrVD2OLXKbTg
afICY14hoEEL61c2Pq2XLLqlzKqHtGYV6caEaG4EttQQDm6a7tjHhJjeYkeP6ydb
sb9jSRML9JPnRZx4eate4WEPafE997Gk4uuywBuSw/pzpbjULtgpcXBSSkbLYPmo
u/Sub4EN5LVPVIRfAhqMaQUWc6qKSyCEx4YsgZEG+W989rgjJ31JyJYdzESUa6QL
B7wgyXgJYu8cFv+lGodyX/vtpS577BzqTFJ63k3ok7f0eCq++KbhYZvfNdqAzQIe
SjrsD1QN+TKE+miGYCyZCn0wEehSDV0mGTHjYBGdD+sj+2O8MYC+zfGB6qwcOq9I
/DL61iKkU2jBeFwnTE1b9KzoVtMlACX7b5G6Jc2jtBv7dYRGoGbuk4Jfgdkkv256
yBXBe8VZ3AfQVtBpld9I
=cRIp
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5289D5C4.1020202>