Web Hosting Talk







View Full Version : Mounting two servers in the same network.


Fremont Servers
01-10-2002, 03:39 AM
Does anyone here have a quick guide or know of a url that talks about mounting two servers in the same network.


Like if I mount a server in the same network, I would execute "mount /mnt/server2", where server2 is the server I'm trying to mount. That way, I would go into server2 and copy data to server1.

:cool:

ScottD
01-10-2002, 03:45 AM
Asia,

Take a look at either NFS or Samba, they should do what you want. Rsync is also very useful for copying data from one server to another but it doesn't provide direct mounts.

Scott

Fremont Servers
01-10-2002, 03:49 AM
Thanks Scott,

Right now I am reading about mounting two servers via NFS.

:cool:

Skeptical
01-10-2002, 06:33 AM
First things first. Update to the latest nfs. Older versions have exploits in them.

Then you need to edit /etc/exports on the server machine to specify which directories are open for exporting.

Now edit /etc/hosts.allow and add the clients that are allowed to mount the server.

Next start nfs up on the server:
/etc/rc.d/init.d/nfs start

Start portmap on the client:
/etc/rc.d/init.d/portmap start

All set, now mount it from client:
mount server_IP:/the/path /client/path

Do a "df" to see if it's been mounted.

When done, remember to:
umount /client/path

Finally stop both nfs and portmap:
/etc/rc.d/init.d/portmap stop <-- on the client
/etc/rc.d/init.d/nfs stop <-- on the server

Fremont Servers
01-10-2002, 06:59 AM
Then you need to edit /etc/exports on the server machine to specify which directories are open for exporting.

Can you give me an example of this?