Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304929 - sys-fs/mdadm error messages on shutdown: failed to stop array, device or ressource busy
Summary: sys-fs/mdadm error messages on shutdown: failed to stop array, device or ress...
Status: RESOLVED DUPLICATE of bug 119380
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 19:29 UTC by Markus Goppelt
Modified: 2010-03-06 22:53 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 Markus Goppelt 2010-02-13 19:29:09 UTC
mdadm produces error messages on shutdown:

Shutting down RAID devices (mdadm) ...
mdadm: stopped /dev/md?
mdadm: failed to stop array /dev/md?: Device or ressource busy

It manages to stop some devices. Whether a filesystem was mounted on a device doesn't make a difference. For instance:

mdadm stops md1 and md5

fails to stop md2/3/6 and 7

root was mounted on md3
usr on md5
home on md6

# cat /proc/mdstat 
Personalities : [raid0] [raid1] 
md1 : active raid1 sdc1[1] sda1[0]
      40064 blocks [2/2] [UU]
      
md2 : active raid0 sdc2[1] sda2[0]
      16787712 blocks 64k chunks
      
md3 : active raid1 sdc3[1] sda3[0]
      33559680 blocks [2/2] [UU]
      
md5 : active raid1 sdc5[1] sda5[0]
      67119424 blocks [2/2] [UU]
      
md6 : active raid1 sdc6[1] sda6[0]
      134222976 blocks [2/2] [UU]
      
md7 : active raid1 sdc7[1] sda7[0]
      134222976 blocks [2/2] [UU]
      
unused devices: <none>

The next item in the shutdown process is "Remounting remaining filesystems readonly ...". Unfortunately it is not specified which filesystems are remounted.


Reproducible: Always




# emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-1.12.13
Timestamp of tree: Sun, 31 Jan 2010 18:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb blas bluetooth bzip2 cairo caps cdinstall cdr clamav cli consolekit cracklib cups cupsddk cxx dbus dri dvd dvdr dvdread embedded encode fbcon ffmpeg firefox fortran gdbm gif gmp gnome gnuplot gpm gstreamer gtk iconv imap ipv6 java jpeg jpeg2k kde kpathsea lapack latex libedit lm_sensors mmx mng modules moznopango mp3 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin oav opengl openmp pam pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 readline reflection samba scanner sdl semantic-desktop session spl sql sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis webkit wmf xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2010-03-06 22:53:20 UTC

*** This bug has been marked as a duplicate of bug 119380 ***