How to configure nfs service for Fedora17x64

Source: Internet
Author: User
Fedora17x64 how to configure nfs service test environment: [root @ tpsystem] # uname-aLinuxtp3.3.4-5.fc17.x86_64 #1SMPMonMay717: 29: 34UTC2012x86_64x86_64x86_64GNU/Linux configure nfsexports: v...
How to configure the nfs service test environment for x64 Ora 17 x64: [root @ tp system] # uname-aLinux tp 3.3.4-5. fc17.x86 _ 64 #1 SMP Mon May 7 17:29:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux configure nfs exports: vim/etc/exports/run/media/k/Elements/unzip/ora11gR2forLinux64 192.168.221.0/24 (rw, sync, no_root_squash) www.2cto.com activate exports and use exportfs to refresh or restart the service: 1. exportfs refresh: [root @ tp system] # exportfs-avfexporting 192.168.221.0/24:/run/media/k/Eleme NT/unzip/ora11gr2forlinux.pdf. restart service: [root @ tp system] # systemctl restart nfs-server.service to view the nfs folder shared by the local machine: [root @ tp system] # showmount-eExport list for tp: /run/media/k/Elements/unzip/ora11gR2forLinux64 192.168.221.0/24 www.2cto.com mount the nfs folder on another machine: [root @ rac1 ~] # Mount-t nfs 192.168.221.1:/run/media/k/Elements/unzip/ora11gR2forLinux64/mnt [root @ rac1 ~] # Df-H file system capacity used available % mount point/dev/mapper/VolGroup00-LogVol00 188G 2.7G 176G 2%/dev/sda1 99 M 23 M 71 M 25%/boottmpfs 2.0G 0 2.0G 0%/dev/shm/dev/sr0 3.6G 3.6G 0 100%/media192.168.221.1: /run/media/k/Elements/unzip/ora11gR2forLinux64 932G 806G 127G 87%/mnt [root @ rac1 ~] # Www.2cto.com note: 1. after checking that the configuration is correct, nfs sharing still cannot be found. you can temporarily disable the firewall (systemctl stop iptables. service) and SELINUX (setenforce 0), and try again.
2. nfs sharing can be found on the client and mounted successfully, but the mounted directory cannot be listed. you need to add no_root_squash to the nfs exports option, in this way, the client can view the nfs shared folder with the root permission. Man exports root_squash Map requests from uid/gid 0 to the anonymous uid/gid. note that this does not apply to any other uids or gids that might be equally sensitive, such as user bin or group staff. no_root_squash Turn off root squashing. this option is mainly useful for disk? Less clients. REF: 1. Fedora 17-NFS Server: Server Worldhttp: // www.server-world.info/en/note? OS = Fedora_17 & p = nfs

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.