Hi,
I run a Pine64 with an external hard disk enclosure connected via USB3. I have 2 pairs of hard disks set up as btrfs RAID1 each.
It frequently happens that there is some issue with the USB connection and it gets powercycled:
$this->bbcode_second_pass_code('', '
[226866.289850] usb 5-1: Device not responding to setup address.
[226866.509734] usb 5-1: Device not responding to setup address.
[226866.729697] usb 5-1: device not accepting address 2, error -71
[226869.969815] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[226872.559882] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[226875.149936] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[226875.150645] usb 5-1: USB disconnect, device number 2
...
[226878.380130] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[226880.960101] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[226880.960829] usb usb5-port1: attempt power cycle
')
Afterwards, the disks get recognized again as new block devices (e.g. /dev/sda1 becomes /dev/sde1) but with the same UUID. The mounts fail, of course, and I'm unable to re-mount because the btrfs subsystem thinks the old devices are still there:
$this->bbcode_second_pass_code('', 'kernel: BTRFS warning (device sda1): duplicate device fsid:devid for b541edf0-eb09-48bf-a68a-469d2fcabc95:1 old:/dev/sda1 new:/dev/sde1')
The only way I have been able to resolve the issue is to reboot the machine. Does someone know a better way (meaning automatic way other than rebooting) to address the problem?