From: Jan Ceuleers <jan.ceuleers@computer.org>
To: linux-raid@vger.kernel.org
Subject: Re: Spares not added upon reboot after distro upgrade
Date: Wed, 22 Aug 2012 18:04:12 +0200 [thread overview]
Message-ID: <503502FC.1080307@computer.org> (raw)
In-Reply-To: <5034C1CB.80808@computer.org>
On 08/22/2012 01:26 PM, Jan Ceuleers wrote:
> On 08/19/2012 09:42 AM, Jan Ceuleers wrote:
> ...
>
>> For the first time ever I tried mdadm's incremental mode. So before
>> issuing the above two commands I tried the following;
>>
>> root@zotac:~# mdadm -I /dev/sde2
>> mdadm: failed to add /dev/sde2 to /dev/md0: Invalid argument.
>
> I have now straced this, and here are the offending lines:
>
> ioctl(4, 0x40140921, 0x7fff4bda3858) = -1 EINVAL (Invalid argument)
> write(2, "mdadm: failed to add /dev/sde2 t"..., 62mdadm: failed to add
> /dev/sde2 to /dev/md0: Invalid argument.
>
> fd 4 is /dev/md0
>
> How does one decode the ioctl call?
Seems to be ADD_NEW_DISK(MD_MAJOR=md0, &mdu_disk_info_t)
I'm afraid I don't know how to interpret the last argument: is this a
pointer or is it the contents of the struct (which should contain five
ints, namely number, major, minor, raid_disks and state)?
next prev parent reply other threads:[~2012-08-22 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-19 7:42 Spares not added upon reboot after distro upgrade Jan Ceuleers
2012-08-22 11:26 ` Jan Ceuleers
2012-08-22 16:04 ` Jan Ceuleers [this message]
2012-08-22 16:34 ` Jan Ceuleers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503502FC.1080307@computer.org \
--to=jan.ceuleers@computer.org \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).