Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 54203

Summary: xfsprogs will not create filesystem on RAID5 with gentoo-dev-sources - MD array <name> not in clean state
Product: Gentoo Linux Reporter: Forrest Gump <forrestgump2000>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://oss.sgi.com/bugzilla/show_bug.cgi?id=337
Whiteboard:
Package list:
Runtime testing required: ---

Description Forrest Gump 2004-06-17 07:09:45 UTC
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.
Comment 1 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-21 11:19:58 UTC
Does this still happen on the gentoo-dev-sources 2.6.7-r2 release?
Comment 2 Forrest Gump 2004-06-23 10:46:51 UTC
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.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2004-07-29 12:55:08 UTC
Does xfsprogs-2.6.3 in Portage work fine?
Comment 4 Forrest Gump 2004-08-01 07:58:44 UTC
That fixes it