Skip to contentSkip to conversation

mdadm --dangerous-no-resync equivalent

DISCUSSION flame 3 participants 3 messages Mar 10, 2005 MD RAID

lore
Share & tools
lore

flame

author
#0 lore raw

Hi,

I have an installer (http://sourceforge.net/projects/terraformix/) that creates Raid 1 arrays, previously the arrays were created with mkraid using the --dangerous-no-resync option. I am now required to build the arrays with mdadm and have the following questions ;

1) Is there an equivalent of --dangerous-no-resync in mdadm ?

2) Can I just go ahead and install onto a newly created RAID 1 array without waiting for it to resync ?

3) Can I just go ahead and install onto a newly created RAID 5 array without waiting for it to resync ?

Thanks in advance.

Signature · 1 line
flame <[email protected]>
#1 lore raw
Quoted 8 lines · On Thursday March 10, [email protected] wrote:

Hi,

I have an installer (http://sourceforge.net/projects/terraformix/) that creates Raid 1 arrays, previously the arrays were created with mkraid using the --dangerous-no-resync option. I am now required to build the arrays with mdadm and have the following questions ;

1) Is there an equivalent of --dangerous-no-resync in mdadm ?

No, though there might be one day, in which case it would be
--assume-clean
(which works with --build, but is currently ignored for --create).

Quoted 3 lines

2) Can I just go ahead and install onto a newly created RAID 1 array without waiting for it to resync ?

Yes.

Quoted 3 lines

3) Can I just go ahead and install onto a newly created RAID 5 array without waiting for it to resync ?

Yes.

Quoted 2 lines

Thanks in advance.

You're welcome.

NeilBrown

#2 lore raw
In reply to flame
Quoted 11 lines · On 10 Mar 2005, [email protected] wrote:

Hi,

I have an installer (http://sourceforge.net/projects/terraformix/) that creates Raid 1 arrays, previously the arrays were created with mkraid using the --dangerous-no-resync option. I am now required to build the arrays with mdadm and have the following questions ;

1) Is there an equivalent of --dangerous-no-resync in mdadm ?

2) Can I just go ahead and install onto a newly created RAID 1 array without waiting for it to resync ?

Yes.

Quoted 2 lines

3) Can I just go ahead and install onto a newly created RAID 5 array without waiting for it to resync ?

Yes.

Also, you can happily reboot while the resync is no progress with the full expectation that it will work correctly -- assemble, then take up the resync process again -- when your machine restarts.

I have had no problems with this at all, despite doing a large number of installs onto both of those RAID levels.

Also, the Debian installer for testing/unstable makes the assumption that this will "just work" in the RAID component -- at least, in so far as not taking any special care to avoid rebooting during the resync process.

Regards,
Daniel

Signature · 3 lines
A large number of installed systems work by fiat.
That is, they work by being declared to work.
        -- Anatol Holt