Re: USB Backup Fails on Raid in recent builds.

David W Studeman <[email protected]> Thu, 09 Jan 2014 15:11:49 -0800
Newsgroups gmane.comp.security.ipcop.devel
Message-ID <[email protected]>
David W Studeman wrote:

> Olaf wrote:
> 
> 
>> Using the /dev/disk/by-label/root link is much easier :-)
>> I'd have to look, but IIRC it is also used elsewhere. Verifying
>> available disk space before update comes to mind.
>> 
>> 
>> Olaf
>> 
> 
> OK, I see what's happening. The new mdadm udev rules use devnode which
> does not exist in the version of udev used here. It does exist in newer
> versions of udev. Here is the link to a patch I found which is only needed
> if the older versions of udev are still used:
> 
> http://bugs.funtoo.org/secure/attachment/11384/devnode.patch

I just tried an experiment. With no other changes I simply moved the two 
udev raid rules files that the latest mdadm gives us and in their place I 
put the old single raid rules file and it worked perfectly. I have my disk 
by label and the root links to md0 and varlog_comp (since this is flash) 
links to md1 as it should. So now there are three ways to fix this. Patch 
the existing udev, update udev or simply substitute the old single rules 
file in lieu of the two new rules files that come with mdadm. 

I just tried this successfully on a second machine and it works perfectly. 
-- 
Dave Studeman
http://www.raqcop.com 



------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk