linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: "Kwolek, Adam" <adam.kwolek@intel.com>
Cc: "neilb@suse.de" <neilb@suse.de>,
	"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
	"dledford@redhat.com" <dledford@redhat.com>,
	"kay@redhat.com" <kay@redhat.com>,
	"harald@redhat.com" <harald@redhat.com>,
	"lpoetter@redhat.com" <lpoetter@redhat.com>,
	"mschmidt@redhat.com" <mschmidt@redhat.com>
Subject: Re: [PATCH 2/4] Add --initrd argument to mdadm
Date: Wed, 18 Jan 2012 17:43:53 +0100	[thread overview]
Message-ID: <4F16F6C9.1050108@redhat.com> (raw)
In-Reply-To: <79556383A0E1384DB3A3903742AAC04A06F09D@IRSMSX101.ger.corp.intel.com>

On 01/18/12 11:36, Kwolek, Adam wrote:
> 
> 
>> -----Original Message-----
>> From: Jes Sorensen [mailto:Jes.Sorensen@redhat.com]
>> Sent: Wednesday, January 18, 2012 11:09 AM
>> To: Kwolek, Adam
>> Cc: neilb@suse.de; linux-raid@vger.kernel.org; dledford@redhat.com;
>> kay@redhat.com; harald@redhat.com; lpoetter@redhat.com;
>> mschmidt@redhat.com
>> Subject: Re: [PATCH 2/4] Add --initrd argument to mdadm
>>
>> On 01/18/12 09:13, Kwolek, Adam wrote:
>>> Hi,
>>>
>>> I think that '--initrd'  option should have '--freeze-reshape' option
>> functionality for mdadm also.
>>> To do this e.g.  proper variable (freeze_reshape in mdadm.c) should be set,
>> when '--initrd' option is passed in command line.
>>
>> Hi Adam,
>>
>> I don't quite know what freeze_reshape does - from the name it sounds like
>> an option you want to set at runtime rather than when a raid is assembled
>> initially?
> 
> Yes, it is intended to be specified for assembly during initrd
> phase. It "tells" to 'grow continue' to restore array critical
> section only. It stops reshape at this moment to keep process
> safe during file system pivot when mdadm loosing fs context.
> Reshape should be continued later by invoking mdadm grow with
> '--continue' option.

Is there already a --freeze-reshape option implemented? I didn't see any
in the man page or the help output on my system here.

>> Are you proposing that we shouldn't allow reshape of an IMSM raid that is
>> used as the root device?
> 
> We should tell to mdadm for boot device assembly to be prepared for
> fs pivot when reshape is in progress. We can do this by specifying 2
> options in command line, but in real world "someone will forget about
> something", so I think '--iinitrd' can have '--freeze-reshape'
> functionality also /without freeze-reshape option removal for
> separate use when raid will not be a boot device/. As I wrote before
> it needs to set one variable during command line parsing in mdadm.c
> only.

If there is already a --freeze-reshape option, then I think it is better
to have the boot scripts set that explicitly. The initramfs stage isn't
really something we expect users or admins to mess with manually, so it
ought to work for that. However if there is no option for this, and I
just need to set the variable when detecting --initrd, then I can add
that to the patchset no problem.

Cheers,
Jes

  reply	other threads:[~2012-01-18 16:43 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-17 10:48 [PATCH 0/4] add --initrd argument to mdadm/mdmon Jes.Sorensen
2012-01-17 10:48 ` [PATCH 1/4] mdmon: Use getopt_long() to parse command line options Jes.Sorensen
2012-01-17 10:48 ` [PATCH 2/4] Add --initrd argument to mdadm Jes.Sorensen
2012-01-18  8:13   ` Kwolek, Adam
2012-01-18 10:08     ` Jes Sorensen
2012-01-18 10:36       ` Kwolek, Adam
2012-01-18 16:43         ` Jes Sorensen [this message]
2012-01-18 16:46           ` Jes Sorensen
2012-01-19  7:25             ` Kwolek, Adam
2012-01-20 14:05               ` Jes Sorensen
2012-01-22 11:20                 ` NeilBrown
2012-01-22 11:17   ` NeilBrown
2012-01-23 10:25     ` Jes Sorensen
2012-01-23 20:13       ` Lennart Poettering
2012-01-23 20:50         ` Kay Sievers
2012-01-25 10:53           ` Jes Sorensen
2012-01-25 11:37             ` NeilBrown
2012-01-25 13:34               ` Jes Sorensen
2012-01-17 10:48 ` [PATCH 3/4] Add --initrd argument to mdmon Jes.Sorensen
2012-01-22 11:22   ` NeilBrown
2012-01-23 10:27     ` Jes Sorensen
2012-01-17 10:48 ` [PATCH 4/4] Spawn mdmon with --initrd if mdadm was launched with --initrd Jes.Sorensen
2012-01-17 19:57 ` [PATCH 0/4] add --initrd argument to mdadm/mdmon Doug Ledford
2012-01-17 20:16   ` Jes Sorensen
2012-01-22 11:25     ` NeilBrown
2012-01-21  1:27   ` Lennart Poettering

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=4F16F6C9.1050108@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=adam.kwolek@intel.com \
    --cc=dledford@redhat.com \
    --cc=harald@redhat.com \
    --cc=kay@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=lpoetter@redhat.com \
    --cc=mschmidt@redhat.com \
    --cc=neilb@suse.de \
    /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).