{"id":2042,"date":"2012-02-20T21:10:55","date_gmt":"2012-02-20T13:10:55","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2042"},"modified":"2023-04-28T09:49:55","modified_gmt":"2023-04-28T09:49:55","slug":"why-portmap-unrecognized-service-on-rhel-6","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/why-portmap-unrecognized-service-on-rhel-6\/","title":{"rendered":"Why &#8220;portmap unrecognized service&#8221; on RHEL 6\/CentOS 6"},"content":{"rendered":"<p><h7>Question :<\/h7><\/p>\n<p>During the deployment of Samba and NFS services on one of the RHEL 6 server, I&#8217;m hit by this message when trying to start, stop and restart service portmap :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# service portmap start\nportmap: unrecognized service<\/pre>\n<p>&nbsp;<\/p>\n<p><h7>Answer :<\/h7><br \/>\nPortmap is replaced by rpcbind on some linux distributions such as Fedora 8,RHEL 6 and CentOS 6. Portmap is now started and stopped as part of the rpcbind service. You may not able to find the portmap service, but you can see rpcbind instead.<br \/>\n<a href=\"https:\/\/archlinux.org\/news\/portmap-replaced-by-rpcbind-important-nfs-utils-upgrade\/\">http:\/\/www.archlinux.org<\/a><\/p>\n<p>Command line below provides the required dependency packages. It can also be used to track a package containing a specific executable :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# yum whatprovides portmap\nLoaded plugins: rhnplugin\nThis system is not registered with RHN.\nRHN support will be disabled.\nrpcbind-0.2.0-8.el6.i686 : Universal Addresses to RPC Program Number Mapper\nRepo        : DVD-RHEL6-Repository\nMatched from:\nOther       : portmap\n\nrpcbind-0.2.0-8.el6.i686 : Universal Addresses to RPC Program Number Mapper\nRepo        : installed\nMatched from:\nOther       : Provides-match: portmap<\/pre>\n<p>When you try to install portmap on RHEL 6, it will install rpcbind instead :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# yum install portmap -y\nLoaded plugins: rhnplugin\nThis system is not registered with RHN.\nRHN support will be disabled.\nSetting up Install Process\nPackage rpcbind-0.2.0-8.el6.i686 already installed and latest version\nNothing to do<\/pre>\n<p><span style=\"text-decoration: underline;\"><strong>What is Portmap :<\/strong><\/span><br \/>\nPortmap is a server that converts RPC (Remote Procedure Call) program numbers into DARPA protocol port numbers. It must be running in order to make RPC calls. Server services that use RPC include NFS, NIS and Samba. When an RPC server is started, it will tell portmap what port number it is listening to, and what RPC program numbers it is prepared to serve. When a client wishes to make an RPC call to a given program number, it will first contact portmap on the server machine to determine the port number where RPC packets should be sent. Therefore, portmap must be started before any RPC servers are invoked. This because RPC-based services rely on portmap to make all connections with incoming client requests.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>What is rpcbind :<\/strong><\/span><br \/>\nrpcbind is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine. When an RPC service is started, it tells rpcbind the address at which it is listening, and the RPC program numbers it is prepared to serve. When a client wishes to make an RPC call to a given program number, it first contacts rpcbind on the server machine to determine the address where RPC requests should be sent. rpcbind should be started before any other RPC service. Normally, standard RPC servers are started by port monitors, so rpcbind must be started before port monitors are invoked.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Server service that use RPC :<\/strong><\/span><br \/>\n<strong>1. NFS<\/strong><br \/>\nNFS uses Remote Procedure Calls (RPC) to route requests between clients and servers, meaning that the portmap service must be enabled and active at the proper runlevels for NFS communication to occur.<\/p>\n<p><strong>2. Samba<\/strong><br \/>\nSamba is an Open Source software that based on the common client\/server protocol of Server Message Block (SMB) and Common Internet File System (CIFS). It&#8217;s allows end users to access and use files, printers and sharing the company resources.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Example portmap instance<\/strong><\/span><br \/>\nThe rpcinfo command shows each RPC-based service with its port number, RPC program number, version, and IP protocol type (TCP or UDP). This is to make sure the proper NFS RPC-based services and portmapper are enabled for portmap.<\/p>\n<pre class=\"code\">[root@rhel6 ~]# rpcinfo -p\n   program vers proto   port  service\n    100000    4   tcp    111  portmapper\n    100000    3   tcp    111  portmapper\n    100000    2   tcp    111  portmapper\n    100000    4   udp    111  portmapper\n    100000    3   udp    111  portmapper\n    100000    2   udp    111  portmapper\n    100024    1   udp  56670  status\n    100024    1   tcp  54564  status<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Question : During the deployment of Samba and NFS services on one of the RHEL 6 server, I&#8217;m hit by this message when trying to start, stop and restart service&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2058,1043],"tags":[1251,1536,1603,1663,1713,1715,1725,1733],"class_list":["post-2042","post","type-post","status-publish","format-standard","hentry","category-rhel","category-samba","tag-centos-6","tag-linux","tag-nfs","tag-portmap","tag-rhel","tag-rhel-6","tag-rpcbind","tag-samba"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2042"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2042\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}