Re: running *only* NFSv4 on f12 produces rpc.mountd error

2010-01-04 Thread Tom H
>> #MOUNTD_NFS_V1="no"
>> #MOUNTD_NFS_V2="no"
>> #MOUNTD_NFS_V3="no"
>>   so i uncomment all those lines to (allegedly) disable all earlier
>> version support and:
>> Starting NFS mountd: Usage: rpc.mountd [-F|--foreground] [-h|--help]
>> [-v|--version] [-d kind|--debug kind]
>>       [-o num|--descriptors num] [-f exports-file|--exports-file=file]
>>       [-p|--port port] [-V version|--nfs-version version]
>>       [-N version|--no-nfs-version version] [-n|--no-tcp]
>>       [-H ha-callout-prog] [-s|--state-directory-path path]
>>       [-g|--manage-gids] [-t num|--num-threads=num]

> I put a bugzilla in on this back in the FC4 or 5 days.  The
> MOUNTD_NFS_V1="no" is the error.  The current rpc.mound doesn't have any
> "--no-nfs-version 1" flag and is complaining about that. (This v1 flag
> stuff should really be taken out of /etc/sysconfig/nfs as well as
> /etc/init.d/nfs .

When you set
MOUNTD_NFS_V1="no"
MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"
in "/etc/sysconfig/nfs", you get a "usage" error:
Starting NFS mountd: Usage: rpc.mountd [-F|--foreground] [-h|--help] \
 [-v|--version] [-d kind|--debug kind]
 [-o num|--descriptors num] [-f exports-file|--exports-file=file]
 [-p|--port port] [-V version|--nfs-version version]
 [-N version|--no-nfs-version version] [-n|--no-tcp]
 [-H ha-callout-prog] [-s|--state-directory-path path]
 [-g|--manage-gids] [-t num|--num-threads=num]

but when you set
RPCNFSDARGS="-N 1 -N 2 -N 3"
in "/etc/sysconfig/nfs", you get an "unsupported version" error:
# service nfs start
Starting NFS services: [  OK  ]
Starting NFS quotas:   [  OK  ]
Starting NFS daemon: 1: Unsupported version
   [FAILED]

My interpretation is
https://www.redhat.com/archives/fedora-list/2010-January/msg00294.html

By the way, when you set
#MOUNTD_NFS_V1="no"
MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"
in "/etc/sysconfig/nfs" rpc.mountd will not fail and mountd will be
listed as version 1 in "rpcinfo -p" (not nfsv1 since it never really
existed, but rpcv1).

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: running *only* NFSv4 on f12 produces rpc.mountd error

2010-01-04 Thread Wolfgang S. Rupprecht

"Robert P. J. Day"  writes:
> #MOUNTD_NFS_V1="no"
> #MOUNTD_NFS_V2="no"
> #MOUNTD_NFS_V3="no"
>   so i uncomment all those lines to (allegedly) disable all earlier
> version support and:
> Starting NFS mountd: Usage: rpc.mountd [-F|--foreground] [-h|--help]
> [-v|--version] [-d kind|--debug kind]
>   [-o num|--descriptors num] [-f exports-file|--exports-file=file]
>   [-p|--port port] [-V version|--nfs-version version]
>   [-N version|--no-nfs-version version] [-n|--no-tcp]
>   [-H ha-callout-prog] [-s|--state-directory-path path]
>   [-g|--manage-gids] [-t num|--num-threads=num]

I put a bugzilla in on this back in the FC4 or 5 days.  The
MOUNTD_NFS_V1="no" is the error.  The current rpc.mound doesn't have any
"--no-nfs-version 1" flag and is complaining about that. (This v1 flag
stuff should really be taken out of /etc/sysconfig/nfs as well as
/etc/init.d/nfs .

To be nfsv4-only you will also want to add these other things to the
conf file.

/etc/sysconfig/nfs:
# 
# As a test, don't allow any nfs v1,v2,v3 service.  Only allow v4
#

# this causes errors.  /etc/inint.d/nfs Script mainanance issue.
# MOUNTD_NFS_V1=NO
MOUNTD_NFS_V2="no"
MOUNTD_NFS_V3="no"

# don't allow rpc.nfsd to process v2 or v3 requests either.
RPCNFSDARGS="-N 2 -N 3"
# we'd like to say 0, but that means kill the daemons including the nfs4 one.
RPCNFSDCOUNT=1

#
# end
#

-wolfgang
-- 
Wolfgang S. Rupprecht
If the airwaves belong to the public why does the public only get 3
non-overlapping WIFI channels?

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines