Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Partitions for websever
PostPosted: Mon Apr 12, 2010 8:58 am 
Offline
Senior Newbie

Joined: Sat Feb 20, 2010 5:28 pm
Posts: 15
Hey guys, I'm completely new to linux and webservers. I'm just trying to get educated on setting up the server. I have about 25 domains that I would like to host on my server. There are pretty much just blogs(wordpress) and a couple of ecommerce stores.

Would it be fine to utilize all of my server disc space to use as the webserver or should I save some space on the disc for other uses(I have no idea what they could be, just wondering) ?

The only purpose for this server is to host websites.

Thanks in advanced for your input.

Tone


Top
   
 Post subject:
PostPosted: Mon Apr 12, 2010 7:52 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
It's generally easier just to have two or 3 partitions.

By default you have two, one for storage and one for swap.

I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).

You should always have some free space on your server otherwise things like databases, log files etc will stop working.

I tend to keep 20% free space if possible.


Top
   
 Post subject:
PostPosted: Mon Apr 12, 2010 9:30 pm 
Offline
Senior Member

Joined: Tue Apr 27, 2004 5:10 pm
Posts: 212
obs wrote:
I personally have three, one for tmp as well (so the tmp folder can't chew up my hard drive space).

One for /var/log as well, assuming that's where you keep your access_logs. You don't want a DDoS or overly-agressive spider filling up your / partition.


Top
   
 Post subject:
PostPosted: Wed Apr 14, 2010 10:36 pm 
Offline
Junior Member

Joined: Sat Nov 03, 2007 11:33 am
Posts: 32
These days I generally have partitions for:

/
/tmp
/var/log
/var/log/audit
/var/ossec

Also, depending on the applications and if it's a multi-user system, I might also have:

/home
/var/spool
/var/www
/oracle

...

With lvm, there is little reason to be afraid of partitioning, and separating things helps keep the system stable and running in the event of a runaway process, along with allowing for flexible mount options (e.g. noexec for /tmp) that can increase security.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group