Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168977 - reiserfs / is unclean on reboot with baselayout-1.13
Summary: reiserfs / is unclean on reboot with baselayout-1.13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 10:31 UTC by Petteri Räty (RETIRED)
Modified: 2007-05-31 06:13 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bypass mount helpers if they fail (mount.patch,562 bytes, patch)
2007-04-23 16:08 UTC, Roy Marples (RETIRED)
Details | Diff
bypass mount helpers if they fail (mount.patch,562 bytes, patch)
2007-04-23 16:16 UTC, Roy Marples (RETIRED)
Details | Diff
debug output as request (output.txt,3.09 KB, text/plain)
2007-04-23 16:44 UTC, Thomas Matthijs (RETIRED)
Details
testcase (prova.sh,74 bytes, text/plain)
2007-04-24 20:47 UTC, Alessandro Guido
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-03-02 10:31:29 UTC
With sys-apps/baselayout-1.13.0_alpha12 I quote often have fsck checking my root partition at startup saying it was unmounted cleanly. This is my disk layout:

pena gnu-classpath # df -kh
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             416M  361M   55M  87% /
udev                 1007M  852K 1006M   1% /dev
none                  1.0M  156K  868K  16% /lib/rcscripts/init.d
/dev/mapper/raid1-usr
                      3.9G  3.8G  125M  97% /usr
/dev/mapper/raid1-opt
                      1.0G  577M  448M  57% /opt
/dev/mapper/raid1-home
                      6.0G  5.8G  268M  96% /home
/dev/mapper/raid1-var
                     1000M  523M  478M  53% /var
/dev/mapper/raid0-co  5.0G  2.4G  2.7G  48% /mnt/checkouts
/dev/mapper/raid0-linuxsrc
                      5.0G  3.2G  1.9G  64% /usr/src
/dev/mapper/raid0-ccache
                      3.0G  2.2G  832M  73% /var/lib/ccache
/dev/mapper/raid0-cache
                      1.0G   98M  927M  10% /var/cache
/dev/mapper/raid0-portagetmp
                      5.0G  575M  4.5G  12% /var/tmp/portage
/dev/mapper/sata-portage
                      2.0G  253M  1.8G  13% /usr/portage
/dev/mapper/raid0-btdown
                       10G  2.7G  7.4G  27% /home/betelgeuse/btdown
/dev/mapper/raid1-scifi
                       20G   19G  1.4G  93% /home/betelgeuse/scifi
/dev/mapper/raid1-scifi2
                       55G   54G  1.7G  97% /home/betelgeuse/scifi2
/dev/mapper/seagate-images
                       20G   12G  8.1G  60% /home/betelgeuse/images
/dev/sda6              99G   94G  4.3G  96% /mnt/sata
none                 1007M     0 1007M   0% /dev/shm
aria:/usr/src/distfiles
                       10G  9.8G  261M  98% /var/distfiles

Portage 2.1.2-r12 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentooamd64 x86_64)
=================================================================
System uname: 2.6.20-gentooamd64 x86_64 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System version 1.13.0_alpha12
Timestamp of tree: Unknown
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4, 2.5-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect cvs distlocks fixpackages java-strict parallel-fetch sandbox sfperms sign strict userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="fi"
MAKEOPTS="-j2"
PKGDIR="/home/pkg/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://192.168.150.1:/portage"
USE="a52 aac acl acpi alsa apache2 audiofile bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdb cddb cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread emboss esd fam ffmpeg firefox gif gstreamer hal iconv isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility libg++ logitech-mouse mad mikmod mjpeg mmx mp3 mpeg ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl pam pcre png ppds pppd qt3 quicktime readline real reflection rtc samba session spell spl sse sse2 ssl startup-notification subversion svg symlink theora threads truetype truetype-fonts type1-fonts udev unicode usb userlocales vim-syntax vorbis x86 xcb xcomposite xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alessandro Guido 2007-04-14 16:40:32 UTC
sys-apps/baselayout-2.0.0_alpha1 has the same problem on my system

$ emerge --info:
Portage 2.1.2.3 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r1, 2.6.21-rc5 i686)
=================================================================
System uname: 2.6.21-rc5 i686 Intel(R) Pentium(R) M processor 1.86GHz
Gentoo Base System release 2.0.0_alpha1
Timestamp of tree: Sat, 14 Apr 2007 16:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.5-r2
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.14
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php4/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cli-php4/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-pipe -O2 -march=pentium-m -fomit-frame-pointer -fvisibility-inlines-hidden -fvisibility=hidden"
DISTDIR="/var/portage/distfiles"
FEATURES="distlocks metadata-transfer nodoc noinfo parallel-fetch sandbox sfperms strict tmpfs"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="/usr/share/gtk-doc"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="--quiet"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/misc"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 bitmap-fonts cairo cdr cli dbus dvd dvdr emboss gif gnome gstreamer hal isdnlog jpeg libg++ libnotify mad midi mikmod mmx mp3 nls nptl nptlonly ogg opengl pdf png pppd quicktime reflection session spl sse sse2 startup-notification svg threads truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ mount:
/dev/sda1 on / type reiserfs (rw,noatime,nodiratime)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
/dev/sda3 on /home type reiserfs (rw,noatime,nodiratime)
none on /var/tmp/portage/app-emulation/wine-0.9.35/work type tmpfs (rw,noatime,nodiratime,size=800m)

$ cat /etc/fstab:
shm        /dev/shm     tmpfs   nodev,nosuid,noexec  0 0

LABEL=ROOT	/	reiserfs	noatime,nodiratime	0 0
LABEL=HOME	/home	reiserfs	noatime,nodiratime	0 0
LABEL=SWAP	none	swap		sw			0 0

Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-04-23 16:08:42 UTC
Created attachment 117091 [details, diff]
bypass mount helpers if they fail

This patch applies to baselayout-2 and should work with retarded mount helpers, like the one that comes with reiserfs.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-23 16:16:12 UTC
Created attachment 117093 [details, diff]
bypass mount helpers if they fail
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2007-04-23 16:44:36 UTC
Created attachment 117096 [details]
debug output as request

debug output as requested too attach after irc talk
Comment 5 Alessandro Guido 2007-04-23 17:49:19 UTC
I've applied the patch and will try to stress that for a while
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-04-23 20:33:21 UTC
I cannot replicate this issue at all, having / as reiserfs.

My env
locale en_GB.UTF-8
gentoo-sources-2.6.20-r6
reiserfsprogs-3.6.19-r1
util-linux-2.12r-r6
Comment 7 Alessandro Guido 2007-04-24 09:25:45 UTC
The patch seems to fix my problem since I have not been able to reproduce the bug anymore.
Please include it in the next release
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-04-24 11:04:47 UTC
(In reply to comment #7)
> The patch seems to fix my problem since I have not been able to reproduce the
> bug anymore.
> Please include it in the next release

Can you reproduce it without the patch?
Comment 9 Alessandro Guido 2007-04-24 20:47:48 UTC
Created attachment 117175 [details]
testcase

login to a terminal, run "sh prova.sh" and hit Ctrl+Alt+Del
Comment 10 Alessandro Guido 2007-04-24 20:55:24 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > The patch seems to fix my problem since I have not been able to reproduce the
> > bug anymore.
> > Please include it in the next release
> 
> Can you reproduce it without the patch?
> 

Mhh, I should have tested it more. I can still reproduce the problem with _and_ without the patch. I've already attached a very simple testcase.

If I start that script and hit ctrl-alt-del the system does not unmount /home cleanly and does not mount it correctly at the next reboot. This is what I get

cat /proc/mounts:
rootfs / rootfs rw 0 0
/dev/root / reiserfs rw 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0

mount:
/dev/sda1 on / type reiserfs (rw,noatime,nodiratime)
proc on /proc type proc (rw,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
/dev/sda3 on /home type reiserfs (rw,noatime,nodiratime)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)


(notice there is no /dev/sda3 in /proc/mounts)


To mount /home correctly I have to type:
# umount /home
/dev/sda3 is not mounted
/dev/sda3 is not mounted
# mount /home

so the /home gets mounted correctly
Comment 11 Alessandro Guido 2007-05-06 19:48:17 UTC
this bug still applies to baselayout-2_alpha2
Comment 12 Roy Marples (RETIRED) gentoo-dev 2007-05-31 06:13:24 UTC
This should be fixed in alpha3-r1, re-open if you disagree.

By fixed I mean a developer (not me) things it's fixed who also had the problem.
I've never experienced this myself, so YMMV ;)