Blog

Post of the month: may 2026

1 minute, 15 seconds
Automatically Import zfs zpool On USB Disk Attach With devd on FreeBSD

I had a situation where zpool on external USB disk would not get imported automatically at boot time. but manual zpool import extwd worked fine. I guessed rc script which imports known zpools at boot time runs before USB disk gets attached, so I looked for mechanism which would trigger import on attach. In FreeBSD this can be done with devd - device state change daemon.