Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have yet to get a straight answer from anyone, technical support from everyhost declines to tell me exactly how it works, and everyone else just says to just "make an apache virtual server" without any explenation whatsoever.

Here is the question. I have a file server, it runs on a script on my dedicated Centos 5.9 server.

I want to give this server 4 hard drives, I want to install the file server on each hard drive, as a seperate entity. So for example, it will be just like I want to install 4 extra subdomains and want each one to have its own hard drive.

How the heck do I set that up.

What I was told was, I do NOT have to install Centos on each system.

But how do I partition each, and then more importantly access them via sftp with Filazilla like I do the main server.

Please, if you know how that works, teach me. I really need to figure this out and learn it.

share|improve this question

closed as not a real question by Michael Hampton, mdpc, Khaled, petrus, Scott Pack Mar 25 '13 at 0:10

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Can you clarify what you mean by having each one be a separate entity? Do you mean something like pointing to the first hard drive, etc? – Shane Madden Mar 23 '13 at 19:12
@ShaneMadden exactly what I mean.. – Blackhawk1xx Mar 23 '13 at 19:14
@ShaneMadden each pointing to their own hard drive, on the same dedicated machine – Blackhawk1xx Mar 23 '13 at 19:14
up vote 1 down vote accepted

Get the disks setup and pointing to /homeX

Have /home for your first disk, /home2 for your second disk, and so on. There are several guides, Googling for things like mount additional disk on CentOS - such as this one.

So, /home/websiteA/ is the home directory for websiteA on the first disk and /home2/websiteB/ is the home directory for websiteB on the second disk.

The reason I'm suggesting this is because, later on, if you want to have two sites on each disk, you aren't left with some hugely inconsistent naming scheme.

Step virtual hosting

Use Apache's virtual servers (sample guide here), for which there are many guides on the internet. Set the DocumentRoot for each virtual host appropriately, e.g. /home/websiteA/public_html (assuming you put your files in that folder) and similarly /home2/websiteB/public_html.

Modifying the files

The easiest way to get SFTP and such working, is to make all the files under the same user. Then you can login and them (or root, if you want), and make your changes in any normal client.

In reality, for security reasons, each website should be its own user: but that is beyond the scope of this answer, which is just here to help you get started with the concepts.

share|improve this answer
Great answer, thank you for the additional info also I will see if I can't tackle this with the info you gave me. Thanks Jay – Blackhawk1xx Mar 23 '13 at 19:28
Just to be sure, if I mount an additional hard drive, will it show up say, when I log into the server as /home1/ /home2/ etc? Or will I have to literally mount each disk when I want to use it? – Blackhawk1xx Mar 23 '13 at 19:29
No problem :-) Once you mount it, it'll stay. You only need to do this once, provided you stick the stuff in /etc/fstab then Linux will mount them for you when you reboot the server. – Jay Mar 23 '13 at 19:32
Ok thank you very much :-) – Blackhawk1xx Mar 24 '13 at 9:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.