On my Ubuntu server I had a disk failure. The new hard drive was quickly installed by the hoster's technicians.
Then I followed the instructions on their page to integrate the new disk into the raid. It started similar with the answer given to this question (How can I quickly copy a GPT partition scheme from one hard drive to another?) Copy the partition table from the old disk to the new one:
sgdisk -R /dev/sdY /dev/sdX
sgdisk -G /dev/sdY
I am pretty certain that I did not mix up the old and new drive. Then I tried to integrate the new disk into the raid with
mdadm /dev/md0 -a /dev/sda1
That command failed. I rebooted to be able to get at the new partition on sda. But that's where it ended. The system will not boot anymore. I have access to a rescue system but I haven't the slightest idea what I have to do, to get my system up and running.
It seems that my filesystem may be corrupted?
fsck /dev/sdb
fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb
Is there any way to ascertain whether the file system is indeed destroyed? I was running kvm with several vms on there.