Re: Synchronous mdadm --add/--re-add operations

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

 



On Thursday January 25, aym-xunil@xxxxxxxxx wrote:
> How do I serialise mdadm --add/--re-add calls other than by
> writing some shell to poll /proc/mdstat ? Is there a way to make
> mdadm synchronous i.e., waiting until the operation completes or
> fails instead of starting it in the background and returning.

Something has to poll mdstat (or some /sys file).
In mdadm-2.6 where is a '-W' option which will wait for
resync/recovery to complete. So
  mdadm /dev/mdX -add /dev/thing
  mdadm -W /dev/mdX

might be what you want.

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