Nfs server and client configuration overview: Server: oracle11g: 10.80.11.202 client: oracle10g: 10.80.11.1771. Configuration Server: NFS is installed by default in RedhatLinux, check whether the rpm package has been installed again. prerequisite: rpm... nfs server and client configuration overview: Server: oracle11g: 10.80.11.202 client: oracle10g: 10.80.11.177 1. Configure Server: NFS is installed by default in Redhat Linux, re-confirm whether the appropriate rpm package has been installed prerequisite check: rpm-qa | grep nfsnfs-utils-1.0.9-16.el5nfs-utils-lib-1.0.8-7.2 configuration/etc/exports: [root @ oracle11g etc] # vi exports/tmp 10.80.11.177 (rw, Sync) "exports" 1L, 28C written start nfs service: [root @ oracle11g etc] # service nfs startStarting NFS services: [OK] Starting NFS quotas: [OK] Starting NFS daemon: [OK] Starting NFS mountd: [OK] ----- # chkconfig -- level 35 nfs on // -- Optional ---- sets the NFS automatic start mode. make sure that the server service has been configured: [root @ oracle11g etc] # exportfs/tmp 10.80.11.177 2. client configuration: Select the nfs mount Directory: [root @ ora10g/] # cd/tmp [root @ ora10g tmp] # mkdir nfs [root @ ora10g tmp] # l Skeyring-v0IRux mapping-root nfs vmware-tools-distrib mount nfs: [root @ ora10g tmp] # mount-t nfs 10.80.11.202: /tmp/nfs [root @ ora10g tmp] # mount | grep nfssunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) 10.80.11.202: /tmp on/tmp/nfs type nfs (rw, addr = 10.80.11.202) [root @ ora10g tmp] # cd nfs [root @ ora10g nfs] # ll --------- check the content of the remote server/tmp total 56drwx ------ 3 root 4096 Jul 8 gconfd-rootsr Wxr-xr-x 1 root 0 Jul 8 23:44 gedit. root.2863163862-rw-r -- 1 54321 54321 59 Jul 9 hc_trace_name.lstdrwxr-xr-x 2 54321 54321 4096 Jul 9 56 hsperfdata_oracledrwx ------ 2 root 4096 Jul 8 keyring-iHRbxR ..... [Root @ ora10g nfs] # Modify the/etc/fstab file to automatically mount the nfs directory at startup ----------- optional ---------- modify/etc/fstab to automatically mount the nfs directory at startup [root @ ora10g nfs] # vi/etc/fstab [root @ ora10g nfs] # vi/etc/fstabLABEL = // ext3 defaults 1 1 LABEL =/boot ext3 defaults 1 2 tmpfs/dev /shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0 LABEL = SWAP-sda3 swap defaults 0 010.8 0.11.202:/tmp/nfs defaults 0 0 ~ FYI: The NFS configuration file sets the NFS service configuration file to the content format of the etc/exportsexports file: <输出目录> [Client 1 option (access permission, user ING, others)] [client 2 option (access permission, user ING, others)] 1. output Directory: the directory to be shared to the client in the NFS system. 2. client: client is a commonly used method for computer clients that can access the NFS output directory in the network. • host 192.168.0.200 with the specified IP address • All hosts in the specified subnet, 192.168.0.0/24 • host a.liusuping.com with the specified domain name • all hosts in the specified domain * .liusuping.com • All hosts * 3. option: it is used to set the access permission and user ING of the output directory. NFS has three main options: access permission options • set output directory read-only ro • set output directory read/write rw user ing options • all_squash maps all common users and groups remotely accessed to anonymous users or user groups (nfsnobody); • no_all_squash and all_squash are reversed (default). • root_squash maps root users and groups to anonymous users or user groups (default). • no_root_squash and rootsquash are reversed; • anonuid = xxx maps all remotely accessed users to anonymous users and specifies the user as a local user (UID = xxx ); • anongid = xxx maps all remotely accessed user groups to anonymous user group accounts, and specifies the anonymous user group account as the local user group account (GID = xxx ); other options • secure limits the client to be able to connect to the nfs server from a TCP/IP port smaller than 1024 (default setting); • insecure allows the client to connect to the server from a TCP/IP port larger than 1024; • sync writes data to the memory buffer and disk synchronously, which is less efficient but ensures data consistency. • async saves data in the memory buffer and writes it to the disk only when necessary; • wdelay checks whether there are related write operations. If yes, the write operations can be executed together to improve the efficiency (default setting). • no_wdelay performs the write operation immediately, it should be used with sync; • If the subtree output directory is a sub-directory, the nfs server will check the permissions of its parent directory (default setting); • no_subtree even if the output directory is a sub-directory, the nfs server does not check the permissions of its parent directory, which improves the efficiency.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.