IA/System Admin

NFS enable !

kiostory 2011. 2. 27. 14:37

NFS 관련 서비스들은 RPC기반이므로  portmap서비스가 먼저 동작하고 있는지 여부를 점검.

 

[root@localhost ~]# service portmap status
portmap (pid 2679) is running...
[root@localhost ~]#

 

실행중이지 않을경우, service portmap start를 통해 실행하거나

설치되지 않았을 경우, yum -y install portmap 으로 설치한 후 실행한다.

 

실행되어 있으면, 어떤 RPC기반 서비스들이 portmap 에 등록되어 있는지 확인

[root@localhost ~]# rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper

nfs 서비스를 enable한다.

물론 설치되어 있지 않으면, yum -y install nfs\* 를 통해 설치후

 

[root@localhost ~]# service nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]

rpc 재확인

[root@localhost ~]# rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100011    1   udp    768  rquotad
    100011    2   udp    768  rquotad
    100011    1   tcp    772  rquotad
    100011    2   tcp    772  rquotad
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  59092  nlockmgr
    100021    3   udp  59092  nlockmgr
    100021    4   udp  59092  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100021    1   tcp  39968  nlockmgr
    100021    3   tcp  39968  nlockmgr
    100021    4   tcp  39968  nlockmgr
    100005    1   udp    781  mountd
    100005    1   tcp    784  mountd
    100005    2   udp    781  mountd
    100005    2   tcp    784  mountd
    100005    3   udp    781  mountd
    100005    3   tcp    784  mountd

부팅후에도 자동 시작되도록 구성하기 위해

 

[root@localhost ~]# chkconfig --list nfs
nfs             0:off   1:off   2:off   3:off   4:off   5:off   6:off

[root@localhost ~]# chkconfig nfs on

[root@localhost ~]# chkconfig --list nfs
nfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off