* softraid growing?
@ 2005-10-10 18:03 drtyc
0 siblings, 0 replies; only message in thread
From: drtyc @ 2005-10-10 18:03 UTC (permalink / raw)
To: linux-raid
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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-10 18:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-10 18:03 softraid growing? drtyc
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).