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

Re: mdadm + initramfs + udev



Juste pour me répondre à moi-même :

Le mercredi 16 janvier 2008 à 18:59 +0100, Jean-Yves F. Barbier a
écrit :
> > Cela veut-il dire que si j'ai 8 partitions raid1 pour composer mes md[0-3]
> > alors cette commande est lancée 8 fois ?!.. Là je dois me tromper, mais
> > j'ai besoin d'une petite explication...

watershed est la fonctionnalité de udev qui évite que mdadm ne soit
lancé autant de fois qu'il y a de partitions de type "linux-raid*".

Se trouve dans /lib/udev/watershed.

A priori watershed serait intégré au noyau depuis la 2.6.12.
Tiré de https://wiki.edubuntu.org/UdevLvm :

"The watershed command used in the rules above is a tool to ensure that
vgchange is run as many times as are necessary to process the incoming
events. It works by locking a known filename, clearing a state file, and
then running the command. If it cannot lock, it writes to the state
file, and exits. When the command finishes, it checks the state file,
and if it exists it loops and runs the command again. 

This means that if two events come in hours apart, it is run twice. If
one hundred come in in rapid sequence, it will be run at least twice,
but usually not 100 times. "

Bon, voilà qui m'explique pourquoi ça a des chances de marcher.



Reply to: