В Sat, 24 Jan 2015 22:47:13 +0100 (CET)
Istvan Gabor
Hello:
I have several RAID1 mirror devices. For some reason, I don't know why, some of them have been degraded. For example, originally /dev/sdb8 and /dev/sdc8 formed md8 (/dev/md8). This was mounted as /dev/disk/by-id/md-name-pc:8 to /mnt/disk8.
Now the above array is degraded, more precisely forms two degraded arrays. One is md8, according to /proc/mdstat:
md8 : active raid1 sdc8[0] 31455164 blocks super 1.0 [2/1] [U_]
The other is:
md121 : active raid1 sdb8[2] 31455164 blocks super 1.0 [2/1] [_U]
That is one device from the original array has become part of another array, md121, which hasn't been defined before.
Investigating the two arrays separately it seems that both has data which is not on the other 'array'; it seems that the two arrays were used alternatively in the last few days.
I can mount them separately and synchronize the data on them manually, but I wonder if there is a better, automatic approach. I also would like to set back the original scenario, where both devices are part of md8. I don't know where the md121 name comes from, and how I can change it back to md8. My /etc/mdadm.conf doesn't have device md121, it has only md8.
ARRAY /dev/md/pc:8 UUID=44....
mdadm --detail --scan gives:
ARRAY /dev/md/pc:8 metadata=1.0 name=pc:8 UUID=44.... ARRAY /dev/md/pc:8 metadata=1.0 name=pc:8 UUID=44....
The two UUIDs are the same.
Any idea to fix this?
It's not a problem to fix it (stop one array, zero out suprtblock, add to another array) but this sounds like really serious bug that should be reported. Of course it means you will need to keep current state for some time to provide debug information. And you will need to decide which one of arrays to keep and which one to destroy. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org