RHEL5.4 Mount Solaris10NFS

Source: Internet
Author: User
Environment: NFSServer: Solaris10kernel: SunOSsolaris15.10Generic _ KERNEL: kernel: RHEL5.4kernel: LinuxRHEL5.42.6.18-164. el5 #1SMPTueAug1815: 51: 48EDT2009x

Environment:

NFS Server: Solaris 10 kernel: SunOS solaris1 5.10 Generic_147441-01 i86pc i386 i86pc

IP: 10.72.247.53

NFS Client: RHEL5.4 kernel: Linux RHEL5.4 2.6.18-164. el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

IP: 192.168.2.119

In the test environment, Solaris shares files to Linux through NFS for various reasons, so NFS of Solaris is enabled.

Configure NFS Server:

1. Create a shared directory

# Mkdir/iso

2. Edit the configuration file

# Cp/etc/dfs/dfstab. bak

# Vi/etc/dfs/dfstab

Add the following content:

Share-F nfs-o rw-d "share iso"/iso

# Share [-F fstype] [-o options] [-d" "] [Resource] usage and comments of the preceding configuration file

3. Enable the NFS service

The NFS service is not enabled by default on Solaris, so the rest to do is to enable NFS.

# Svcadm enable network/nfs/server

 

Client Test

The client is LINUX. in LINUX, the NFS client uses the mount command to mount the Server to the local directory. Command usage:

Mount-t nfs-o rw Server ip Address: local directory of the Directory

[Root @ RHEL5 ~] # Mount-t nfs-o rw 10.72.247.53:/iso/mnt
[Root @ RHEL5 ~] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/VolGroup001-LV001
12G 10G 1.1G 91%/
/Dev/sda1 2.0G 42 M 1.8G 3%/boot
Tmpfs 1.9G 0 1.9G 0%/dev/shm
/Dev/mapper/vg002-lvtest
15G 7.7G 6.4G 55%/home
10.72.247.53:/iso 996 M 1.0 M 936 M 1%/mnt

The NFS shared directory has been mounted. Pay attention to the-o rw option in LINUX. Here, you can mount it with the read/write permission to determine whether the NFS shared directory can be read and written for the following reasons:

1. Whether to configure rw in the NFS Server configuration file or not, that is, whether to configure read/write permissions.

2. Whether the shared directory of NFS Server has the read and write permissions of other users

3. Add the-o rw parameter when mounting the Client.

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.