Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186343 - net-fs/nfs-utils-1.0.12 fails to share a second directory
Summary: net-fs/nfs-utils-1.0.12 fails to share a second directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-23 16:14 UTC by GNUtoo
Modified: 2008-05-04 09:52 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 GNUtoo 2007-07-23 16:14:27 UTC
NFS fail to share a second directory

Reproducible: Always

Steps to Reproduce:
1.enter 2 directories to share in /etc/exports
2.mount the first one,it mounts fine
3.mount the second one,it mount the first one





on the server:
-------------
[ebuild   R   ] net-fs/nfs-utils-1.0.12  USE="tcpd -kerberos -nonfsv4" 0 kB
/dir_one *(ro,fsid=0,insecure,subtree_check,sync)
/dir_two *(ro,fsid=0,insecure,subtree_check,sync,no_root_squash)
# emerge --info
Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-gentoo_sempron_2500 i686)
=================================================================
System uname: 2.6.20-gentoo_sempron_2500 i686 AMD Sempron(tm) 2500+
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Sun, 01 Jul 2007 20:30:10 +0000
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 7zip X a52 aac acl acpi adns alsa amr apache2 asf berkdb bitmap-fonts bl blender-game cairo cdda cddb cdr chardet clearcase cli contrarius cracklib cran crypt css cups cvs dbus dga divx dri dts dv dvd dvdnav dvdr dvdread editor eds effects emboss enca encode evo examples exif expat fam fat ffmpeg firefox flac foomaticdb gdbm gif gimpprint glsa gmedia gpm gstreamer gtk hal hfs httpd iconv inkjar inquisitio ipv6 isdnlog jfs jpeg jpeg2k kde kerberos kqemu lcms ldap libg++ libnotify lzo mad matroska midi mikmod mmx mmxext mng mp3 mp4 mpeg mpi mudflap musepack ncurses nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pcre pdf perforce perl php plugin png ppds pppd python qa qt3 qt3support qt4 quicktime quotas readline realmedia reflection reiser4 reiserfs rt2500pci rtc rtsp samba sdl session skins slang sox speex spell spl srteam sse ssl stream subversion svg swat tcpd tga theora tiff timidity tordns truetype truetype-fonts type1-fonts unicode usb vcd vidx vlm vorbis wma wmf wmp wxwindows x264 x86 xanim xfs xml xorg xprint xv xvid xvmc yv12 zlib zsh" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Linux sempron 2.6.20-gentoo_sempron_2500 #3 Sun Jul 22 04:14:23 CEST 2007 i686 AMD Sempron(tm) 2500+ AuthenticAMD GNU/Linux



on the client:
-------------
[ebuild   R   ] net-fs/nfs-utils-1.0.12  USE="tcpd -kerberos -nonfsv4" 0 kB
portmap was started
Linux port4 2.6.21-rt2_port4 #10 PREEMPT Thu Jun 28 21:12:03 CEST 2007 i686 Intel(R) Pentium(R) M processor 2.00GHz GenuineIntel GNU/Linux
Comment 1 GNUtoo 2007-07-23 16:14:59 UTC
emerge --info of the client:
# emerge --info

!!! Your current profile is deprecated and not supported anymore.
!!! Please upgrade to the following profile if possible:
        selinux/2007.0/x86

To upgrade do the following steps:
# emerge -n '>=sys-apps/portage-2.1.2.0'
# cd /etc
# rm make.profile
# ln -s /usr/portage/profiles/selinux/2007.0/x86 make.profile


Portage 2.1.2.9 (selinux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.21-rt2_port4 i686)
=================================================================
System uname: 2.6.21-rt2_port4 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System release 2.0.0_alpha4
Timestamp of tree: Mon, 23 Jul 2007 14:00:09 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
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 /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks loadpolicy metadata-transfer sandbox selinux sesandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/portage/local/layman/sunrise /usr/portage/local/layman/zugaina /usr/portage/local/layman/custom-kernels /usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac acpi adns aiglx alsa amr apache2 asf berkdb bl blender-game bluetooth cdda cddb cdparanoia chardet clearcase contrarius cracklib cran crypt css cups cvs dbus dga divx dts dv dvd dvdnav dvdread editor effects enca encode examples exif expat fat ffmpeg firefox flac foomaticdb fping gif gimp gimpprint glsa gmedia gstreamer gtk hfs httpd ieee1394 inkjar inquisitio ipv6 jfs jpeg jpeg2k kde kerberos kqemu lcms ldap libnotify lzo matroska midi mikmod mjpeg mmx mmxext mng modplug mp2 mp3 mp4 mpi mplayer musepack ncurses nptl nptlonly nsplugin ntfs ofa ogg openal openexr opengl p2p pam pcre perforce php plugin png pnm ppds python qa qt3 quicktime quotas readline realmedia reiser4 reiserfs rt2500pci rtc rtsp samba sdl selinux session sid skins slang sox speex spell srteam sse sse2 ssl stream subtitles subversion svg swat tcpd tga theora tiff timidity tordns truetype unicode usb v4l vcd vidx vlm vorbis wifi wma wmf wmp wxwindows x264 x86 xanim xfs xine xml xprint xv xvid xvmc yahoo yv12 zlib zsh" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 GNUtoo 2007-07-23 16:15:46 UTC
as i were not shure if it was kernel related or userspace related i've put unspecified as component
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-07-23 19:46:06 UTC
(In reply to comment #0)
> 3.mount the second one,it mount the first one

Hmmm? Could you clarify what you mean? Not reproducible at all.
Comment 4 GNUtoo 2007-07-23 20:37:23 UTC
ok i have 2 shares
share1 and share2
first i mount share1 and i see its content
but when i mount share2 i see the content of share1

what should i do to help debuging this?
is there any verbose mode like samba?
should i run GDB?(and use the compile guide for it)
Comment 5 SpanKY gentoo-dev 2007-07-23 22:01:15 UTC
you could start by posting the actual mount errors you're seeing instead of saying "it failed"
Comment 6 GNUtoo 2007-07-23 23:59:55 UTC
(In reply to comment #5)
> you could start by posting the actual mount errors you're seeing instead of
> saying "it failed"
> 

there is no errors...just that it mounts the other share...how do i enable the verbose mode?
Comment 7 SpanKY gentoo-dev 2007-07-24 03:33:03 UTC
post the exact mount commands you're typing on the client

then post the exact output of `exportfs -v` on the server
Comment 8 GNUtoo 2007-07-24 12:39:24 UTC
#  /etc/init.d/portmap start
 * Starting portmap ...                                                   [ ok ]
# showmount -e cable
Export list for cable:
/Storage     168.0.0.2
/home/gentux 168.0.0.2
mount 168.0.0.1:/Storage /mnt/NFS
here the content of mount:
168.0.0.1:/Storage on /mnt/NFS type nfs (rw,addr=168.0.0.1)

and going into /mnt/NFS i see the content of /home/gentux

# exportfs -v
/home/gentux    168.0.0.2(ro,wdelay,insecure,no_root_squash,fsid=0)
/Storage        168.0.0.2(ro,wdelay,insecure,no_root_squash,fsid=0)



# mount 168.0.0.1:/Storage/ /mnt/NFS -t nfs4
mount: special device 168.0.0.1:/Storage/ does not exist
# cat /proc/filesystems  |grep nfs
nodev   nfs
nodev   nfs4
nodev   nfsd

strange...
Comment 9 nobody 2008-03-30 11:57:53 UTC
You shouldn't export like that in a nfsv4 server

should look like
/nfs4exp/exp1
/nfs4exp/exp2
with /home/gentux bind to /nfs4exp/exp1 and /Storage bind to /nfs4exp/exp2

as nfs4exp should be first one declare as the main export directory could be logic to always see /home/gentux content as its also the first in your export list.
Must be why you have that bug

also
Assuming now that /home/gentux is main export directory, there is no /home/gentux/Storage export, so it could explain your 2nd error.

Anyway i'm not sure why you have theses troubles (i was hoping more explicite messages to help you from nfsd or nfsutils), but i'm sure you better (re)read nfs4 manual