linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Peter Koch <mdraid.pkoch@dfgh.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: RAID10-reshape crashed due to memory allocation problem
Date: Fri, 8 Aug 2014 12:35:17 +1000	[thread overview]
Message-ID: <20140808123517.0614287a@notabene.brown> (raw)
In-Reply-To: <201408072106.s77L6kKo009859@portal.naev.de>

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

On Thu, 7 Aug 2014 23:06:46 +0200 mdraid.pkoch@dfgh.net (Peter Koch) wrote:

> Dear readers,
> 
> seems like memory is leaking when a RAID10-array is reshaped.

Only in Linux 3.14.
You need commit cc13b1d1500656a20e41960668f3392dda9fa6e2
which is in v3.14.16

So even though you didn't tell me what kernel version you were using, I
knew:-)

(always report mdadm version and kernel version).

NeilBrown


> 
> Here are the details of what I did:
> 
> RAID10-array consisting of 13 disks (2TB each) and one spare was
> grown into a 16 disk RAID10-array by adding two more spares and
> then doing  mdadm --grow /dev/md5 --raid-devices=16
> 
> When the reshape operation reached 80% (after 20 hours) the system
> became unresponsive and crashed soon after. Console output showed
> something like "... could not allocate memory block ..."
> 
> The machine has 32GB of RAM.
> 
> After the machine was rebooted the reshape operation was running
> for 6 more hours and was followed by an 8 hour resync.
> 
> Everything seems to be OK now, but according to /proc/meminfo
> only 15GB of RAM are available. Much too low for a system that
> is almost idle.
> 
> I will reboot the machine at our next maintenance window and
> compare its available memory with the situation right now.
> 
> Is restarting the reshape operation after a crash really safe?
> Should I check the correctness of my array somehow?
> 
> Kind regards
> 
> Peter Koch
> --
> 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: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2014-08-08  2:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-07 21:06 RAID10-reshape crashed due to memory allocation problem Peter Koch
2014-08-08  2:35 ` NeilBrown [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-08-08 16:10 Peter Koch
2014-08-08 16:46 Peter Koch
2014-08-09  0:37 ` NeilBrown

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=20140808123517.0614287a@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=mdraid.pkoch@dfgh.net \
    /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).