Upgrade from 9.2 to 9.3 - CAM status: ATA Status Error on /dev/ada1 (HP 40L, Toshiba DT01ACA300)

Status
Not open for further replies.

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
I have a HP Proliant N40L Microserver, that previously has FreeNAS 92

It has four SATA drives, and FreeNAS 9.2 (Beta, I can't recall which build) installed on a USB stick.

I recently decided to wipe the USB stick, and install FreeNAS 9.3. release onto it.

However, during the boot, I'm getting a whole bunch of error messages about "CAM Status: ATA Status Error" and "
ATA status: 51 (DRDY SERV ERR), error: 40 (UNC )"
on what I believe is the USB stick (/dev/ada1 - the SATA drives shouldn't have been mounted at this point).

I've tried two different USB sticks (one of which is known good, and the other is the one that was previously running 9.2 Beta successfully for several months), and it exhibits the same symptoms each time.

lD9UPy2.jpg


bEK2ur1.jpg


0CphNPF.jpg


Eventually, it does finish booting, if you leave it long enough - however, then when you try to run the initial wizard from a web browser, it then prints out those errors again, and hangs.

Any thoughts on what's going on, or what the next diagnosis steps might be?
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Damn, I'm silly - I'm fairly sure /dev/ada1 is was one of the SATA drives, not the USB stick. I just booted it up with all SATA drives ejected, and it booted up fine, no error messages.

Hmm, ok, that's not good.

I have three SATA drives in them - this is an old NAS I had setup at my parent's place, I was visiting today so I figured I'd upgrade it.

I am really hoping that I set it up in RAID-Z mode...otherwise I'm guessing I'm out of luck, right? Three disks, hmm, yeah, RAID-Z still works...right....ugh.

/dev/ada1 would put it as the second drive in the set - so slot 2? Or is the ordering of the device names not really related?

Should I boot up the machine with that disk ejected, and see how things go?

Would it be safe to do a ZFS import with only two drives, and see what happens there?

Or what else would a safe next step?

If it helps, the drives are Toshiba (Hitachi) DT01ACA300 3.0 TB drives.
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

I just booted it up with the second SATA drive ejected.

I ran a "zpool import" from the shell:
Code:
[root@freenas] ~# zpool import
   pool: datastore
     id: 17291458680710033870
  state: DEGRADED
status: The pool was last accessed by another system.
action: The pool can be imported despite missing or damaged devices.  The
    fault tolerance of the pool may be compromised if imported.
   see: http://illumos.org/msg/ZFS-8000-EY
config:

    datastore                                       DEGRADED
     raidz1-0                                      DEGRADED
       gptid/b9f41d31-67ca-11e2-b39e-a0b3cce4fa18  ONLINE
       14864991909925225739                        UNAVAIL  cannot open
       gptid/baf7d360-67ca-11e2-b39e-a0b3cce4fa18  ONLINE


I am glad I setup my parent's NAS the same as I'd setup mine...sigh.

Ok, hmm, so I assume my best option at this stage is to go out, buy another drive, and try to re-import and get it to re-silver onto that drive, to get back up to 1 redundant drive?

Or will that perhaps cause issues for the remaining drives, in terms of additional load on them? The drives are identical models, and were probably purchased at the same time.

Regards,
Victor
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
"smartctl -a /dev/ada1" would tell you the serial number of the failing disk. "zpool import" will tell you the pool configuration if it isn't mounted; "zpool status" if it is. If it shows RAIDZ1, you may not be completely hosed.

FWIW, the ATA status errors are often the result of a bad cable, but the failed SMART attributes are definitely something with the drive itself.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Our posts crossed. Yes, your best bet is to replace the drive. Yes, there's a danger that the resilvering could put additional stress on your remaining disks and lead to a failure--that's why RAIDZ1 isn't recommended. The other option would be to buy two disks, back up your data, destroy the pool, and create a RAIDZ2 pool instead. This would be recommended in terms of redundancy, but of course you'd need a place to store the backup.
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Hi,

Aha, yes, ships in the night - sorry about that.

Hmm, ok, if I buy two disks - what did you mean by backup the data?

As in, import the ZFS pool as-is, and copy the data off that first? If I copy off all of the data first, will that not be similar load to doing the resilvering? Or is it less?

Or did you mean something else?

I recently purchased a 4TB Hitachi Deskstar 7200RPM (0S03666) for myself, I'm thinking of buying another of these to replace my parent's drive. I assume there's no issues with using this drive with FreeNAS?

Cheers,
Victor
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Sorry, double post - if a mod sees this, are they able to delete this post please? Thanks!

(I couldn't see an option to delete a post, only edit).
 
Last edited:

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Also, I figured I'd get the smartctl data off the two other drives whilst it's booted up:

Code:
[root@freenas] ~# smartctl -a /dev/ada0
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HDS723030BLE640
Serial Number:    MS79215X046YRA
LU WWN Device Id: 5 000cca 37ec1eb9b
Firmware Version: MX6OAAB0
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Mar  1 04:30:09 2015 PST
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:  (0x84)    Offline data collection activity
                    was suspended by an interrupting command from host.
                    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:         (23943) seconds.
Offline data collection
capabilities:             (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:     ( 399) minutes.
SCT capabilities:           (0x003d)    SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   139   139   054    Pre-fail  Offline      -       73
  3 Spin_Up_Time            0x0007   180   180   024    Pre-fail  Always       -       348 (Average 289)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       24
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   124   124   020    Pre-fail  Offline      -       33
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       15491
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       24
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       153
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       153
194 Temperature_Celsius     0x0002   181   181   000    Old_age   Always       -       33 (Min/Max 21/42)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   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.


Code:
[root@freenas] ~# smartctl -a /dev/ada1
smartctl 6.3 2014-07-26 r3976 [FreeBSD 9.3-RELEASE-p10 amd64] (local build)
Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     Hitachi HDS723030BLE640
Serial Number:    MS79215X03WEAA
LU WWN Device Id: 5 000cca 37ec1c415
Firmware Version: MX6OAAB0
User Capacity:    3,000,592,982,016 bytes [3.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Mar  1 04:30:15 2015 PST
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:  (0x84)    Offline data collection activity
                    was suspended by an interrupting command from host.
                    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:         (22508) seconds.
Offline data collection
capabilities:             (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No 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:     ( 376) minutes.
SCT capabilities:           (0x003d)    SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   139   139   054    Pre-fail  Offline      -       72
  3 Spin_Up_Time            0x0007   175   175   024    Pre-fail  Always       -       286 (Average 369)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       24
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   124   124   020    Pre-fail  Offline      -       33
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       17888
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       24
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       429
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       429
194 Temperature_Celsius     0x0002   181   181   000    Old_age   Always       -       33 (Min/Max 21/44)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   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.
 

Bidule0hm

Server Electronics Sorcerer
Joined
Aug 5, 2013
Messages
3,710
I can see you don't have any scheduled SMART tests. You should have setup the SMART tests right after you put the NAS online, think about doing that after you've recovered your files ;)

The CAM status errors are likely due to the failing drive BTW.
 

victorhooi

Contributor
Joined
Mar 16, 2012
Messages
184
Just thought I'd post an update:

Code:
[root@freenas] ~# zpool status datastore
  pool: datastore
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
    still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(7) for details.
  scan: resilvered 1.73T in 4h44m with 0 errors on Mon Mar  2 09:32:07 2015
config:

    NAME                                            STATE     READ WRITE CKSUM
    datastore                                       ONLINE       0     0     0
     raidz1-0                                      ONLINE       0     0     0
       gptid/b9f41d31-67ca-11e2-b39e-a0b3cce4fa18  ONLINE       0     0     0
       gptid/48ffb4af-c0da-11e4-b365-a0b3cce4fa18  ONLINE       0     0     0
       gptid/baf7d360-67ca-11e2-b39e-a0b3cce4fa18  ONLINE       0     0     0

errors: No known data errors


So it seems to be sorted =), thanks to all involved for your advice - and yes, I'll look into getting some SMART tests scheduled. Will need a SMTP service to use for the mail alerts, I may look into using Mailgun or something like that (I use 2FA for Gmail, which means I'd need to setup an application password to use it as my SMTP service).

On the failing disks, it turns out it is out of warranty, unfortunately - the Toshiba DT01ACA300 only has 2-years warranty, not 3 - otherwise it would still be covered under warranty.

The WD (Hitachi) version of the Deskstar I just bought has 3 years warranty, lol, not sure what that says about their confidence in the drives...lol.
 
Status
Not open for further replies.
Top