linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <drtyc@centrum.cz>
To: linux-raid@vger.kernel.org
Subject: softraid growing?
Date: Mon, 10 Oct 2005 20:03:37 +0200	[thread overview]
Message-ID: <200510102003.29996@centrum.cz> (raw)

Hello.

Right now looking at drivers/md/md.c (linux-2.6.12.3) at:

static int update_array_info(mddev_t *mddev, mdu_array_info_t *info)
{
 int rv = 0;
 int cnt = 0;

 if (mddev->major_version != info->major_version ||
 mddev->minor_version != info->minor_version ||
/* mddev->patch_version != info->patch_version || */
 mddev->ctime != info->ctime ||
 mddev->level != info->level ||
/* mddev->layout != info->layout || */
 !mddev->persistent != info->not_persistent||
 mddev->chunk_size != info->chunk_size )
 return -EINVAL;
 /* Check there is only one change */
 if (mddev->size != info->size) cnt++;
 if (mddev->raid_disks != info->raid_disks) cnt++;
 if (mddev->layout != info->layout) cnt++;
 if (cnt == 0) return 0;
 if (cnt > 1) return -EINVAL;

... more update_array_info code

and asking myself why does it look like that resizing soft raid is not supported by this kernel.

mdadm had problems growing and in dmesg i found:
md: couldn't update array info. -22

This happened while trying to grow raid10.
raid10 device contains lvm with 2 non-available lv and consists of 1 nonallocate pv which is raid10 device

And I am wondering which kernel does have most recent code which supports to some degree soft raid growing.

I come across this issue while testing setup of disks overlaid with lvm to simulate flexible partitions overlaid by raid10(/tmp /var /incoming /home) & raid5(/ /data) & raid6 (/home2) used as PV for lvm to serve as container for different filesystems.


                 reply	other threads:[~2005-10-10 18:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200510102003.29996@centrum.cz \
    --to=drtyc@centrum.cz \
    --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).