One HDD looses UUID after while

Hi, I have two 8TB hdd in Turris Omnia NAS (I have Turris NAS kit). Each drive is divided into two 4TB partitions. On each drive first partition is BtrFS and second is ext4. It was meant to have RAID1 on first partitions.
Lately I am experiencing strange issue. Sdb is loosing UUIDs.
After some time when everything works as expected, sub suddenly looses UUID and can’t be accessed anymore. Sda is ok but sdb looses UUIDs and I need to restart Turris to be able use sub again.
It started after I “turned off” my Turris before longer vacation by disconnecting it out from electricity. After my arrival I turned it back on and the next day I found out that RAID1 is corrupted (at that time I had extč on all partitions). After some investigation I concluded that one partition failed somehow and was synced into to second partition so both partitions were corrupted and no data could be saved.

I am running lsblk -o NAME,LABEL,UUID each 5 minutes to find out when UUIDs are lost and this is the last occurrence (sda1 and sdb1 are BtrFS, sda2 and sdb2 are ext4, sdc is usb drive dedicated for lxc virtuals):

LSBLK: 10/14/20 03:15:01

NAME         LABEL       UUID
sda                      
|-sda1       SYNC        18eba303-049c-422b-b646-c3c133f614f1
`-sda2       NORAID-2    80c7074b-2f64-42f9-8ecb-2248d468ec47
sdb                      
|-sdb1       SYNC-BACKUP 69e5f8e4-ea72-4781-8861-bab44e7c4b8b
`-sdb2       NORAID-1    05714f0b-0895-481d-917e-121f81c93d32
sdc                      
`-sdc1                   d43df750-b8cc-4ec8-92d9-106117c84785
mtdblock0                
mtdblock1                
mmcblk0                  
`-mmcblk0p1              04571fc5-265b-48c6-bfca-051f104323e3
mmcblk0boot0             
mmcblk0boot1             
mmcblk0rpmb              

LSBLK: 10/14/20 03:20:01

NAME         LABEL    UUID
sda                   
|-sda1       SYNC     18eba303-049c-422b-b646-c3c133f614f1
`-sda2       NORAID-2 80c7074b-2f64-42f9-8ecb-2248d468ec47
sdb                   
|-sdb1                
`-sdb2                
sdc                   
`-sdc1                d43df750-b8cc-4ec8-92d9-106117c84785
mtdblock0             
mtdblock1             
mmcblk0               
`-mmcblk0p1           04571fc5-265b-48c6-bfca-051f104323e3
mmcblk0boot0          
mmcblk0boot1          
mmcblk0rpmb           

Does anybody experienced the same issue or know what should I test?
I tried factory reset on Turris, I changed both hdds (originally I had two 4TB now I have two 8TB), tried turn of all lxc containers, hdd-idle, removing mdadm raid1 and now syncing files by rsync command once per day, etc. Nothing helped.
Now I am thinking about hardware issue - maybe driver for sub is broken somehow. Does anybody know how if it is possible to test hardware driver?

Sounds like broken drive to me. I would upgrade to new drives.
What does dmesg say? Maybe smartctl -a /dev/sdb has some useful information? You can also try smartctl -t short /dev/sdb to run a self-test on the drive.

1 Like

dmesg
[330828.617738] blk_update_request: I/O error, dev sdb, sector 15628052992
[330828.624379] Buffer I/O error on dev sdb, logical block 1953506624, async page read
[330828.634412] sd 1:0:0:0: [sdb] tag#26 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[330828.642840] sd 1:0:0:0: [sdb] tag#26 CDB: opcode=0x88 88 00 00 00 00 01 d1 c0 97 80 00 00 00 08 00 00
[330828.652182] blk_update_request: I/O error, dev sdb, sector 7814027136
[330828.658734] Buffer I/O error on dev sdb1, logical block 976753136, async page read
[330828.666947] sd 1:0:0:0: [sdb] tag#27 UNKNOWN(0x2003) Result: hostbyte=0x04 driverbyte=0x00
[330828.675340] sd 1:0:0:0: [sdb] tag#27 CDB: opcode=0x88 88 00 00 00 00 03 a3 81 27 80 00 00 00 08 00 00
[330828.684676] blk_update_request: I/O error, dev sdb, sector 15628052352
[330828.691306] Buffer I/O error on dev sdb2, logical block 976753136, async page read

smartctl -a /dev/sdb
smartctl 7.1 2019-12-30 r5022 [armv7l-linux-4.4.199-a890a5a94ebb621f8f1720c24d12fef1-0] (localbuild)
Copyright © 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate IronWolf
Device Model:     ST8000VN004-2M2101
Serial Number:    WKD09GE2
LU WWN Device Id: 5 000c50 0c4b6ef29
Firmware Version: SC60
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-4 (minor revision not indicated)
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Oct 21 09:39:56 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
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: 		(  567) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					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: 	 ( 712) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x50bd)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control 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   084   064   044    Pre-fail  Always       -       238308458
  3 Spin_Up_Time            0x0003   082   081   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       29
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   071   060   045    Pre-fail  Always       -       12090327
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       630
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       12
 18 Unknown_Attribute       0x000b   100   100   050    Pre-fail  Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   062   050   040    Old_age   Always       -       38 (Min/Max 31/42)
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1
193 Load_Cycle_Count        0x0032   100   100   000    Old_age   Always       -       141
194 Temperature_Celsius     0x0022   038   050   000    Old_age   Always       -       38 (0 22 0 0 0)
195 Hardware_ECC_Recovered  0x001a   084   064   000    Old_age   Always       -       238308458
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       -       9
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       58 (171 118 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       14796253396
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       16973145769

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.

Everything is freshly installed.
Problems are with sdb only.
Result in dmesg is repeated many times with the same sector numbers.
After I have tried everything what I could think of, I ordered a new driver - I am suspecting hardware error.

After roughly 24h running with a new miniPCI-e sata driver and both new sata cables everything looks good. Hope it stays that way:) If not, I will get some separate NAS rack.