Summary: | reiserfs / is unclean on reboot with baselayout-1.13 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ag, axxo, desintegr, loki_val, pesa |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
bypass mount helpers if they fail
bypass mount helpers if they fail debug output as request testcase |
Description
Petteri Räty (RETIRED)
2007-03-02 10:31:29 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 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.
Created attachment 117093 [details, diff]
bypass mount helpers if they fail
Created attachment 117096 [details]
debug output as request
debug output as requested too attach after irc talk
I've applied the patch and will try to stress that for a while 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 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 (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? Created attachment 117175 [details]
testcase
login to a terminal, run "sh prova.sh" and hit Ctrl+Alt+Del
(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 this bug still applies to baselayout-2_alpha2 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 ;) |