Re: Trying to rescue a RAID-1 array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
Thank you again. I've attached a typescript of the commands. Here are
the line numbers where the commands get issued. The relevant
partitions are on /dev/sdc1 and /dev/sde1:

1:>3> uname -a
3:>4> mdadm --version
5:>5> for d in /dev/sd[ce]
6:>7> smartctl --xall /dev/sdc
252:>8> mdadm --examine /dev/sdc
256:>9> mdadm --examine /dev/sdc1
281:>5> for d in /dev/sd[ce]
282:>7> smartctl --xall /dev/sde
556:>8> mdadm --examine /dev/sde
560:>9> mdadm --examine /dev/sde1
585:>11> mdadm --detail /dev/md1
614:>12> /home/bkorb/bin/lsdrv/lsdrv-master/lsdrv

Right after line 256, you'll see the fateful info:
263   Creation Time : Tue Mar 29 11:02:09 2022
264      Raid Level : raid0

The first block of /dev/sdc1 contains:
bkorb@bach:~> sudo od -Ax -N 4096 -tx1 /dev/sdc1
000000 58 46 53 42 00 00 10 00 00 00 00 00 33 33 32 d0
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000020 fe 71 6d a2 b5 15 4f d6 8e a6 f4 4f 48 03 8b 78
000030 00 00 00 00 20 00 00 07 00 00 00 00 00 00 00 60
000040 00 00 00 00 00 00 00 61 00 00 00 00 00 00 00 62
000050 00 00 00 01 0c cc cc b4 00 00 00 04 00 00 00 00
000060 00 06 66 66 bc b5 10 00 02 00 00 08 55 73 65 72
000070 00 00 00 00 00 00 00 00 0c 0c 09 03 1c 00 00 05
000080 00 00 00 00 00 15 9c 80 00 00 00 00 00 00 2b 48
000090 00 00 00 00 27 92 36 06 00 00 00 00 00 00 00 00
0000a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0000b0 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 00
0000c0 00 0c 10 00 00 00 10 00 00 00 01 8a 00 00 01 8a
0000d0 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00
0000e0 6f 7c f9 cc 00 00 00 00 ff ff ff ff ff ff ff ff
0000f0 00 00 00 7a 00 31 11 20 00 00 00 00 00 00 00 00
000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

I wouldn't know how to find the file system start. :)

 - Bruce

On Thu, Mar 31, 2022 at 2:34 PM Wols Lists <antlists@xxxxxxxxxxxxxxx> wrote:
>
> On 31/03/2022 19:14, Bruce Korb wrote:
> > On Thu, Mar 31, 2022 at 10:06 AM Wols Lists <antlists@xxxxxxxxxxxxxxx> wrote:
> >>
> >> On 31/03/2022 17:44, Bruce Korb wrote:
> >>> I moved the two disks from a cleanly shut down system that could not
> >>> reboot and could not
> >>> be upgraded to a new OS release. So, I put them in.a new box and did an install.
> >>> The installation recognized them as a RAID and decided that the
> >>> partitions needed a
> >>> new superblock of type RAID-0.
> >>
> >> That's worrying, did it really write a superblock?
> >
> > Yep. That worried me, too. I did the command to show the RAID status of the two
> > partitions and, sure enough, both partitions were now listed as RAID0.
> >
> >>> Since these data have never been
> >>> remounted since the
> >>> shutdown on the original machine, I am hoping I can change the RAID
> >>> type and mount it
> >>> so as to recover my. .ssh and .thunderbird (email) directories. The
> >>> bulk of the data are
> >>> backed up (assuming no issues with the full backup of my critical
> >>> data), but rebuilding
> >>> and redistributing the .ssh directory would be a particular nuisance.
> >>>
> >>> SO: what are my options? I can't find any advice on how to tell mdadm
> >>> that the RAID-0 partitions
> >>> really are RAID-1 partitions. Last gasp might be to "mdadm --create"
> >>> the RAID-1 again, but there's
> >>> a lot of advice out there saying that it really is the last gasp
> >>> before giving up. :)
> >>>
> >>
> >> https://raid.wiki.kernel.org/index.php/Asking_for_help
> >
> > Sorry about that. I have two systems: the one I'm typing on and the one
> > I am trying to bring up. At the moment, I'm in single user mode building
> > out a new /home file system. mdadm --create is 15% done after an hour :(.
> > It'll be mid/late afternoon before /home is rebuilt, mounted and I'll be
> > able to run display commands on the "old" RAID1 (or 0) partitions.
> >
> >> Especially lsdrv. That tells us a LOT about your system.
> >
> > Expect email in about 6 hours or so. :) But openSUSE doesn't know
> > about any "lsdrv" command. "cat /proc/mdstat" shows /dev/md1 (the
> > RAID device I'm fretting over) to be active, raid-0 using /dev/sdc1 and sde1.
>
> Well, the webpage does tell you where to download it from - it's not
> part of the official tools, and it's a personal thing that's damn useful.
> >
> >> What was the filesystem on your raid? Hopefully it's as simple as moving
> >> the "start of partition", breaking the raid completely, and you can just
> >> mount the filesystem.
> >
> > I *think* it was EXT4, but. it might be the XFS one. I think I let it default
> > and openSUSE appears to prefer the XFS file system for RAID devices.
> > Definitely one of those two. I built it close to a decade ago, so I'll be moving
> > the data to the new /home array.
> >
> >> What really worries me is how and why it both recognised it as a raid,
> >> then thought it needed to be converted to raid-0. That just sounds wrong
> >> on so many levels. Did you let it mess with your superblocks? I hope you
> >> said "don't touch those drives"?
> >
> > In retrospect, I ought to have left the drives unplugged until the install was
> > done. The installer saw that they were RAID so it RAID-ed them. Only it
> > seems to have decided on type 0 over type 1. I wasn't attentive because
> > I've upgraded Linux so many times and it was "just done correctly" without
> > having to give it a lot of thought. "If only" I'd thought to back up
> > email and ssh.
> > (1.5TB of photos are likely okay.)
> >
> > Thank you so much for your reply and potentially help :)
> >
> If it says the drive is active ...
>
> When you get and run lsdrv, see if it finds a filesystem on the raid-0 -
> I suspect it might!
>
> There's a bug, which should be well fixed, but it might have bitten you.
> It breaks raid arrays. But if the drive is active, it might well mount,
> and you will be running a degraded mirror. Mount it read-only, back it
> up, and then see whether you can force-assemble the two bits back
> together :-)
>
> But don't do anything if you have any trouble whatsoever mounting and
> backing up.
>
> Cheers,
> Wol
>3> uname -a
Linux bach 5.14.21-150400.11-default #1 SMP PREEMPT_DYNAMIC Wed Mar 2 08:27:22 UTC 2022 (0cc030f) x86_64 x86_64 x86_64 GNU/Linux
>4> mdadm --version
mdadm - v4.1 - 2018-10-01
>5> for d in /dev/sd[ce]
>7> smartctl --xall /dev/sdc
smartctl 7.2 2021-09-14 r5237 [x86_64-linux-5.14.21-150400.11-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HGST MegaScale 4000
Device Model:     HGST HMS5C4040ALE640
Serial Number:    PL1331LAHEZZ5H
LU WWN Device Id: 5 000cca 22ed47499
Firmware Version: MPAOA580
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5700 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Apr  1 10:29:34 2022 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

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

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        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:                (   28) 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:        ( 705) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  P-S---   132   132   054    -    109
  3 Spin_Up_Time            POS---   132   132   024    -    503 (Average 552)
  4 Start_Stop_Count        -O--C-   100   100   000    -    3497
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    121
  7 Seek_Error_Rate         PO-R--   100   100   067    -    0
  8 Seek_Time_Performance   P-S---   113   113   020    -    42
  9 Power_On_Hours          -O--C-   098   098   000    -    16330
 10 Spin_Retry_Count        PO--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    3495
192 Power-Off_Retract_Count -O--CK   097   097   000    -    4535
193 Load_Cycle_Count        -O--C-   097   097   000    -    4535
194 Temperature_Celsius     -O----   222   222   000    -    27 (Min/Max 13/52)
196 Reallocated_Event_Count -O--CK   100   100   000    -    131
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    0
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O      7  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x20       GPL     R/O      1  Streaming performance log [OBS-8]
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
No Errors Logged

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     15941         -
# 2  Short offline       Completed without error       00%     15934         -
# 3  Short offline       Completed without error       00%     15928         -
# 4  Short offline       Completed without error       00%     15917         -
# 5  Short offline       Completed without error       00%     15912         -
# 6  Short offline       Completed without error       00%     15906         -
# 7  Short offline       Completed without error       00%     15903         -
# 8  Short offline       Completed without error       00%     15894         -
# 9  Short offline       Completed without error       00%     15887         -
#10  Short offline       Completed without error       00%     15876         -
#11  Short offline       Completed without error       00%     15870         -
#12  Short offline       Completed without error       00%     15863         -
#13  Short offline       Completed without error       00%     15857         -
#14  Short offline       Completed without error       00%     15851         -
#15  Short offline       Completed without error       00%     15841         -
#16  Short offline       Completed without error       00%     15835         -
#17  Short offline       Completed without error       00%     15826         -
#18  Short offline       Completed without error       00%     15819         -
#19  Short offline       Completed without error       00%     15815         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        Active (0)
Current Temperature:                    27 Celsius
Power Cycle Min/Max Temperature:     19/27 Celsius
Lifetime    Min/Max Temperature:     13/52 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/60 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (37)

Index    Estimated Time   Temperature Celsius
  38    2022-04-01 08:22    34  ***************
 ...    ..( 95 skipped).    ..  ***************
   6    2022-04-01 09:58    34  ***************
   7    2022-04-01 09:59    35  ****************
 ...    ..( 12 skipped).    ..  ****************
  20    2022-04-01 10:12    35  ****************
  21    2022-04-01 10:13     ?  -
  22    2022-04-01 10:14    20  *
  23    2022-04-01 10:15    21  **
  24    2022-04-01 10:16    21  **
  25    2022-04-01 10:17    22  ***
  26    2022-04-01 10:18    22  ***
  27    2022-04-01 10:19    23  ****
  28    2022-04-01 10:20    23  ****
  29    2022-04-01 10:21    24  *****
  30    2022-04-01 10:22    24  *****
  31    2022-04-01 10:23    25  ******
  32    2022-04-01 10:24    25  ******
  33    2022-04-01 10:25    25  ******
  34    2022-04-01 10:26    26  *******
  35    2022-04-01 10:27    26  *******
  36    2022-04-01 10:28    27  ********
  37    2022-04-01 10:29    27  ********

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 2) ==
0x01  0x008  4            3495  ---  Lifetime Power-On Resets
0x01  0x018  6     51502617485  ---  Logical Sectors Written
0x01  0x020  6       757543510  ---  Number of Write Commands
0x01  0x028  6     37112141904  ---  Logical Sectors Read
0x01  0x030  6        98430763  ---  Number of Read Commands
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4           16309  ---  Spindle Motor Power-on Hours
0x03  0x010  4           16309  ---  Head Flying Hours
0x03  0x018  4            4535  ---  Head Load Events
0x03  0x020  4             121  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               0  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               2  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              27  ---  Current Temperature
0x05  0x010  1              33  N--  Average Short Term Temperature
0x05  0x018  1              38  N--  Average Long Term Temperature
0x05  0x020  1              52  ---  Highest Temperature
0x05  0x028  1              13  ---  Lowest Temperature
0x05  0x030  1              43  N--  Highest Average Short Term Temperature
0x05  0x038  1              25  N--  Lowest Average Short Term Temperature
0x05  0x040  1              39  N--  Highest Average Long Term Temperature
0x05  0x048  1              25  N--  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              60  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4           32502  ---  Number of Hardware Resets
0x06  0x010  4            6197  ---  Number of ASR Events
0x06  0x018  4               0  ---  Number of Interface CRC Errors
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0009  2            4  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            1  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

>8> mdadm --examine /dev/sdc
/dev/sdc:
   MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
>9> mdadm --examine /dev/sdc1
/dev/sdc1:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : f624aab2:afc18758:5c20d349:55b9b36f
           Name : any:1
  Creation Time : Tue Mar 29 11:02:09 2022
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 6871947240 sectors (3.20 TiB 3.52 TB)
   Super Offset : 6871947248 sectors
          State : active
    Device UUID : 0f94cfbf:af8375b8:5379c38e:3a1e3e79

    Update Time : Tue Mar 29 11:02:09 2022
  Bad Block Log : 512 entries available at offset -8 sectors
       Checksum : 2066f14f - correct
         Events : 0

     Chunk Size : 64K

   Device Role : Active device 0
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
>5> for d in /dev/sd[ce]
>7> smartctl --xall /dev/sde
smartctl 7.2 2021-09-14 r5237 [x86_64-linux-5.14.21-150400.11-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     HGST MegaScale 4000
Device Model:     HGST HMS5C4040ALE640
Serial Number:    PL1331LAHGEP7H
LU WWN Device Id: 5 000cca 22ed4a812
Firmware Version: MPAOA580
User Capacity:    4,000,787,030,016 bytes [4.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5700 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Apr  1 10:29:37 2022 PDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM feature is:   Unavailable
APM feature is:   Disabled
Rd look-ahead is: Enabled
Write cache is:   Enabled
DSN feature is:   Unavailable
ATA Security is:  Disabled, frozen [SEC2]
Wt Cache Reorder: Enabled

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

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        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:                (   28) 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:        ( 712) 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          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
  1 Raw_Read_Error_Rate     PO-R--   100   100   016    -    0
  2 Throughput_Performance  P-S---   134   134   054    -    102
  3 Spin_Up_Time            POS---   134   134   024    -    509 (Average 529)
  4 Start_Stop_Count        -O--C-   100   100   000    -    3499
  5 Reallocated_Sector_Ct   PO--CK   100   100   005    -    0
  7 Seek_Error_Rate         PO-R--   100   100   067    -    0
  8 Seek_Time_Performance   P-S---   113   113   020    -    42
  9 Power_On_Hours          -O--C-   098   098   000    -    16331
 10 Spin_Retry_Count        PO--C-   100   100   060    -    0
 12 Power_Cycle_Count       -O--CK   100   100   000    -    3497
192 Power-Off_Retract_Count -O--CK   098   098   000    -    3522
193 Load_Cycle_Count        -O--C-   098   098   000    -    3522
194 Temperature_Celsius     -O----   230   230   000    -    26 (Min/Max 13/52)
196 Reallocated_Event_Count -O--CK   100   100   000    -    0
197 Current_Pending_Sector  -O---K   100   100   000    -    0
198 Offline_Uncorrectable   ---R--   100   100   000    -    0
199 UDMA_CRC_Error_Count    -O-R--   200   200   000    -    1
                            ||||||_ K auto-keep
                            |||||__ C event count
                            ||||___ R error rate
                            |||____ S speed/performance
                            ||_____ O updated online
                            |______ P prefailure warning

General Purpose Log Directory Version 1
SMART           Log Directory Version 1 [multi-sector log support]
Address    Access  R/W   Size  Description
0x00       GPL,SL  R/O      1  Log Directory
0x01           SL  R/O      1  Summary SMART error log
0x03       GPL     R/O      1  Ext. Comprehensive SMART error log
0x04       GPL     R/O      7  Device Statistics log
0x06           SL  R/O      1  SMART self-test log
0x07       GPL     R/O      1  Extended self-test log
0x08       GPL     R/O      2  Power Conditions log
0x09           SL  R/W      1  Selective self-test log
0x10       GPL     R/O      1  NCQ Command Error log
0x11       GPL     R/O      1  SATA Phy Event Counters log
0x20       GPL     R/O      1  Streaming performance log [OBS-8]
0x21       GPL     R/O      1  Write stream error log
0x22       GPL     R/O      1  Read stream error log
0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
0xe0       GPL,SL  R/W      1  SCT Command/Status
0xe1       GPL,SL  R/W      1  SCT Data Transfer

SMART Extended Comprehensive Error Log Version: 1 (1 sectors)
Device Error Count: 1
        CR     = Command Register
        FEATR  = Features Register
        COUNT  = Count (was: Sector Count) Register
        LBA_48 = Upper bytes of LBA High/Mid/Low Registers ]  ATA-8
        LH     = LBA High (was: Cylinder High) Register    ]   LBA
        LM     = LBA Mid (was: Cylinder Low) Register      ] Register
        LL     = LBA Low (was: Sector Number) Register     ]
        DV     = Device (was: Device/Head) Register
        DC     = Device Control Register
        ER     = Error register
        ST     = Status register
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 [0] occurred at disk power-on lifetime: 3554 hours (148 days + 2 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER -- ST COUNT  LBA_48  LH LM LL DV DC
  -- -- -- == -- == == == -- -- -- -- --
  84 -- 51 09 fa 00 01 aa 12 f3 26 0a 00  Error: ICRC, ABRT at LBA = 0x1aa12f326 = 7148335910

  Commands leading to the command that caused the error were:
  CR FEATR COUNT  LBA_48  LH LM LL DV DC  Powered_Up_Time  Command/Feature_Name
  -- == -- == -- == == == -- -- -- -- --  ---------------  --------------------
  61 06 00 00 70 00 01 aa 12 fd 20 40 08     00:16:09.067  WRITE FPDMA QUEUED
  61 0a 00 00 68 00 01 aa 12 f3 20 40 08     00:16:09.058  WRITE FPDMA QUEUED
  61 06 00 00 60 00 01 aa 12 ed 20 40 08     00:16:09.040  WRITE FPDMA QUEUED
  61 0a 00 00 58 00 01 aa 12 e3 20 40 08     00:16:09.031  WRITE FPDMA QUEUED
  61 06 00 00 50 00 01 aa 12 dd 20 40 08     00:16:09.013  WRITE FPDMA QUEUED

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     15942         -
# 2  Short offline       Completed without error       00%     15935         -
# 3  Short offline       Completed without error       00%     15928         -
# 4  Short offline       Completed without error       00%     15918         -
# 5  Short offline       Completed without error       00%     15913         -
# 6  Short offline       Completed without error       00%     15907         -
# 7  Short offline       Completed without error       00%     15904         -
# 8  Short offline       Completed without error       00%     15895         -
# 9  Short offline       Completed without error       00%     15888         -
#10  Short offline       Completed without error       00%     15877         -
#11  Short offline       Completed without error       00%     15871         -
#12  Short offline       Completed without error       00%     15864         -
#13  Short offline       Completed without error       00%     15858         -
#14  Short offline       Completed without error       00%     15851         -
#15  Short offline       Completed without error       00%     15842         -
#16  Short offline       Completed without error       00%     15836         -
#17  Short offline       Completed without error       00%     15827         -
#18  Short offline       Completed without error       00%     15820         -
#19  Short offline       Completed without error       00%     15815         -

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.

SCT Status Version:                  3
SCT Version (vendor specific):       256 (0x0100)
Device State:                        Active (0)
Current Temperature:                    26 Celsius
Power Cycle Min/Max Temperature:     19/26 Celsius
Lifetime    Min/Max Temperature:     13/52 Celsius
Under/Over Temperature Limit Count:   0/0

SCT Temperature History Version:     2
Temperature Sampling Period:         1 minute
Temperature Logging Interval:        1 minute
Min/Max recommended Temperature:      0/60 Celsius
Min/Max Temperature Limit:           -40/70 Celsius
Temperature History Size (Index):    128 (106)

Index    Estimated Time   Temperature Celsius
 107    2022-04-01 08:22    34  ***************
 ...    ..(109 skipped).    ..  ***************
  89    2022-04-01 10:12    34  ***************
  90    2022-04-01 10:13     ?  -
  91    2022-04-01 10:14    20  *
  92    2022-04-01 10:15    20  *
  93    2022-04-01 10:16    21  **
  94    2022-04-01 10:17    21  **
  95    2022-04-01 10:18    22  ***
  96    2022-04-01 10:19    22  ***
  97    2022-04-01 10:20    23  ****
  98    2022-04-01 10:21    23  ****
  99    2022-04-01 10:22    23  ****
 100    2022-04-01 10:23    24  *****
 101    2022-04-01 10:24    24  *****
 102    2022-04-01 10:25    25  ******
 103    2022-04-01 10:26    25  ******
 104    2022-04-01 10:27    25  ******
 105    2022-04-01 10:28    26  *******
 106    2022-04-01 10:29    26  *******

SCT Error Recovery Control:
           Read: Disabled
          Write: Disabled

Device Statistics (GP Log 0x04)
Page  Offset Size        Value Flags Description
0x01  =====  =               =  ===  == General Statistics (rev 2) ==
0x01  0x008  4            3497  ---  Lifetime Power-On Resets
0x01  0x018  6     38118689395  ---  Logical Sectors Written
0x01  0x020  6       753091092  ---  Number of Write Commands
0x01  0x028  6     48929739739  ---  Logical Sectors Read
0x01  0x030  6       139079999  ---  Number of Read Commands
0x03  =====  =               =  ===  == Rotating Media Statistics (rev 1) ==
0x03  0x008  4           16310  ---  Spindle Motor Power-on Hours
0x03  0x010  4           16310  ---  Head Flying Hours
0x03  0x018  4            3522  ---  Head Load Events
0x03  0x020  4               0  ---  Number of Reallocated Logical Sectors
0x03  0x028  4               0  ---  Read Recovery Attempts
0x03  0x030  4               0  ---  Number of Mechanical Start Failures
0x04  =====  =               =  ===  == General Errors Statistics (rev 1) ==
0x04  0x008  4               0  ---  Number of Reported Uncorrectable Errors
0x04  0x010  4               6  ---  Resets Between Cmd Acceptance and Completion
0x05  =====  =               =  ===  == Temperature Statistics (rev 1) ==
0x05  0x008  1              26  ---  Current Temperature
0x05  0x010  1              33  N--  Average Short Term Temperature
0x05  0x018  1              39  N--  Average Long Term Temperature
0x05  0x020  1              52  ---  Highest Temperature
0x05  0x028  1              13  ---  Lowest Temperature
0x05  0x030  1              43  N--  Highest Average Short Term Temperature
0x05  0x038  1              25  N--  Lowest Average Short Term Temperature
0x05  0x040  1              40  N--  Highest Average Long Term Temperature
0x05  0x048  1              25  N--  Lowest Average Long Term Temperature
0x05  0x050  4               0  ---  Time in Over-Temperature
0x05  0x058  1              60  ---  Specified Maximum Operating Temperature
0x05  0x060  4               0  ---  Time in Under-Temperature
0x05  0x068  1               0  ---  Specified Minimum Operating Temperature
0x06  =====  =               =  ===  == Transport Statistics (rev 1) ==
0x06  0x008  4           35049  ---  Number of Hardware Resets
0x06  0x010  4            6205  ---  Number of ASR Events
0x06  0x018  4               1  ---  Number of Interface CRC Errors
                                |||_ C monitored condition met
                                ||__ D supports DSN
                                |___ N normalized value

Pending Defects log (GP Log 0x0c) not supported

SATA Phy Event Counters (GP Log 0x11)
ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0003  2            0  R_ERR response for device-to-host data FIS
0x0004  2            0  R_ERR response for host-to-device data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0006  2            0  R_ERR response for device-to-host non-data FIS
0x0007  2            0  R_ERR response for host-to-device non-data FIS
0x0009  2            4  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            1  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

>8> mdadm --examine /dev/sde
/dev/sde:
   MBR Magic : aa55
Partition[0] :   4294967295 sectors at            1 (type ee)
>9> mdadm --examine /dev/sde1
/dev/sde1:
          Magic : a92b4efc
        Version : 1.0
    Feature Map : 0x0
     Array UUID : f624aab2:afc18758:5c20d349:55b9b36f
           Name : any:1
  Creation Time : Tue Mar 29 11:02:09 2022
     Raid Level : raid0
   Raid Devices : 2

 Avail Dev Size : 6871947240 sectors (3.20 TiB 3.52 TB)
   Super Offset : 6871947248 sectors
          State : active
    Device UUID : d4132121:d05ed348:83f7d542:fcbb7deb

    Update Time : Tue Mar 29 11:02:09 2022
  Bad Block Log : 512 entries available at offset -8 sectors
       Checksum : 38686827 - correct
         Events : 0

     Chunk Size : 64K

   Device Role : Active device 1
   Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
>11> mdadm --detail /dev/md1
/dev/md1:
           Version : 1.0
     Creation Time : Tue Mar 29 11:02:09 2022
        Raid Level : raid0
        Array Size : 6871947136 (6.40 TiB 7.04 TB)
      Raid Devices : 2
     Total Devices : 2
       Persistence : Superblock is persistent

       Update Time : Tue Mar 29 11:02:09 2022
             State : clean 
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

            Layout : -unknown-
        Chunk Size : 64K

Consistency Policy : none

              Name : any:1
              UUID : f624aab2:afc18758:5c20d349:55b9b36f
            Events : 0

    Number   Major   Minor   RaidDevice State
       0       8       33        0      active sync   /dev/sdc1
       1       8       65        1      active sync   /dev/sde1
>12> /home/bkorb/bin/lsdrv/lsdrv-master/lsdrv
bin/gather-md-info: /home/bkorb/bin/lsdrv/lsdrv-master/lsdrv: /usr/bin/python: bad interpreter: No such file or directory
bkorb@bach:~> 

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux