Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108532 - Shutdown order - NFS before mysql causes error message
Summary: Shutdown order - NFS before mysql causes error message
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-08 13:34 UTC by Mark Knecht
Modified: 2005-12-08 10:11 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 Mark Knecht 2005-10-08 13:34:43 UTC
I run MythTV which uses MySql. The databases for MySql are kept on a remote
machine which is mounted as an NFS mount. When I attempt to shutdown the MythTV
server it pauses, then complains, at dismounting network drives step. After it
gets past this it eventually dismounst the drive and then later stops mysqld.

Would it not make more sense to stop MythTV and MySql before attempting to
dismount remote NFS drives? This would ensure that MySql had a proper chance to
write to the drive before it went away, or so I think.

Reproducible: Always
Steps to Reproduce:
1. Set up MythTV's backend locally
2. Place the video on a remote NFS mount
3. Do a shutdown locally

Actual Results:  
Hangs, complains, then releases and goes on. No problem, just warnings.

Expected Results:  
Would prefer a shutdown sequence that doesn't complain, if possible. 

dragonfly ~ # emerge info
Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2,
2.6.13-gentoo-r3 i686)
=================================================================
System uname: 2.6.13-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.osuosl.org/
http://gentoo.seren.com/gentoo ftp://gentoo.mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage_temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/root/EBUILDS"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 audiofile avi berkdb bitmap-fonts bonobo caps cdr crypt
cups curl dvd dvdr dvdread eds emboss encode esd fam firebird flac fluidsynth
foomaticdb fortran gd gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2
gtkhtml i8x0 imagemagick imlib ipv6 jack jack-tmpfs java jpeg kde ladcca ladspa
libg++ libwww lirc mad mikmod mjpeg mmx motif mp3 mpeg mysql mythtv ncurses nls
nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png ppds python qt
quicktime readline samba sdl sndfile spell sse sse2 ssl svga tcltk tcpd threads
tiff transcode truetype truetype-fonts type1-fonts usb userlocales v4l v4l2
vorbis xine xml xml2 xmms xscreensaver xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

dragonfly ~ #
Comment 1 Francesco R. (RETIRED) gentoo-dev 2005-12-08 10:11:08 UTC
Thanks for the report,

Newer rc start script should manage this:

cp $PORTDIR/dev-db/mysql/files/mysql-slot.rc6-r1 /etc/init.d/mysql
chmod +x /etc/init.d/mysql

/etc/init.d/mysql restart

rgds, Francesco R.