Mounting NFS From Linux To AIX
Mounting NFS From Linux To AIX
Linux Box (192.168.1.99)
- SSH to the Linux box
- Add an entry in the /etc/hosts to add the AIX server IP and hostname, if it is not already there
- Specify the file system to be exported in the /etc/exports file
/data 192.168.1.100
- Start the nfs service, if it has not already been started
[root@linux ~]# service nfs status
rpc.mountd (pid 3170) is running…
nfsd (pid 3167 3166 3165 3164 3163 3162 3161 3160) is running…
rpc.rquotad (pid 3145) is running…
[root@linux ~]# 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: [ OK ]
- Run the exportfs command to export the file system
# exportfs -a
AIX Box (192.168.1.100)
- Add an entry in the /etc/hosts for the Linux box, if it is not already there.
- Run the showmount command to check if AIX can see the exported file system
# showmount -e 192.168.1.100
- Create a directory to mount the NFS
# mkdir /data
- Run the mount command to mount the exported NFS
# mount 192.168.1.99:/data /data
- If not able to mount and the error message is "vmount: operation not permitted", run the command below. Detailed explanation here.
# nfso -p -o nfs_use_reserved_ports=1
- Try the mount command again.
- If successful, try to access the directory.
No comments:
Post a Comment