Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Starting out is always an adventure, but starting out with multiple servers seems to be something new again.
Three Servers:
1. Used for web traffic. CentOS 5.2 with Apache loaded. PHP is also used on this machine with MySQL currently located here. This machine works fine with everything loaded on one CPU/machine. For security and other reasons, I want to separate MySQL and the files to their own machines (#2 & #3).
2. Again, CentOS 5.2. I want to use this machine as the database server to feed the Apache machine. My idea is to make this the MySQL machine, providing a dedicated CPU for this function.
3. The third CentOS 5.2 machine, with 2.5 TB of storage - expandable to ... in the future. I want to use this machine as the "file server" for the others. Another reason for having separate MySQL and files machines is that as the system grows, there will (hopefully) be additional machines sharing the load of the functions of 1 & 2.
Currently the machines are only connected through the primary internal Gig Ethernet network (Eth0) and port forwarded from the internet via the Cisco PIX Router. A second Gig port (Eth1) on each machine will be used to tie the 3 machines together. This second Gig "backbone" will not be used for anything except this data traffic between machines.
My problem lies in not knowing the best mechanism to share the files. My reading of late has taken me into NFS, but so far I have not been successful in making this work. Before I get too much further into it, I wish to ask if there is a "better way". It would also be helpful to know what is needed to make NFS work in the described configuration. I'm not above chucking it and using something that is better, but since it appears to be there already, it at least deserves a look.
Any and all advice will be appreciated. Hopefully I can get this up and running soon, with your guidance.
BTW - Moving from OpenVMS and Windows Server to Linux is turning into an interesting time. I can see why some become staunch supporters of Linux, to say the least.
My problem lies in not knowing the best mechanism to share the files. My reading of late has taken me into NFS, but so far I have not been successful in making this work. Before I get too much further into it, I wish to ask if there is a "better way". It would also be helpful to know what is needed to make NFS work in the described configuration. I'm not above chucking it and using something that is better, but since it appears to be there already, it at least deserves a look.
Any and all advice will be appreciated. Hopefully I can get this up and running soon, with your guidance.
BTW - Moving from OpenVMS and Windows Server to Linux is turning into an interesting time. I can see why some become staunch supporters of Linux, to say the least.
ALG
Do you need constant access, as in mounted directories referring to the other machines, or is this a matter of periodic backups? Are all the machines up all the time, or are some of them unavailable at times?
I ask because this makes a difference to the choice of network protocol.
As to NFS, it's easy to set up and people here will be happy to show you how. But NFS isn't necessarily the best choice for high-speed transfers.
A suggestion: don't put your city in your profile. State is good enough. Call me paranoid but it pays to be paranoid these days.
You might want to browse through the networking forums here at LQ. Lots of info there to help you out, just do some searches in that forum. You might wind up with Sambas for sharing files with the Windows machines. But NFS is really quite easy to set up, as you will see.
Constant access will be available.
So far my reading shows that though NFS is supposed to be easy to install and is available in every version of Linux, it is not the fastest access method. (I find it funny how the authors of these statements don't elaborate on what they know to be faster.)
Do you have a prefered method to connect several machines?
If you need to share files between Linux systems, NFS (try to use latest nfs v4) should be fine.
For the DB box, use the normal GRANT privs and network cxn via port 3306. http://dev.mysql.com/doc/refman/5.0/en/
For the MS systems, you could use NFS or Samba. The latter enables you to share using MS protocols eg netbios/cifs/ etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.