linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Robinson <john.robinson@anonymous.org.uk>
To: Daniel Reurich <daniel@centurion.net.nz>
Cc: linux-raid@vger.kernel.org
Subject: Re: smartchecks of raid members
Date: Tue, 22 Dec 2009 00:45:07 +0000	[thread overview]
Message-ID: <4B301693.3070905@anonymous.org.uk> (raw)
In-Reply-To: <1261429250.7944.2249.camel@ezra>

On 21/12/2009 21:00, Daniel Reurich wrote:
> Is it safe and can it easily be done to put a raid1 member volume into
> "write mostly && write behind" mode temporarily while doing a SMART full
> disk check on that disk?

A little Googling reveals this slightly old blog post from Neil Brown 
http://neil.brown.name/blog/20050727141521-011 which says:
> If you write "writemostly" to /sys/mdX/md/dev-YYYY/state it will turn on write-mostly for that device. You can turn it off with "-writemostly".
> 
> "Writebehind" is a function of the bitmap. You cannot current change this directly online, but you can remove the current bitmap and add a new one with write-behind enabled. 

Sounds like write-mostly is easy enough to enable on-the-fly while 
write-behind is trickier and risks more - if you need a bitmap, you 
probably don't want to be removing it on a running server. Also, iirc 
there was a buglet which could cause an oops when removing a bitmap due 
to a race condition, though iirc again that's been found and fixed recently.

Resuming what Daniel Reurich wrote:
> I believe this may help with the smart check as it stops the
> interruptions caused by reads from the disk, and the writes will be
> delayed and hopefully committed in larger chunks less often.  I also
> this will allow the server to perform better by not blocking until the
> writes on the disk being checked return.
> 
> Is the only risk the delay between a write being completed as far as the
> process is concerned and the write being committed to the disk being
> smart checked?

Well, yes, but that risk is reducing your redundancy while you thrash 
one of your disks. I think if I were you I might try only enabling 
write-mostly to see if that got the S.M.A.R.T. disc check done quickly 
enough while the server was quietish, and perhaps only checking one disc 
per quiet period.

Cheers,

John.


      reply	other threads:[~2009-12-22  0:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 21:00 smartchecks of raid members Daniel Reurich
2009-12-22  0:45 ` John Robinson [this message]

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=4B301693.3070905@anonymous.org.uk \
    --to=john.robinson@anonymous.org.uk \
    --cc=daniel@centurion.net.nz \
    --cc=linux-raid@vger.kernel.org \
    /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).