Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After update, pxe client does not remount root rw anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 240

PostPosted: Sun Dec 28, 2008 4:02 pm    Post subject: After update, pxe client does not remount root rw anymore Reply with quote

HI!

After I updated my PXE diskless client today, it won't boot anymore. I updated only packages, not the kernel.

I get errors like
* Skipping /etc/mtab initialization (ro root?)
* Updating modules.dep
FATAL: Could not open ...../modules.dep.temp for writing: Read-only file system
rm: Cannot remove /fastboot: File system is read-only

These messages lead me to the conclusion, that the root fs is not being remounted rw anymore.

/etc/exports on the server and /etc/fstab on the client should be OK, because it worked before the update.

I tried adding "mount -n -o remount,rw -" to /etc/init.d/checkroot, as suggested here: https://forums.gentoo.org/viewtopic-t-719501-highlight-nfs+remount.html

I also tried patching /usr/share/genkernel/generic/linuxrc with the patch from https://bugs.gentoo.org/show_bug.cgi?id=246759.

Both did not help. Or should I have rebuilt the current kernel to make the 2nd solution working?

Any help would be greatly appreciated.

Thanks!

Thomas

These are the packages, that have been updated:
Code:

     Sun Dec 28 09:30:53 2008 >>> sys-libs/e2fsprogs-libs-1.41.2
     Sun Dec 28 09:32:01 2008 >>> sys-fs/e2fsprogs-1.41.2
     Sun Dec 28 09:37:42 2008 >>> app-arch/lzma-utils-4.32.7
     Sun Dec 28 09:38:18 2008 >>> dev-db/sqlite-3.5.9
     Sun Dec 28 09:38:28 2008 >>> media-sound/alsa-headers-1.0.17
     Sun Dec 28 09:38:40 2008 >>> sys-libs/timezone-data-2008i
     Sun Dec 28 09:41:38 2008 >>> media-libs/libmp4v2-1.5.0.1-r1
     Sun Dec 28 09:42:19 2008 >>> dev-libs/libevent-1.4.7
     Sun Dec 28 09:42:54 2008 >>> media-libs/libcdaudio-0.99.12-r1
     Sun Dec 28 09:43:16 2008 >>> sys-devel/patch-2.5.9
     Sun Dec 28 09:44:04 2008 >>> dev-util/strace-4.5.18
     Sun Dec 28 09:46:35 2008 >>> sys-libs/ncurses-5.6-r2
     Sun Dec 28 09:47:08 2008 >>> media-libs/libpng-1.2.33
     Sun Dec 28 09:47:34 2008 >>> dev-libs/nspr-4.7.3
     Sun Dec 28 09:48:17 2008 >>> dev-libs/libpcre-7.8
     Sun Dec 28 09:49:19 2008 >>> app-portage/eix-0.15.2
     Sun Dec 28 09:52:22 2008 >>> dev-libs/nss-3.12.2_rc1
     Sun Dec 28 09:52:33 2008 >>> sys-kernel/genkernel-3.4.10-r2
     Sun Dec 28 09:53:06 2008 >>> sys-process/htop-0.8.1-r1
     Sun Dec 28 09:53:14 2008 >>> sys-apps/ed-1.0
     Sun Dec 28 09:53:27 2008 >>> sys-apps/man-pages-3.14
     Sun Dec 28 09:53:50 2008 >>> dev-lang/nasm-2.04
     Sun Dec 28 09:54:06 2008 >>> perl-core/Compress-Raw-Zlib-2.015
     Sun Dec 28 09:54:17 2008 >>> dev-perl/Compress-Raw-Bzip2-2.015
     Sun Dec 28 09:54:24 2008 >>> perl-core/Package-Constants-0.01
     Sun Dec 28 09:54:34 2008 >>> dev-perl/HTML-Parser-3.56
     Sun Dec 28 09:54:38 2008 >>> virtual/perl-Compress-Raw-Zlib-2.015
     Sun Dec 28 09:54:42 2008 >>> virtual/perl-ExtUtils-CBuilder-0.23
     Sun Dec 28 09:54:45 2008 >>> virtual/perl-ExtUtils-ParseXS-2.19
     Sun Dec 28 09:54:54 2008 >>> perl-core/IO-Compress-Base-2.015
     Sun Dec 28 09:58:56 2008 >>> app-crypt/mit-krb5-1.6.3-r4
     Sun Dec 28 09:59:47 2008 >>> media-libs/faad2-2.6.1-r2
     Sun Dec 28 10:01:16 2008 >>> media-sound/lame-3.98.2
     Sun Dec 28 10:02:12 2008 >>> media-libs/libtheora-1.0_beta3-r1
     Sun Dec 28 10:02:16 2008 >>> virtual/perl-IO-Compress-Base-2.015
     Sun Dec 28 10:02:55 2008 >>> net-misc/rsync-3.0.4
     Sun Dec 28 10:03:42 2008 >>> media-libs/libmpeg3-1.7
     Sun Dec 28 10:03:52 2008 >>> perl-core/IO-Compress-Zlib-2.015
     Sun Dec 28 10:03:59 2008 >>> dev-perl/IO-Compress-Bzip2-2.015
     Sun Dec 28 10:04:03 2008 >>> virtual/perl-IO-Compress-Zlib-2.015
     Sun Dec 28 10:04:12 2008 >>> perl-core/Compress-Zlib-2.015
     Sun Dec 28 10:04:15 2008 >>> virtual/perl-Compress-Zlib-2.015
     Sun Dec 28 10:04:19 2008 >>> virtual/perl-IO-Zlib-1.09
     Sun Dec 28 10:04:29 2008 >>> perl-core/Archive-Tar-1.40
     Sun Dec 28 10:04:33 2008 >>> virtual/perl-Archive-Tar-1.40
     Sun Dec 28 10:04:45 2008 >>> perl-core/Module-Build-0.28.08
     Sun Dec 28 10:04:48 2008 >>> virtual/perl-Module-Build-0.28.08
     Sun Dec 28 10:07:17 2008 >>> net-misc/ntp-4.2.4_p5
     Sun Dec 28 10:16:21 2008 >>> dev-db/mysql-5.0.70-r1
     Sun Dec 28 10:16:52 2008 >>> x11-terms/xterm-237
     Sun Dec 28 10:17:44 2008 >>> sys-apps/util-linux-2.14.1
     Sun Dec 28 10:18:43 2008 >>> sys-apps/findutils-4.4.0
     Sun Dec 28 10:19:21 2008 >>> sys-devel/flex-2.5.35
     Sun Dec 28 10:19:51 2008 >>> dev-lang/yasm-0.7.1
     Sun Dec 28 10:20:57 2008 >>> app-text/hunspell-1.2.6
     Sun Dec 28 10:22:32 2008 >>> dev-libs/libcdio-0.80
     Sun Dec 28 10:23:52 2008 >>> media-libs/flac-1.2.1-r3
     Sun Dec 28 10:24:40 2008 >>> sys-apps/gawk-3.1.6
     Sun Dec 28 10:25:52 2008 >>> sys-fs/xfsprogs-2.10.1
     Sun Dec 28 10:26:09 2008 >>> app-admin/eselect-1.0.11-r1
     Sun Dec 28 10:26:33 2008 >>> media-libs/x264-0.0.20081006
     Sun Dec 28 10:27:04 2008 >>> dev-libs/libIDL-0.8.11
     Sun Dec 28 10:27:41 2008 >>> app-text/enscript-1.6.4-r4
     Sun Dec 28 10:27:58 2008 >>> x11-libs/xtrans-1.2.2
     Sun Dec 28 10:28:14 2008 >>> x11-proto/inputproto-1.5.0
     Sun Dec 28 10:28:51 2008 >>> x11-libs/libXi-1.2.0
     Sun Dec 28 10:29:52 2008 >>> media-libs/mesa-7.0.3
     Sun Dec 28 10:30:42 2008 >>> media-libs/giflib-4.1.6-r1
     Sun Dec 28 10:31:37 2008 >>> media-libs/jasper-1.900.1-r3
     Sun Dec 28 10:32:46 2008 >>> sys-kernel/gentoo-sources-2.6.27-r7
     Sun Dec 28 10:33:33 2008 >>> sys-fs/cryptsetup-1.0.5-r1
     Sun Dec 28 10:33:59 2008 >>> sys-apps/lm_sensors-2.10.7
     Sun Dec 28 11:17:36 2008 >>> sys-devel/gcc-4.1.2
     Sun Dec 28 11:33:20 2008 >>> sys-libs/glibc-2.6.1
     Sun Dec 28 11:33:31 2008 >>> sys-libs/libcap-2.15
     Sun Dec 28 11:34:44 2008 >>> sys-apps/busybox-1.11.3
     Sun Dec 28 11:34:58 2008 >>> net-misc/netkit-rsh-0.17-r9
     Sun Dec 28 11:37:49 2008 >>> dev-lang/python-2.5.2-r7
     Sun Dec 28 11:40:06 2008 >>> dev-libs/libxml2-2.7.2-r1
     Sun Dec 28 11:41:27 2008 >>> media-libs/alsa-lib-1.0.17a
     Sun Dec 28 11:41:37 2008 >>> dev-java/java-config-2.1.6-r1
     Sun Dec 28 11:41:47 2008 >>> dev-java/java-config-1.3.7-r1
     Sun Dec 28 11:42:58 2008 >>> net-fs/nfs-utils-1.1.3
     Sun Dec 28 11:44:02 2008 >>> dev-java/sun-jdk-1.6.0.11
     Sun Dec 28 11:45:02 2008 >>> dev-libs/dbus-glib-0.76
     Sun Dec 28 11:45:46 2008 >>> media-sound/alsa-utils-1.0.17
     Sun Dec 28 11:47:30 2008 >>> net-misc/openssh-5.1_p1-r1
     Sun Dec 28 11:53:05 2008 >>> dev-util/subversion-1.5.4
     Sun Dec 28 11:55:23 2008 >>> net-misc/tightvnc-1.3.9-r2
     Sun Dec 28 11:57:44 2008 >>> media-video/ffmpeg-0.4.9_p20081014
     Sun Dec 28 12:19:56 2008 >>> net-libs/xulrunner-1.9.0.5
     Sun Dec 28 12:24:50 2008 >>> media-video/mplayer-1.0_rc2_p28058-r1
     Sun Dec 28 12:26:07 2008 >>> media-sound/vorbis-tools-1.2.0-r2
     Sun Dec 28 12:27:09 2008 >>> gnome-extra/libgsf-1.14.7
     Sun Dec 28 12:28:38 2008 >>> www-client/mozilla-firefox-3.0.5
     Sun Dec 28 12:34:47 2008 >>> media-gfx/imagemagick-6.4.4.6
     Sun Dec 28 12:39:03 2008 >>> media-video/transcode-1.0.7_rc1
     Sun Dec 28 12:57:19 2008 >>> media-tv/mythtv-0.21_p18314-r1
     Sun Dec 28 12:59:02 2008 >>> net-print/cups-1.3.9-r1
     Sun Dec 28 13:06:25 2008 >>> app-text/ghostscript-gpl-8.63
     Sun Dec 28 13:17:57 2008 >>> x11-base/xorg-server-1.4.2
     Sun Dec 28 13:18:41 2008 >>> x11-drivers/nvidia-drivers-96.43.09
     Sun Dec 28 14:50:16 2008 >>> media-libs/libquicktime-1.0.3
     Sun Dec 28 14:55:00 2008 >>> media-libs/xine-lib-1.1.15-r1
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 240

PostPosted: Sun Dec 28, 2008 9:51 pm    Post subject: Reply with quote

I got some more info:

During boot, I am missing this message:
Remounting root filesystem read/write

So, it even does not try to remount the root fs rw.

Searching around the Internet, I think maybe this update has caused the problem:
sys-apps/util-linux, 2.13.1.1 -> 2.14.1

But is it a bug? Then how to workaround? Or is it a new feature? Then how to configure?

BTW: During this update, I also switched from profile 2007.0 to 2008.0. But that did not cause many rebuilds.

This is the filesystem in /etc/exports:
/pxe/frontend 192.168.0.5(rw,sync,no_root_squash)

This is /etc/fstab on the client:
192.168.0.7:/pxe/frontend / nfs nfsvers=3,tcp,intr,rw,nolock,rsize=8192,wsize=8192 0 0

These are the boot options in pxelinux.cfg:
append initrd=initramfs-genkernel-x86-2.6.25-gentoo-r8 ip=dhcp real_root=/dev/nfs nfsroot=192.168.0.7:/pxe/frontend vga=791 splash=silent,theme:livecd-2007.0 console=tty1 quiet


Thanks for any hints.
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 240

PostPosted: Sun Dec 28, 2008 11:07 pm    Post subject: Reply with quote

Upon further investigation, I found out, that mount behaves differently in the newer util-linux, which causes /etc/init.d/checkroot to act differently.

checkroot:
Code:

       # Should we mount root rw ?  the touch check is to see if the / is
        # already mounted rw in which case there's nothing for us to do
        if mount -vf -o remount / 2> /dev/null | \
           awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }' && \
           ! touch -c / >& /dev/null
        then
                ebegin "Remounting root filesystem read/write"
                mount -n -o remount,rw / &> /dev/null


Now, "mount -vf -o remount" writes for local mounts something like this:
Code:
/dev/hda7 on /extra type xfs (rw)


So, the test in checkroot works.

But for NFS mounts, mount writes NOTHING in the older util-linux, so the if branch is always true. On the other hand, mount from the newer util-linux writes something like this:
Code:
mount.nfs: timeout set for Sun Dec 28 23:24:35 2008
mount.nfs: text-based options: 'nfsvers=3,tcp,intr,nolock,rsize=8192,wsize=8192,addr=192.168.0.7'


So, there is no "rw" in $6 and so the if branch is always false and hence no remount attempt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum