On 9/1/06, Richard Broersma Jr <[EMAIL PROTECTED]> wrote:
I recently had a drive failure in with a Raid 1 setup. However, for testing
purposes I tried to
re-add the drive to the array after I removed it. However I ran into the
following error message.
~ # mdadm /dev/md4 --add /dev/hdj1
mdadm: add new device failed for /dev/hdj1 as 2: Invalid argument
Where is the invalid argument? Or is this error message you get when it is
time to buy a new hard
I think you forgot to specify the mode. From man mdadm:
"""
SYNOPSIS
mdadm [mode] <raiddevice> [options] <component-devices>
"""
and
"""
If a device is given before any options, or if the first option is
--add, --fail, or --remove, then the MANAGE mode is assume. Anything
other than these will CAUSE THE MISC MODE TO BE ASSUMED.
"""
(emphasis added)
So I think you need "mdadm manage /dev/md4 --add /dev/hdj1". Or
"mdadm --add /dev/md4 /dev/hdj1".
This isn't based on an actual test, just reading the documentation, so I HTH.
-Richard
--
[email protected] mailing list