Re: [PATCH 1/2] New md arrays don't have to be cleaned.

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

 



On Thu, Apr 23, 2009 at 05:46:02PM -0500, David Lehman wrote:
> On Thu, 2009-04-23 at 19:36 +0200, Joel Granados Moreno wrote:
> > ---
> >  storage/devicelibs/mdraid.py |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> I am truly amazed that mdadm requires this argument for arrays it is
> creating, but otherwise it seems fine.

I fail to understand it too.  But on all my tests, every time I wanted
to create a md device (even on tty2) it began to resync the array,
slowing down the install (it seemed to freeze actually).

> 
> > 
> > diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
> > index 56fd626..a789be4 100644
> > --- a/storage/devicelibs/mdraid.py
> > +++ b/storage/devicelibs/mdraid.py
> > @@ -120,7 +120,7 @@ def get_raid_max_spares(raidlevel, nummembers):
> >      raise ValueError, "invalid raid level %d" % raidlevel
> >  
> >  def mdcreate(device, level, disks, spares=0):
> > -    argv = ["--create", device, "--run", "--level=%s" % level]
> > +    argv = ["--create", device, "--run", "--assume-clean", "--level=%s" % level]
> >      raid_devs = len(disks) - spares
> >      argv.append("--raid-devices=%d" % raid_devs)
> >      if spares:
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Brno, Czech Republic, Red Hat.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux