On Tuesday May 3, herta.vandeneynde@xxxxxxxxxxxxxx wrote: (sorry for the delay in looking at this). > Red Hat AS 2.1 mdadm 1.11 > I have two devices that used to be part of a now corrupt RAID10 > configuration. When I try to reuse them to create a RAID1, it only uses > about 1 third of the diskspace available. > # fdisk -l /dev/sdg > > Disk /dev/sdg: 255 heads, 63 sectors, 8924 cylinders > Units = cylinders of 16065 * 512 bytes ... > mdadm: size set to 139904K > Continue creating array? n Yep, there is a bug in 1.11.0. In Create.c, line 209, else { ldsize = dsize; dsize <<= 9; } should be else { ldsize = dsize; ldsize <<= 9; } It only affects systems where ioctl(BLKGETSIZE64) doesn't exist or fails. > > If I try to add the --size option, even a size that is 139904K or less, > it tells me the size is invalid: > > # mdadm --create --verbose /dev/md5 --level=1 --raid-devices=2 /dev/sdg > /dev/sdn --size=139904K > mdadm: invalid size: 139904K size should be a simple integer, no suffix, and it wouldn't let you create an array using more space than it thinks exists anyway. I guess it is time for a 1.12 ?? NeilBrown - 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