Hallo, ich hoffe hier kann mir jemand weiterhelfen. Komme einfach nicht weiter.
Was ist passiert?
Ich besitze ein NAS von Verbatim (Verbatim PowerBay DataBank NAS) mit 4x 3TB HDDs, davon sind 3 Stück in einem verschlüsselten RAID5 Verbund. Software-Raid (MDADM) mit LUKS Verschlüsselung. Letzten Monat gab es einen Stromausfall, seitdem hat das NAS die Konfiguration vom RAID5 vergessen, es erscheint gar nicht mehr. Nur noch die Festplatten werden als Fehlerfrei angezeigt. Leider besitz das NAS keinen Telnet / SSH Zugang nur einen Seriellen bei dem ich anscheinend erstmal irgendwelche Kabel löten müsste. Jetzt habe ich glücklicherweise einen neuen Rechner und genügend Kapazität(3x 4TB zum sichern des RAID5), bekomme es aber einfach nicht gemountet mit einer Ubuntu Live CD. Meiner Meinung nach wurde nichts am Raid5 zerstört, bin aber auch kein Linux Experte. Am Rechner hängen nur die 3x Festplatten aus dem NAS. Die Reihenfolge an den SATA Ports müsste genauso sein wie im NAS.
Mein Vorgehen bisher: Von Ubuntu 14.04.1 amd64 LIVE CD gebootet im Terminal dann eingegeben:
1 2 3 4 5 6 7 8 9 10 11 12 13 | sudo -i apt-get install mdadm lvm2 cryptsetup modprobe dm-crypt modprobe dm_mod modprobe dm-mod modprobe aes-x86_64 modprobe cbc mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 <-- (2) weil das NAS auf jeder Platte eine SWAP Partition mit 1GB angelegt hat, diese sind sda1, sdb1 und sdc1 cryptsetup luksOpen /dev/md0 md0_mnt <-- passiert gar nix cryptsetup luksOpen /dev/sda2 sda2_mnt <-- Fehlermeldung cat /proc/mdstat mkdir /media/raid mount /dev/md0 /media/raid |
Ergebnisse:
root@it:~# mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 mdadm: /dev/md0 assembled from 1 drive and 1 spare - not enough to start the array.
*
root@it:~# cat /proc/mdstat Personalities : md0 : inactive sdb2[1](S) sdc2[3](S) sda2[4](S) 8787721200 blocks super 1.0 unused devices: <none>
*
root@it:~# cryptsetup luksOpen /dev/md0 md0_mnt <-- passiert gar nix
*
root@it:~# cryptsetup luksOpen /dev/sda2 sda2_mnt Enter passphrase for /dev/sda2: device-mapper: reload ioctl on failed: Invalid argument Failed to open temporary keystore device. device-mapper: remove ioctl on temporary-cryptsetup-4960 failed: No such device or address device-mapper: reload ioctl on temporary-cryptsetup-4960 failed: No such device or address device-mapper: remove ioctl on temporary-cryptsetup-4960 failed: No such device or address device-mapper: remove ioctl on temporary-cryptsetup-4960 failed: No such device or address device-mapper: remove ioctl on temporary-cryptsetup-4960 failed: No such device or address device-mapper: remove ioctl on temporary-cryptsetup-4960 failed: No such device or address
Wenn ich direkt, ohne mdadm am Anfang, versuche NUR sda2 zu unlocken kommmt das meine Passphrase falsch wäre! Dies kann aber nicht sein! Sie wurde mit Keepass2 erzeugt und auch seitdem nicht verändert. Kann es sein das ich das PW anpassen muss oder als Hash angeben? Das mit Keepass2 erzeugte PW wurde seit über einem Jahr immer im Webinterface benutzt, nie Probleme.
root@it:~# cryptsetup luksOpen /dev/sda2 sda2_mnt Enter passphrase for /dev/sda2: No key available with this passphrase.
Informationen zu den Platten:
root@it:~# mdadm -E /dev/sda2 /dev/sdb2 /dev/sdc2 /dev/sda2: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : 494f4448:565200a0:b0a11265:52d99dee Name : 3 Creation Time : Wed Apr 3 03:49:37 2013 Raid Level : raid5 Raid Devices : 3 Avail Dev Size : 5858480800 (2793.54 GiB 2999.54 GB) Array Size : 5858462592 (5587.07 GiB 5999.07 GB) Used Dev Size : 5858462592 (2793.53 GiB 2999.53 GB) Super Offset : 5858481056 sectors State : active Device UUID : 86617fdb:bec0bfe4:f697f428:c2c2792f Update Time : Sun Sep 21 17:01:04 2014 Checksum : bb479a50 - correct Events : 6967949 Layout : left-symmetric Chunk Size : 64K Device Role : Active device 0 Array State : AA. ('A' == active, '.' == missing) /dev/sdb2: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : 494f4448:565200a0:b0a11265:52d99dee Name : 3 Creation Time : Wed Apr 3 03:49:37 2013 Raid Level : raid5 Raid Devices : 3 Avail Dev Size : 5858480800 (2793.54 GiB 2999.54 GB) Array Size : 5858462592 (5587.07 GiB 5999.07 GB) Used Dev Size : 5858462592 (2793.53 GiB 2999.53 GB) Super Offset : 5858481056 sectors State : clean Device UUID : 1cf276e6:6f466d81:71aff8c9:609e7273 Update Time : Sun Sep 21 17:03:46 2014 Checksum : 47eaa461 - correct Events : 6967968 Layout : left-symmetric Chunk Size : 64K Device Role : Active device 1 Array State : .A. ('A' == active, '.' == missing) /dev/sdc2: Magic : a92b4efc Version : 1.0 Feature Map : 0x0 Array UUID : 494f4448:565200a0:b0a11265:52d99dee Name : 3 Creation Time : Wed Apr 3 03:49:37 2013 Raid Level : raid5 Raid Devices : 3 Avail Dev Size : 5858480800 (2793.54 GiB 2999.54 GB) Array Size : 5858462592 (5587.07 GiB 5999.07 GB) Used Dev Size : 5858462592 (2793.53 GiB 2999.53 GB) Super Offset : 5858481056 sectors State : clean Device UUID : b552d03f:483371e1:a2011bf8:8113bcb0 Update Time : Sun Sep 21 17:03:46 2014 Checksum : 6cb3b927 - correct Events : 6967968 Layout : left-symmetric Chunk Size : 64K Device Role : spare Array State : .A. ('A' == active, '.' == missing)
*
root@it:~# smartctl -A /dev/sda2 smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-32-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 111 099 006 Pre-fail Always - 193607621 3 Spin_Up_Time 0x0003 092 091 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1356 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 065 060 030 Pre-fail Always - 120364462198 9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13435 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 20 183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 095 095 000 Old_age Always - 5 188 Command_Timeout 0x0032 100 095 000 Old_age Always - 24 24 24 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 056 053 045 Old_age Always - 44 (Min/Max 19/44) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 20 193 Load_Cycle_Count 0x0032 090 090 000 Old_age Always - 21789 194 Temperature_Celsius 0x0022 044 047 000 Old_age Always - 44 (0 12 0 0 0) 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 8 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 8 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 9043h+37m+58.399s 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 13885198857 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 799020298347
*
root@it:~# smartctl -A /dev/sdb2 smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-32-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 116 099 006 Pre-fail Always - 115996208 3 Spin_Up_Time 0x0003 091 091 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1375 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 068 060 030 Pre-fail Always - 55933519660 9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13421 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 21 183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 188 Command_Timeout 0x0032 100 094 000 Old_age Always - 42 42 49 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 052 049 045 Old_age Always - 48 (Min/Max 19/48) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 21 193 Load_Cycle_Count 0x0032 089 089 000 Old_age Always - 22073 194 Temperature_Celsius 0x0022 048 051 000 Old_age Always - 48 (0 13 0 0 0) 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 9045h+15m+49.714s 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 7984446005 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 804897474812
*
root@it:~# smartctl -A /dev/sdc2 smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-32-generic] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 110 099 006 Pre-fail Always - 28567936 3 Spin_Up_Time 0x0003 091 091 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1549 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 068 060 030 Pre-fail Always - 68827473407 9 Power_On_Hours 0x0032 085 085 000 Old_age Always - 13169 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 399 183 Runtime_Bad_Block 0x0032 099 099 000 Old_age Always - 1 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 188 Command_Timeout 0x0032 100 099 000 Old_age Always - 5 5 5 189 High_Fly_Writes 0x003a 017 017 000 Old_age Always - 83 190 Airflow_Temperature_Cel 0x0022 054 052 045 Old_age Always - 46 (Min/Max 20/46) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 399 193 Load_Cycle_Count 0x0032 090 090 000 Old_age Always - 21047 194 Temperature_Celsius 0x0022 046 048 000 Old_age Always - 46 (0 14 0 0 0) 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 9008h+02m+23.853s 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 797147928226 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 11167891456
*
root@it:~# fdisk -l /dev/sd[a-c] WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sda: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary. WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted. Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes 255 heads, 63 sectors/track, 364801 cylinders, total 5860533168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
*
root@it:~# mdadm --detail /dev/md0 mdadm: md device /dev/md0 does not appear to be active.
*
root@it:~# mdadm --add /dev/md0 /dev/sda2 /dev/sdb2 /dev/sdc2 mdadm: cannot get array info for /dev/md0
*
root@it:~# mdadm --run /dev/md0 mdadm: failed to run array /dev/md0: Input/output error
*
root@it:~# cryptsetup -v luksDump /dev/sda2 LUKS header information for /dev/sda2 Version: 1 Cipher name: aes Cipher mode: cbc-essiv:sha256 Hash spec: sha1 Payload offset: 2056 MK bits: 256 MK digest: ee 3c 43 34 b7 b2 98 ff c7 83 11 55 f7 a9 3a 92 84 0b e6 15 MK salt: 72 d0 11 a8 49 62 06 6c 2e 43 50 fb 37 5b c2 d7 70 5e e1 e9 db 03 8a 1f 8c 98 c7 94 46 83 a0 a3 MK iterations: 10 UUID: 0ff86001-5488-4098-80c8-9d8e582f4099 Key Slot 0: ENABLED Iterations: 54066 Salt: 63 cf d6 e3 f3 64 25 d0 06 81 26 22 7f 5b eb d5 b7 98 6f 6d 22 80 dd 9e 1b 97 5b c2 8b d9 89 bb Key material offset: 8 AF stripes: 4000 Key Slot 1: DISABLED Key Slot 2: DISABLED Key Slot 3: DISABLED Key Slot 4: DISABLED Key Slot 5: DISABLED Key Slot 6: DISABLED Key Slot 7: DISABLED Command successful.
PS Was muss ich auswählen das er den Code richtig einbettet? Diese komischen Scrollbalken verschwinden und er nicht andauernd die Leerzeilen selbstständig wegmacht?