1

besides:

head -2 /dev/dm-16 | strings | grep ^id 

how can I find that which device belongs to a given MD RAID1 array?

gasko peter
  • 5,514

4 Answers4

1

Try this command:

cat /proc/mdstat
Shimi
  • 364
1

How about

mdadm -D /dev/mdX

replacing X by your actual RAID-1 device number.

Joseph R.
  • 39,549
  • doesn't shows which was the pair of the device that is in the RAID1 md. – gasko peter Aug 20 '13 at 19:09
  • @gaskopeter It's been a while since I managed a RAID array. Can you please tell me what the output of mdadm -D /dev/mdX show on your box? and what you expected it to show? – Joseph R. Aug 20 '13 at 19:10
0

since RAID1 means there are two identical disks, so checksums need to match

[root@SERVER ~]# head -100 /dev/sdb3|cksum
2207220453 6836
[root@SERVER ~]# head -100 /dev/sda3|cksum
2207220453 6836
[root@SERVER ~]# 
gasko peter
  • 5,514
0

blkid(8) should be informative.

D McKeon
  • 765