Thursday, August 25, 2011

NFS Mount : Linux

NFS Mount : Linux

1. Check and start the nfs service:


[root@wip ~]# chkconfig --list portmap
portmap         0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root@wip ~]# service portmap restart
Stopping portmap:                                          [  OK  ]
Starting portmap:                                          [  OK  ]
[root@wip ~]# service nfs restart
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS quotas:                                  [FAILED]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS quotas:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]


2. mount -t nfs -o rw 172.21.19.16:/sapmnt /mnt/sapmnt

That is, on 172.21.19.16 there is a folder /sapmnt that I want to NFS mount on my Linux box.
I created a folder "sapmnt" under /mnt and then executed the command above.

3.Make the entry permanent put this in /etc/mnttab:
172.21.19.16:/sapmnt  /mnt/sapmnt  nfs  users,noauto,rw   0   0

No comments:

Post a Comment