Re: [PATCH 2/4] Add --initrd argument to mdadm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/18/12 11:36, Kwolek, Adam wrote:
> 
> 
>> -----Original Message-----
>> From: Jes Sorensen [mailto:Jes.Sorensen@xxxxxxxxxx]
>> Sent: Wednesday, January 18, 2012 11:09 AM
>> To: Kwolek, Adam
>> Cc: neilb@xxxxxxx; linux-raid@xxxxxxxxxxxxxxx; dledford@xxxxxxxxxx;
>> kay@xxxxxxxxxx; harald@xxxxxxxxxx; lpoetter@xxxxxxxxxx;
>> mschmidt@xxxxxxxxxx
>> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux