linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How do I set 'write-behind' on existing array?
@ 2014-10-20 12:33 Hans Kraus
  2014-10-20 21:14 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Kraus @ 2014-10-20 12:33 UTC (permalink / raw)
  To: linux-raid

Hi,

I want to expand an existing root array with an SSD. For that purpose I
try to set firstly 'write-behind' on that array. Afterwards I will add
the SSD, remove the HDs and re-add them with 'write-mostly'. On that
array is the root filesystem, therefore stopping is no option. In
 >/home/kraush/work/mdadm/mdadm< is the latest mdadm version from git.
I tried:
-----------------------------------------------------------------------
root@elefant:/home/kraush/work/mdadm/mdadm# ./mdadm --manage 
--write-behind=4096 /dev/md4
mdadm: :option --write-behind not valid in manage mode
root@elefant:/home/kraush/work/mdadm/mdadm# ./mdadm --grow 
--write-behind=4096 /dev/md4
mdadm: no changes to --grow
-----------------------------------------------------------------------
What is the correct syntax?

Regards, Hans

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

* Re: How do I set 'write-behind' on existing array?
  2014-10-20 12:33 How do I set 'write-behind' on existing array? Hans Kraus
@ 2014-10-20 21:14 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2014-10-20 21:14 UTC (permalink / raw)
  To: Hans Kraus; +Cc: linux-raid

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

On Mon, 20 Oct 2014 14:33:31 +0200 Hans Kraus <hans@hanswkraus.com> wrote:

> Hi,
> 
> I want to expand an existing root array with an SSD. For that purpose I
> try to set firstly 'write-behind' on that array. Afterwards I will add
> the SSD, remove the HDs and re-add them with 'write-mostly'. On that
> array is the root filesystem, therefore stopping is no option. In
>  >/home/kraush/work/mdadm/mdadm< is the latest mdadm version from git.
> I tried:
> -----------------------------------------------------------------------
> root@elefant:/home/kraush/work/mdadm/mdadm# ./mdadm --manage 
> --write-behind=4096 /dev/md4
> mdadm: :option --write-behind not valid in manage mode
> root@elefant:/home/kraush/work/mdadm/mdadm# ./mdadm --grow 
> --write-behind=4096 /dev/md4
> mdadm: no changes to --grow
> -----------------------------------------------------------------------
> What is the correct syntax?
> 

Not quite.

"write-behind" is a property of the bitmap.
To enable write-behind on an array you first need to remove the bitmap if
there is one
  mdadm /dev/md4 --grow --bitmap=none
then add a new bitmap with the required property
  mdadm /dev/md4 --grow --bitmap=internal --write-behind=4096

NeilBrown

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

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

end of thread, other threads:[~2014-10-20 21:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 12:33 How do I set 'write-behind' on existing array? Hans Kraus
2014-10-20 21:14 ` NeilBrown

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).