Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37604 - mkfs.xfs refuses to make XFS on a RAID-1 device
Summary: mkfs.xfs refuses to make XFS on a RAID-1 device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-08 06:13 UTC by Clock
Modified: 2004-08-20 22:07 UTC (History)
1 user (show)

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 Clock 2004-01-08 06:13:21 UTC
mkfs.xsf /dev/md0
MD array /dev/md0 not in clean state

bash-2.05b# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md0 : active raid1 sdd1[1] sdc1[0]
      245111616 blocks [2/2] [UU]

unused devices: <none>

The array is clean and running.

Reproducible: Always
Steps to Reproduce:
1.make a raid-1 array /dev/md0 and start it and let synchronize
2.mkfs.xfs /dev/md0
3.check /proc/mdstat that the array is clean and running

Actual Results:  
Error message: MD array /dev/md0 not in clean state

Expected Results:  
Make a XFS filesystem on /dev/md0. mkfs.ext2 works normally.

bash-2.05b# emerge info
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0)
=================================================================
System uname: 2.6.0 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -fstrength-reduce -fschedule-insns -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -fstrength-reduce -fschedule-insns -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.56.131/sites/www.ibiblio.org/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Clock 2004-01-08 08:52:02 UTC
xfs-2.5.6 as installed according to "Beyond Linux From Scratch" don't have this problem. However, it's impossible to compile them, because their ./configure script detects sizeof(char, int, pointer, long) to be 0 and then compilation of xfs-2.5.6 crashes.
Comment 2 Krister Joas 2004-01-31 18:16:36 UTC
I thnk this is due to a bug in xfsprogs-2.3.9 in libdisk/md.c line 73 where the clean state test
is incorrect:

if (md.state) {
  ...
}

Should be:

if (md.state & (1 << MD_SB_ERRORS)) {
  ...
}
Comment 3 Will 2004-05-30 18:40:45 UTC
Has there been any resolution to this issue with xfsprogs-2.3.9?  Is xfsprogs-2.3.9 going to be patched to fix this or is the stable version going to be bumped to xfsprogs-2.6.0?  I ran into this same problem when trying to setup a raid-5 partition 
Comment 4 SpanKY gentoo-dev 2004-08-20 22:07:05 UTC
2.6.13 is now stable