Re: Can't figure out how to use mdadm in initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On  June 28, ken@ineffable.com wrote:
> > > 
> > > set "/dev/md2"
> > > [ -b "$1" ] || set "/dev/md/2"
> > > mdadm --assemble --run --scan "$1"
> > 
> > This bit of code is silly.  If it chooses "/dev/md/2", then it
> > won't find a match in /etc/mdadm/mdadm.conf and wont do anything
> > useful. 
> > Why not just:
> >    mdadm --assemble --scan
> 
> I understand that it may seem silly, but it makes plenty of sense when
> you consider that it is generated by mkinitrd which is ended to be of
> general use.  Unfortunately you are seeing this out of context as this
> script is told whether or not devfs is in use or not.

I gather the mdadm.conf is also autogenerated to make... fair enough then.
> 
> I don't need --run?  The man page seems to imply that --run is needed if
> you want to start a degraded array.

--run is only needed when starting things "manually".  In this context
  --scan implied --run.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux