[SOLVED] Can't format Segate 4TB disc

Post Reply
bitdigger
Posts: 5
Joined: Thu Feb 07, 2019 2:40 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] Can't format Segate 4TB disc

Unread post by bitdigger » Thu Feb 07, 2019 2:49 am

Wehenver I try to format a Segate Barracuda 4TB disc (using Openmediavault), the disc makes a clicking noise after about 8 minutes into the formatting and formatting stops. It's extremly unlikey that the dics per se ist faulty as I got a replacement under warranty and that showes the same behaviour. My guess is that the disc somehow is parked by either the odroid HC1 or the disc itself cause it thinks it's not busy?
Is there a work around for this?
BR, Markus

lazlo
Posts: 143
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by lazlo » Thu Feb 07, 2019 6:04 am

Is there any output in dmesg or syslog related to the drive? If so please post the related sections of the logs. If there is not information in the logs then please install the package smartmontools and then read the man page for smartctl. You can use smartctl to run tests on the drive and get detailed health statistics. If the SMART tests all come up clean and there is no information in the log files then you could try a long, slow format that checks for bad sectors as it goes by using a command something like this:

Code: Select all

sudo mkfs.ext4 -ccv -E lazy_itable_init=0 lazy_journal_init=0 /dev/sda
Check the man page for mkfs.ext4 to see what these options do. Be aware that on a healthy 4TB HDD this will take hours and it is not something you should do right away if there are details in the logs or in the SMART tests that can give us more information.

User avatar
odroid
Site Admin
Posts: 30667
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 13 times
Been thanked: 98 times
Contact:

Re: Can't format Segate 4TB disc

Unread post by odroid » Thu Feb 07, 2019 9:51 am

Which PSU do you use with your HC1? Do you use our official 5V/4A PSU?

bitdigger
Posts: 5
Joined: Thu Feb 07, 2019 2:40 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by bitdigger » Thu Feb 07, 2019 11:41 pm

Ok, I can't see anything in the logs which are visible through the GUI of openmediavault. I tried several things before, but figured it would be good to create an as clean and repeateable situation as possible for you guys to judge what's going on. I hence decided to repeat the below listed steps again one by one exactly as stated for you guys to judge.

To answer the other posters question, yes, I'm using the original 5V 6A powersupply. I acutually opted to take the stronger one to be on the safe side.

So here are the steps taken:
- Flashed a fresh image of OMV_4_Odroid_XU4_HC1_HC2.img.xz to the 8GB industrial grade SanDisc 8GB card bought along with the HC1 from odroid using the latest version of balenaEtcher using Windows 10.
- installed the SD card into the HC1 and booted it, then connected to the GUI, deactivated the auto logout feature
- Called update management, selected all packages and clicked on update to let all updates happen, reloaded the page as instructed to do and then clicked on reboot, subsequentially clicking away all error messages that poped up as they seem to be normal at this stage.
- Logged back into the system, clicked on "drives" to check if /dev/sda is listed which it is
- Clicked on filesystems, then + to add one, selected "n/a [/dev/sda, 3.63 TiB]" as the device, entered "nas" as the drive description, Ext4 as the filesytem type (default) and clicked on "ok", aggreed to delete all data on the drive and hence omv started to format. No error messages so far
- After a slightly varying amount of time (8 - 9 minutes usually) formatting stops. Drive makes this one clicking noise, but motor continues to turn.
- No matter how long I wait, nothing happens thereafter, except that in some cases the GUI shows a generall error. If I shut the device down, the GUI behaves as if this would be sucessfull, but the device does not shut down. SD card led blinks, HD led steady on, no change, I have to pull the power to get it back under control.

Here are the absolutely odd observations:
- I onw already 6 HC1 devices, with all other 5 I did the same thing with the very same type of drive without a hitch
- I replaced the SD cards from the working HC1s with the one that does not, no change in behaviour
- I placed the "good" drives into the trouble HC1 and they do format (so it does seem to relate to the drive itself)
- I placed the trouble drive into the working HC1s and attempted formatting, and also there no joy
- I replaced the drive under warrany, figuring that it would now finally work, but oddly enough, replacement drive showes exactly the same issue, and I personally brought the old one and got the new one, so i'm 100% sure I did not get the same drive back. I also have to say that the new one was in it's factory sealed box with lots of foam and anti static bag and that my source is the biggest supplyier of this kind of stuff in my country, reputed, and they problably sell many of those drives each day.
- I can place a "good" drive (one from the other 5HC1s) into the HC1 and it formats it
- The "bad" drive does not format, no matter which of the 6 HC1 I try
- I first figured it might be a newer firmware version on the drive, but the drive that refuses to work is manufacturing date wise in between those who do work.

So how big are the chances that this second drive is also DOA? Any suggested way to proof this? Any other ideas?

TIA / Markus

lazlo
Posts: 143
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by lazlo » Fri Feb 08, 2019 1:20 am

I think there is a very good chance this drive is dead or dying. You need to log in to a terminal or ssh. Once you have access to a terminal you should be able to do:

Code: Select all

sudo tail -f /var/log/syslog
This will start following the main system logfile. It will update the screen as each new entry is written to the logfile.

Then open a second terminal session and do:

Code: Select all

sudo smartctl -a /dev/sda
Then post the output in this thread. After you do that you can execute:

Code: Select all

sudo mkfs.ext4 -v /dev/sda
If any errors show up in the terminal that is tailing syslog please copy them into a reply as well. If there are still no errors in syslog after the 8 or 9 minutes you describe the please cancel the mkfs.ext4 commond with ctrl+c and please post the output of:

Code: Select all

sudo dmesg | grep sda

bitdigger
Posts: 5
Joined: Thu Feb 07, 2019 2:40 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by bitdigger » Fri Feb 08, 2019 6:44 pm

Here we go for the syslog. Have to say that I shut the device down over night and rebooted this morning, so not too much intersting stuff in syslog imho.

<---------- syslog ----------->

root@odroidxu4:~# sudo tail -f /var/log/syslog
Feb 8 08:02:13 odroidxu4 systemd[1937]: Listening on GnuPG cryptographic agent and passphrase cache.
Feb 8 08:02:13 odroidxu4 systemd[1937]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Feb 8 08:02:13 odroidxu4 systemd[1937]: Listening on GnuPG cryptographic agent (access for web browsers).
Feb 8 08:02:13 odroidxu4 systemd[1937]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Feb 8 08:02:13 odroidxu4 systemd[1937]: Reached target Sockets.
Feb 8 08:02:13 odroidxu4 systemd[1937]: Reached target Basic System.
Feb 8 08:02:13 odroidxu4 systemd[1937]: Reached target Default.
Feb 8 08:02:13 odroidxu4 systemd[1937]: Startup finished in 169ms.
Feb 8 08:02:13 odroidxu4 systemd[1]: Started User Manager for UID 0.
Feb 8 08:02:58 odroidxu4 systemd[1]: Started Session 6 of user root.
Feb 8 08:04:22 odroidxu4 systemd[1]: Started Run anacron jobs.
Feb 8 08:04:22 odroidxu4 anacron[2140]: Anacron 2.3 started on 2019-02-08
Feb 8 08:04:22 odroidxu4 anacron[2140]: Will run job `cron.daily' in 5 min.
Feb 8 08:04:22 odroidxu4 anacron[2140]: Jobs will be executed sequentially

<---------- smartctl ----------->

Here the output of sudo smartctl -a /dev/sda

smartctl 6.6 2016-05-31 r4324 [armv7l-linux-4.14.94-odroidxu4] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 2.5 5400
Device Model: ST4000LM024-2AN17V
Serial Number: WCK2AWFW
LU WWN Device Id: 5 000c50 0ad324070
Firmware Version: 0001
User Capacity: 4,000,787,030,016 bytes [4.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 5526 rpm
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Fri Feb 8 08:03:58 2019 UTC
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x73) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 656) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x30a5) SCT Status supported.
SCT Data Table supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 100 100 006 Pre-fail Always - 64025
3 Spin_Up_Time 0x0003 097 097 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 28
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 100 253 045 Pre-fail Always - 111530
9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 2 (65 26 0)
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 12
183 SATA_Downshift_Count 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 253 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 071 058 040 Old_age Always - 29 (Min/Max 25/29)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 22
193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 28
194 Temperature_Celsius 0x0022 029 042 000 Old_age Always - 29 (0 18 0 0 0)
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 64025
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 0 (181 126 0)
241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 0
242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 64025
254 Free_Fall_Sensor 0x0032 100 100 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

<------ mkfs ------->

sudo mkfs.ext4 -v /dev/sda

Works, BUT that's much much quicker than the GUI version. I thus repeated the GUI thing, same problem and, once the device stops formatting, it also hangs to quite some degree. No login with ssh possible, does respond to ping, but that's about it.
I let the syslog tail thin run in paralell but no output there whatsoever.

Since I could not access the device after the hang, I issued the following command after rebooting:

root@odroidxu4:~# sudo dmesg | grep sda
[ 22.837856] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 22.837866] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 22.838446] sd 0:0:0:0: [sda] Write Protect is off
[ 22.838457] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
[ 22.844143] sd 0:0:0:0: [sda] Disabling FUA
[ 22.844155] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 22.932642] sda: sda1
[ 22.935760] sd 0:0:0:0: [sda] Attached SCSI disk

After all this I was reading the manual of smartctrl did a short test (smartctl -t short /dev/sda) and guess what, after a relatively short time the "click" noise apeared. After this the device is compleatly unreacheable (smartctl --scan does not show it, nor does the GUI).

syslog showes now
Feb 8 09:16:09 odroidxu4 kernel: [ 2577.164235] usb 4-1: USB disconnect, device number 2
Feb 8 09:16:09 odroidxu4 kernel: [ 2577.167780] sd 0:0:0:0: [sda] Synchronizing SCSI cache
Feb 8 09:16:09 odroidxu4 kernel: [ 2577.404125] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
Feb 8 09:17:01 odroidxu4 CRON[7230]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 8 09:17:10 odroidxu4 rrdcached[1706]: flushing old values
Feb 8 09:17:10 odroidxu4 rrdcached[1706]: rotating journals
Feb 8 09:17:10 odroidxu4 rrdcached[1706]: started new journal /var/lib/rrdcached/journal/rrd.journal.1549617430.960525

I'm not exactly sure if the USB disconnect is
So, bottom line is I'm quite out of ideas other than that this replacement disc is defective too. I hence contacted the supplier and organized yet another replacement. Should this then fail too, well I then would have to switch to another (disc) product.

lazlo
Posts: 143
Joined: Sun Oct 01, 2017 11:32 am
languages_spoken: english
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by lazlo » Fri Feb 08, 2019 9:54 pm

If the drive is failing to complete a short SMART test then it must be the drive or the controller. Since you have been able to format other drives with this HC1 that rules out the controller. Since this drive fails to format in other HC1 units then it almost certainly is something about the drive itself. If you have the means I would suggest attaching the drive to a different kind of system (PC, Mac, or anything not based on the Odroid XU4) and then repeating the SMART test. If it fails you know for sure it's the drive. If it doesn't then there must be some incompatibility between the drive the and HC1. Hardkernel could then investigate and maybe able to save other HC1 owners some trouble later on.

bitdigger
Posts: 5
Joined: Thu Feb 07, 2019 2:40 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by bitdigger » Mon Feb 11, 2019 6:28 am

I have news. Meanwhile I got the SECOND replaement disc. It showes mostly the same behaviour, albeit with one difference. At the time the previous two discs stopped, it stopps too, but then after a minute or so recovers spiting out a sector/track list into the window that is shown during format, but then also dies.

To me this means that:
- The problem is not with the disc. It must be some timeing issue(s) which vary from drive to drive eventually based on component tolerances.
- Its a software thing, eventually relates to the GUI, not sure here because with this disc, formatting aparently completes.
The system remains unacessible in this state, but as mentioned formatting completes with this disc (not with the previous two). If I wait long enough, I can powercycle the system and see the filesystem and mount it.

So, to me it's clear that Hardkernel should look into this issue. The Segate 4TB drive is IMHO an important choice for the HC1 as it delivers most bang for the buck in terms of storage size. I woul personally apreciate a fix here cause I would like to buy many many more HC1 (>100pcs) in this very configuration for a project. The logs shown in my previous post should give clear information about the drive I'm talking about.

User avatar
odroid
Site Admin
Posts: 30667
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 13 times
Been thanked: 98 times
Contact:

Re: Can't format Segate 4TB disc

Unread post by odroid » Mon Feb 11, 2019 12:01 pm

We tested a Seagate 5TB 2.5" HDD over one year ago. The HDD was extracted from Backup Plus 5TB portable.
https://wiki.odroid.com/odroid-xu4/soft ... ternal_hdd

We couldn't test many different samples and I can't tell you full Seagate 4TB compatibility.
But we already shipped over 25,000pcs of HC1/HC2 and there has been no such timing incompatibility issue so far.

Do you have a DMM to measure the VBUS voltage on the USB 2.0 host port of HC1?
If yes, please carefully measure the voltage while accessing the HDD intensively.
It must be stable at 4.8Volt at least.

bitdigger
Posts: 5
Joined: Thu Feb 07, 2019 2:40 am
languages_spoken: english
ODROIDs: HC1
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't format Segate 4TB disc

Unread post by bitdigger » Mon Feb 11, 2019 8:09 pm

Ok, that was a good hint! It turns out that the powersupply was the cause of the trouble. Unfortuantely did I (aparently out of stupidity, could slap myself, especially also after you asking for the powersupply in your first post) always used the same (odroid, 5V6A) powersupply instead of also swapping this one as I could have been doing! As soon as I change the supply, formatting goes through without a hitch!
I thus will order another powersupply and dump the one that was causing trouble. Thanks for your tip!
BR,
Markus

User avatar
odroid
Site Admin
Posts: 30667
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 13 times
Been thanked: 98 times
Contact:

Re: Can't format Segate 4TB disc

Unread post by odroid » Tue Feb 12, 2019 3:36 pm

Glad to hear another PSU could solve your issue. :)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest