I have a harddisk that is out of raid array. I wanted to create the partition table on sda basesd on the sdb table and I issued this command:
sfdisk -d /dev/sda | sfdisk /dev/sdb --force
I know that the --force argument is bad here and the command is wrong, the right command was:
sfdisk -d /dev/sdb | sfdisk /dev/sda
Now I have 2 problems, sda is still out of raid array and sdb partion table is empty.
My server looks like this now: http://pastebin.com/uMKvUwbL .
And my question is, how cand I recover sdb (I don't know if the files where deleted after I executed sfdisk -d /dev/sda | sfdisk /dev/sdb --force
) and how to add sda back to raid array.