Hoary Array 5 - mdadm failure - UUID's not unique

Herbert Straub herbert at linuxhacker.at
Wed Feb 23 11:15:40 UTC 2005


Mdadm using always the same UUID! The error situation:

mdadm -D --brief --scan
  ARRAY /dev/md5 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873
    devices=/dev/hda9,/dev/hdc9
  ARRAY /dev/md4 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873
    devices=/dev/hda8,/dev/hdc8
  ARRAY /dev/md3 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873 
    devices=/dev/hda7,/dev/hdc7
  ARRAY /dev/md2 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873
    devices=/dev/hda6,/dev/hdc6
  ARRAY /dev/md1 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873
    devices=/dev/hdc5,/dev/hda5
  ARRAY /dev/md0 level=raid1 num-devices=2
  UUID=6b8b4567:327b23c6:643c9869:66334873
    devices=/dev/hdc1,/dev/hda1 

I found the following Debian Bug Entry: #292784. This error is removed with the
mdadm version 1.9. I backported mdadm_1.9.0-1_i386.deb and the changelog says:

mdadm (1.9.0-1) unstable; urgency=high

  * New upstream release.
    Solves problems with same UUID for each array.

Im testing the 1.9 Version with

mdadm -C /dev/md6 --auto=md -l 1 -n 2 /dev/hda11 /dev/hdc11
mdadm -C /dev/md7 --auto=yes -l 1 -n 2 /dev/hda10 /dev/hdc10

and now:

 mdadm -D --brief --scan
ARRAY /dev/md6 level=raid1 num-devices=2
UUID=70171301:52f8e20a:80b13c9b:dd6d3df5
   devices=/dev/evms/.nodes/hda11,/dev/evms/.nodes/hdc11
ARRAY /dev/md7 level=raid1 num-devices=2
UUID=c60fd32b:4e50de07:dfefb22f:1fa3c5ee
   devices=/dev/evms/.nodes/hda10,/dev/evms/.nodes/hdc10
ARRAY /dev/md5 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hda9,/dev/hdc9
ARRAY /dev/md4 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hda8,/dev/hdc8
ARRAY /dev/md3 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hda7,/dev/hdc7
ARRAY /dev/md2 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hda6,/dev/hdc6
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hdc5,/dev/hda5
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=6b8b4567:327b23c6:643c9869:66334873
   devices=/dev/hdc1,/dev/hda1


Best Regards
Herbert Straub




More information about the ubuntu-users mailing list