DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th July 2008
bsduser bsduser is offline
Port Guard
 
Join Date: Jun 2008
Location: Toronto
Posts: 12
Default NFS and FreeBSD 6.2r strange problem ..

Hi .. I am trying to configure my freebsd nfs server to share some folders with my local network area .. actually, I have alredy configured it, I am sharing the folders on my local network area, and everything seems work well except when I try to exports /usr and subdirectories, I got a strange message when I try to mount /usr ( maybe is just my inexperience fault )

Code:
Jul 10 16:53:14 Ultra5 mountd[448]: can't change attributes for /usr
Jul 10 16:53:14 Ultra5 mountd[448]: bad exports list line /usr -alldirs  -maproot
Jul 10 16:53:27 Ultra5 mountd[449]: mount request denied from 192.168.1.3 for /usr
and I can see this message from the macosx client when I try to mount this directory

Code:
macbook-di-pietro:Desktop pietro$ mount -v 192.168.1.10:/usr /Users/Pietro/Desktop/usr_nfs
mount_nfs: bad MNT RPC: RPC: Can't decode result\n
This is my /etc/exports in my freebsd NFS Server

Code:
# $FreeBSD NFS sun server
/usr/home/ftpbsd  -maproot=root macosx
/mnt  -maproot=root macosx
/usr -alldirs  -maproot=0 macosx  
/usr/home/rackbsd -maproot=bin: -network 192.168.1.0 -mask 255.255.255.0
and /etc/rc.conf

Code:
# NFS
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
I dunno what to do .. I followed the FreeBSD NFS handbook and I read the exports manpage as well ..

Thanks
__________________
OpenSource + Free Thinking + Free Choise = FreeBSD
http://www.openbsd.org/zaurus.html
Edit/Delete Message

Last edited by bsduser; 10th July 2008 at 02:21 PM. Reason: mistake
Reply With Quote
  #2   (View Single Post)  
Old 10th July 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

NFS V3.0 has a fallback to only mount -r when it does not understands the file system file naming.
In other words, file names encoded UTF-8 will prevent a non-UTF-8 aware client to mount -rw.
Now, NFS has no standard and is included as base in almost every OS each OS maintainer having his own view on the subject.
With FreBSD8 both as server and client I could only mount -ro, while the same files FreeBSD ckient from OpenBSD server worked as expected.
Neither server could be mounted -rw from Windows SFU.

You seem to have a supplementary problem: try to use consistent UID/GID across all OSes
${user}:wheel
will eventually work as 1000:0 (Nor every OS has wheel = root = 0)
most OSes will enable you to set 1000 as minimum UID (some start at 100).
Now NFS mounts on name, not on numbers, hence the GID should have a name and number consistent across OSes.
Also, file names must be restricted to ASCII-7.
Mission impossible.

Summary: don't use NFS
Am thinking of using database engines for -rw shareable/updateable files, but have no idea of where to start as the database is the file system.
__________________
da more I know I know I know nuttin'
Reply With Quote
  #3   (View Single Post)  
Old 11th July 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

When in doubt, read the man page (exports(5)).

There are three parts to an exports line:
  1. path(s)
  2. options, delimited by commas
  3. host(s)

Note the second part. -alldirs -maproot doesn't fit.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 11th July 2008
bsduser bsduser is offline
Port Guard
 
Join Date: Jun 2008
Location: Toronto
Posts: 12
Default

Quote:
Originally Posted by phoenix View Post
When in doubt, read the man page (exports(5)).

There are three parts to an exports line:
  1. path(s)
  2. options, delimited by commas
  3. host(s)

Note the second part. -alldirs -maproot doesn't fit.
Ok, but, I tried a lot of possbility, and I always got the same message .. now I am going to rebuild the world and switch to 7.0 stable, maybe something will change ...
__________________
OpenSource + Free Thinking + Free Choise = FreeBSD
http://www.openbsd.org/zaurus.html
Edit/Delete Message

Last edited by bsduser; 11th July 2008 at 11:50 AM. Reason: mistake
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange FreeBSD Issues (USB/Nvidia Drivers) bjstick FreeBSD Installation and Upgrading 9 10th April 2017 10:57 AM
Strange lib problem mururoa FreeBSD General 3 1st August 2009 07:34 AM
Strange network problem mururoa FreeBSD General 15 5th November 2008 08:25 AM
strange load problem on freebsd 7.0 amd64 skynet_tech FreeBSD General 3 11th September 2008 09:49 PM
Strange Eterm-problem PatrickBaer FreeBSD General 5 22nd July 2008 07:54 AM


All times are GMT. The time now is 10:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick