linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* debian9/raid1 assembly/unexpected failure opening device
@ 2017-08-31 12:06 Joel Walberg
  2017-08-31 13:02 ` Jack Wang
  2017-08-31 13:22 ` Andreas Klauer
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Walberg @ 2017-08-31 12:06 UTC (permalink / raw)
  To: linux-raid

## If you have any ideas or suggestions, I would appreciate it.
##
## ==issue====================================
## ===========================================
## System has 3 hard drives, 1=OS, 2=RAID1 members
## Prior OS: Debian 7
## Installed Debian 9 on OS drive, unable to now get RAID1
assembled/started/missing special device files
##
## root@jowahome:~# mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
## mdadm: unexpected failure opening /dev/md2014
## root@jowahome:~# mdadm -A /dev/md/md2014 /dev/sdc1 /dev/sdb1
## mdadm: unexpected failure opening /dev/md2014
##
##
## ==output===================================
## ===========================================
## root@jowahome:~# mdadm -E -s
## ARRAY /dev/md/md2014  metadata=1.2
UUID=43dbaec6:5b167da8:01bf232d:c218eb6c name=jowahome:md2014
## ==output===================================
## ===========================================
## root@jowahome:~# mdadm -E /dev/sdb1
## /dev/sdb1:
##           Magic : a92b4efc
##         Version : 1.2
##     Feature Map : 0x0
##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
##            Name : jowahome:md2014  (local to host jowahome)
##   Creation Time : Thu Dec  4 17:44:01 2014
##      Raid Level : raid1
##    Raid Devices : 2
##
##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
##     Data Offset : 262144 sectors
##    Super Offset : 8 sectors
##    Unused Space : before=262064 sectors, after=384 sectors
##           State : clean
##     Device UUID : 3d78e679:e1ec930a:92f60635:3f8d79b5
##
##     Update Time : Wed Aug 30 10:01:33 2017
##        Checksum : 83624b92 - correct
##          Events : 48385
##
##
##    Device Role : Active device 1
##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
## ==output===================================
## ===========================================
## root@jowahome:~# mdadm -E /dev/sdc1
## /dev/sdc1:
##           Magic : a92b4efc
##         Version : 1.2
##     Feature Map : 0x0
##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
##            Name : jowahome:md2014  (local to host jowahome)
##   Creation Time : Thu Dec  4 17:44:01 2014
##      Raid Level : raid1
##    Raid Devices : 2
##
##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
##     Data Offset : 262144 sectors
##    Super Offset : 8 sectors
##    Unused Space : before=262064 sectors, after=384 sectors
##           State : clean
##     Device UUID : ffb6f0de:43aa75a9:3feb8c8e:b7c41993
##
##     Update Time : Wed Aug 30 10:01:33 2017
##        Checksum : be7473da - correct
##          Events : 48385
##
##
##    Device Role : Active device 0
##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
## ==output===================================
## ===========================================
## root@jowahome:~# smartctl --xall /dev/sdb
## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
##
## === START OF INFORMATION SECTION ===
## Model Family:     Seagate Barracuda 7200.14 (AF)
## Device Model:     ST3000DM001-1ER166
## Serial Number:    Z5009M1W
## LU WWN Device Id: 5 000c50 07903c6be
## Firmware Version: CC43
## 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:        In smartctl database [for details use: -P show]
## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
## SMART support is: Available - device has SMART capability.
## SMART support is: Enabled
## AAM feature is:   Unavailable
## APM level is:     254 (maximum performance)
## Rd look-ahead is: Enabled
## Write cache is:   Enabled
## ATA Security is:  Disabled, frozen [SEC2]
## Wt Cache Reorder: Unavailable
##
## === 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:                (   80) 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:        ( 331) minutes.
## Conveyance self-test routine
## recommended polling time:        (   2) minutes.
## SCT capabilities:              (0x1085) SCT Status supported.
##
## SMART Attributes Data Structure revision number: 10
## Vendor Specific SMART Attributes with Thresholds:
## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
##   1 Raw_Read_Error_Rate     POSR--   118   099   006    -    186165552
##   3 Spin_Up_Time            PO----   094   092   000    -    0
##   4 Start_Stop_Count        -O--CK   100   100   020    -    54
##   5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
##   7 Seek_Error_Rate         POSR--   070   060   030    -    10955017
##   9 Power_On_Hours          -O--CK   075   075   000    -    22641
##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
##  12 Power_Cycle_Count       -O--CK   100   100   020    -    54
## 183 Runtime_Bad_Block       -O--CK   100   100   000    -    0
## 184 End-to-End_Error        -O--CK   100   100   099    -    0
## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
## 188 Command_Timeout         -O--CK   100   100   000    -    0 0 0
## 189 High_Fly_Writes         -O-RCK   088   088   000    -    12
## 190 Airflow_Temperature_Cel -O---K   062   056   045    -    38
(Min/Max 37/42)
## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    32
## 193 Load_Cycle_Count        -O--CK   100   100   000    -    439
## 194 Temperature_Celsius     -O---K   038   044   000    -    38 (0 15 0 0 0)
## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
## 240 Head_Flying_Hours       ------   100   253   000    -
20087h+17m+38.336s
## 241 Total_LBAs_Written      ------   100   253   000    -    40747055745
## 242 Total_LBAs_Read         ------   100   253   000    -    208387242739
##                             ||||||_ 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
## 0x02           SL  R/O      5  Comprehensive SMART error log
## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
## 0x06           SL  R/O      1  SMART self-test log
## 0x07       GPL     R/O      1  Extended self-test log
## 0x09           SL  R/W      1  Selective self-test log
## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
## 0x11       GPL     R/O      1  SATA Phy Event Counters log
## 0x21       GPL     R/O      1  Write stream error log
## 0x22       GPL     R/O      1  Read stream error log
## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
## 0xa1       GPL,SL  VS      20  Device vendor specific log
## 0xa2       GPL     VS    4496  Device vendor specific log
## 0xa8       GPL,SL  VS     129  Device vendor specific log
## 0xa9       GPL,SL  VS       1  Device vendor specific log
## 0xab       GPL     VS       1  Device vendor specific log
## 0xb0       GPL     VS    5176  Device vendor specific log
## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
## 0xc0       GPL,SL  VS       1  Device vendor specific log
## 0xc1       GPL,SL  VS      10  Device vendor specific log
## 0xc3       GPL,SL  VS       8  Device vendor specific log
## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
21086         -
##
## 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):       522 (0x020a)
## SCT Support Level:                   1
## Device State:                        Active (0)
## Current Temperature:                    38 Celsius
## Power Cycle Min/Max Temperature:     37/41 Celsius
## Lifetime    Min/Max Temperature:     15/44 Celsius
## Under/Over Temperature Limit Count:   0/0
##
## SCT Data Table command not supported
##
## SCT Error Recovery Control command not supported
##
## Device Statistics (GP/SMART Log 0x04) not supported
##
## SATA Phy Event Counters (GP Log 0x11)
## ID      Size     Value  Description
## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
## 0x0001  2            0  Command failed due to ICRC error
## 0x0003  2            0  R_ERR response for device-to-host data FIS
## 0x0004  2            0  R_ERR response for host-to-device 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
##
## ==output===================================
## ===========================================
## root@jowahome:~# smartctl --xall /dev/sdc
## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
##
## === START OF INFORMATION SECTION ===
## Model Family:     Seagate Barracuda 7200.14 (AF)
## Device Model:     ST3000DM001-1ER166
## Serial Number:    Z5009W5Z
## LU WWN Device Id: 5 000c50 079052344
## Firmware Version: CC43
## 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:        In smartctl database [for details use: -P show]
## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
## Local Time is:    Thu Aug 31 05:31:41 2017 MDT
## SMART support is: Available - device has SMART capability.
## SMART support is: Enabled
## AAM feature is:   Unavailable
## APM level is:     254 (maximum performance)
## Rd look-ahead is: Enabled
## Write cache is:   Enabled
## ATA Security is:  Disabled, frozen [SEC2]
## Wt Cache Reorder: Unavailable
##
## === 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:                (   89) 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:        ( 332) minutes.
## Conveyance self-test routine
## recommended polling time:        (   2) minutes.
## SCT capabilities:              (0x1085) SCT Status supported.
##
## SMART Attributes Data Structure revision number: 10
## Vendor Specific SMART Attributes with Thresholds:
## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
##   1 Raw_Read_Error_Rate     POSR--   119   099   006    -    205036280
##   3 Spin_Up_Time            PO----   094   093   000    -    0
##   4 Start_Stop_Count        -O--CK   100   100   020    -    59
##   5 Reallocated_Sector_Ct   PO--CK   097   097   010    -    3344
##   7 Seek_Error_Rate         POSR--   070   060   030    -    11270536
##   9 Power_On_Hours          -O--CK   075   075   000    -    22632
##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
##  12 Power_Cycle_Count       -O--CK   100   100   020    -    60
## 183 Runtime_Bad_Block       -O--CK   098   098   000    -    2
## 184 End-to-End_Error        -O--CK   100   100   099    -    0
## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
## 188 Command_Timeout         -O--CK   100   098   000    -    5 5 5
## 189 High_Fly_Writes         -O-RCK   099   099   000    -    1
## 190 Airflow_Temperature_Cel -O---K   057   052   045    -    43
(Min/Max 42/46)
## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    34
## 193 Load_Cycle_Count        -O--CK   100   100   000    -    456
## 194 Temperature_Celsius     -O---K   043   048   000    -    43 (0 15 0 0 0)
## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
## 240 Head_Flying_Hours       ------   100   253   000    -
20088h+20m+07.582s
## 241 Total_LBAs_Written      ------   100   253   000    -    24949386363
## 242 Total_LBAs_Read         ------   100   253   000    -    226511888729
##                             ||||||_ 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
## 0x02           SL  R/O      5  Comprehensive SMART error log
## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
## 0x06           SL  R/O      1  SMART self-test log
## 0x07       GPL     R/O      1  Extended self-test log
## 0x09           SL  R/W      1  Selective self-test log
## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
## 0x11       GPL     R/O      1  SATA Phy Event Counters log
## 0x21       GPL     R/O      1  Write stream error log
## 0x22       GPL     R/O      1  Read stream error log
## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
## 0xa1       GPL,SL  VS      20  Device vendor specific log
## 0xa2       GPL     VS    4496  Device vendor specific log
## 0xa8       GPL,SL  VS     129  Device vendor specific log
## 0xa9       GPL,SL  VS       1  Device vendor specific log
## 0xab       GPL     VS       1  Device vendor specific log
## 0xb0       GPL     VS    5176  Device vendor specific log
## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
## 0xc0       GPL,SL  VS       1  Device vendor specific log
## 0xc1       GPL,SL  VS      10  Device vendor specific log
## 0xc3       GPL,SL  VS       8  Device vendor specific log
## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
21078         -
##
## 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):       522 (0x020a)
## SCT Support Level:                   1
## Device State:                        Active (0)
## Current Temperature:                    42 Celsius
## Power Cycle Min/Max Temperature:     42/46 Celsius
## Lifetime    Min/Max Temperature:     15/48 Celsius
## Under/Over Temperature Limit Count:   0/0
##
## SCT Data Table command not supported
##
## SCT Error Recovery Control command not supported
##
## Device Statistics (GP/SMART Log 0x04) not supported
##
## SATA Phy Event Counters (GP Log 0x11)
## ID      Size     Value  Description
## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
## 0x0001  2            0  Command failed due to ICRC error
## 0x0003  2            0  R_ERR response for device-to-host data FIS
## 0x0004  2            0  R_ERR response for host-to-device 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
##
## ==output===================================
## ===========================================
## root@jowahome:~# mdadm --examine /dev/sdb
## /dev/sdb:
##    MBR Magic : aa55
## Partition[0] :   4294967295 sectors at            1 (type ee)
##
## ==output===================================
## ===========================================
## root@jowahome:~# mdadm --examine /dev/sdc
## /dev/sdc:
##    MBR Magic : aa55
## Partition[0] :   4294967295 sectors at            1 (type ee)
##
## ==output===================================
## ===========================================
## root@jowahome:~/lsdrv# ./lsdrv
## **Warning** The following utility(ies) failed to execute:
##   sginfo
## Some information may be missing.
##
## PCI [ata_piix] 00:1f.2 IDE interface: Intel Corporation 7
Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode]
(rev 04)
## ├scsi 0:0:0:0 ATA      WDC WD20EARX-00P {WD-WCAZAA923311}
## │└sda 1.82t [8:0] Partitioned (dos)
## │ ├sda1 1.79t [8:1] ext4 {f714c162-9d48-48d1-9b25-34c7a36d0ae5}
## │ │└Mounted as /dev/sda1 @ /
## │ ├sda2 1.00k [8:2] Partitioned (dos)
## │ └sda5 31.78g [8:5] swap {e3367b07-46bf-4903-871f-83f6b8d6d823}
## ├scsi 0:0:1:0 ATA      ST3000DM001-1ER1 {Z5009M1W}
## │└sdb 2.73t [8:16] Partitioned (gpt)
## │ └sdb1 2.73t [8:17] MD raid1 (2) inactive 'jowahome:md2014'
{43dbaec6-5b16-7da8-01bf-232dc218eb6c}
## └scsi 1:0:1:0 ATA      ST3000DM001-1ER1 {Z5009W5Z}
##  └sdc 2.73t [8:32] Partitioned (gpt)
##   └sdc1 2.73t [8:33] MD raid1 (2) inactive 'jowahome:md2014'
{43dbaec6-5b16-7da8-01bf-232dc218eb6c}
## PCI [ata_piix] 00:1f.5 IDE interface: Intel Corporation 7
Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode]
(rev 04)
## ├scsi 2:x:x:x [Empty]
## └scsi 3:0:0:0 ATAPI    DVD A  DH24ACSH  {2A8215504489}
##  └sr0 1.00g [11:0] Empty/Unknown
## USB [usb-storage] Bus 001 Device 003: ID 058f:6362 Alcor Micro
Corp. Flash Card Reader/Writer {058F63626420}
## ├scsi 4:0:0:0 Generic- SD/MMC
## │└sdd 0.00k [8:48] Empty/Unknown
## ├scsi 4:0:0:1 Generic- Compact Flash
## │└sde 0.00k [8:64] Empty/Unknown
## ├scsi 4:0:0:2 Generic- SM/xD Picture
## │└sdf 0.00k [8:80] Empty/Unknown
## └scsi 4:0:0:3 Generic- MS/MS-Pro
##  └sdg 0.00k [8:96] Empty/Unknown
##
## ==output===================================
## ===========================================
## root@jowahome:~/lsdrv# cat /proc/mdstat
## Personalities : [linear] [multipath] [raid0] [raid1] [raid6]
[raid5] [raid4] [raid10]
## unused devices: <none>
##
## ==output===================================
## ===========================================
##


-- 

___________________________
Joel A. Walberg
joel.walberg@gmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 12:06 debian9/raid1 assembly/unexpected failure opening device Joel Walberg
@ 2017-08-31 13:02 ` Jack Wang
  2017-08-31 13:12   ` Joel Walberg
  2017-08-31 13:22 ` Andreas Klauer
  1 sibling, 1 reply; 10+ messages in thread
From: Jack Wang @ 2017-08-31 13:02 UTC (permalink / raw)
  To: Joel Walberg; +Cc: linux-raid

2017-08-31 14:06 GMT+02:00 Joel Walberg <joel.walberg@gmail.com>:
> ## If you have any ideas or suggestions, I would appreciate it.
> ##
> ## ==issue====================================
> ## ===========================================
> ## System has 3 hard drives, 1=OS, 2=RAID1 members
> ## Prior OS: Debian 7
> ## Installed Debian 9 on OS drive, unable to now get RAID1
> assembled/started/missing special device files
> ##
> ## root@jowahome:~# mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
> ## mdadm: unexpected failure opening /dev/md2014
> ## root@jowahome:~# mdadm -A /dev/md/md2014 /dev/sdc1 /dev/sdb1
> ## mdadm: unexpected failure opening /dev/md2014
> ##
Can you do strace and share the output, also better share the dmesg
when it happens?
The metadata looks fine on both drives.


Regards,
Jack

> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# mdadm -E -s
> ## ARRAY /dev/md/md2014  metadata=1.2
> UUID=43dbaec6:5b167da8:01bf232d:c218eb6c name=jowahome:md2014
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# mdadm -E /dev/sdb1
> ## /dev/sdb1:
> ##           Magic : a92b4efc
> ##         Version : 1.2
> ##     Feature Map : 0x0
> ##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
> ##            Name : jowahome:md2014  (local to host jowahome)
> ##   Creation Time : Thu Dec  4 17:44:01 2014
> ##      Raid Level : raid1
> ##    Raid Devices : 2
> ##
> ##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
> ##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
> ##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
> ##     Data Offset : 262144 sectors
> ##    Super Offset : 8 sectors
> ##    Unused Space : before=262064 sectors, after=384 sectors
> ##           State : clean
> ##     Device UUID : 3d78e679:e1ec930a:92f60635:3f8d79b5
> ##
> ##     Update Time : Wed Aug 30 10:01:33 2017
> ##        Checksum : 83624b92 - correct
> ##          Events : 48385
> ##
> ##
> ##    Device Role : Active device 1
> ##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# mdadm -E /dev/sdc1
> ## /dev/sdc1:
> ##           Magic : a92b4efc
> ##         Version : 1.2
> ##     Feature Map : 0x0
> ##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
> ##            Name : jowahome:md2014  (local to host jowahome)
> ##   Creation Time : Thu Dec  4 17:44:01 2014
> ##      Raid Level : raid1
> ##    Raid Devices : 2
> ##
> ##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
> ##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
> ##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
> ##     Data Offset : 262144 sectors
> ##    Super Offset : 8 sectors
> ##    Unused Space : before=262064 sectors, after=384 sectors
> ##           State : clean
> ##     Device UUID : ffb6f0de:43aa75a9:3feb8c8e:b7c41993
> ##
> ##     Update Time : Wed Aug 30 10:01:33 2017
> ##        Checksum : be7473da - correct
> ##          Events : 48385
> ##
> ##
> ##    Device Role : Active device 0
> ##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# smartctl --xall /dev/sdb
> ## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
> ## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
> ##
> ## === START OF INFORMATION SECTION ===
> ## Model Family:     Seagate Barracuda 7200.14 (AF)
> ## Device Model:     ST3000DM001-1ER166
> ## Serial Number:    Z5009M1W
> ## LU WWN Device Id: 5 000c50 07903c6be
> ## Firmware Version: CC43
> ## 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:        In smartctl database [for details use: -P show]
> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
> ## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
> ## SMART support is: Available - device has SMART capability.
> ## SMART support is: Enabled
> ## AAM feature is:   Unavailable
> ## APM level is:     254 (maximum performance)
> ## Rd look-ahead is: Enabled
> ## Write cache is:   Enabled
> ## ATA Security is:  Disabled, frozen [SEC2]
> ## Wt Cache Reorder: Unavailable
> ##
> ## === 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:                (   80) 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:        ( 331) minutes.
> ## Conveyance self-test routine
> ## recommended polling time:        (   2) minutes.
> ## SCT capabilities:              (0x1085) SCT Status supported.
> ##
> ## SMART Attributes Data Structure revision number: 10
> ## Vendor Specific SMART Attributes with Thresholds:
> ## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
> ##   1 Raw_Read_Error_Rate     POSR--   118   099   006    -    186165552
> ##   3 Spin_Up_Time            PO----   094   092   000    -    0
> ##   4 Start_Stop_Count        -O--CK   100   100   020    -    54
> ##   5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
> ##   7 Seek_Error_Rate         POSR--   070   060   030    -    10955017
> ##   9 Power_On_Hours          -O--CK   075   075   000    -    22641
> ##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
> ##  12 Power_Cycle_Count       -O--CK   100   100   020    -    54
> ## 183 Runtime_Bad_Block       -O--CK   100   100   000    -    0
> ## 184 End-to-End_Error        -O--CK   100   100   099    -    0
> ## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
> ## 188 Command_Timeout         -O--CK   100   100   000    -    0 0 0
> ## 189 High_Fly_Writes         -O-RCK   088   088   000    -    12
> ## 190 Airflow_Temperature_Cel -O---K   062   056   045    -    38
> (Min/Max 37/42)
> ## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
> ## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    32
> ## 193 Load_Cycle_Count        -O--CK   100   100   000    -    439
> ## 194 Temperature_Celsius     -O---K   038   044   000    -    38 (0 15 0 0 0)
> ## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
> ## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
> ## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
> ## 240 Head_Flying_Hours       ------   100   253   000    -
> 20087h+17m+38.336s
> ## 241 Total_LBAs_Written      ------   100   253   000    -    40747055745
> ## 242 Total_LBAs_Read         ------   100   253   000    -    208387242739
> ##                             ||||||_ 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
> ## 0x02           SL  R/O      5  Comprehensive SMART error log
> ## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
> ## 0x06           SL  R/O      1  SMART self-test log
> ## 0x07       GPL     R/O      1  Extended self-test log
> ## 0x09           SL  R/W      1  Selective self-test log
> ## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
> ## 0x11       GPL     R/O      1  SATA Phy Event Counters log
> ## 0x21       GPL     R/O      1  Write stream error log
> ## 0x22       GPL     R/O      1  Read stream error log
> ## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
> ## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
> ## 0xa1       GPL,SL  VS      20  Device vendor specific log
> ## 0xa2       GPL     VS    4496  Device vendor specific log
> ## 0xa8       GPL,SL  VS     129  Device vendor specific log
> ## 0xa9       GPL,SL  VS       1  Device vendor specific log
> ## 0xab       GPL     VS       1  Device vendor specific log
> ## 0xb0       GPL     VS    5176  Device vendor specific log
> ## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
> ## 0xc0       GPL,SL  VS       1  Device vendor specific log
> ## 0xc1       GPL,SL  VS      10  Device vendor specific log
> ## 0xc3       GPL,SL  VS       8  Device vendor specific log
> ## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
> 21086         -
> ##
> ## 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):       522 (0x020a)
> ## SCT Support Level:                   1
> ## Device State:                        Active (0)
> ## Current Temperature:                    38 Celsius
> ## Power Cycle Min/Max Temperature:     37/41 Celsius
> ## Lifetime    Min/Max Temperature:     15/44 Celsius
> ## Under/Over Temperature Limit Count:   0/0
> ##
> ## SCT Data Table command not supported
> ##
> ## SCT Error Recovery Control command not supported
> ##
> ## Device Statistics (GP/SMART Log 0x04) not supported
> ##
> ## SATA Phy Event Counters (GP Log 0x11)
> ## ID      Size     Value  Description
> ## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
> ## 0x0001  2            0  Command failed due to ICRC error
> ## 0x0003  2            0  R_ERR response for device-to-host data FIS
> ## 0x0004  2            0  R_ERR response for host-to-device 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
> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# smartctl --xall /dev/sdc
> ## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
> ## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
> ##
> ## === START OF INFORMATION SECTION ===
> ## Model Family:     Seagate Barracuda 7200.14 (AF)
> ## Device Model:     ST3000DM001-1ER166
> ## Serial Number:    Z5009W5Z
> ## LU WWN Device Id: 5 000c50 079052344
> ## Firmware Version: CC43
> ## 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:        In smartctl database [for details use: -P show]
> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
> ## Local Time is:    Thu Aug 31 05:31:41 2017 MDT
> ## SMART support is: Available - device has SMART capability.
> ## SMART support is: Enabled
> ## AAM feature is:   Unavailable
> ## APM level is:     254 (maximum performance)
> ## Rd look-ahead is: Enabled
> ## Write cache is:   Enabled
> ## ATA Security is:  Disabled, frozen [SEC2]
> ## Wt Cache Reorder: Unavailable
> ##
> ## === 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:                (   89) 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:        ( 332) minutes.
> ## Conveyance self-test routine
> ## recommended polling time:        (   2) minutes.
> ## SCT capabilities:              (0x1085) SCT Status supported.
> ##
> ## SMART Attributes Data Structure revision number: 10
> ## Vendor Specific SMART Attributes with Thresholds:
> ## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
> ##   1 Raw_Read_Error_Rate     POSR--   119   099   006    -    205036280
> ##   3 Spin_Up_Time            PO----   094   093   000    -    0
> ##   4 Start_Stop_Count        -O--CK   100   100   020    -    59
> ##   5 Reallocated_Sector_Ct   PO--CK   097   097   010    -    3344
> ##   7 Seek_Error_Rate         POSR--   070   060   030    -    11270536
> ##   9 Power_On_Hours          -O--CK   075   075   000    -    22632
> ##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
> ##  12 Power_Cycle_Count       -O--CK   100   100   020    -    60
> ## 183 Runtime_Bad_Block       -O--CK   098   098   000    -    2
> ## 184 End-to-End_Error        -O--CK   100   100   099    -    0
> ## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
> ## 188 Command_Timeout         -O--CK   100   098   000    -    5 5 5
> ## 189 High_Fly_Writes         -O-RCK   099   099   000    -    1
> ## 190 Airflow_Temperature_Cel -O---K   057   052   045    -    43
> (Min/Max 42/46)
> ## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
> ## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    34
> ## 193 Load_Cycle_Count        -O--CK   100   100   000    -    456
> ## 194 Temperature_Celsius     -O---K   043   048   000    -    43 (0 15 0 0 0)
> ## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
> ## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
> ## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
> ## 240 Head_Flying_Hours       ------   100   253   000    -
> 20088h+20m+07.582s
> ## 241 Total_LBAs_Written      ------   100   253   000    -    24949386363
> ## 242 Total_LBAs_Read         ------   100   253   000    -    226511888729
> ##                             ||||||_ 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
> ## 0x02           SL  R/O      5  Comprehensive SMART error log
> ## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
> ## 0x06           SL  R/O      1  SMART self-test log
> ## 0x07       GPL     R/O      1  Extended self-test log
> ## 0x09           SL  R/W      1  Selective self-test log
> ## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
> ## 0x11       GPL     R/O      1  SATA Phy Event Counters log
> ## 0x21       GPL     R/O      1  Write stream error log
> ## 0x22       GPL     R/O      1  Read stream error log
> ## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
> ## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
> ## 0xa1       GPL,SL  VS      20  Device vendor specific log
> ## 0xa2       GPL     VS    4496  Device vendor specific log
> ## 0xa8       GPL,SL  VS     129  Device vendor specific log
> ## 0xa9       GPL,SL  VS       1  Device vendor specific log
> ## 0xab       GPL     VS       1  Device vendor specific log
> ## 0xb0       GPL     VS    5176  Device vendor specific log
> ## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
> ## 0xc0       GPL,SL  VS       1  Device vendor specific log
> ## 0xc1       GPL,SL  VS      10  Device vendor specific log
> ## 0xc3       GPL,SL  VS       8  Device vendor specific log
> ## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
> 21078         -
> ##
> ## 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):       522 (0x020a)
> ## SCT Support Level:                   1
> ## Device State:                        Active (0)
> ## Current Temperature:                    42 Celsius
> ## Power Cycle Min/Max Temperature:     42/46 Celsius
> ## Lifetime    Min/Max Temperature:     15/48 Celsius
> ## Under/Over Temperature Limit Count:   0/0
> ##
> ## SCT Data Table command not supported
> ##
> ## SCT Error Recovery Control command not supported
> ##
> ## Device Statistics (GP/SMART Log 0x04) not supported
> ##
> ## SATA Phy Event Counters (GP Log 0x11)
> ## ID      Size     Value  Description
> ## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
> ## 0x0001  2            0  Command failed due to ICRC error
> ## 0x0003  2            0  R_ERR response for device-to-host data FIS
> ## 0x0004  2            0  R_ERR response for host-to-device 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
> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# mdadm --examine /dev/sdb
> ## /dev/sdb:
> ##    MBR Magic : aa55
> ## Partition[0] :   4294967295 sectors at            1 (type ee)
> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~# mdadm --examine /dev/sdc
> ## /dev/sdc:
> ##    MBR Magic : aa55
> ## Partition[0] :   4294967295 sectors at            1 (type ee)
> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~/lsdrv# ./lsdrv
> ## **Warning** The following utility(ies) failed to execute:
> ##   sginfo
> ## Some information may be missing.
> ##
> ## PCI [ata_piix] 00:1f.2 IDE interface: Intel Corporation 7
> Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode]
> (rev 04)
> ## ├scsi 0:0:0:0 ATA      WDC WD20EARX-00P {WD-WCAZAA923311}
> ## │└sda 1.82t [8:0] Partitioned (dos)
> ## │ ├sda1 1.79t [8:1] ext4 {f714c162-9d48-48d1-9b25-34c7a36d0ae5}
> ## │ │└Mounted as /dev/sda1 @ /
> ## │ ├sda2 1.00k [8:2] Partitioned (dos)
> ## │ └sda5 31.78g [8:5] swap {e3367b07-46bf-4903-871f-83f6b8d6d823}
> ## ├scsi 0:0:1:0 ATA      ST3000DM001-1ER1 {Z5009M1W}
> ## │└sdb 2.73t [8:16] Partitioned (gpt)
> ## │ └sdb1 2.73t [8:17] MD raid1 (2) inactive 'jowahome:md2014'
> {43dbaec6-5b16-7da8-01bf-232dc218eb6c}
> ## └scsi 1:0:1:0 ATA      ST3000DM001-1ER1 {Z5009W5Z}
> ##  └sdc 2.73t [8:32] Partitioned (gpt)
> ##   └sdc1 2.73t [8:33] MD raid1 (2) inactive 'jowahome:md2014'
> {43dbaec6-5b16-7da8-01bf-232dc218eb6c}
> ## PCI [ata_piix] 00:1f.5 IDE interface: Intel Corporation 7
> Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode]
> (rev 04)
> ## ├scsi 2:x:x:x [Empty]
> ## └scsi 3:0:0:0 ATAPI    DVD A  DH24ACSH  {2A8215504489}
> ##  └sr0 1.00g [11:0] Empty/Unknown
> ## USB [usb-storage] Bus 001 Device 003: ID 058f:6362 Alcor Micro
> Corp. Flash Card Reader/Writer {058F63626420}
> ## ├scsi 4:0:0:0 Generic- SD/MMC
> ## │└sdd 0.00k [8:48] Empty/Unknown
> ## ├scsi 4:0:0:1 Generic- Compact Flash
> ## │└sde 0.00k [8:64] Empty/Unknown
> ## ├scsi 4:0:0:2 Generic- SM/xD Picture
> ## │└sdf 0.00k [8:80] Empty/Unknown
> ## └scsi 4:0:0:3 Generic- MS/MS-Pro
> ##  └sdg 0.00k [8:96] Empty/Unknown
> ##
> ## ==output===================================
> ## ===========================================
> ## root@jowahome:~/lsdrv# cat /proc/mdstat
> ## Personalities : [linear] [multipath] [raid0] [raid1] [raid6]
> [raid5] [raid4] [raid10]
> ## unused devices: <none>
> ##
> ## ==output===================================
> ## ===========================================
> ##
>
>
> --
>
> ___________________________
> Joel A. Walberg
> joel.walberg@gmail.com
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 13:02 ` Jack Wang
@ 2017-08-31 13:12   ` Joel Walberg
  2017-08-31 14:32     ` Wols Lists
  0 siblings, 1 reply; 10+ messages in thread
From: Joel Walberg @ 2017-08-31 13:12 UTC (permalink / raw)
  To: Jack Wang; +Cc: linux-raid

root@jowahome:~# dmesg >before
root@jowahome:~# strace mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
execve("/sbin/mdadm", ["mdadm", "-A", "/dev/md2014", "/dev/sdc1",
"/dev/sdb1"], [/* 15 vars */]) = 0
brk(NULL)                               = 0x55b9563e6000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7faf336f6000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116207, ...}) = 0
mmap(NULL, 116207, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf336d9000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\r\0\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14640, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7faf332d2000
mprotect(0x7faf332d5000, 2093056, PROT_NONE) = 0
mmap(0x7faf334d4000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7faf334d4000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\3\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1689360, ...}) = 0
mmap(NULL, 3795360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x7faf32f33000
mprotect(0x7faf330c8000, 2097152, PROT_NONE) = 0
mmap(0x7faf332c8000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x195000) = 0x7faf332c8000
mmap(0x7faf332ce000, 14752, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7faf332ce000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x7faf336d7000
arch_prctl(ARCH_SET_FS, 0x7faf336d7700) = 0
mprotect(0x7faf332c8000, 16384, PROT_READ) = 0
mprotect(0x7faf334d4000, 4096, PROT_READ) = 0
mprotect(0x55b9558df000, 4096, PROT_READ) = 0
mprotect(0x7faf336f9000, 4096, PROT_READ) = 0
munmap(0x7faf336d9000, 116207)          = 0
getpid()                                = 19817
brk(NULL)                               = 0x55b9563e6000
brk(0x55b956407000)                     = 0x55b956407000
open("/dev/md2014", O_RDWR)             = -1 ENOENT (No such file or directory)
open("/etc/mdadm/mdadm.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0
read(3, "# mdadm.conf\n#\n# Please refer to"..., 4096) = 662
read(3, "", 4096)                       = 0
read(3, "", 4096)                       = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=662, ...}) = 0
close(3)                                = 0
open("/etc/mdadm/mdadm.conf.d", O_RDONLY) = -1 ENOENT (No such file or
directory)
uname({sysname="Linux", nodename="jowahome", ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116207, ...}) = 0
mmap(NULL, 116207, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf336d9000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/tls/x86_64/libdlm_lt.so.3",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffdf2b634c0) = -1 ENOENT
(No such file or directory)
open("/lib/x86_64-linux-gnu/tls/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/tls", 0x7ffdf2b634c0) = -1 ENOENT (No such
file or directory)
open("/lib/x86_64-linux-gnu/x86_64/libdlm_lt.so.3",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu/x86_64", 0x7ffdf2b634c0) = -1 ENOENT (No
such file or directory)
open("/lib/x86_64-linux-gnu/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
stat("/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=12288, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/tls/x86_64/libdlm_lt.so.3",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffdf2b634c0) = -1
ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/tls/libdlm_lt.so.3",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/tls", 0x7ffdf2b634c0) = -1 ENOENT (No
such file or directory)
open("/usr/lib/x86_64-linux-gnu/x86_64/libdlm_lt.so.3",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/x86_64", 0x7ffdf2b634c0) = -1 ENOENT
(No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755,
st_size=90112, ...}) = 0
open("/lib/tls/x86_64/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
stat("/lib/tls/x86_64", 0x7ffdf2b634c0) = -1 ENOENT (No such file or directory)
open("/lib/tls/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
stat("/lib/tls", 0x7ffdf2b634c0)        = -1 ENOENT (No such file or directory)
open("/lib/x86_64/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
stat("/lib/x86_64", 0x7ffdf2b634c0)     = -1 ENOENT (No such file or directory)
open("/lib/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
stat("/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/usr/lib/tls/x86_64/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
stat("/usr/lib/tls/x86_64", 0x7ffdf2b634c0) = -1 ENOENT (No such file
or directory)
open("/usr/lib/tls/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
stat("/usr/lib/tls", 0x7ffdf2b634c0)    = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT
(No such file or directory)
stat("/usr/lib/x86_64", 0x7ffdf2b634c0) = -1 ENOENT (No such file or directory)
open("/usr/lib/libdlm_lt.so.3", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No
such file or directory)
stat("/usr/lib", {st_mode=S_IFDIR|0755, st_size=16384, ...}) = 0
munmap(0x7faf336d9000, 116207)          = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116207, ...}) = 0
mmap(NULL, 116207, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faf336d9000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libcmap.so.4", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libcmap.so.4", O_RDONLY|O_CLOEXEC) =
-1 ENOENT (No such file or directory)
open("/lib/libcmap.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
open("/usr/lib/libcmap.so.4", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
munmap(0x7faf336d9000, 116207)          = 0
geteuid()                               = 0
open("/dev/sdc1", O_RDONLY|O_DIRECT)    = 3
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, RAID_VERSION, 0x7ffdf2b63450)  = -1 ENOTTY (Inappropriate
ioctl for device)
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 3000591384576, SEEK_SET)       = 3000591384576
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
ioctl(3, BLKSSZGET, [512])              = 0
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 3000591441920, SEEK_SET)       = 3000591441920
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 3000591446016
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 4096
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152,
data={start=0, length=0, pno=1073741824, devname="", volname=""}}) =
-1 EINVAL (Invalid argument)
ioctl(3, BLKPG, {BLKPG_DEL_PARTITION, flags=0, datalen=152,
data={start=0, length=0, pno=1073741824, devname="", volname=""}}) =
-1 EINVAL (Invalid argument)
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
512) = 512
ioctl(3, BLKSSZGET, [512])              = 0
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 3000591441920, SEEK_SET)       = 3000591441920
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 3000591446016
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 4096
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 33), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
close(3)                                = 0
open("/dev/sdc1", O_RDONLY|O_EXCL|O_DIRECT) = 3
close(3)                                = 0
stat("/sys/dev/block/8:33/partition", {st_mode=S_IFREG|0444,
st_size=4096, ...}) = 0
open("/dev/sdb1", O_RDONLY|O_DIRECT)    = 3
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
ioctl(3, RAID_VERSION, 0x7ffdf2b63450)  = -1 ENOTTY (Inappropriate
ioctl for device)
ioctl(3, BLKSSZGET, [512])              = 0
fstat(3, {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
ioctl(3, BLKGETSIZE64, [3000591450112]) = 0
lseek(3, 4096, SEEK_SET)                = 4096
read(3, "\374N+\251\1\0\0\0\0\0\0\0\0\0\0\0C\333\256\306[\26}\250\1\277#-\302\30\353l"...,
4096) = 4096
lseek(3, 0, SEEK_CUR)                   = 8192
close(3)                                = 0
open("/dev/sdb1", O_RDONLY|O_EXCL|O_DIRECT) = 3
close(3)                                = 0
stat("/sys/dev/block/8:17/partition", {st_mode=S_IFREG|0444,
st_size=4096, ...}) = 0
mkdir("/run/mdadm", 0755)               = -1 EEXIST (File exists)
open("/run/mdadm/map.lock", O_RDWR|O_CREAT|O_TRUNC, 0600) = 3
fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
flock(3, LOCK_EX)                       = 0
fstat(3, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
open("/run/mdadm/map", O_RDONLY)        = 4
fcntl(4, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
read(4, "", 4096)                       = 0
close(4)                                = 0
open("/run/mdadm/map", O_RDONLY)        = 4
fcntl(4, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(4, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
read(4, "", 4096)                       = 0
close(4)                                = 0
open("/proc/mdstat", O_RDONLY)          = 4
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(4, "Personalities : [linear] [multip"..., 1024) = 110
read(4, "", 1024)                       = 0
read(4, "", 1024)                       = 0
close(4)                                = 0
stat("/dev/.udev", 0x7ffdf2b631f0)      = -1 ENOENT (No such file or directory)
stat("/run/udev", {st_mode=S_IFDIR|0755, st_size=220, ...}) = 0
open("/sys/block/md2014/dev", O_RDONLY) = -1 ENOENT (No such file or directory)
getpid()                                = 19817
mknod("/dev/.tmp.md.19817:9:2014", S_IFBLK|0600, makedev(9, 2014)) = 0
open("/dev/.tmp.md.19817:9:2014", O_RDWR|O_EXCL|O_DIRECT) = -1 ENXIO
(No such device or address)
unlink("/dev/.tmp.md.19817:9:2014")     = 0
getpid()                                = 19817
mknod("/tmp/.tmp.md.19817:9:2014", S_IFBLK|0600, makedev(9, 2014)) = 0
open("/tmp/.tmp.md.19817:9:2014", O_RDWR|O_EXCL|O_DIRECT) = -1 ENXIO
(No such device or address)
unlink("/tmp/.tmp.md.19817:9:2014")     = 0
write(2, "mdadm: unexpected failure openin"..., 46mdadm: unexpected
failure opening /dev/md2014
) = 46
exit_group(1)                           = ?
+++ exited with 1 +++
root@jowahome:~# dmesg >after
root@jowahome:~# diff before after

On Thu, Aug 31, 2017 at 7:02 AM, Jack Wang <jack.wang.usish@gmail.com> wrote:
> 2017-08-31 14:06 GMT+02:00 Joel Walberg <joel.walberg@gmail.com>:
>> ## If you have any ideas or suggestions, I would appreciate it.
>> ##
>> ## ==issue====================================
>> ## ===========================================
>> ## System has 3 hard drives, 1=OS, 2=RAID1 members
>> ## Prior OS: Debian 7
>> ## Installed Debian 9 on OS drive, unable to now get RAID1
>> assembled/started/missing special device files
>> ##
>> ## root@jowahome:~# mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
>> ## mdadm: unexpected failure opening /dev/md2014
>> ## root@jowahome:~# mdadm -A /dev/md/md2014 /dev/sdc1 /dev/sdb1
>> ## mdadm: unexpected failure opening /dev/md2014
>> ##
> Can you do strace and share the output, also better share the dmesg
> when it happens?
> The metadata looks fine on both drives.
>
>
> Regards,
> Jack
>
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# mdadm -E -s
>> ## ARRAY /dev/md/md2014  metadata=1.2
>> UUID=43dbaec6:5b167da8:01bf232d:c218eb6c name=jowahome:md2014
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# mdadm -E /dev/sdb1
>> ## /dev/sdb1:
>> ##           Magic : a92b4efc
>> ##         Version : 1.2
>> ##     Feature Map : 0x0
>> ##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
>> ##            Name : jowahome:md2014  (local to host jowahome)
>> ##   Creation Time : Thu Dec  4 17:44:01 2014
>> ##      Raid Level : raid1
>> ##    Raid Devices : 2
>> ##
>> ##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
>> ##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
>> ##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
>> ##     Data Offset : 262144 sectors
>> ##    Super Offset : 8 sectors
>> ##    Unused Space : before=262064 sectors, after=384 sectors
>> ##           State : clean
>> ##     Device UUID : 3d78e679:e1ec930a:92f60635:3f8d79b5
>> ##
>> ##     Update Time : Wed Aug 30 10:01:33 2017
>> ##        Checksum : 83624b92 - correct
>> ##          Events : 48385
>> ##
>> ##
>> ##    Device Role : Active device 1
>> ##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# mdadm -E /dev/sdc1
>> ## /dev/sdc1:
>> ##           Magic : a92b4efc
>> ##         Version : 1.2
>> ##     Feature Map : 0x0
>> ##      Array UUID : 43dbaec6:5b167da8:01bf232d:c218eb6c
>> ##            Name : jowahome:md2014  (local to host jowahome)
>> ##   Creation Time : Thu Dec  4 17:44:01 2014
>> ##      Raid Level : raid1
>> ##    Raid Devices : 2
>> ##
>> ##  Avail Dev Size : 5860268032 (2794.39 GiB 3000.46 GB)
>> ##      Array Size : 2930133824 (2794.39 GiB 3000.46 GB)
>> ##   Used Dev Size : 5860267648 (2794.39 GiB 3000.46 GB)
>> ##     Data Offset : 262144 sectors
>> ##    Super Offset : 8 sectors
>> ##    Unused Space : before=262064 sectors, after=384 sectors
>> ##           State : clean
>> ##     Device UUID : ffb6f0de:43aa75a9:3feb8c8e:b7c41993
>> ##
>> ##     Update Time : Wed Aug 30 10:01:33 2017
>> ##        Checksum : be7473da - correct
>> ##          Events : 48385
>> ##
>> ##
>> ##    Device Role : Active device 0
>> ##    Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# smartctl --xall /dev/sdb
>> ## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
>> ## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
>> ##
>> ## === START OF INFORMATION SECTION ===
>> ## Model Family:     Seagate Barracuda 7200.14 (AF)
>> ## Device Model:     ST3000DM001-1ER166
>> ## Serial Number:    Z5009M1W
>> ## LU WWN Device Id: 5 000c50 07903c6be
>> ## Firmware Version: CC43
>> ## 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:        In smartctl database [for details use: -P show]
>> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
>> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
>> ## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
>> ## SMART support is: Available - device has SMART capability.
>> ## SMART support is: Enabled
>> ## AAM feature is:   Unavailable
>> ## APM level is:     254 (maximum performance)
>> ## Rd look-ahead is: Enabled
>> ## Write cache is:   Enabled
>> ## ATA Security is:  Disabled, frozen [SEC2]
>> ## Wt Cache Reorder: Unavailable
>> ##
>> ## === 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:                (   80) 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:        ( 331) minutes.
>> ## Conveyance self-test routine
>> ## recommended polling time:        (   2) minutes.
>> ## SCT capabilities:              (0x1085) SCT Status supported.
>> ##
>> ## SMART Attributes Data Structure revision number: 10
>> ## Vendor Specific SMART Attributes with Thresholds:
>> ## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
>> ##   1 Raw_Read_Error_Rate     POSR--   118   099   006    -    186165552
>> ##   3 Spin_Up_Time            PO----   094   092   000    -    0
>> ##   4 Start_Stop_Count        -O--CK   100   100   020    -    54
>> ##   5 Reallocated_Sector_Ct   PO--CK   100   100   010    -    0
>> ##   7 Seek_Error_Rate         POSR--   070   060   030    -    10955017
>> ##   9 Power_On_Hours          -O--CK   075   075   000    -    22641
>> ##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
>> ##  12 Power_Cycle_Count       -O--CK   100   100   020    -    54
>> ## 183 Runtime_Bad_Block       -O--CK   100   100   000    -    0
>> ## 184 End-to-End_Error        -O--CK   100   100   099    -    0
>> ## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
>> ## 188 Command_Timeout         -O--CK   100   100   000    -    0 0 0
>> ## 189 High_Fly_Writes         -O-RCK   088   088   000    -    12
>> ## 190 Airflow_Temperature_Cel -O---K   062   056   045    -    38
>> (Min/Max 37/42)
>> ## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
>> ## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    32
>> ## 193 Load_Cycle_Count        -O--CK   100   100   000    -    439
>> ## 194 Temperature_Celsius     -O---K   038   044   000    -    38 (0 15 0 0 0)
>> ## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
>> ## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
>> ## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
>> ## 240 Head_Flying_Hours       ------   100   253   000    -
>> 20087h+17m+38.336s
>> ## 241 Total_LBAs_Written      ------   100   253   000    -    40747055745
>> ## 242 Total_LBAs_Read         ------   100   253   000    -    208387242739
>> ##                             ||||||_ 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
>> ## 0x02           SL  R/O      5  Comprehensive SMART error log
>> ## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
>> ## 0x06           SL  R/O      1  SMART self-test log
>> ## 0x07       GPL     R/O      1  Extended self-test log
>> ## 0x09           SL  R/W      1  Selective self-test log
>> ## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
>> ## 0x11       GPL     R/O      1  SATA Phy Event Counters log
>> ## 0x21       GPL     R/O      1  Write stream error log
>> ## 0x22       GPL     R/O      1  Read stream error log
>> ## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
>> ## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
>> ## 0xa1       GPL,SL  VS      20  Device vendor specific log
>> ## 0xa2       GPL     VS    4496  Device vendor specific log
>> ## 0xa8       GPL,SL  VS     129  Device vendor specific log
>> ## 0xa9       GPL,SL  VS       1  Device vendor specific log
>> ## 0xab       GPL     VS       1  Device vendor specific log
>> ## 0xb0       GPL     VS    5176  Device vendor specific log
>> ## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
>> ## 0xc0       GPL,SL  VS       1  Device vendor specific log
>> ## 0xc1       GPL,SL  VS      10  Device vendor specific log
>> ## 0xc3       GPL,SL  VS       8  Device vendor specific log
>> ## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
>> 21086         -
>> ##
>> ## 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):       522 (0x020a)
>> ## SCT Support Level:                   1
>> ## Device State:                        Active (0)
>> ## Current Temperature:                    38 Celsius
>> ## Power Cycle Min/Max Temperature:     37/41 Celsius
>> ## Lifetime    Min/Max Temperature:     15/44 Celsius
>> ## Under/Over Temperature Limit Count:   0/0
>> ##
>> ## SCT Data Table command not supported
>> ##
>> ## SCT Error Recovery Control command not supported
>> ##
>> ## Device Statistics (GP/SMART Log 0x04) not supported
>> ##
>> ## SATA Phy Event Counters (GP Log 0x11)
>> ## ID      Size     Value  Description
>> ## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
>> ## 0x0001  2            0  Command failed due to ICRC error
>> ## 0x0003  2            0  R_ERR response for device-to-host data FIS
>> ## 0x0004  2            0  R_ERR response for host-to-device 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
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# smartctl --xall /dev/sdc
>> ## smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.9.0-3-amd64] (local build)
>> ## Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
>> ##
>> ## === START OF INFORMATION SECTION ===
>> ## Model Family:     Seagate Barracuda 7200.14 (AF)
>> ## Device Model:     ST3000DM001-1ER166
>> ## Serial Number:    Z5009W5Z
>> ## LU WWN Device Id: 5 000c50 079052344
>> ## Firmware Version: CC43
>> ## 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:        In smartctl database [for details use: -P show]
>> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
>> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
>> ## Local Time is:    Thu Aug 31 05:31:41 2017 MDT
>> ## SMART support is: Available - device has SMART capability.
>> ## SMART support is: Enabled
>> ## AAM feature is:   Unavailable
>> ## APM level is:     254 (maximum performance)
>> ## Rd look-ahead is: Enabled
>> ## Write cache is:   Enabled
>> ## ATA Security is:  Disabled, frozen [SEC2]
>> ## Wt Cache Reorder: Unavailable
>> ##
>> ## === 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:                (   89) 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:        ( 332) minutes.
>> ## Conveyance self-test routine
>> ## recommended polling time:        (   2) minutes.
>> ## SCT capabilities:              (0x1085) SCT Status supported.
>> ##
>> ## SMART Attributes Data Structure revision number: 10
>> ## Vendor Specific SMART Attributes with Thresholds:
>> ## ID# ATTRIBUTE_NAME          FLAGS    VALUE WORST THRESH FAIL RAW_VALUE
>> ##   1 Raw_Read_Error_Rate     POSR--   119   099   006    -    205036280
>> ##   3 Spin_Up_Time            PO----   094   093   000    -    0
>> ##   4 Start_Stop_Count        -O--CK   100   100   020    -    59
>> ##   5 Reallocated_Sector_Ct   PO--CK   097   097   010    -    3344
>> ##   7 Seek_Error_Rate         POSR--   070   060   030    -    11270536
>> ##   9 Power_On_Hours          -O--CK   075   075   000    -    22632
>> ##  10 Spin_Retry_Count        PO--C-   100   100   097    -    0
>> ##  12 Power_Cycle_Count       -O--CK   100   100   020    -    60
>> ## 183 Runtime_Bad_Block       -O--CK   098   098   000    -    2
>> ## 184 End-to-End_Error        -O--CK   100   100   099    -    0
>> ## 187 Reported_Uncorrect      -O--CK   100   100   000    -    0
>> ## 188 Command_Timeout         -O--CK   100   098   000    -    5 5 5
>> ## 189 High_Fly_Writes         -O-RCK   099   099   000    -    1
>> ## 190 Airflow_Temperature_Cel -O---K   057   052   045    -    43
>> (Min/Max 42/46)
>> ## 191 G-Sense_Error_Rate      -O--CK   100   100   000    -    0
>> ## 192 Power-Off_Retract_Count -O--CK   100   100   000    -    34
>> ## 193 Load_Cycle_Count        -O--CK   100   100   000    -    456
>> ## 194 Temperature_Celsius     -O---K   043   048   000    -    43 (0 15 0 0 0)
>> ## 197 Current_Pending_Sector  -O--C-   100   100   000    -    0
>> ## 198 Offline_Uncorrectable   ----C-   100   100   000    -    0
>> ## 199 UDMA_CRC_Error_Count    -OSRCK   200   200   000    -    0
>> ## 240 Head_Flying_Hours       ------   100   253   000    -
>> 20088h+20m+07.582s
>> ## 241 Total_LBAs_Written      ------   100   253   000    -    24949386363
>> ## 242 Total_LBAs_Read         ------   100   253   000    -    226511888729
>> ##                             ||||||_ 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
>> ## 0x02           SL  R/O      5  Comprehensive SMART error log
>> ## 0x03       GPL     R/O      5  Ext. Comprehensive SMART error log
>> ## 0x06           SL  R/O      1  SMART self-test log
>> ## 0x07       GPL     R/O      1  Extended self-test log
>> ## 0x09           SL  R/W      1  Selective self-test log
>> ## 0x10       GPL     R/O      1  SATA NCQ Queued Error log
>> ## 0x11       GPL     R/O      1  SATA Phy Event Counters log
>> ## 0x21       GPL     R/O      1  Write stream error log
>> ## 0x22       GPL     R/O      1  Read stream error log
>> ## 0x30       GPL,SL  R/O      9  IDENTIFY DEVICE data log
>> ## 0x80-0x9f  GPL,SL  R/W     16  Host vendor specific log
>> ## 0xa1       GPL,SL  VS      20  Device vendor specific log
>> ## 0xa2       GPL     VS    4496  Device vendor specific log
>> ## 0xa8       GPL,SL  VS     129  Device vendor specific log
>> ## 0xa9       GPL,SL  VS       1  Device vendor specific log
>> ## 0xab       GPL     VS       1  Device vendor specific log
>> ## 0xb0       GPL     VS    5176  Device vendor specific log
>> ## 0xbe-0xbf  GPL     VS   65535  Device vendor specific log
>> ## 0xc0       GPL,SL  VS       1  Device vendor specific log
>> ## 0xc1       GPL,SL  VS      10  Device vendor specific log
>> ## 0xc3       GPL,SL  VS       8  Device vendor specific log
>> ## 0xc4       GPL,SL  VS       5  Device 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 (5 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%
>> 21078         -
>> ##
>> ## 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):       522 (0x020a)
>> ## SCT Support Level:                   1
>> ## Device State:                        Active (0)
>> ## Current Temperature:                    42 Celsius
>> ## Power Cycle Min/Max Temperature:     42/46 Celsius
>> ## Lifetime    Min/Max Temperature:     15/48 Celsius
>> ## Under/Over Temperature Limit Count:   0/0
>> ##
>> ## SCT Data Table command not supported
>> ##
>> ## SCT Error Recovery Control command not supported
>> ##
>> ## Device Statistics (GP/SMART Log 0x04) not supported
>> ##
>> ## SATA Phy Event Counters (GP Log 0x11)
>> ## ID      Size     Value  Description
>> ## 0x000a  2           18  Device-to-host register FISes sent due to a COMRESET
>> ## 0x0001  2            0  Command failed due to ICRC error
>> ## 0x0003  2            0  R_ERR response for device-to-host data FIS
>> ## 0x0004  2            0  R_ERR response for host-to-device 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
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# mdadm --examine /dev/sdb
>> ## /dev/sdb:
>> ##    MBR Magic : aa55
>> ## Partition[0] :   4294967295 sectors at            1 (type ee)
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~# mdadm --examine /dev/sdc
>> ## /dev/sdc:
>> ##    MBR Magic : aa55
>> ## Partition[0] :   4294967295 sectors at            1 (type ee)
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~/lsdrv# ./lsdrv
>> ## **Warning** The following utility(ies) failed to execute:
>> ##   sginfo
>> ## Some information may be missing.
>> ##
>> ## PCI [ata_piix] 00:1f.2 IDE interface: Intel Corporation 7
>> Series/C210 Series Chipset Family 4-port SATA Controller [IDE mode]
>> (rev 04)
>> ## ├scsi 0:0:0:0 ATA      WDC WD20EARX-00P {WD-WCAZAA923311}
>> ## │└sda 1.82t [8:0] Partitioned (dos)
>> ## │ ├sda1 1.79t [8:1] ext4 {f714c162-9d48-48d1-9b25-34c7a36d0ae5}
>> ## │ │└Mounted as /dev/sda1 @ /
>> ## │ ├sda2 1.00k [8:2] Partitioned (dos)
>> ## │ └sda5 31.78g [8:5] swap {e3367b07-46bf-4903-871f-83f6b8d6d823}
>> ## ├scsi 0:0:1:0 ATA      ST3000DM001-1ER1 {Z5009M1W}
>> ## │└sdb 2.73t [8:16] Partitioned (gpt)
>> ## │ └sdb1 2.73t [8:17] MD raid1 (2) inactive 'jowahome:md2014'
>> {43dbaec6-5b16-7da8-01bf-232dc218eb6c}
>> ## └scsi 1:0:1:0 ATA      ST3000DM001-1ER1 {Z5009W5Z}
>> ##  └sdc 2.73t [8:32] Partitioned (gpt)
>> ##   └sdc1 2.73t [8:33] MD raid1 (2) inactive 'jowahome:md2014'
>> {43dbaec6-5b16-7da8-01bf-232dc218eb6c}
>> ## PCI [ata_piix] 00:1f.5 IDE interface: Intel Corporation 7
>> Series/C210 Series Chipset Family 2-port SATA Controller [IDE mode]
>> (rev 04)
>> ## ├scsi 2:x:x:x [Empty]
>> ## └scsi 3:0:0:0 ATAPI    DVD A  DH24ACSH  {2A8215504489}
>> ##  └sr0 1.00g [11:0] Empty/Unknown
>> ## USB [usb-storage] Bus 001 Device 003: ID 058f:6362 Alcor Micro
>> Corp. Flash Card Reader/Writer {058F63626420}
>> ## ├scsi 4:0:0:0 Generic- SD/MMC
>> ## │└sdd 0.00k [8:48] Empty/Unknown
>> ## ├scsi 4:0:0:1 Generic- Compact Flash
>> ## │└sde 0.00k [8:64] Empty/Unknown
>> ## ├scsi 4:0:0:2 Generic- SM/xD Picture
>> ## │└sdf 0.00k [8:80] Empty/Unknown
>> ## └scsi 4:0:0:3 Generic- MS/MS-Pro
>> ##  └sdg 0.00k [8:96] Empty/Unknown
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ## root@jowahome:~/lsdrv# cat /proc/mdstat
>> ## Personalities : [linear] [multipath] [raid0] [raid1] [raid6]
>> [raid5] [raid4] [raid10]
>> ## unused devices: <none>
>> ##
>> ## ==output===================================
>> ## ===========================================
>> ##
>>
>>
>> --
>>
>> ___________________________
>> Joel A. Walberg
>> joel.walberg@gmail.com
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 

___________________________
Joel A. Walberg
joel.walberg@gmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 12:06 debian9/raid1 assembly/unexpected failure opening device Joel Walberg
  2017-08-31 13:02 ` Jack Wang
@ 2017-08-31 13:22 ` Andreas Klauer
  2017-08-31 13:27   ` Joel Walberg
  1 sibling, 1 reply; 10+ messages in thread
From: Andreas Klauer @ 2017-08-31 13:22 UTC (permalink / raw)
  To: Joel Walberg; +Cc: linux-raid

On Thu, Aug 31, 2017 at 06:06:42AM -0600, Joel Walberg wrote:
> ## root@jowahome:~# mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
> ## mdadm: unexpected failure opening /dev/md2014
> ## root@jowahome:~# mdadm -A /dev/md/md2014 /dev/sdc1 /dev/sdb1
> ## mdadm: unexpected failure opening /dev/md2014

Could be related to the name. Try assembling it as /dev/md0.

If that works, change the name to something that isn't md<number>.

(--assemble --update=name --name=xyz I guess)

> ## 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%
> 21086         -

This is a personal preference... but you should run self tests 
more regularly (automated, smartd) to detect HDD errors in time.

> ##   5 Reallocated_Sector_Ct   PO--CK   097   097   010    -    3344

That's quite a lot of reallocated sectors already.
This is the kind of drive that will make your rebuilds fail.

I would consider replacing such a drive / putting it to some use 
where data loss is acceptable.

Regards
Andreas Klauer

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 13:22 ` Andreas Klauer
@ 2017-08-31 13:27   ` Joel Walberg
  0 siblings, 0 replies; 10+ messages in thread
From: Joel Walberg @ 2017-08-31 13:27 UTC (permalink / raw)
  To: Andreas Klauer; +Cc: linux-raid

Thanks, that looks like it did the trick.  Yes, I was already aware
that sdc needs to be replaced at some point, just not during my OS
upgrade.

root@jowahome:~# mdadm --assemble --update=name --name=md0 /dev/md0
/dev/sdb1 /dev/sdc1
mdadm: /dev/md0 has been started with 2 drives.

root@jowahome:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md0 : active (auto-read-only) raid1 sdc1[0] sdb1[2]
      2930133824 blocks super 1.2 [2/2] [UU]

unused devices: <none>

On Thu, Aug 31, 2017 at 7:22 AM, Andreas Klauer
<Andreas.Klauer@metamorpher.de> wrote:
> On Thu, Aug 31, 2017 at 06:06:42AM -0600, Joel Walberg wrote:
>> ## root@jowahome:~# mdadm -A /dev/md2014 /dev/sdc1 /dev/sdb1
>> ## mdadm: unexpected failure opening /dev/md2014
>> ## root@jowahome:~# mdadm -A /dev/md/md2014 /dev/sdc1 /dev/sdb1
>> ## mdadm: unexpected failure opening /dev/md2014
>
> Could be related to the name. Try assembling it as /dev/md0.
>
> If that works, change the name to something that isn't md<number>.
>
> (--assemble --update=name --name=xyz I guess)
>
>> ## 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%
>> 21086         -
>
> This is a personal preference... but you should run self tests
> more regularly (automated, smartd) to detect HDD errors in time.
>
>> ##   5 Reallocated_Sector_Ct   PO--CK   097   097   010    -    3344
>
> That's quite a lot of reallocated sectors already.
> This is the kind of drive that will make your rebuilds fail.
>
> I would consider replacing such a drive / putting it to some use
> where data loss is acceptable.
>
> Regards
> Andreas Klauer



-- 

___________________________
Joel A. Walberg
joel.walberg@gmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 14:32     ` Wols Lists
@ 2017-08-31 13:51       ` Joel Walberg
  2017-08-31 17:12         ` Wols Lists
  0 siblings, 1 reply; 10+ messages in thread
From: Joel Walberg @ 2017-08-31 13:51 UTC (permalink / raw)
  To: Wols Lists; +Cc: Jack Wang, linux-raid

While I hadn't seen that section on the Wiki, it's certainly something
that I'll be using to decide my next purchase after fully reading the
links that are provided there.

https://raid.wiki.kernel.org/index.php/Timeout_Mismatch

On Thu, Aug 31, 2017 at 8:32 AM, Wols Lists <antlists@youngman.org.uk> wrote:
> On 31/08/17 14:12, Joel Walberg wrote:
>> ## === START OF INFORMATION SECTION ===
>>>> ## Model Family:     Seagate Barracuda 7200.14 (AF)
>>>> ## Device Model:     ST3000DM001-1ER166
>>>> ## Serial Number:    Z5009M1W
>>>> ## LU WWN Device Id: 5 000c50 07903c6be
>>>> ## Firmware Version: CC43
>>>> ## 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:        In smartctl database [for details use: -P show]
>>>> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
>>>> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
>>>> ## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
>>>> ## SMART support is: Available - device has SMART capability.
>>>> ## SMART support is: Enabled
>>>> ## AAM feature is:   Unavailable
>>>> ## APM level is:     254 (maximum performance)
>>>> ## Rd look-ahead is: Enabled
>>>> ## Write cache is:   Enabled
>>>> ## ATA Security is:  Disabled, frozen [SEC2]
>>>> ## Wt Cache Reorder: Unavailable
>
> Just a quick response - just noticed it and I'm heading out - but.
> Seagate Barracuda. You have read the section on the wiki about Timeout
> Mismatch, I take it? These drives do NOT support ERC.
>
> Cheers,
> Wol



-- 

___________________________
Joel A. Walberg
joel.walberg@gmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 13:12   ` Joel Walberg
@ 2017-08-31 14:32     ` Wols Lists
  2017-08-31 13:51       ` Joel Walberg
  0 siblings, 1 reply; 10+ messages in thread
From: Wols Lists @ 2017-08-31 14:32 UTC (permalink / raw)
  To: Joel Walberg, Jack Wang; +Cc: linux-raid

On 31/08/17 14:12, Joel Walberg wrote:
> ## === START OF INFORMATION SECTION ===
>>> ## Model Family:     Seagate Barracuda 7200.14 (AF)
>>> ## Device Model:     ST3000DM001-1ER166
>>> ## Serial Number:    Z5009M1W
>>> ## LU WWN Device Id: 5 000c50 07903c6be
>>> ## Firmware Version: CC43
>>> ## 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:        In smartctl database [for details use: -P show]
>>> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
>>> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
>>> ## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
>>> ## SMART support is: Available - device has SMART capability.
>>> ## SMART support is: Enabled
>>> ## AAM feature is:   Unavailable
>>> ## APM level is:     254 (maximum performance)
>>> ## Rd look-ahead is: Enabled
>>> ## Write cache is:   Enabled
>>> ## ATA Security is:  Disabled, frozen [SEC2]
>>> ## Wt Cache Reorder: Unavailable

Just a quick response - just noticed it and I'm heading out - but.
Seagate Barracuda. You have read the section on the wiki about Timeout
Mismatch, I take it? These drives do NOT support ERC.

Cheers,
Wol

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 13:51       ` Joel Walberg
@ 2017-08-31 17:12         ` Wols Lists
  2017-09-12 22:37           ` Nix
  0 siblings, 1 reply; 10+ messages in thread
From: Wols Lists @ 2017-08-31 17:12 UTC (permalink / raw)
  To: Joel Walberg; +Cc: Jack Wang, linux-raid

On 31/08/17 14:51, Joel Walberg wrote:
> While I hadn't seen that section on the Wiki, it's certainly something
> that I'll be using to decide my next purchase after fully reading the
> links that are provided there.

I keep on intending to add a page for the smartctl information sections
from various drives, just haven't got round to it ...

There seem to be three main classes of raid drives out there, WD Reds,
Seagate  NASs, and Toshiba N300 raid drives. Everybody seems to buy
Reds, I've only recently seen NASs, and the N300s come with 4TB the
smallest drive. They all seem to cost about 50% more than the basic
desktop drives, but that's still amazingly cheap ...

Cheers,
Wol
> 
> https://raid.wiki.kernel.org/index.php/Timeout_Mismatch
> 
> On Thu, Aug 31, 2017 at 8:32 AM, Wols Lists <antlists@youngman.org.uk> wrote:
>> On 31/08/17 14:12, Joel Walberg wrote:
>>> ## === START OF INFORMATION SECTION ===
>>>>> ## Model Family:     Seagate Barracuda 7200.14 (AF)
>>>>> ## Device Model:     ST3000DM001-1ER166
>>>>> ## Serial Number:    Z5009M1W
>>>>> ## LU WWN Device Id: 5 000c50 07903c6be
>>>>> ## Firmware Version: CC43
>>>>> ## 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:        In smartctl database [for details use: -P show]
>>>>> ## ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
>>>>> ## SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
>>>>> ## Local Time is:    Thu Aug 31 05:31:38 2017 MDT
>>>>> ## SMART support is: Available - device has SMART capability.
>>>>> ## SMART support is: Enabled
>>>>> ## AAM feature is:   Unavailable
>>>>> ## APM level is:     254 (maximum performance)
>>>>> ## Rd look-ahead is: Enabled
>>>>> ## Write cache is:   Enabled
>>>>> ## ATA Security is:  Disabled, frozen [SEC2]
>>>>> ## Wt Cache Reorder: Unavailable
>>
>> Just a quick response - just noticed it and I'm heading out - but.
>> Seagate Barracuda. You have read the section on the wiki about Timeout
>> Mismatch, I take it? These drives do NOT support ERC.
>>
>> Cheers,
>> Wol
> 
> 
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-08-31 17:12         ` Wols Lists
@ 2017-09-12 22:37           ` Nix
  2017-09-13 16:15             ` Wols Lists
  0 siblings, 1 reply; 10+ messages in thread
From: Nix @ 2017-09-12 22:37 UTC (permalink / raw)
  To: Wols Lists; +Cc: Joel Walberg, Jack Wang, linux-raid

On 31 Aug 2017, Wols Lists uttered the following:

> On 31/08/17 14:51, Joel Walberg wrote:
>> While I hadn't seen that section on the Wiki, it's certainly something
>> that I'll be using to decide my next purchase after fully reading the
>> links that are provided there.
>
> I keep on intending to add a page for the smartctl information sections
> from various drives, just haven't got round to it ...
>
> There seem to be three main classes of raid drives out there, WD Reds,
> Seagate  NASs, and Toshiba N300 raid drives. Everybody seems to buy
> Reds, I've only recently seen NASs,

And higher-end drives too: e.g. Seagate Constellations and the like.

>                 They all seem to cost about 50% more than the basic
> desktop drives, but that's still amazingly cheap ...

... until you need to buy lots of them. :)

-- 
NULL && (void)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: debian9/raid1 assembly/unexpected failure opening device
  2017-09-12 22:37           ` Nix
@ 2017-09-13 16:15             ` Wols Lists
  0 siblings, 0 replies; 10+ messages in thread
From: Wols Lists @ 2017-09-13 16:15 UTC (permalink / raw)
  To: Nix; +Cc: linux-raid

On 12/09/17 23:37, Nix wrote:
>>                 They all seem to cost about 50% more than the basic
>> > desktop drives, but that's still amazingly cheap ...
> ... until you need to buy lots of them. :)

I'm just thinking back to my first disk drive. I paid £200 for a WD
bigfoot. It was a 5400rpm 5 1/4 drive - marketed as "cheapest cost per
MB available". And how big was it? Just *six* *giga*bytes, I think my
current pair of 3TB drives cost me less than that - 3 orders of
magnitude more storage, for less money.

Cheers,
Wol

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-13 16:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-31 12:06 debian9/raid1 assembly/unexpected failure opening device Joel Walberg
2017-08-31 13:02 ` Jack Wang
2017-08-31 13:12   ` Joel Walberg
2017-08-31 14:32     ` Wols Lists
2017-08-31 13:51       ` Joel Walberg
2017-08-31 17:12         ` Wols Lists
2017-09-12 22:37           ` Nix
2017-09-13 16:15             ` Wols Lists
2017-08-31 13:22 ` Andreas Klauer
2017-08-31 13:27   ` Joel Walberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).