[Yaird-devel] Bug#351183: --run does not fix the disk renaming problem

Brendan Cully brendan at kublai.com
Tue Jun 6 22:34:31 UTC 2006


On Tuesday, 06 June 2006 at 14:55, dean gaudet wrote:
> > Can someone come up with a test command that does not mess with actual
> > devices, and returns true for versions of mdadm that properly supports
> > "-Ac partitions"? Or even better, a complete patch for yaird?
> 
> ok cool...
> 
> well according to the mdadm changelog the -Ac partitions bug was fixed
> in 1.10.0 ... so we'd want to stick something like this into
> Templates.cfg
> 
> !case "`mdadm --version 2>&1`" in
> !        mdadm\ -\ v1.[1-9][^0-9]*)
> !                mdadm --assemble <TMPL_VAR NAME=target> --uuid <TMPL_VAR NAME=uuid> \
> !                        <TMPL_LOOP NAME=components> <TMPL_VAR NAME=dev></TMPL_LOOP>
> !                ;;
> !        *)
> !                mdadm -Ac partitions <TMPL_VAR NAME=target> --uuid <TMPL_VAR NAME=uuid>
> !                ;;
> !esac

I don't think it'd be a bad idea to leave in --run for the legacy
mdadm case.




More information about the Yaird-devel mailing list