Solved

symbolic links across servers

Posted on 2001-06-12
2
904 Views
Last Modified: 2011-09-20
hello,

i have access to 2 servers, and what i need to do is to read some data from 1 server to another, so hence i need a symbolic link (so i assume). i have read the man ln, and info ln and neither tell how to do this, there is alot of info on how to make a link from one file to another.. but nothing on between two servers.

the path in the server 1 is:
/usr/home/tb/here
the path on server 2 is:
/usr/home/trib/cgi-bin/here_2

how do i get server 2 to get data from a file in the directory "here" in server 1 from the location of "here_2" on server 2.

thank you for any help on this matter.

Randor
0
Comment
Question by:randor1973
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
superschlonz earned 100 total points
ID: 6183395
A link only doesn't work, you also need a network filesystem.
There are at least 4 possibilities: Coda, NFS, SMB and NCP.

I think the easyest way to do it is using NFS.
You have to setup a NFS server on server 2 and add a line to
its file /etc/exports:

/usr/home/trib/cgi-bin/here_2 (rw)

Perhaps you have to add some more options (see in the manual
of exports). I have the following line here in my config:

/home/mf 192.168.2.0/255.255.255.0(rw,all_squash,anonuid=500,anongid=100)

this means only from the specified net access is allowed. The options are:
rw = read/wrtie
all_squash = all users are squashed to the anon user
anonuid=500  = use the user id 500 for accessing files
anongid=100  = use the group id 100 for accessing files

I think you have to restart nfsd after this change.
On server 1 you can mount this export with the following line:

mount server2:/usr/home/trib/cgi-bin/here_2 /usr/home/tb/here

(the directories must exist before mounting)
Now you should see the files from the other server in the directory
usr/home/tb/here.

You can also add a line to /etc/fstab so you don't have to login as root
to mount and unmount this directory:

server2:/usr/home/trib/cgi-bin/here_2  /usr/home/tb/here  nfs  noauto,user 0 0

(should be on one line)
Now any user should be able to mount or unmount it:

mount /usr/home/tb/here
umount /usr/home/tb/here
0
 

Author Comment

by:randor1973
ID: 6191657
thank you for your help, although upon reading your answer i realized that this project was beyond my scope.. so i have found a person to do this task for me.. thank you once again...
0

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question