Rock64 crash randomly during usb 3 copy with RAID1 drive
#1
Sad 
Hello Everyone Smile

I really enjoy this Rock64 so far Smile

Unfortunatelly, I have an issue with my USB 3.0 drive resulting in a frozen state :-(

I'm using this TerraMaster USB drive (http://www.terra-master.com/html/en/arti..._1190.html) as a RAID1 USB 3.0 drive solution, it's working, but something is wrong, sometimes, while transfering data via SMB copy,the rock64 end up frozen. Why I try to SSH or anything, the Rock64 is completely frozen. So I have to unplug/replug the power cable.

I don't know how to deal with this issue, but I can see this error message during boot https://pastebin.com/Fi3XsPcY

Maybe it's the TerraMaster the problem I don't where to start Smile

OS: Ubuntu Xenial minimal
  Reply
#2
I have exactly the same problem as you do. My Rock64 crashes on heavy disk activity. I installed my Linux rootfs on an SSD (Crucial M4) put in a USB3.1 enclosure made by  Orico (type-C model 2139C3). Product URL:  http://www.orico.cc/goods.php?id=6352

The chipset used for this model is VL716 by Via-Labs http://www.via-labs.com/product_show.php?id=68

When Rock64 crashes,  the USB 3.1 disk will simply get disconnected. Sometime I get  these messages on the SSH terminal:
Code:
Message from syslogd@rock64 at Sep 15 12:54:02 ...
kernel:[ 3720.479969] Kernel panic - not syncing: hung_task: blocked tasks

Message from syslogd@rock64 at Sep 15 12:54:02 ...
kernel:[ 3720.959786] Kernel Offset: disabled

Message from syslogd@rock64 at Sep 15 12:54:02 ...
kernel:[ 3720.962252] Memory Limit: none


As a temporary work around, I blacklisted the UAS but then I don't get to enjoy the superb performance of UAS feature (388M/s with UAS vs 265MB/s without UAS). Hopefully, ayufan and/or somebody else can find the solution.


Code:
rock64@rock64:~$ uname -a

Linux rock64 4.4.77-rockchip-ayufan-118 #1 SMP Thu Sep 14 21:59:24 UTC 2017 aarch64 GNU/Linux

rock64@rock64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.1 (stretch)
Release:        9.1
Codename:       stretch

rock64@rock64:~$ lsusb
Bus 005 Device 003: ID 2109:0715 VIA Labs, Inc.
Bus 005 Device 002: ID 05e3:0612 Genesys Logic, Inc.
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  Reply
#3
I would prob head to the Armbian forums https://forum.armbian.com/ as they are extremely dismissive of any form of multi-adapter setup especially RAID.

Also there are usb/sata chips that they will not touch with a bargepole.

I tried to argue for tests across multiple adapters and even though I argued those guys know there stuff and got the impression they just left it, to try, in a told you so.
Its only a mirror you are doing I still have to get my Rock to test as I think many are thinking in terms of multidisk storage.
See what they say about the VIA VL716 and also with the 3amp PSU and 2x HDD cable lengths, power connectors is this a problem?

Also the OMV (Open Media Vault) guys might be able to give you some pointers.

I was going to do the same and was worried I might have the same problems.
It might not be the Rock64 or image from Ayufan.

Maybe something like this is a better option https://www.amazon.co.uk/HDD-USB-RAID-En...B071HQXGWH
I just dunno but the NAS guys are extremely dismissive of many of the port multiplier / sata adapters.
Maybe a good powered hub with a common PSU?
  Reply
#4
I probably should not have posted in this thread as I am not using any RAID at all but just a simple USB 3.1 enclosure that supports UASP. Personally I suspect this issue is inherently about how Linux Kernel handle the UASP or USB 3.x in general but who am I to speculate.
  Reply
#5
(09-15-2017, 09:22 PM)rontant Wrote: I probably should not have posted in this thread as I am not using any RAID at all but just a simple USB 3.1 enclosure that supports UASP. Personally I suspect this issue is inherently about how Linux Kernel handle the UASP or USB 3.x in general but who am I to speculate.

I am really not sure but also feel that it is something outside the sphere of the Rock or just this kernel.

http://linux-sunxi.org/USB/UAS gives some info.

I have a hunch a lot is about power available and that devices might have the required power requirements but when you go down long leads, multiple connections and various thin tracks, if the end device gets the power its needs anything up to 900ma with a HDD is debatable.

My Rock should be soon as a 7th Aug purchase and it would be really interesting if people could publish results.
Many say no to UASP multi adapter RAID but if it could for many that would be pretty tremendous.

I have a feeling the Armbian / OMC guys may of already done this to death.

I have lined up to test 2x https://www.amazon.co.uk/Inateck-Adapter...B074M1G9KD with 2x WD 640 Gb as have 4 of them here.
They are the ASM1153E chip with UASP as the http://linux-sunxi.org/USB/UAS " (most probably they need quirks too as those already listed in **unusual_uas.h**)" whats that then !? Dunno.

I just don't have 4* 2.5" of the same avail so going with what I have and a 3.5" capable adapter which might be interesting as its powered.

Also with hubs as there is a lot of nasty cheap stuff out there but going to hang them off a reasonably decent powered hub
Need to purchase a ORICO Aluminium 12 V 7 Port USB 3.0 Hub with 2.5 A Power Adapter Silver A3H7 with Via-Labs VL812 chip £20

I am going to try RAID 0, 1, 10 and will post my failures Smile

Just need the Rock64
  Reply
#6
Good luck with RAID. Nice for testing, but not nice for use Smile
Homepage: https://ayufan.eu

Releases:
Rock/Pro 64/Pinebook Pro: LinuxChromium OS
So/Pine A64/Pinebook: LinuxAndroid 6.0Android 7.1

Buy me a Beer
  Reply
#7
(09-15-2017, 11:51 PM)ayufan Wrote: Good luck with RAID. Nice for testing, but not nice for use Smile

Confused
I was pretty sure you'll answer somehting like

@All thanks for reply and sharing.

Last question If I use one disk (no raid) with this USB port I will have better stability ?
  Reply
#8
> Last question If I use one disk (no raid) with this USB port I will have better stability ?

Yes. This should work just fine.

You can consider having a slow backup/sync over USB2.0, but you should be careful using Hubs to provide more USB3-enabled ports as they are mostly unstable and can lead to data corruption.
Homepage: https://ayufan.eu

Releases:
Rock/Pro 64/Pinebook Pro: LinuxChromium OS
So/Pine A64/Pinebook: LinuxAndroid 6.0Android 7.1

Buy me a Beer
  Reply
#9
I have been doing a lot of reading on USB and much is actually bad usb stack implementations on motherboards.
Usb 3.1 is supposedly even worse but we have a single board and have the ability to update usb compatibility in the kernel.
Without doubt USB hubs and adapters are a nightmare and they are not all the same.
Some devices have to go on a host port and will not work though a hub.
Finding what can and what can't seems to be very hard.
We do have a singular device and singular host port (3.0)

I do think though we might be able to find a combination that does work and is fit for purpose.

The chips in these things and the manufacturer / model is really important but we can at least aim for what would be the best and maybe get a working setup.

UASP is actually transparent over a hub and if you get problems its something to do with either the stack or adapter or the hub is just ropey anyway.
Dodgy connectors and power is a huge consideration as we have only 5Vdc of some extremely long and thin poor wiring with some shitty connectors.

http://thewirecutter.com/reviews/best-usb-hubs/

I am sticking with usb3.0 and going to aim at a few manufactures and chips.
Sabrent & Anker seem to get good reviews.

The Sabrent usb3.0/sata adapter supports USAP and is a Asmedia 1351 chip and I think that is liked by the Armbuntu guys.
https://www.amazon.co.uk/Sabrent-2-5-Inc...B011M8YACM

https://www.amazon.co.uk/Anker®-PowerIQ-...B00VE4UJD4 (Vl812 Chipset)

https://www.amazon.co.uk/ORICO-Aluminium...B075GVZJNQ (Vl812 Chipset)

https://www.amazon.co.uk/Anker-Converter...B006J2L0ZM (? Chipset)

https://www.amazon.co.uk/ORICO-Drive-Ada...B06XT5W7T8 (JMS578 Chipset)


https://www.amazon.co.uk/Inateck-Adapter...B074M1G9KD (ASM1153E chipset)

(09-16-2017, 11:39 AM)ayufan Wrote: > Last question If I use one disk (no raid) with this USB port I will have better stability ?

Yes. This should work just fine.

You can consider having a slow backup/sync over USB2.0, but you should be careful using Hubs to provide more USB3-enabled ports as they are mostly unstable and can lead to data corruption.

Its the initial post that is puzzling me as actually that unit should work direct to host port.
Maybe try a software update on it? http://www.terra-master.com/html/en/arti...t_713.html
They also have linux desktop software.

2nd post is USB3.1 and that is still problematic and from I have read at the moment 3.0 is a better bet until it beds in.
It is a single disk connected to the host port though Ayufan? It is 3.1 though.

Both are still direct to host port and not multi disk host RAID the terra-master should act like a single disk.
  Reply
#10
(09-16-2017, 07:54 PM)stuartiannaylor Wrote: I have been doing a lot of reading on USB and much is actually bad usb stack implementations on motherboards.
Usb 3.1 is supposedly even worse but we have a single board and have the ability to update usb compatibility in the kernel.
Without doubt USB hubs and adapters are a nightmare and they are not all the same.
Some devices have to go on a host port and will not work though a hub.
Finding what can and what can't seems to be very hard.
We do have a singular device and singular host port (3.0)

I do think though we might be able to find a combination that does work and is fit for purpose.

The chips in these things and the manufacturer / model is really important but we can at least aim for what would be the best and maybe get a working setup.

UASP is actually transparent over a hub and if you get problems its something to do with either the stack or adapter or the hub is just ropey anyway.
Dodgy connectors and power is a huge consideration as we have only 5Vdc of some extremely long and thin poor wiring with some shitty connectors.

http://thewirecutter.com/reviews/best-usb-hubs/

I am sticking with usb3.0 and going to aim at a few manufactures and chips.
Sabrent & Anker seem to get good reviews.

The Sabrent usb3.0/sata adapter supports USAP and is a  Asmedia 1351 chip and I think that is liked by the Armbuntu guys.
https://www.amazon.co.uk/Sabrent-2-5-Inc...B011M8YACM

https://www.amazon.co.uk/Anker®-PowerIQ-...B00VE4UJD4 (Vl812 Chipset)

https://www.amazon.co.uk/ORICO-Aluminium...B075GVZJNQ (Vl812 Chipset)

https://www.amazon.co.uk/Anker-Converter...B006J2L0ZM (? Chipset)

https://www.amazon.co.uk/ORICO-Drive-Ada...B06XT5W7T8 (JMS578 Chipset)


https://www.amazon.co.uk/Inateck-Adapter...B074M1G9KD (ASM1153E chipset)

(09-16-2017, 11:39 AM)ayufan Wrote: > Last question If I use one disk (no raid) with this USB port I will have better stability ?

Yes. This should work just fine.

You can consider having a slow backup/sync over USB2.0, but you should be careful using Hubs to provide more USB3-enabled ports as they are mostly unstable and can lead to data corruption.

Its the initial post that is puzzling me as actually that unit should work direct to host port.
Maybe try a software update on it? http://www.terra-master.com/html/en/arti...t_713.html
They also have linux desktop software.

2nd post is USB3.1 and that is still problematic and from I have read at the moment 3.0 is a better bet until it beds in.
It is a single disk connected to the host port though Ayufan? It is 3.1 though.

Both are still direct to host port and not multi disk host RAID the terra-master should act like a single disk.

Hi stuartiannaylor,
I rather don't want to do that. I bought this 2-drive bay on Amazon. The price wasn't cheap for this. But the reviews are very good. After 5 min working with, I had an issue. I was in touch with the support, which is a very good one, very fast reply. They send me a windows software to reflash the drive (?!). After that, everything was ok. At the beginning, I thought, the drive was the issue, when I read about issues with USB 3.0 here and there, I open this thread. Now I'm pretty sure, it's not the drive. Now I'm gonna send it back to Amazon  Sleepy

Anyway, I'm not gonna use my rock64 anymore for what it should had been my "new" NAS. My goal was to switch from a "desktop ubuntu server with SATA RAID" to something with a "smaller hardware footprint" if I can say that.
So I power back on my "old" system and I will stick with it as everything is rock stable on it ! Angel

Now I have to figure out what I'm gonna do with the Rock64, maybe a Dev Env with nextcloud on it. I already use a Odroic C2 for Kodi (with LibreElec working so smoothly)

By the way, the community looks really cool here. I didn't expect to get answer and thoughts sharing about my issue.  Thanks Guys Heart
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading ancient Rock64 timxjr1300 1 97 11-26-2024, 09:47 AM
Last Post: dmitrymyadzelets
  irradium (based on crux linux) Rock64 riscv64, aarch64 mara 7 1,068 11-19-2024, 02:54 PM
Last Post: mara
  arch rock64 does not boot nemnob 1 983 09-20-2024, 11:18 AM
Last Post: AwU2HBg
  DietPi OS for ROCK64 MichaIng 42 44,029 09-01-2024, 06:43 AM
Last Post: RaymondDay
Smile First Lakka image for Rock64! Luke 47 81,631 09-01-2024, 06:05 AM
Last Post: RaymondDay
  Rock64 v2 - did not work song / audio sqw200zu 2 1,890 03-14-2024, 03:09 AM
Last Post: dmitrymyadzelets
  Rock64 won't boot dstallmo 0 649 12-27-2023, 10:34 AM
Last Post: dstallmo
  HDMI doesn't work on rock64 Noung1991 1 1,105 11-21-2023, 08:33 AM
Last Post: as365n4
  Rock64 + Klipper + KlipperScreen Instructions godzilla62 0 1,107 10-22-2023, 01:52 AM
Last Post: godzilla62
  Rock64 Debian 11 (Bullseye) install problem jbize 15 11,358 10-12-2023, 05:14 PM
Last Post: tpaul

Forum Jump:


Users browsing this thread: 2 Guest(s)