I have a 2 disk mirror, of which one drive is connected internally to a SATA disk. The second disk is connected to a USB enclosure.
The problem is that the USB connected drive occasionally goes offline, and then comes back online. However, it is now marked as UNAVAIL, until the system is rebooted. Even if lsusb shows the drive, it stays markets as UNAVAIL until reboot.
Is there a way to force online a disk such that zfs detects it again?
An issue is open for this here: A USB-attached pool gets stuck in "state: UNAVAIL" if the bus resets and cannot be brought back online without a reboot · Issue #15093 · openzfs/zfs · GitHub