softraid growing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux