* --no-degraded in mdadm.conf? / disable auto assembly
@ 2008-04-29 11:55 Dexter Filmore
2008-04-29 13:02 ` David Greaves
0 siblings, 1 reply; 3+ messages in thread
From: Dexter Filmore @ 2008-04-29 11:55 UTC (permalink / raw)
To: linux-raid
How do I prevent mdadm from assembling any array at all without uninstalling
the package? I commented out all lines, still it seems it scanned and
assembled what it found.
(Possibly a debian thing, will look into this)
Next thing: I don't want mdadm to assemble arrays if not all disks are
present. Can I pass no-degraded to mdadm.conf?
Is there a dry-run-option that says what would happen if I assembled now?
Dex
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d--(+)@ s-:+ a- C++++ UL++ P+>++ L+++>++++ E-- W++ N o? K-
w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@
b++(+++) DI+++ D- G++ e* h>++ r* y?
------END GEEK CODE BLOCK------
http://www.vorratsdatenspeicherung.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: --no-degraded in mdadm.conf? / disable auto assembly
2008-04-29 11:55 --no-degraded in mdadm.conf? / disable auto assembly Dexter Filmore
@ 2008-04-29 13:02 ` David Greaves
2008-04-29 13:07 ` David Greaves
0 siblings, 1 reply; 3+ messages in thread
From: David Greaves @ 2008-04-29 13:02 UTC (permalink / raw)
To: Dexter Filmore; +Cc: linux-raid
Dexter Filmore wrote:
> How do I prevent mdadm from assembling any array at all without uninstalling
> the package? I commented out all lines, still it seems it scanned and
> assembled what it found.
> (Possibly a debian thing, will look into this)
AFAIK there are 3 places where an array is assembled 'automatically'
1. kernel auto-detect of 0xfd partitions - not mdadm, not currently preventable
AFAIK.
2. initrd mdadm script
3. init.d mdadm script
I'm not sure how udev figures into this... ISTR that some distros had udev
script issues when udev detected and assembled an array when it had found
'enough' components and then triggered a resync when the final component popped up.
> Next thing: I don't want mdadm to assemble arrays if not all disks are
> present. Can I pass no-degraded to mdadm.conf?
Yes. man madadm:
--no-degraded
This is the reverse of --run in that it inhibits the started if
array unless all expected drives are present. This
is only needed with --scan and can be used if you physical
connections to devices are not as reliable as you would
like.
Of course it may be in a newer version :)
Where's the git page for mdadm then?
> Is there a dry-run-option that says what would happen if I assembled now?
Not AFAIK - plus, I think this would be an md function wouldn't it? Doesn't
mdadm just ask the kernel md module to assemble the components without checking
event counts etc.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-29 13:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29 11:55 --no-degraded in mdadm.conf? / disable auto assembly Dexter Filmore
2008-04-29 13:02 ` David Greaves
2008-04-29 13:07 ` David Greaves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).