RedHat5.5 and Solaris10Linux settings sharing

Source: Internet
Author: User
============================================== RedHat5.5 = ========================================== projects are generally processed on multiple machines, for ArcGISServer, although multiple machines are processed, the folder for map slicing must be in one place, so you need to master the shared folder in Linux, next, let's test how to use the Linux environment

============================================RedHat 5.5==============================================

In view of the fact that a user's project is generally processed by multiple machines, even though multiple machines are processed by ArcGIS Server, the folder of map slicing must be one place, in this case, you need to understand the shared folders in Linux. Next we will try to set up shared folders in Linux.

Machine 1: RedHat, 192.168.100.203

Machine 2: RedHatA, 192.168.100.204

Objective: to share two folders in the RedHat Machine

1: Share/opt/arcgis/server10.0/server/serverdir of machine 1 to/opt/arcgis/server10.0/server/serverdir of Machine 2

2: Share/home/aaa of machine 1 to/home/bbb of Machine 2


Modify the/etc/exports file of machine 1

  1. /Opt/arcgis/server10.0/server/serverdir 192.168.100.204 (rw, no_root_squash, async
  2. ) 192.168.100.203 (rw, no_root_squash, async)
  3. /Home/aaa 192.168.100.204 (rw, no_root_squash, async) 192.168.100.203 (rw, no_root_sq
  4. Uash, async)
Related formats:

Shared Paths are shared to machine IP addresses (rw, no_root_squash, async) and machine 2 IP addresses (rw, no_root_squash, async)

Restart nfs and portmap services

  1. [Root @ RedHat ~] # Service nfs restart
  2. Shutting down NFS mountd: [OK]
  3. Shutting down NFS daemon: [OK]
  4. Shutting down NFS quotas: [OK]
  5. Shutting down NFS services: [OK]
  6. Starting NFS services: [OK]
  7. Starting NFS quotas: [OK]
  8. Starting NFS daemon: [OK]
  9. Starting NFS mountd: [OK]
  10. [Root @ RedHat ~] # Service portmap restart
  11. Stopping portmap: [OK]
  12. Starting portmap: [OK]

Set Machine 2

Modify/etc/fstab and add

  1. 192.168.100.203:/opt/arcgis/server10.0/server/serverdir/opt/arcgis/server10.0/server/serverdir nfsRsize=8192,Wsize=8192,Timeo=14, Intr
  2. 192.168.100.203:/home/aaa/home/bbb nfsRsize=8192,Wsize=8192,Timeo=14, Intr
Format:

IP address of the shared machine: the path of the shared machine. The nfs ing path of the Local Machine: nfs rsize = 8192, wsize = 8192, timeo = 14, intr

Then, use the path of the Local Machine to mount

Querying the mount command will check whether the machine's path is mounted.

  1. [Root @ RedHatA ~] # Mount/home/bbb
  2. [Root @ RedHatA ~] # Mount
  3. /Dev/mapper/VolGroup00-LogVol00 on/type ext3 (rw)
  4. Proc on/proc type proc (rw)
  5. Sysfs on/sys type sysfs (rw)
  6. Devpts on/dev/pts type devpts (rw,Gid=5,Mode=620)
  7. /Dev/sda1 on/boot type ext3 (rw)
  8. Tmpfs on/dev/shm type tmpfs (rw)
  9. None on/proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  10. None on/proc/fs/vmblock/mountPoint type vmblock (rw)
  11. Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  12. 192.168.100.203:/home/aaa on/home/bbb type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168.100.203)
  13. [Root @ RedHatA ~] # Mount/opt/arcgis/server10.0/server/serverdir/
  14. [Root @ RedHatA ~] # Mount
  15. /Dev/mapper/VolGroup00-LogVol00 on/type ext3 (rw)
  16. Proc on/proc type proc (rw)
  17. Sysfs on/sys type sysfs (rw)
  18. Devpts on/dev/pts type devpts (rw,Gid=5,Mode=620)
  19. /Dev/sda1 on/boot type ext3 (rw)
  20. Tmpfs on/dev/shm type tmpfs (rw)
  21. None on/proc/sys/fs/binfmt_misc type binfmt_misc (rw)
  22. None on/proc/fs/vmblock/mountPoint type vmblock (rw)
  23. Sunrpc on/var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
  24. 192.168.100.203:/home/aaa on/home/bbb type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168.100.203)
  25. 192.168.100.203:/opt/arcgis/server10.0/server/serverdir on/opt/arcgis/server10. 0/server/serverdir type nfs (rw,Rsize=8192,Wsize=8192,Timeo=14, Intr,Addr=192. 168. 100.203)
Related tests:

Create a file under the shared path on machine 1, which can be seen under the related ing path on Machine 2.

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.