[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ZFS on current vs wedges - best practice?
On 7/19/21 11:50 AM, Frank Kardel wrote:
OK, so I have to specify the names at create time? If so, I guess I can
try removing/replacing them.
Hi Jeff !
Yes, you can use wedge names.
you can configure thm like "zpool create tank raidz2
wedges/wedgename-a wedges/wedgename-b wedges/wedgename-c
For wedges to work you need to start devpubd (/etc/rc.conf:
devpubd=YES) before ZFS. Currently devpub start too late with its
To start devpubd earlier you can use following dependencies in
# PROVIDE: devpubd
# REQUIRE: root
# BEFORE: DISKS
Ah, OK. I had forgotten about devpubd. Thanks!
to recover (not tested) you may try:
zpool export tank # you may try without this first
zpool import -d /dev/wedges # list found pools
zpool import -d /dev/wedges -a # imports all found pools
Recovery was as easy as "zpool export tank; zpool import tank" - it
looks at all dk* devices when importing. I will try the devpubd stuff
for avoiding this in the future.
Use the hints at your own risk. I learned those when we briefly
(9.99.85-9.99.86) broke zfs vdev access via symlinks. be sure to use a
recent (>2021-07-18) -current kernel in case you are running -current.
I will update my kernel ASAP. Thanks a bunch.
Main Index |
Thread Index |