From: Neil Brown <neilb@suse.de>
To: "Hawrylewicz Czarnowski,
Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Labun, Marcin" <Marcin.Labun@intel.com>,
"Czarnowska, Anna" <anna.czarnowska@intel.com>,
"Neubauer, Wojciech" <Wojciech.Neubauer@intel.com>,
"Williams, Dan J" <dan.j.williams@intel.com>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>
Subject: Re: md as module cannot be reloaded.
Date: Thu, 2 Dec 2010 08:57:23 +1100 [thread overview]
Message-ID: <20101202085723.59a5694e@notabene.brown> (raw)
In-Reply-To: <66C59AD0932712458090B447266D638C0109FF2E8A@irsmsx504.ger.corp.intel.com>
On Wed, 1 Dec 2010 14:23:14 +0000 "Hawrylewicz Czarnowski, Przemyslaw"
<przemyslaw.hawrylewicz.czarnowski@intel.com> wrote:
> Hi,
>
> I have found an annoying problem with md module. If it is compiled as loadable module it is impossible to reload module if unloaded once.
>
> Eg.
> # mdadm -Ss
> # modprobe -r raid1 && modprobe -r md-mod
> # cat /proc/modules | grep md_mod || echo Unloaded
> Unloaded
> # cat /proc/mdstat
> cat /proc/mdstat: Invalid arguments
I cannot reproduce this. That this point I get
cat: /proc/mdstat: No such file or directory
> # modprobe md-mod
> # cat /proc/mdstat
> cat /proc/mdstat: Invalid argument
> # cat /proc/modules | grep md_mod || echo Unloaded
> md_mod 94178 0 - Live 0xf857a000
>
> Some functionalities seem to work, but nothing is able to read /proc/mdstat.
>
> If have tried few kernels from 2.6.27 to 2.6.37-rc3, openSUSE 11.x/RHEL6, doesn't matter, still the same result. What can be wrong?
openSUSE doesn't compile md as a module, it is compiled in to the kernel.
But presumably you are compiling your own kernel with md as a module? Is
that right? You aren't compiling a module and loading it into a kernel which
already has md in it are you? I don't think that would work anyway...
And you give a full sequence of commands from loading to unload that reliably
produces this error for you?
NeilBrown
next parent reply other threads:[~2010-12-01 21:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <66C59AD0932712458090B447266D638C0109FF2E8A@irsmsx504.ger.corp.intel.com>
2010-12-01 21:57 ` Neil Brown [this message]
2010-12-01 23:42 ` md as module cannot be reloaded Hawrylewicz Czarnowski, Przemyslaw
2010-12-10 11:57 ` Hawrylewicz Czarnowski, Przemyslaw
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=20101202085723.59a5694e@notabene.brown \
--to=neilb@suse.de \
--cc=Marcin.Labun@intel.com \
--cc=Wojciech.Neubauer@intel.com \
--cc=anna.czarnowska@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=przemyslaw.hawrylewicz.czarnowski@intel.com \
/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