![]() |
|
|||||||
| OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
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 10:28 PM. |
|
|||
|
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. |
|
|||
|
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:
|
|
||||
|
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.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 07:35 AM |
| freebsd mailserver | Demodog | FreeBSD Ports and Packages | 19 | 10th June 2008 07:25 PM |