Raid UUID's

Post Reply
Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Raid UUID's

Post by Mijzelf » Fri Apr 29, 2011 8:08 am

Can someone post me the output of

Code: Select all

/sbin/md_eeprog -g /dev/md0
/sbin/md_eeprog -g /dev/md1
/sbin/md_eeprog -g /dev/md2
/sbin/md_eeprog -g /dev/md3
/sbin/md_eeprog -g /dev/md4
/sbin/md_eeprog -g /dev/md5
There is an initrd in either uImage or in the kernel itself, which checks for the UUIDs of the supplied RAID partitions. If it's wrong, the box refuses to use them.

quicknick
Posts: 4
Joined: Sun Apr 10, 2011 11:40 pm

Re: Raid UUID's

Post by quicknick » Fri Apr 29, 2011 1:12 pm

I'll get for you when I get home

andreus
Posts: 134
Joined: Wed Dec 16, 2009 9:57 pm

Re: Raid UUID's

Post by andreus » Sat Apr 30, 2011 11:08 am

Hi Mijzelf,

/sbin/md_eeprog -g /dev/md0
...
/sbin/md_eeprog -g /dev/md1
...
/sbin/md_eeprog -g /dev/md2
...
/sbin/md_eeprog -g /dev/md3
...
/sbin/md_eeprog -g /dev/md4
...
/sbin/md_eeprog -g /dev/md5
Error: stat of /dev/md5 failed: No such file or directory
Error: Device "/dev/md5" not valid
Last edited by andreus on Sun May 01, 2011 2:52 pm, edited 1 time in total.

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Raid UUID's

Post by Mijzelf » Sat Apr 30, 2011 1:03 pm

OK, thanks!

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Raid UUID's

Post by Mijzelf » Sat Apr 30, 2011 7:24 pm

It turns out those UUID's are unique for each box. A new disk (prepared by Lacie) has a special label to tell that it's *new*. Then the UUID's are written to eeprom, and the label is removed.
More here.

ZZRX
Posts: 25
Joined: Thu Jan 27, 2011 8:30 am

Re: Raid UUID's

Post by ZZRX » Sat Apr 30, 2011 8:05 pm

So it mean that if u format disk or change disk and after than recreate partitions, it wont boot before u change uuids match as originals?

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Raid UUID's

Post by Mijzelf » Sun May 01, 2011 5:38 pm

Basically yes. It might be a good idea to backup the current settings, then you should be able to rebuild the system partitions.
If you just want a new disk you can use the 'new disk' approach, of course. But after that, you can't put back the old disk(s), as the UUID's in the eeprom will be altered.

Post Reply