Re: running *only* NFSv4 on f12 produces rpc.mountd error
>> #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
"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
running *only* NFSv4 on f12 produces rpc.mountd error
i'm currently still messing with various bits of NFS on f12, and i wanted to see if i could properly run *only* NFSv4 (that is, no support for any earlier version of NFS), so some questions. first, is there a short way to examine what versions are supported by a running nfsd? i'm *guessing* that i can see that via "rpcinfo -p": ... 132 tcp 2049 nfs 133 tcp 2049 nfs 134 tcp 2049 nfs 132 udp 2049 nfs 133 udp 2049 nfs 134 udp 2049 nfs ... is that what i'm being shown above? that i currently have support for versions 2, 3 and 4?is there no simpler way to query a running nfsd for that info? but here's where it gets trickier. from here (which i assume is relevant): http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.4/html/Deployment_Guide/ch-nfs.html i'm told that, under NFSv4, there is no need for any of rpc.mountd, rpc.lockd or rpc.statd (as i read it, all this functionality has been moved into the kernel with NFSv4). so i can see how to disable support for all earlier versions of nfs in /etc/sysconfig/nfs: # # Define which protocol versions mountd # will advertise. The values are "no" or "yes" # with yes being the default #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: # service nfs restart Shutting down NFS mountd: [ OK ] Shutting down NFS daemon: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down NFS services:[ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS daemon: [ OK ] 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] [FAILED] # ok, what just happened there? am i not allowed to do what i just tried? and if i explicitly try to run *only* NFSv4, why is rpc.mountd even being invoked? is there something else i need to be doing here? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday -- 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