I'm using Gentoo 2004.1 with gentoo-dev-sources (2.6.5) kernel When I run: mkfs.xfs /dev/md2 I get the following error: MD array /dev/md2 not in clean state When I check /proc/mdstat, it says: md2 : active raid5 hdd4[2] hdb4[1] hda4[0] 3838360 blocks level 5, 32k chunk, algorighm 2 [3/3] [UUU] mdadm also says: State : clean, no-errors Reproducible: Always Steps to Reproduce: 1.Install 2004.1 with gentoo-dev-sources 2.Create a RAID5 array using md 3.Create an xfs filesystem on the RAID5 array Actual Results: MD array /dev/md2 not in clean state Expected Results: Filesystem created 2004.1 using xfs-sources can create xfs on RAID5 fine (But will not boot if the root is XFS) 2004.1 using gentoo-dev-sources can create ext3 or reiserfs on RAID5 fine 2004.1 using gentoo-dev-sources can create xfs on RAID1 fine This is a problem with the xfsprogs package that is available for gentoo. (2.3.9) Once I manually installed the xfsprogs available here: (2.6.13) ftp://oss.sgi.com/projects/xfs/cmd_tars/ everything worked fine. I could create the xfs filesystem on RAID5 just fine.
Does this still happen on the gentoo-dev-sources 2.6.7-r2 release?
Yes, it is still a problem with 2.6.7-r5 I'd say this is a problem with xfsprogs, though, and not the kernel.
Does xfsprogs-2.6.3 in Portage work fine?
That fixes it