I built a RAID-1 with two hard drives using mdadm. Command used was:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
it went fine, I create partition table and partitions in it, mounted put some files there. Then I rebooted and realized I did not update
mdadm.conf. How do I get my RAID back without losing data?
Update: results of
# mdadm --examine /dev/sdb /dev/sdb: MBR Magic : aa55 Partition : 4294967295 sectors at 1 (type ee) # mdadm --assemble /dev/md0 /dev/sdb /dev/sdc mdadm: Cannot assemble mbr metadata on /dev/sdb mdadm: /dev/sdb has no superblock - assembly aborted
Does it make any difference that I created RAID on whole device instead of single partition?