Hide Forgot
[root@ibm-x3550m3-02 ~]# service rpcidmapd stop Shutting down RPC idmapd: [FAILED] [root@ibm-x3550m3-02 ~]# service rpcidmapd status rpc.idmapd is stopped [root@ibm-x3550m3-02 ~]# service nfs start Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS mountd: [ OK ] Starting NFS daemon: [ OK ] Starting RPC idmapd: [ OK ] [root@ibm-x3550m3-02 ~]# chkconfig rpcidmapd off [root@ibm-x3550m3-02 ~]# service nfs restart Shutting down NFS daemon: [ OK ] Shutting down NFS mountd: [ OK ] Shutting down NFS quotas: [ OK ] Shutting down RPC idmapd: [ OK ] Starting NFS services: [ OK ] Starting NFS quotas: [ OK ] Starting NFS mountd: [ OK ] Starting NFS daemon: [ OK ] Starting RPC idmapd: [ OK ] [root@ibm-x3550m3-02 ~]# lsb_release -sir RedHatEnterpriseServer 6.5 [root@ibm-x3550m3-02 ~]# vim /etc/init.d/nfs [root@ibm-x3550m3-02 ~]# grep 'idmapd' /etc/init.d/nfs # Start rpc.idmapd [ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd start [ -x /usr/sbin/rpc.idmapd ] && /sbin/service rpcidmapd stop [root@ibm-x3550m3-02 ~]#
Expected results: If rpc.idmapd is chkconfig'd off it should not start on 'nfs restart' Is an incorrect assumption... After RHEL6.4 rpc.idmapd is only used on by the server to do ID mapping. The nfsidmap command is now used on the client to ID mapping. So, rpc.idmapd needs to be tied to the starting and stop of the NFS server no the chkconfig configuration.
(In reply to Steve Dickson from comment #5) > Expected results: > If rpc.idmapd is chkconfig'd off it should not start on 'nfs restart' > > Is an incorrect assumption... After RHEL6.4 rpc.idmapd is only used > on by the server to do ID mapping. The nfsidmap command is now > used on the client to ID mapping. > > So, rpc.idmapd needs to be tied to the starting and stop of the > NFS server no the chkconfig configuration. Got it, change the test case: vercmp "$(lsb_release -sr)" '>=' 6.3 && { echo -e "{Info} rhel version not match, skip the test.\n" report_result $TEST PASS exit 0 }