Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-17 Thread Jakub Lach
I'm yet to encounter device that would not have any errors with the long run.

Similar, I think that some -

Feb 17 12:31:14 Thinkpad kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a
00 1d 51 6f 10 00 00 80 00 
Feb 17 12:31:14 Thinkpad kernel: (da0:umass-sim0:0:0:0): CAM status: CCB
request completed with an error
Feb 17 12:31:14 Thinkpad kernel: (da0:umass-sim0:0:0:0): Retrying command
Feb 17 12:31:43 Thinkpad kernel: (da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a
00 1d 63 b4 10 00 00 80 00 
Feb 17 12:31:43 Thinkpad kernel: (da0:umass-sim0:0:0:0): CAM status: CCB
request completed with an error
Feb 17 12:31:43 Thinkpad kernel: (da0:umass-sim0:0:0:0): Retrying command



Are benign, as it appears the command must have succeeded in the end?



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6168368.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-17 Thread Hans Petter Selasky

On 02/17/17 12:13, Jakub Lach wrote:

And it ends with-

STATUS: ID=10842, RX=32339456 bytes/sec, TX=0 bytes/sec, ERR=21, RST=31,
DERR=0

Read & Write, 7200 sec.



From the log it turns out there are some errors, though they appear 
recoverable through a mass storage reset.


--HPS

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-17 Thread Jakub Lach
And it ends with-

STATUS: ID=10842, RX=32339456 bytes/sec, TX=0 bytes/sec, ERR=21, RST=31,
DERR=0

Read & Write, 7200 sec.



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6168361.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-17 Thread Jakub Lach
It starts with STATUS: ID=63, RX=33467392 bytes/sec, TX=0 bytes/sec, ERR=14,
RST=24, DERR=0
I will get back to you after it ends (7200 sec.).



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6168338.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-16 Thread Hans Petter Selasky

On 02/10/17 10:12, Jakub Lach wrote:

Adding back "options USB_DEBUG   # enable debug msgs"
to my STRIPPED config (as I had it commented out lately) was what
restored the behaviour to GENERIC (working one) (sic!).
Finishing now 4th? dump.

http://pastebin.ca/3766145



Does it make any difference with usbtest ?

It might be a timing issue in the USB firmware in your USB HDD.

--HPS

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-10 Thread Jakub Lach
Adding back "options USB_DEBUG   # enable debug msgs"
to my STRIPPED config (as I had it commented out lately) was what 
restored the behaviour to GENERIC (working one) (sic!). 
Finishing now 4th? dump.

http://pastebin.ca/3766145



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166729.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-09 Thread Jakub Lach
I've added to my config options USB_DEBUG
and turned on hw.usb.debug: 1 and hw.usb.umass.debug: 1 

This time the dump finished.

  DUMP: 95.35% done, finished in 0:03 at Thu Feb  9 23:06:21 2017
  DUMP: 99.23% done, finished in 0:00 at Thu Feb  9 23:08:19 2017
  DUMP: DUMP: 99117484 tape blocks
  DUMP: finished in 4916 seconds, throughput 20162 KBytes/sec
  DUMP: DUMP IS DONE

and log filled with-

Feb  9 22:39:43 Thinkpad kernel: usbd_pipe_enter: enter
Feb  9 22:39:43 Thinkpad kernel: usbd_pipe_start: start
Feb  9 22:39:43 Thinkpad kernel: usbd_transfer_done:
err=USB_ERR_NORMAL_COMPLETION
Feb  9 22:39:43 Thinkpad kernel: usbd_callback_wrapper_sub:
xfer=0xfe000140c868 endpoint=0xf8005fdbb968 sts=0 alen=65536,
slen=65536, afrm=1, nfrm=1
Feb  9 22:39:43 Thinkpad kernel: usbd_transfer_submit:
xfer=0xfe000140cac8, endpoint=0xf8005fdbb800, nframes=1, dir=read
Feb  9 22:39:43 Thinkpad kernel: usb_dump_endpoint:
endpoint=0xf8005fdbb800 edesc=0xf8005fa7b692 isoc_next=0
toggle_next=0 bEndpointAddress=0x81
Feb  9 22:39:43 Thinkpad kernel: usb_dump_queue: endpoint=0xf8005fdbb800
xfer: 
Feb  9 22:39:43 Thinkpad kernel: usbd_pipe_enter: enter
Feb  9 22:39:43 Thinkpad kernel: usbd_pipe_start: start
Feb  9 22:39:43 Thinkpad kernel: usbd_transfer_done:
err=USB_ERR_NORMAL_COMPLETION

I wonder if this is due to slightly reduced throughput? Will try again
without logging.



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166651.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-09 Thread Jakub Lach
http://pastebin.ca/3765605 samsung/jmicron 

It disconnected itself? ERR=03, RST=13, DERR=0
went to ERR=17, RST=27, DERR=0

http://pastebin.ca/3765608 touro s 
ERR=14, RST=24, DERR=0 went to ERR=27, RST=37, DERR=0

starting point:

https://s24.postimg.org/oo95be9d1/2017_02_09_012128_1440x900_scrot.png





--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166438.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Jakub Lach
Will do, I've found your recommendation in another thread, but only
after I've posted. I will probably leave both drives overnight.

Thanks!



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166351.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Hans Petter Selasky

On 02/08/17 21:41, Jakub Lach wrote:

Hello again,

Any more pointers on how to test the devices
thoroughly?

http://pastebin.ca/3765422 touro s

http://pastebin.ca/3765426 samsung



   13) Set test duration: <60> seconds

Set it to 3600 for one hour and see if the DERR or RST OR ERR counters 
increase.


--HPS

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Jakub Lach
Hello again, 

Any more pointers on how to test the devices
thoroughly?

http://pastebin.ca/3765422 touro s

http://pastebin.ca/3765426 samsung



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166339.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Jakub Lach
Thanks for a reply.

Currently both of them are empty, usbtest looks promising, 
I will look into it. usbdump might be too much for me.

As of now, I've hoped to take a disk dumps via USB, but it
doesn't look possible. Smaller writes (<50 G) are sometimes
ok.

Devices in question-

ugen6.2:  at usbus6, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=ON (2mA) (it's internally a )

ugen7.2:  at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
(0mA), (it's a HGST HTS721010A9E630  using internally a USB bridge
[0x4971:0x1023 (0x100)])



--
View this message in context: 
http://freebsd.1045724.x6.nabble.com/I-m-experiencing-g-vfs-done-error-5-with-more-than-one-USB-HDD-storage-device-on-11-STABLE-when-heav-tp6166271p6166280.html
Sent from the freebsd-usb mailing list archive at Nabble.com.
___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: I'm experiencing g_vfs_done() error = 5 with more than one USB/HDD storage device on 11-STABLE when heavy writing.

2017-02-08 Thread Hans Petter Selasky

On 02/08/17 18:18, Jakub Lach wrote:

As of now, I'm rebuilding system with a GENERIC kernel, what
should I do to provide as much as possible useful debug?

I think the problem only manifested itself after I've switched to
much faster internal SSD, that would explain why some mitigate
it by throttling USB speed.



Hi,

Some suggestions:

1) UMASS has a set of debug knobs under hw.usb.umass.debug

2) Stress test a fresh disk, which you don't have any data on with 
/usr/src/tools/tools/usbtest to ensure it is 100% compatible with FreeBSD.


3) usbdump can be used to capture the USB traffic and identify failing 
commands.


--HPS

___
freebsd-usb@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"