All of lore.kernel.org
 help / color / mirror / Atom feed
* mdadm --grow with --backup-file does not create backupfile?
@ 2014-10-13  1:26 Ram Ramesh
  2014-10-13  1:39 ` NeilBrown
  0 siblings, 1 reply; 3+ messages in thread
From: Ram Ramesh @ 2014-10-13  1:26 UTC (permalink / raw)
  To: Linux Raid

I added a new disk and grew my raid6 md0 with the following command line

    sudo mdadm --grow --raid-devices=5
    --backup-file=/root/grow_md0.bkp_file --layout=normalise /dev/md0

I got a response that stated that mdadm needed to backup 384K of data. 
However, when I checked after about 5min there was no backup file. Is 
this expected?

    386 > sudo ls /root
    <no files. so no output>
    387 > sudo ls /root/grow_md0.bkp_file
    ls: cannot access /root/grow_md0.bkp_file: No such file or directory

Ramesh


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mdadm --grow with --backup-file does not create backupfile?
  2014-10-13  1:26 mdadm --grow with --backup-file does not create backupfile? Ram Ramesh
@ 2014-10-13  1:39 ` NeilBrown
  2014-10-13  1:49   ` Ram Ramesh
  0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2014-10-13  1:39 UTC (permalink / raw)
  To: Ram Ramesh; +Cc: Linux Raid

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

On Sun, 12 Oct 2014 20:26:05 -0500 Ram Ramesh <rramesh2400@gmail.com> wrote:

> I added a new disk and grew my raid6 md0 with the following command line
> 
>     sudo mdadm --grow --raid-devices=5
>     --backup-file=/root/grow_md0.bkp_file --layout=normalise /dev/md0
> 
> I got a response that stated that mdadm needed to backup 384K of data. 
> However, when I checked after about 5min there was no backup file. Is 
> this expected?

Yes.

When increasing the size of an array, the backup file is needed  for a tiny
fraction of a second at the start.
When decreasing the size it is needed  for a tiny fraction if a second at the
end.
When the size isn't changed it is needed for the entire time.

... unless you have a new kernel and a new mdadm, and then the backup file
isn't needed.

NeilBrown



> 
>     386 > sudo ls /root
>     <no files. so no output>
>     387 > sudo ls /root/grow_md0.bkp_file
>     ls: cannot access /root/grow_md0.bkp_file: No such file or directory
> 
> Ramesh
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mdadm --grow with --backup-file does not create backupfile?
  2014-10-13  1:39 ` NeilBrown
@ 2014-10-13  1:49   ` Ram Ramesh
  0 siblings, 0 replies; 3+ messages in thread
From: Ram Ramesh @ 2014-10-13  1:49 UTC (permalink / raw)
  To: NeilBrown; +Cc: Linux Raid

Good to know. Thanks.

Ramesh

On 10/12/2014 08:39 PM, NeilBrown wrote:
> On Sun, 12 Oct 2014 20:26:05 -0500 Ram Ramesh <rramesh2400@gmail.com> wrote:
>
>> I added a new disk and grew my raid6 md0 with the following command line
>>
>>      sudo mdadm --grow --raid-devices=5
>>      --backup-file=/root/grow_md0.bkp_file --layout=normalise /dev/md0
>>
>> I got a response that stated that mdadm needed to backup 384K of data.
>> However, when I checked after about 5min there was no backup file. Is
>> this expected?
> Yes.
>
> When increasing the size of an array, the backup file is needed  for a tiny
> fraction of a second at the start.
> When decreasing the size it is needed  for a tiny fraction if a second at the
> end.
> When the size isn't changed it is needed for the entire time.
>
> ... unless you have a new kernel and a new mdadm, and then the backup file
> isn't needed.
>
> NeilBrown
>
>
>
>>      386 > sudo ls /root
>>      <no files. so no output>
>>      387 > sudo ls /root/grow_md0.bkp_file
>>      ls: cannot access /root/grow_md0.bkp_file: No such file or directory
>>
>> Ramesh
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-13  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13  1:26 mdadm --grow with --backup-file does not create backupfile? Ram Ramesh
2014-10-13  1:39 ` NeilBrown
2014-10-13  1:49   ` Ram Ramesh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.