DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 19th November 2009
DrKrall DrKrall is offline
New User
 
Join Date: May 2008
Location: Luleå - Sweden
Posts: 9
Default Partitioning for web/mailserver?

In short. I'm back to OpenBSD and for my purpose i have two hard drives. One is 120 Gb and the other 80 Gb. Both are Seagate Barracuda's. And the server itself is a AMD 3000+ with 1536 Mb RAM.

I was thinking of partitioning the disks something like this:

Disk 1 - 120 Gb disk
===============
/ (root) (1Gb)
SWAP (1536 Mb)
/tmp (1536 Mb)
/var (remaining disk space)
/usr (8 Gb)
/home (5 Gb)

Disk 2 - 80 Gb disk
===============
/var/www (remaining disk space)
SWAP (1536 Mb)

So, "mail" in /var and "the webs" in /var/www. I know its a lot of space for mail which probably never will be used. But what the heck! It could of course be an idea to make /var/www on the remainder of the 120 Gb, and /var on the remainder of the 80 Gb disk. I mean it will probably be more "web" then "mail" if you get my drift.

Any objections or other suggestions?

Last edited by DrKrall; 19th November 2009 at 11:28 PM.
Reply With Quote
  #2   (View Single Post)  
Old 19th November 2009
DrKrall DrKrall is offline
New User
 
Join Date: May 2008
Location: Luleå - Sweden
Posts: 9
Default

Or how about this partition scheme?

Disk 1 - 120 Gb disk
===============
/ (root) (1Gb)
SWAP (1536 Mb)
/tmp (1536 Mb)
/var/www (remaining disk space)
/usr (8 Gb)
/home (5 Gb)

Disk 2 - 80 Gb disk
===============
/var (remaining disk space)
SWAP (1536 Mb)

Would it be any problems of having /var on the second disk? If not, this would probably be the best choice, i think.
Reply With Quote
  #3   (View Single Post)  
Old 20th November 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by DrKrall View Post
SWAP (1536 Mb)
If you ever want to debug a crash, allocating 1x the amount of RAM may be insufficient. The rule of thumb is 2x RAM + 1MB. More information can be found on the crash(8) manpage.
Quote:
Would it be any problems of having /var on the second disk?
No.
Reply With Quote
  #4   (View Single Post)  
Old 20th November 2009
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

I tend to recommend a single large partition for the OS during the period where new platforms are being initially provisioned and staged, and through initial testing and burn-in. This way, a more accurate assessment of OS storage partitioning can be derived. Every OS implementation is different, and OS storage requirements can differ dramatically, depending on needs. If you are building ports, for example, you could easily consume 40GB just for port building, even with bulk package building enabled, which erases working areas as they are no longer needed.

For small servers and workstations with single drives (or single RAID arrays) the entire environment can be placed in a single partition until storage needs can be accurately assessed, then a reconfiguration can be executed, typically via backup/restore.

For servers with large application-managed storage requirements, my recommendation is to keep those partitions separate from the OS. For example, for a large mail server using Sendmail, I recommend keeping /var/spool mounted separately from the OS. For a large webserver, I would recommend keeping /var/www mounted separately in the same manner. However, for webservers that serve data from a back-end DBMS, the separation might be for /var/postgresql rather than /var/www. My point here is the separation of application-managed data from the OS will be application dependent.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailserver for websites xCipherx FreeBSD Ports and Packages 4 13th April 2010 03:56 PM
partitioning scheme for a firewall? Timmy66 OpenBSD Security 1 19th September 2009 01:28 PM
AMD64 - Hard Drive Partitioning Turquoise88 General software and network 8 11th September 2009 05:58 AM
Is partitioning still important in installation? Mantazz FreeBSD Installation and Upgrading 14 16th January 2009 08:35 AM
freebsd mailserver Demodog FreeBSD Ports and Packages 19 10th June 2008 07:25 PM


All times are GMT. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick