Force ZFS to always look for devices in a defined location

Ben RUBSON ben.rubson at gmail.com
Wed Dec 28 17:56:45 UTC 2016


> On 28 Dec 2016, at 18:16, Freddie Cash <fjwcash at gmail.com> wrote:
> 
> On Dec 27, 2016 11:03 PM, "Ben RUBSON" <ben.rubson at gmail.com <mailto:ben.rubson at gmail.com>> wrote:
> (...)
> My question is then, how to force ZFS to look for devices in a defined location ?
> (/dev/label/ in this example)
> 
> Export the pool.
> 
> Then use -d to import it using the labels:
> 
> zpool import -d /dev/label my-zpool
> 
> That will search the label directory for pool devices and use that path into the GEOM layer. And it will remember it for future imports. Aft least until things get confused again in the future. :)

Thank you Freddie for your feedback.
Yes the question is then, will ZFS keep searching into /dev/label only, even if devices toggle again ?
I will test "import -d" and see what occurs.

Thank you !

Ben



More information about the freebsd-fs mailing list