Skip to content

Instantly share code, notes, and snippets.

Created May 1, 2017 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/321b6db3160c259c4a4dd549817a3d07 to your computer and use it in GitHub Desktop.
Save anonymous/321b6db3160c259c4a4dd549817a3d07 to your computer and use it in GitHub Desktop.
big-endian RAID 5 recovery - info #1
***
*** how I ran the commands
***
root@dev7:~# for i in b c d e; do smartctl --xall /dev/sd$i; for j in /dev/sd${i}*; do mdadm --examine $j; done; done
***
*** /dev/sdb smartctl
***
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-72-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported scsi opcode
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
***
*** mdadm --examine /dev/sdb
***
/dev/sdb:
MBR Magic : aa55
Partition[0] : 771057 sectors at 63 (type fd)
Partition[1] : 273105 sectors at 771120 (type 82)
Partition[2] : 584621417 sectors at 1044225 (type fd)
Partition[3] : 39471703 sectors at 585665642 (type fd)
***
*** mdadm --examine /dev/sdb1
***
mdadm: No md superblock detected on /dev/sdb1.
***
*** mdadm --examine /dev/sdb2
***
mdadm: No md superblock detected on /dev/sdb2.
***
*** mdadm --examine /dev/sdb3
***
mdadm: No md superblock detected on /dev/sdb3.
***
*** mdadm --examine /dev/sdb4
***
mdadm: No md superblock detected on /dev/sdb4.
***
*** I'm not going to repeat the separators, all the remaining info is repetitive and uninteresting, but included for completeness' sake
***
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-72-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Maxtor DiamondMax 10 (ATA/133 and SATA/150)
Device Model: Maxtor 6B250R0
Serial Number: B61GGLCH
Firmware Version: BAH41BY0
User Capacity: 251,000,193,024 bytes [251 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 T13/1532D revision 0
Local Time is: Mon May 1 17:14:30 2017 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM level is: 254 (maximum performance), recommended: 192
APM feature is: Disabled
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable
Read SMART Data failed: scsi error unsupported scsi opcode
=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
Read SMART Log Directory failed: scsi error unsupported scsi opcode
General Purpose Log Directory not supported
SMART Extended Comprehensive Error Log (GP Log 0x03) not supported
Read SMART Error Log failed: scsi error unsupported scsi opcode
SMART Extended Self-test Log (GP Log 0x07) not supported
Read SMART Self-test Log failed: scsi error unsupported scsi opcode
Selective Self-tests/Logging not supported
SCT Commands not supported
Device Statistics (GP/SMART Log 0x04) not supported
SATA Phy Event Counters (GP Log 0x11) not supported
*** mdadm --examine /dev/sdc* ***
/dev/sdc:
MBR Magic : aa55
Partition[0] : 771057 sectors at 63 (type fd)
Partition[1] : 273105 sectors at 771120 (type 82)
Partition[2] : 486962282 sectors at 1044225 (type fd)
Partition[3] : 2216968 sectors at 488006507 (type fd)
mdadm: No md superblock detected on /dev/sdc1.
mdadm: No md superblock detected on /dev/sdc2.
mdadm: No md superblock detected on /dev/sdc3.
mdadm: No md superblock detected on /dev/sdc4.
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-72-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
Read Device Identity failed: scsi error unsupported scsi opcode
A mandatory SMART command failed: exiting. To continue, add one or more '-T permissive' options.
/dev/sdd:
MBR Magic : aa55
Partition[0] : 771057 sectors at 63 (type fd)
Partition[1] : 273105 sectors at 771120 (type 82)
Partition[2] : 486962282 sectors at 1044225 (type fd)
Partition[3] : 2216968 sectors at 488006507 (type fd)
mdadm: No md superblock detected on /dev/sdd1.
mdadm: No md superblock detected on /dev/sdd2.
mdadm: No md superblock detected on /dev/sdd3.
mdadm: No md superblock detected on /dev/sdd4.
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-72-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Maxtor DiamondMax 10 (ATA/133 and SATA/150)
Device Model: Maxtor 6B250R0
Serial Number: B61GGLRH
Firmware Version: BAH41BY0
User Capacity: 251,000,193,024 bytes [251 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 T13/1532D revision 0
Local Time is: Mon May 1 17:14:30 2017 CDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
AAM level is: 254 (maximum performance), recommended: 192
APM feature is: Disabled
Rd look-ahead is: Enabled
Write cache is: Enabled
ATA Security is: Disabled, NOT FROZEN [SEC1]
Wt Cache Reorder: Unavailable
Read SMART Data failed: scsi error unsupported scsi opcode
=== START OF READ SMART DATA SECTION ===
SMART Status command failed: scsi error unsupported scsi opcode
SMART overall-health self-assessment test result: UNKNOWN!
SMART Status, Attributes and Thresholds cannot be read.
Read SMART Log Directory failed: scsi error unsupported scsi opcode
General Purpose Log Directory not supported
SMART Extended Comprehensive Error Log (GP Log 0x03) not supported
Read SMART Error Log failed: scsi error unsupported scsi opcode
SMART Extended Self-test Log (GP Log 0x07) not supported
Read SMART Self-test Log failed: scsi error unsupported scsi opcode
Selective Self-tests/Logging not supported
SCT Commands not supported
Device Statistics (GP/SMART Log 0x04) not supported
SATA Phy Event Counters (GP Log 0x11) not supported
/dev/sde:
MBR Magic : aa55
Partition[0] : 771057 sectors at 63 (type fd)
Partition[1] : 273105 sectors at 771120 (type 82)
Partition[2] : 486962282 sectors at 1044225 (type fd)
Partition[3] : 2216968 sectors at 488006507 (type fd)
mdadm: No md superblock detected on /dev/sde1.
mdadm: No md superblock detected on /dev/sde2.
mdadm: No md superblock detected on /dev/sde3.
mdadm: No md superblock detected on /dev/sde4.
***
*** running lsdrv - does not output any useful RAID topology info
***
root@dev7:~# ~athompson/lsdrv/lsdrv
Creating device for node 8:17 ...
Creating device for node 8:18 ...
Creating device for node 8:33 ...
Creating device for node 8:34 ...
Creating device for node 8:49 ...
Creating device for node 8:50 ...
Creating device for node 8:65 ...
Creating device for node 8:66 ...
PCI [ahci] 00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 04)
├scsi 0:0:0:0 ATA ST9500420AS {5VJF45P3}
│└sda 465.76g [8:0] Partitioned (gpt)
│ ├sda1 512.00m [8:1] vfat {F928-9150}
│ │└Mounted as /dev/sda1 @ /boot/efi
│ ├sda2 488.00m [8:2] ext2 {dfaa7d82-73bd-4463-b585-d8e05d5d2b06}
│ │└Mounted as /dev/sda2 @ /boot
│ └sda3 464.78g [8:3] PV LVM2_member 464.78g used, 0 free {0W33oc-uKJc-wT1Q-NhNK-Zny8-2J64-gexTUY}
│ └VG ubuntu-vg 464.78g 0 free {2jiGSl-PfuV-28k4-YYHw-Podt-QSDy-rXKyk5}
│ ├dm-0 448.90g [252:0] LV root ext4 {6d0f8e4f-02b1-48f0-81a2-7921c5508fbc}
│ │└Mounted as /dev/mapper/ubuntu--vg-root @ /
│ └dm-1 15.88g [252:1] LV swap_1 swap {2ce635ee-770c-4c3c-84a4-211ab1bc49a5}
├scsi 1:x:x:x [Empty]
├scsi 2:0:0:0 HL-DT-ST DVD+-RW GH70N {K1WB78K1730}
│└sr0 1.00g [11:0] Empty/Unknown
├scsi 3:x:x:x [Empty]
├scsi 4:x:x:x [Empty]
└scsi 5:x:x:x [Empty]
USB [usb-storage] Bus 004 Device 002: ID 1f75:0611 Innostor Technology Corporation {20161014}
└scsi 6:0:0:0 WDC WD32 00AAJB-00J3A0
└sdb 298.09g [8:16] Partitioned (dos)
├sdb1 376.49m [8:17] MD None (None) inactive {4a1dc681-c7ed-84c2-2347-e72baedf84dd}
├sdb2 133.35m [8:18] swap
├sdb3 278.77g [8:19] MD None (None) inactive {7e33f722-b46c-091c-fd96-8657fc4815e9}
└sdb4 18.82g [8:20] Empty/Unknown
USB [usb-storage] Bus 004 Device 003: ID 1f75:0611 Innostor Technology Corporation {20161014}
└scsi 7:0:0:0 Maxtor 6 B250R0 {B61GGLCH}
└sdc 233.76g [8:32] Partitioned (dos)
├sdc1 376.49m [8:33] MD None (None) inactive {4a1dc681-c7ed-84c2-2347-e72baedf84dd}
├sdc2 133.35m [8:34] swap
├sdc3 232.20g [8:35] MD None (None) inactive {7e33f722-b46c-091c-fd96-8657fc4815e9}
└sdc4 1.06g [8:36] Empty/Unknown
USB [usb-storage] Bus 004 Device 004: ID 1f75:0611 Innostor Technology Corporation {20161226}
└scsi 8:0:0:0 Maxtor 6 B250R0
└sdd 233.76g [8:48] Partitioned (dos)
├sdd1 376.49m [8:49] MD None (None) inactive {4a1dc681-c7ed-84c2-2347-e72baedf84dd}
├sdd2 133.35m [8:50] swap
├sdd3 232.20g [8:51] MD None (None) inactive {7e33f722-b46c-091c-fd96-8657fc4815e9}
└sdd4 1.06g [8:52] Empty/Unknown
USB [usb-storage] Bus 004 Device 005: ID 1f75:0611 Innostor Technology Corporation {20161226}
└scsi 9:0:0:0 Maxtor 6 B250R0 {B61GGLRH}
└sde 233.76g [8:64] Partitioned (dos)
├sde1 376.49m [8:65] MD None (None) inactive {4a1dc681-c7ed-84c2-2347-e72baedf84dd}
├sde2 133.35m [8:66] swap
├sde3 232.20g [8:67] MD None (None) inactive {7e33f722-b46c-091c-fd96-8657fc4815e9}
└sde4 1.06g [8:68] Empty/Unknown
Other Block Devices
├loop0 0.00k [7:0] Empty/Unknown
├loop1 0.00k [7:1] Empty/Unknown
├loop2 0.00k [7:2] Empty/Unknown
├loop3 0.00k [7:3] Empty/Unknown
├loop4 0.00k [7:4] Empty/Unknown
├loop5 0.00k [7:5] Empty/Unknown
├loop6 0.00k [7:6] Empty/Unknown
└loop7 0.00k [7:7] Empty/Unknown
***
*** mdstat has nothing, since it can't read the superblocks
***
root@dev7:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment