Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108901 - mkraid has no ability to explicitly limit the size of the RAID
Summary: mkraid has no ability to explicitly limit the size of the RAID
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 10:57 UTC by Robert Forsman
Modified: 2005-10-11 13:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Forsman 2005-10-11 10:57:51 UTC
When constructing a RAID with mkraid there is no way to limit the size of the
resulting pseudo-device.

When creating partitions, you can specify a size to fdisk, but it is possible
that you end up creating a partition that is a little bit larger because it
rounds up.

mkraid for a mirror creates a pseudo-device which is the minimum of the sizes of
the component partitions.  Similar minimums are used when constructing RAID5.

scenario: 
you ask fdisk for a 64G /dev/sda1 and get a 64.01G /dev/sda1.  
You ask fdisk for a 64G /dev/sdb1 and get a 64.01G /dev/sdb1.
You build a raid /dev/md0 from /dev/sda1 and /dev/sdb1.  It is 64.01G
/dev/sdb fails.  You replace it with /dev/sdc.
you ask fdisk for a 64G /dev/sdc1 and get a 64.00G /dev/sdc1.
raidhotadd chokes because /dev/sdc1 is not large enough to participate in the
mirror.


Reproducible: Always
Steps to Reproduce:
raidhotadd /dev/md0 /dev/sdc1
Actual Results:  
/dev/md0: can not hot-add disk: too small disk!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-11 11:00:22 UTC
Not a Gentoo-specific problem, please report feature requests upstream. 
Comment 2 Robert Forsman 2005-10-11 13:59:09 UTC
The HOMEPAGE referenced in the sys-fs/raidtools-1.00.3-r6.ebuild is
http://people.redhat.com/mingo/raidtools/
The page this points at does not appear to be much of an "upstream", eh?