Constant crash Xenial minimal - help much appreciated - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Constant crash Xenial minimal - help much appreciated (/showthread.php?tid=5516) |
Constant crash Xenial minimal - help much appreciated - freeloader - 12-30-2017 Hi guys, First of: love the Rock64 so far, very happy running the ayufan Xenial minimal. I was a bit hesistant about buying the Rock64 due to it being a relatively new device, but was convinced due to what seems like a vibrant user community being built here. The community pages proved to be very helpful in setting up the device, thanks for that! I did a search in the forum on my specific issue and could not find a direct solution - apologies in advance if it turns out to be a rookie / easy mistake. I have working knowledge from tinkering with Linux over the past 15 years, but am definitely not an expert. My setup: - Rock 64 on the official power supply (running on a US to EU power converter however). - Running Ayufan Xenial minimal on a 16GB micro SD card. - Aukey USB powered hub: https://www.amazon.de/dp/B00QM89U4G/ref=pe_3044161_189395811_TE_dp_1 - Three Seagate Expansion Portable 4TB drives linked to the USB hub: https://www.amazon.de/dp/B017KE8OG0/ref=pe_3044161_189395811_TE_dp_1 - Very limited software installed (Docker, vsftp) What happened: I tried setting up my three external harddrives in RAID 0, following this tutorial: https://forum.pine64.org/showthread.php?tid=5231 In the middle of the tutorial, the device crashed (no error message on screen through putty). I connected the Rock64 to a monitor (figured at first there was a problem with the network connection) and saw it crashing in 'real time' (while I was not taking any user actions). I took a few pictures (attached to this post). I looked at syslog and the last error there is from a few hours before the crashed. Happy to post any other logs. In essence, it seems there are a few read/write errors on my external disks and then the device crashed. I plugged out the USB hub and the crashing stopped, so the error is likely connected to the drives. I took a good look at one of the overview forum posts (https://forum.pine64.org/showthread.php?tid=4760) and I think my issue might be linked to undervoltage. Is there any way to check that? I thought my powered HUB was strong enough to handle all three drives, but please correct me if I'm wrong. Logs: Any help appreciated! RE: Constant crash Xenial minimal - help much appreciated - freeloader - 12-30-2017 By way of update: this is fixed now. Seems there was an error with my drives, perhaps faulty configuration of the RAID setup. Steps taken to resolve: 1. unplug all external hard drives from the powered HUB 2. insert drive 1: set new partition table (sudo parted /dev/sd[?] mklabel gpt) - repeat for two other drives 3. remove the previous RAID 0 array (see https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04 under "Resetting Existing RAID Devices") 4. install new RAID 0 array (see https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04 under "Creating a RAID 0 Array") Later edit: this did not do the trick, see below for second attempt at a fix. RE: Constant crash Xenial minimal - help much appreciated - Rustproof - 12-30-2017 Hey Freeloader, have you updated everything prior to your HD expansion? Code: sudo apt-get update -y RE: Constant crash Xenial minimal - help much appreciated - dkryder - 12-30-2017 have you seen this, if not, you might get some ideas from it, https://www.linuxquestions.org/questions/linux-hardware-18/buffer-i-o-error-on-dev-sdb1-async-page-read-4175600715/ RE: Constant crash Xenial minimal - help much appreciated - freeloader - 12-30-2017 Unfortunately, the fix above didn't completely do the trick. @Rustproof: yes, I did a full system update and upgrade prior to putting these disks in RAID 0. @dkryder: much appreciated, I took up on that idea and played around with it a bit further, but no luck so far. The three disks are brand new and the smartctl command turned up no flaunts. I don't think these are bad disk sectors. I am now loading each drive separately (no raid) and for now I don't seem to have any further crashes. That seems to suggest two things: (1) it's likely not an undervoltage issue given that the three disks are connected to the hub without problems, and (2) it's likely something to do with the fact that the disks are placed in RAID. RE: Constant crash Xenial minimal - help much appreciated - freeloader - 01-01-2018 By way of update: the problem is not so much with connecting the hard drives, but starts as soon as I mount these drives. My hypothesis is that Seagate stores a bunch of stuff on the first (boot) sectors of the hard drives which causes I/O errors. The drives had two partitions on them out of the box: a 128MB partition and a second partition with the remainder of the drives. Attempt #2 (repeated for each HD): set up a new partition table and start the new partition after the first 128MB. Alternatively, you could zero the first 128MB of the drives -- my guess is that would work the same (while wasting less space), but I wanted a quick workaround. Code: Step 1: find drive identifiers I'll get back if that does not work. Later edit: confirmed, this solved it. RE: Constant crash Xenial minimal - help much appreciated - rontant - 01-01-2018 Glad to hear that you've managed to solve the problem. I have been using Ayufan's images on My Rock64 and it is running almost 7x24 hours without hardly a glitch. My powered USB 3 hub is not even a branded one but it does the job well. I am not on RAID though. Anyway here is my setup: 2GB Rock 64 Stock power supply for Rock64 Unbranded powered USB3 hub 500GB Seagate HDD where the Linux file system is 4TB WD My Passport Ultra USB 3.0 drive. Software installed: Ayufan's Ubuntu Bionic Beaver release 18.04 (Linux rock64 4.4.103-rockchip-ayufan-152) (I have tried his other images as well and they are fine. ) NginX server PHP server rTorrent server Samba server Mariadb server RE: Constant crash Xenial minimal - help much appreciated - freeloader - 01-02-2018 Are you using LVM or similar? RE: Constant crash Xenial minimal - help much appreciated - rontant - 01-02-2018 (01-02-2018, 02:17 AM)freeloader Wrote: Are you using LVM or similar? No, I am not. |