Re: Trying to start dirty, degraded RAID6 array

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

 



On Thursday April 27, csmith@xxxxxxxxxxxxxxxx wrote:
> Neil Brown wrote:
> > The '-f' is meant to make this work.  However it seems there is a bug.
> > 
> > Could you please test this patch?  It isn't exactly the right fix, but
> > it definitely won't hurt.
> 
> Thanks, Neil, I'll give this a go when I get home tonight.
> 
> Is there any way to start an array without kicking off a rebuild ?

echo 1 > /sys/module/md_mod/parameters/start_ro 

If you do this, then arrays will be read-only when they are started,
and so will not do a rebuild.  The first write request to the array
(e.g. if you mount a filesystem) will cause a switch to read/write and
any required rebuild will start. 

echo 0 > ....
will revert the effect.

This requires a reasonably recent kernel.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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