Fedora Linux Support Community & Resources Center
  #1  
Old 27th January 2012, 04:15 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
FC16 and NFS 4 Setup

Greetings all,

I want to load NFS v4 onto my newly created FC16 (64-bit) server. I succeeded at doing this in the past for a FC6 system and have been consulting my old notes as a guide. However, I'd barely gotten started when in my old notes I needed to modify my idmapd.conf file. My notes show that this file should look like this once I've edited it:

[General]
Verbosity = 0
Pipefs-Directory = /var/lib/nfs/rpc_pipefs
Domain = localdomain

[Mapping]
Nobody-User = nfsnobody
Nobody-Group = nfsnobody

[Translation]
Method = nsswitch


However, when I pull open the file, it is blank.

Okay, so suddenly I think that perhaps there are many differences that have occurred since FC6. And I have begun looking for a guide to nfs installation under FC16.

Can anyone here point me to such a guide? I see a great deal on the net on the subject, but nothing specifically for FC16.

Thanks all.

Appreciatively,
ablen
Reply With Quote
  #2  
Old 30th January 2012, 03:31 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

Hello all,

Still looking for a little guidance on insalling NFS under FC16. Has someone done this? Can someone point me in the right direction?
Reply With Quote
  #3  
Old 31st January 2012, 04:41 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

Okay, I found this draft for NFS configuration and I'm going to give it a try. It specifies that it is OK for FC15 so hopefully it will work under FC16 as well.

http://fedoraproject.org/wiki/Admini...uide_Draft/NFS

Since it is dated 2012 I am hopeful that this is the up-to-date walkthrough I have been searching for. I will post progress here.
Reply With Quote
  #4  
Old 31st January 2012, 05:17 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,330
linuxfirefox
Re: FC16 and NFS 4 Setup

looks like it is the same except for one small detail.

F16 changed the name of the nfs server service.

in F15, it is nfs, and in F16 it is nfs-server. So where it tells you to start nfs, change it to start nfs-server instead.

Easiest way to start the nfs-server on F16 on boot:

Code:
systemctl enable nfs-server
The guide you linked to still uses the old chkconfig method of starting it, which still works, but is being phased out with the change to systemd.
Reply With Quote
  #5  
Old 31st January 2012, 08:11 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

Thanks very much. DBelton, can you provide insight into my first question as well? Is it necessary for me to configure /etc/idmapd.conf as I showed in my first post? I think the answer to this is yes, but because this file does not even exist (unless I create it) under FC16 I just wasn't sure. (Perhaps I have to set these values elsewhere instead??)

If you have a working FC16 system and could check that file for me I would very much appreciate it.

Last edited by ablen; 31st January 2012 at 08:13 PM.
Reply With Quote
  #6  
Old 31st January 2012, 09:11 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,330
linuxfirefox
Re: FC16 and NFS 4 Setup

Here is the default /etc/idmapd.conf file as provided in F16.

Code:
[General]
#Verbosity = 0
# The following should be set to the local NFSv4 domain name
# The default is the host's DNS domain name.
#Domain = local.domain.edu

# The following is a comma-separated list of Kerberos realm
# names that should be considered to be equivalent to the
# local realm, such that <user>@REALM.A can be assumed to
# be the same user as <user>@REALM.B
# If not specified, the default local realm is the domain name,
# which defaults to the host's DNS domain name,
# translated to upper-case.
# Note that if this value is specified, the local realm name
# must be included in the list!
#Local-Realms = 

[Mapping]

#Nobody-User = nobody
#Nobody-Group = nobody

[Translation]

# Translation Method is an comma-separated, ordered list of
# translation methods that can be used.  Distributed methods
# include "nsswitch", "umich_ldap", and "static".  Each method
# is a dynamically loadable plugin library.
# New methods may be defined and inserted in the list.
# The default is "nsswitch".
#Method = nsswitch

# Optional.  This is a comma-separated, ordered list of
# translation methods to be used for translating GSS
# authenticated names to ids.
# If this option is omitted, the same methods as those
# specified in "Method" are used.
#GSS-Methods = <alternate method list for translating GSS names>
 
#-------------------------------------------------------------------#
# The following are used only for the "static" Translation Method.
#-------------------------------------------------------------------#
[Static]

# A "static" list of GSS-Authenticated names to
# local user name mappings

#someuser@REALM = localuser


#-------------------------------------------------------------------#
# The following are used only for the "umich_ldap" Translation Method.
#-------------------------------------------------------------------#

[UMICH_SCHEMA]

# server information (REQUIRED)
LDAP_server = ldap-server.local.domain.edu

# the default search base (REQUIRED)
LDAP_base = dc=local,dc=domain,dc=edu

#-----------------------------------------------------------#
# The remaining options have defaults (as shown)
# and are therefore not required.
#-----------------------------------------------------------#

# whether or not to perform canonicalization on the
# name given as LDAP_server
#LDAP_canonicalize_name = true

# absolute search base for (people) accounts
#LDAP_people_base = <LDAP_base>

# absolute search base for groups
#LDAP_group_base = <LDAP_base>

# Set to true to enable SSL - anything else is not enabled
#LDAP_use_ssl = false

# You must specify a CA certificate location if you enable SSL
#LDAP_ca_cert = /etc/ldapca.cert

# Objectclass mapping information

# Mapping for the person (account) object class
#NFSv4_person_objectclass = NFSv4RemotePerson

# Mapping for the nfsv4name attribute the person object
#NFSv4_name_attr = NFSv4Name

# Mapping for the UID number
#NFSv4_uid_attr = UIDNumber

# Mapping for the GSSAPI Principal name
#GSS_principal_attr = GSSAuthName

# Mapping for the account name attribute (usually uid)
# The value for this attribute must match the value of 
# the group member attribute - NFSv4_member_attr
#NFSv4_acctname_attr = uid

# Mapping for the group object class
#NFSv4_group_objectclass = NFSv4RemoteGroup

# Mapping for the GID attribute
#NFSv4_gid_attr = GIDNumber

# Mapping for the Group NFSv4 name
#NFSv4_group_attr = NFSv4Name

# Mapping for the Group member attribute (usually memberUID)
# The value of this attribute must match the value of NFSv4_acctname_attr
#NFSv4_member_attr = memberUID

The defaults will give you a working system, and you only should change the values that you need to.


have you installed the nfs-utils package?
Reply With Quote
  #7  
Old 31st January 2012, 10:24 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,068
linuxfirefox
Re: FC16 and NFS 4 Setup

Quote:
Originally Posted by DBelton View Post
looks like it is the same except for one small detail.

F16 changed the name of the nfs server service.

in F15, it is nfs, and in F16 it is nfs-server. So where it tells you to start nfs, change it to start nfs-server instead.

Easiest way to start the nfs-server on F16 on boot:

Code:
systemctl enable nfs-server
The guide you linked to still uses the old chkconfig method of starting it, which still works, but is being phased out with the change to systemd.

On thing I noticed is that the old system-config-nfs tool if used on Fedora 16 mistakenly tries to start the 'nfs' service instead of 'nfs-server' (oddly it correctly uses systemctl, but just uses the wrong service name)
But since I had already set up the correct service name, the system-config-nfs correctly set up my files the way Fedora 16 needs them.
Reply With Quote
  #8  
Old 7th February 2012, 08:11 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

DBelton,

Ah, I see that I had to install nfs before I was able to find the /etc/idmapd.conf file. After I executed the installation:

su -c 'yum install -y nfs-utils system-config-nfs'

I was able to find and edit the idmapd.conf file which appeared as you predicted.

Additionally, I've edited the /etc/exports file on the server and granted access to the home directories with this command:
/home mymachines* (rw,async)

marko, thank you for your comment also. Following the edit of the /etc/exports file I've tried the suggested command to start nfs-server:
systemctl enable nfs-server

and indeed I get an error message:
Failed to issue method call. Invalid argument.

When I instead used these commands (on the server under root) it started:

systemctl enable nfs-server.service
systemctl start nfs-server.service


Please comment if you see any problems so far. Thanks!

Last edited by ablen; 27th March 2012 at 02:46 PM.
Reply With Quote
  #9  
Old 7th February 2012, 09:56 PM
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 7,330
linuxfirefox
Re: FC16 and NFS 4 Setup

This is a face-palm moment. I knew it was nfs-server.service, yet put nfs-server above.
Sorry about that
Reply With Quote
  #10  
Old 8th February 2012, 07:59 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

DBelton, no problem. You definitely pointed me in the right direction.

Here's what I have done today for NFS so far (on the server):

installed portmap with this command:
yum whatprovides portmap

I don't know if I have to do more for portmap, so I have done nothing else at this point.

Also I made some modifications to /etc/hosts.allow (the text of that file follows). Please tell me if my syntax looks correct (my computers are called mymachinessrv, mymachines2, and mymachines3):

rpcbind : mymachines*
portmap : mymachines*
lockd: mymachines*
rquotad: mymachines*
mountd: mymachines*
statd: mymachines*
Reply With Quote
  #11  
Old 9th February 2012, 06:52 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

Okay, I think I am almost finished. I configured my client node as follows:

I added the following lines in /etc/hosts.allow:
rpcbind : mymachines*
portmap : mymachines*
lockd : mymachines*
rquotad : mymachines*
mountd : mymachines*
statd : mymachines*


I appended these lines at the end of /etc/fstab on the client:

# automatic mounting
mymachines:/home /home nfs4 auto,rw,nodev,sync,_netdev,proto=tcp,retry=10,rs
ize=2048,wsize=2048,hard,intr 0 0




When I restarted the client and tried to do the mount, it seemed to work. But I believe I have to turn off the NFS Lock as well.

When I run:
systemctl -a | grep nfs

it shows that the nfs-lock.service is loaded, active, and running.

How can I change the value under FC16? My notes for a prior version of FC suggest that the lock should be off, but not sure how to turn this off.

All suggestions welcome!!!



My thanks in advance.

Last edited by ablen; 9th February 2012 at 07:14 PM.
Reply With Quote
  #12  
Old 24th February 2012, 09:08 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

Is there an nfslock service in FC16?
Reply With Quote
  #13  
Old 24th February 2012, 09:17 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,068
linuxfirefox
Re: FC16 and NFS 4 Setup

Sure is:

Quote:
systemctl -a list-units --full | grep nfs

var-lib-nfs-rpc_pipefs.mount loaded active mounted RPC Pipe File System
nfs-idmap.service loaded active running NFSv4 ID-name mapping daemon
nfs-lock.service loaded active running NFS file locking service
(Note that nfs-server service didn't show in that listing. That seems to be a quirk with Fedora 16,
it should have listed because I used the '-a' option (my laptop isn't running nfs-server but -a should
make systemctl list all services and units even inactive ones) )

just do if it's not loaded:


Quote:
systemctl enable nfs-lock.service
but it should be enabled by default anyway

Last edited by marko; 24th February 2012 at 09:20 PM.
Reply With Quote
  #14  
Old 27th February 2012, 02:16 PM
ablen Offline
Registered User
 
Join Date: Jan 2012
Location: USA
Posts: 51
windows_7ie
Re: FC16 and NFS 4 Setup

If I wanted to permanently turn that service off, how could I do so?
Reply With Quote
  #15  
Old 27th February 2012, 02:33 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,068
linuxfirefox
Re: FC16 and NFS 4 Setup

Quote:
Originally Posted by ablen View Post
If I wanted to permanently turn that service off, how could I do so?

By 'that service' you mean nfs-lock ?

Quote:

systemctl disable nfs-lock.service
systemctl stop nfs-lock.service
in some cases you can disable / stop from the system-config-services tool
Reply With Quote
Reply

Tags
fc16, nfs, setup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
NFS and FC16 and systemd lensman3 Servers & Networking 4 15th March 2012 01:58 AM
Fc16 - Rhythmbox SteveT Using Fedora 0 20th January 2012 10:27 AM
Evolution (fc16) lightman47 Using Fedora 0 12th January 2012 07:11 PM
FC16 will not boot dw5533 Installation, Upgrades and Live Media 0 12th January 2012 03:40 PM
[SOLVED] postgresql-setup upgrade problem in fc16 saeru Using Fedora 3 1st December 2011 02:33 PM


Current GMT-time: 01:14 (Saturday, 01-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Herning Photos on Instagram - Gumla Instagram Photos - Woodbridge Photos