Version: FreeNAS-8.2.0-RELEASE-p1-x64
Issue: GUI Imports and External USB drives re-plug issue.
I've seen a few references to hanging USB external drives - but oddly if I search here for 'usb external lost' very little shows up.. so here goes.
I have an issue with the Freenas GUI when using my external USB drive that I want removed after each usage, I can't re-attach the same USB disk until a reboot (which results in a system hang). Does anyone else have this problem ?
My drive is a WD book - USB drive.
Works when using shell commands only:
If I use shell command line ' zpool import -R /mnt external500; <do stuff > ; zpool export external500 ' .. I can happily attach the usb drive .. do my transfers , and then remove the drive happily - and I can happily insert the USB drive again and it is rediscovered.
In the console I'll see this:
As I said I can happily use the device again and again. Downside is:
- Not being able to see the volume from GUI.
Breaks if using the GUI:
IF I use the GUI to do the 'Import Volume', when I've finished with the volume and I detach via the GUI OR zpool export from command line and I remove the drive the disk appears to not get correctly removed. This results in:
- Not being able to re-insert that external drive into any USB slots
- Hang of the system on reboot.
And that's all - NO - 'removing device entry', and yet the device da1 isn't listed in /dev/ , post removal.
Is there a way to 'reset' the GUI to release whatever hold it has over devices that are imported using the GUI.
I've tried the USB drive as a zfs and ufs volume. With the issues each time.
I've tried stopping the disk, ejecting , reset the bus..... but to no effect.
Issue: GUI Imports and External USB drives re-plug issue.
I've seen a few references to hanging USB external drives - but oddly if I search here for 'usb external lost' very little shows up.. so here goes.
I have an issue with the Freenas GUI when using my external USB drive that I want removed after each usage, I can't re-attach the same USB disk until a reboot (which results in a system hang). Does anyone else have this problem ?
My drive is a WD book - USB drive.
Works when using shell commands only:
If I use shell command line ' zpool import -R /mnt external500; <do stuff > ; zpool export external500 ' .. I can happily attach the usb drive .. do my transfers , and then remove the drive happily - and I can happily insert the USB drive again and it is rediscovered.
In the console I'll see this:
Code:
Sep 16 22:11:15 boxnas kernel: da1 at umass-sim1 bus 1 scbus7 target 0 lun 0 Sep 16 22:11:15 boxnas kernel: da1: <WD 5000AAV External 1.75> Fixed Direct Access SCSI-4 device Sep 16 22:11:15 boxnas kernel: da1: 40.000MB/s transfers Sep 16 22:11:15 boxnas kernel: da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Sep 16 22:18:09 boxnas kernel: ugen1.2: <Western Digital> at usbus1 (disconnected) Sep 16 22:18:09 boxnas kernel: umass1: at uhub1, port 2, addr 2 (disconnected) Sep 16 22:18:09 boxnas kernel: (da1:umass-sim1:1:0:0): lost device Sep 16 22:18:09 boxnas kernel: (da1:umass-sim1:1:0:0): removing device entry
As I said I can happily use the device again and again. Downside is:
- Not being able to see the volume from GUI.
Breaks if using the GUI:
IF I use the GUI to do the 'Import Volume', when I've finished with the volume and I detach via the GUI OR zpool export from command line and I remove the drive the disk appears to not get correctly removed. This results in:
- Not being able to re-insert that external drive into any USB slots
- Hang of the system on reboot.
Code:
Sep 16 22:20:39 boxnas kernel: ugen1.2: <Western Digital> at usbus1 (disconnected) Sep 16 22:20:39 boxnas kernel: umass1: at uhub1, port 2, addr 2 (disconnected) Sep 16 22:20:39 boxnas kernel: (da1:umass-sim1:1:0:0): lost device
And that's all - NO - 'removing device entry', and yet the device da1 isn't listed in /dev/ , post removal.
Is there a way to 'reset' the GUI to release whatever hold it has over devices that are imported using the GUI.
I've tried the USB drive as a zfs and ufs volume. With the issues each time.
I've tried stopping the disk, ejecting , reset the bus..... but to no effect.
Code:
[root@boxnas] ~# camcontrol stop da1 Unit stopped successfully [root@boxnas] ~# camcontrol eject da1 Unit stopped successfully, Media ejected [root@boxnas] ~# camcontrol reset 7 Reset of bus 7 returned error 0xa [root@boxnas] ~# camcontrol rescan 7 Re-scan of bus 7 returned error 0xa