Hallo zusammen,
ich hatte ein wenig Pech mit mit dem Update mit meinem Server 14.04. Da der Support bald ausläuft dachte ich es wäre eine gute Idee ein Upgrade durchzuführen. Leider kam es zu einem Abbruch und nachdem ich manuell den Konflikt behoben habe und das Upgrade erneut angestartet habe (in der Annahme, dass es dort weitergeht, wo zuvor abgebrochen wurde) musste ich feststellen, dass ein erneutes Upgrade nun begann das System auf 18.04 zu heben. Sprich das System ist komplett zerschossen und muss neu aufgesetzt werden.
In dem Server sind 4 Platten und jeweils 2 Stück waren als RAID1 Verbund aufgesetzt. Wenn ich den Server nun neu aufsetze, möchte ich vorerst gerne nur mit jeweils einer Platte starten um sicherzustellen, dass die Daten nicht verloren gehen.
Im ersten Schritt will ich dazu herausfinden, welche der Platten zusammengehören und hierzu dachte ich, dass ich über ein USB-Laufwerk eine Platte nach der anderen anschließe, mounte und nachschaue, was drauf ist.
Leider klappt das nicht wie erwartet.
1 2 3 4 5 6 | $ sudo mdadm --assemble --scan mdadm: Merging with already-assembled /dev/md/cloudi:3 mdadm: failed to add /dev/sdc1 to /dev/md/cloudi:3: Device or resource busy mdadm: /dev/md/cloudi:3 has been started with 0 drives (out of 2). mdadm: Found some drive for an array that is already active: /dev/md/cloudi:3 mdadm: giving up. |
dann mit
1 2 3 4 5 6 | $ cat /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md127 : active raid1 sdb1[2] 966631232 blocks super 1.2 [2/1] [U_] unused devices: <none> |
sieht es doch ganz gut aus. Und mit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | $ sudo mdadm --detail /dev/md/cloudi:3 /dev/md/cloudi:3: Version : 1.2 Creation Time : Sat Sep 28 12:30:05 2013 Raid Level : raid1 Array Size : 966631232 (921.85 GiB 989.83 GB) Used Dev Size : 966631232 (921.85 GiB 989.83 GB) Raid Devices : 2 Total Devices : 1 Persistence : Superblock is persistent Update Time : Fri Mar 15 18:42:43 2019 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 Consistency Policy : resync Number Major Minor RaidDevice State 2 8 17 0 active sync - 0 0 1 removed |
Sieht es auch gut aus. Aber beim mounten bekomme ich folgende Fehlermeldung
1 2 3 4 5 | $ sudo mount /dev/md/cloudi:3 /mnt mount: /mnt: Der Superblock von /dev/md127 konnte nicht gelesen werden. $ sudo mount /dev/md127 /mnt mount: /mnt: Der Superblock von /dev/md127 konnte nicht gelesen werden. |
Und das obwohl es oben doch heißt: Persistence : Superblock is persistent
1 2 3 4 5 6 7 8 9 10 11 | $ sudo fdisk -l ... Festplatte /dev/sdc: 931,5 GiB, 1000204886016 Bytes, 1953525168 Sektoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 4096 Bytes E/A-Größe (minimal/optimal): 4096 Bytes / 33553920 Bytes Festplattenbezeichnungstyp: gpt Festplattenbezeichner: D3AE60C6-B0A6-436F-95D7-48B5ADFA1A1F Gerät Anfang Ende Sektoren Größe Typ /dev/sdc1 2048 1953516976 1953514929 931,5G Microsoft Basisdaten |
Ist der Superblock nun defekt oder nicht? Was mache ich falsch?
Vielen Dank im Voraus für eure Ideen.
Ok, dmesg sagt mir, dass der Superblock defekt ist:
[ 8005.858303] sdc: sdc1 [ 8005.860129] sd 7:0:0:0: [sdc] Attached SCSI disk [ 8034.015893] md: array md127 already has disks! [ 8034.022822] md127: Warning: Device sdb1 is misaligned [ 8034.022825] md/raid1:md127: active with 1 out of 2 mirrors [ 8034.022851] md127: detected capacity change from 0 to 989830381568 [ 8034.023017] blk_partition_remap: fail for partition 1 [ 8034.023020] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023032] blk_partition_remap: fail for partition 1 [ 8034.023033] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023040] blk_partition_remap: fail for partition 1 [ 8034.023042] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023045] ldm_validate_partition_table(): Disk read failed. [ 8034.023050] blk_partition_remap: fail for partition 1 [ 8034.023051] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023057] blk_partition_remap: fail for partition 1 [ 8034.023059] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023065] blk_partition_remap: fail for partition 1 [ 8034.023066] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023072] blk_partition_remap: fail for partition 1 [ 8034.023073] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023077] Dev md127: unable to read RDB block 0 [ 8034.023082] blk_partition_remap: fail for partition 1 [ 8034.023083] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023089] blk_partition_remap: fail for partition 1 [ 8034.023090] Buffer I/O error on dev md127, logical block 0, async page read [ 8034.023098] blk_partition_remap: fail for partition 1 [ 8034.023099] Buffer I/O error on dev md127, logical block 3, async page read [ 8034.023106] blk_partition_remap: fail for partition 1 [ 8034.023111] blk_partition_remap: fail for partition 1 [ 8034.023113] md127: unable to read partition table [ 8034.031047] blk_partition_remap: fail for partition 1 [ 8034.031052] blk_partition_remap: fail for partition 1 [ 8034.063607] blk_partition_remap: fail for partition 1 [ 8079.492481] blk_partition_remap: fail for partition 1 [ 8192.990230] blk_partition_remap: fail for partition 1 [ 8192.990245] blk_partition_remap: fail for partition 1 [ 8192.990248] buffer_io_error: 3 callbacks suppressed [ 8192.990251] Buffer I/O error on dev md127, logical block 241657792, async page read [ 8192.990530] blk_partition_remap: fail for partition 1 [ 8192.990535] EXT4-fs (md127): unable to read superblock [ 8192.990613] blk_partition_remap: fail for partition 1 [ 8192.990618] EXT4-fs (md127): unable to read superblock [ 8192.990691] blk_partition_remap: fail for partition 1 [ 8192.990695] EXT4-fs (md127): unable to read superblock [ 8192.990764] blk_partition_remap: fail for partition 1 [ 8192.990767] SQUASHFS error: squashfs_read_data failed to read block 0x0 [ 8192.990771] squashfs: SQUASHFS error: unable to read squashfs_super_block [ 8262.313979] blk_partition_remap: fail for partition 1 [ 8262.313991] blk_partition_remap: fail for partition 1 [ 8262.313996] Buffer I/O error on dev md127, logical block 241657792, async page read [ 8262.314225] blk_partition_remap: fail for partition 1 [ 8262.314230] EXT4-fs (md127): unable to read superblock [ 8262.314288] blk_partition_remap: fail for partition 1 [ 8262.314291] EXT4-fs (md127): unable to read superblock [ 8262.314336] blk_partition_remap: fail for partition 1 [ 8262.314339] EXT4-fs (md127): unable to read superblock [ 8262.314384] blk_partition_remap: fail for partition 1 [ 8262.314387] SQUASHFS error: squashfs_read_data failed to read block 0x0 [ 8262.314391] squashfs: SQUASHFS error: unable to read squashfs_super_block [ 9315.321098] blk_partition_remap: fail for partition 1 [ 9315.321108] blk_partition_remap: fail for partition 1 [ 9315.321112] Buffer I/O error on dev md127, logical block 241657792, async page read [ 9315.321285] blk_partition_remap: fail for partition 1 [ 9315.321289] EXT4-fs (md127): unable to read superblock [ 9315.321337] blk_partition_remap: fail for partition 1 [ 9315.321340] EXT4-fs (md127): unable to read superblock [ 9315.321376] blk_partition_remap: fail for partition 1 [ 9315.321378] EXT4-fs (md127): unable to read superblock [ 9315.321413] blk_partition_remap: fail for partition 1 [ 9315.321415] SQUASHFS error: squashfs_read_data failed to read block 0x0 [ 9315.321418] squashfs: SQUASHFS error: unable to read squashfs_super_block
Ich lese mal nach, was ich hier tun kann. Wenn Sich jemand auskennt, freue ich mich über jeden Spoiler. 😉