svcs -a |grep nfs
On NFS server
# share -F nfs -o rw=[accesslist] /path/to/share
# share -F nfs -o rw=client1,client2 /export
# share -F nfs -o rw=@client1:/export /export
# showmount -e
On NFS client
# mount -F nfs -o [options] [NFS_server]:[mountpoint]
# mount -F nfs 10.11.1.xxx:/BARMAN /BARMAN
# mount -F nfs -o rsize=32768,wsize=32768 10.11.1.xxx:/BARMAN /BARMAN
NFS volume mount in RedHat linux 7.6
For Database server:
# groupadd nfs # usermod -a -G nfs nfsnobody # chmod 0770 /nfs # chgrp nfs /nfs
vi /etc/exports
/nfs box1(rw,sync,sec=krb5,anongid=1004)
/u01 * (rw,sync,all_squash,anonuid=54321,anongid=54321)
# exportfs -arv
service nfs start/stop/restart/status
local directory: /hrm/PDF
For Application:
mount -t nfs 10.11.1.XXX:/hrm/PDF /u01/orbhrm/pdf/
mount -t nfs -O user=oracle,pass=oracle,file_mode=0777,dir_mode=0777,uid=oracle,gid=oinstall 10.11.1.XXX:/u05/test /u05/test
mount -t nfs -O user=oracle,pass=oracle,file_mode=0777,dir_mode=0777,uid=oracle,gid=oinstall 10.11.1.XXX:/u05/test /u05/test
local Directory: /u01/orbhrm/pdf
entry /etc/fstab
server:/usr/local/pub /pub nfs defaults 0 0
10.11.1.xxx:/hrm/PDF
/u01/orbhrm/pdf nfs defaults 0 0
No comments:
Post a Comment