This is truly bizarre behavior. I'm not sure what's going on here. My guess is hardware failure (RAM, MB, PSU, loose cables, etc). There might be a problem with udevd (which manages /dev) or with /etc/udev.
Check:
Code:
dmesg | grep -E 'udev|sd|hd|md'
for clues. Also examine /var/log/messages.
might provide clues in realtime.
Drives should receive the same identifier each time they're detected. I used to know where udev stored this... When a new device is detected in the system, udevd checks a convoluted set of rules in /etc/udev. It uses this information to create the /dev file.
It may also create several sym links to the device. Because of this, drives can often be accessed by more than one name. This highly depends on how udev is setup by your distribution. On my system:
Code:
ls -l /dev/disk/by-id
gives me a list of all drives by serial number. I believe these references can be used with md, should you need to rebuild. THAT should put an end to this funny business (assuming you don't have a deeper problem, which worries me).