
Ich habe heute eine neue Festplatte installiert und sie vorbereitet, bevor mir auffiel, dass ich meine „Vorbereitungsarbeiten“ an einem vorhandenen RAID1-Array durchgeführt hatte!! Ich würde mich SEHR über eine Wiederherstellung freuen, wenn das möglich wäre.
Mein Array wurde wie folgt erstellt:/Entwickler/md2von Laufwerken/Entwickler/sdfUnd/dev/sdh. Folgendes habe ich gesehen beifdisk -l
Voretwas kaputt machen:
Disk /dev/sdf: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK01
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdf1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/sdh: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK03
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdh1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/md2: 10.91 TiB, 12000003358720 bytes, 23437506560 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
Dann bin ich gerannt fdisk /dev/md2
und habe dann getippt g
und dann w
:
Command (m for help): g
Created a new GPT disklabel (GUID: C3FA8F3E-4DD4-AD47-B2D4-F838EF831A2E).
The device contains 'ext4' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): w
The partition table has been altered.
Syncing disks.
fdisk -l
jetzt zeigte sich:
Disk /dev/sdf: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK01
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdf1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/sdh: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK03
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdh1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/md2: 10.91 TiB, 12000003358720 bytes, 23437506560 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
Disklabel type: gpt
Disk identifier: C3FA8F3E-4DD4-AD47-B2D4-F838EF831A2E
Ich habe es dann fdisk /dev/md2
noch einmal ausgeführt und dann n
mit allen Voreinstellungen ausgeführt:
Command (m for help): n
Partition number (1-128, default 1):
First sector (2048-23437506526, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-23437506526, default 23437506526):
Created a new partition 1 of type 'Linux filesystem' and of size 10.9 TiB.
Command (m for help): w
The partition table has been altered.
Syncing disks.
Dann bin ich fdisk -l
noch einmal gerannt, bevor mir mein dummer Fehler aufgefallen ist:
Disk /dev/sdf: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK01
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdf1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/sdh: 10.91 TiB, 12000138625024 bytes, 23437770752 sectors
Disk model: Generic DISK03
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/sdh1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
...
Disk /dev/md2: 10.91 TiB, 12000003358720 bytes, 23437506560 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
Disklabel type: gpt
Disk identifier: C3FA8F3E-4DD4-AD47-B2D4-F838EF831A2E
Device Start End Sectors Size Type
/dev/md2p1 2048 23437506526 23437504479 10.9T Linux filesystem
Hier ist der aktuelle Stand von /proc/mdstat
:
md2 : active raid1 sdh[1] sdf[0]
11718753280 blocks super 1.2 [2/2] [UU]
bitmap: 0/88 pages [0KB], 65536KB chunk
md1 : active raid1 sda[0] sdb[1]
15625747456 blocks super 1.2 [2/2] [UU]
bitmap: 0/117 pages [0KB], 65536KB chunk
md0 : active raid1 sdc[0] sdd[1]
15625747456 blocks super 1.2 [2/2] [UU]
bitmap: 0/117 pages [0KB], 65536KB chunk
Ich habe /dev/md2 vorerst ausgehängt und die Zeile für das Array in auskommentiert /etc/mdadm/mdadm.conf
.
Kurioserweise sah ich vor dem Unmounten beim Überprüfen der Festplattennutzung Folgendes:
plexadmin@petaccio-plex:/mnt$ df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/md2 4.4T 3.8T 0 100% /mnt/md2
...
Allerdings bin ich nicht sicher, wie ich das interpretieren soll, da es sich um 12-TB-Festplatten in einem RAID1-Array handelt.
Ich habe das Array ursprünglich erstellt mitdieses DigitalOcean-Tutorial, was zur Erstellung eines Dateisystems mit folgendem Ergebnis führte:
mkfs.ext4 -F /dev/md2
Ich weiß nicht genau, wie ich jetzt weitermachen soll, und habe Angst, dass ich (noch einmal) etwas Dummes tue und die Daten zerstöre.
Besteht Hoffnung, dieses Array wiederherzustellen?
DANKE AN ALLE für eure Hilfe und Zeit! :)
Antwort1
Ich konnte das ext4-Dateisystem mithilfe der gefundenen Anweisungen wiederherstellenHier:
Ich habe fsck.ext4 -vy /dev/md2
das ext4-Dateisystem überprüft und repariert. Nach einer automatischen Fehlerkorrektur konnte ich dann das Array mounten und fand alle meine Daten intakt vor!
Kurze Erinnerung anÜberprüfen Sie Ihre Arbeit doppelt, bevor Sie Ihre Daten preisgeben! :D