LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2007, 12:32 AM   #1
matsko
Member
 
Registered: Dec 2005
Posts: 51

Rep: Reputation: Disabled
Setting up a NFS


I posted on a different website asking about how to "share" files across servers. Basically what I want to do is have one server be the upload server for the public and then, once uploaded, the uploaded file will be sent to the storage server.

My first idea was to have a scp command which would send the file over, but then someone posted that by setting up a NFS (Network File System) across the two servers, the file can be placed in the remote server in a much more efficient fashion (since this process will occur very often).

Alright, so is there anything I should watch out for? Does a network filesystem pose any danger? And does it drain the performance of the host server?

Basically what I want to do is have the remote (storage) server be the host (meaning that a specific section or so will be the shared to the upload server). Then once the file is uploaded, my php script will simply copy the uploaded file into the /mounted section (which is the network directory). Is this how it works?

I find this method of having the network setup very useful since: I do not have to setup apache or litehttp on the storage server, I do not have to setup PHP and any extensions (GD), and I do not have to worry about users being sent to the storage server's upload page. Also I can have all the image processing and resizing occur on the upload server and then once the final image is complete, it will be placed in the storage server.

Am I on the right track?
 
Old 08-03-2007, 09:00 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Having the NFS mount in place doesn't really impact network bandwidth . The only time you're really impacting the network is when you're doing writes or reads to the filesystem on the remote host but you would have that same impact if you were doing an scp from one host to another.

The reason they suggested NFS was that you would end up with a performance penalty if you were doing this kind of scp frequently due to stopping/starting connections on both hosts. If it is really frequent then NFS makes perfect sense because you're copy on the remote host is treated as "local" from one filesystem to a another and uses the already established connection rather than having to open one each time.

It is very common to have NFS in UNIX/Linux environments just as it is to have file server shares to windows workstations. And of course you could use those same windows shares on UNIX/Linux with samba.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up A NFS Server? carlosinfl Debian 3 03-15-2007 07:51 PM
Help setting up NFS ssfrstlstnm Linux - Networking 3 09-10-2006 03:43 PM
nfs umask setting mvo Linux - Newbie 1 09-16-2005 09:52 PM
Trouble setting up NFS... Fenster Linux - Networking 5 11-13-2004 07:25 PM
Setting up NFS Codegen Linux - Networking 2 10-31-2004 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration