|
FreeBSD Installation and Upgrading Installing and upgrading FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
disk partition layout advise
Hi guys,
I'm new to FreeBSD and I’m trying to setup a test web server using a in VMware esxi 5 before I consider doing anything live with real data. I'm however struggling to see what I should have for the server disk layout. So far I thought of having the following: Code:
/ 1Gb swap: 512Mb /var: 1Gb /tmp: 1GB /usr: 5Gb /home: rest of the disk (do i really need this one?) The server will host the web (apache), a Mysql database and a mail server. Do you think the disk allocation is correct? Do you think I should split the web, database and the mail sewrvers into different VM's? Thank you very much for your help. Fred |
|
||||
Quote:
Code:
/: 1G swap: 1G /var: 1G /tmp: 1G /usr: {REST} (and /home will be as /usr/home - that is the default)
__________________
religions, worst damnation of mankind "If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”. vermaden's: links resources deviantart spreadbsd |
|
|||
Quote:
By having a separate home partition you can use dump/restore for creating/restoring backups of the home dir.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
hi guys thank you for your reply.
J65nko, are you saying partition i've posted is best or the one sugested by vermaden? Sorry, i'm new to it all |
|
|||
Because I use dump for backups, I always create a separate partition for /home.
If it is part of "/usr" and want to create a backup with dump, you have to backup everything in "/usr". Then the backup includes the "/usr/{bin,sbin,local}" directories which roughly make up 80% of the FreeBSD base install. So by having a separate home, you have to backup less I don't know the amount of disk space you have reserved for FreeBSD , but I would suggest to increase "/usr" from 5 to 10 GB. Whatever you choose, most users after finding out how much space they actually need, usually will reinstall FreeBSD after one or two weeks anyway
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
My advice on large partitions holds to a point, but there are practical limits. The root partition must still be bootable; it must be FFS and not FFS2. Even though this is an expedient, and should be considered transitory, it is possible to run this way long term. There are security and operational implications to doing so. FAQ 14.8 discusses this in some detail.
I mention this because there was a thread on misc@ about an unbootable installation: http://comments.gmane.org/gmane.os.openbsd.misc/189615 |
|
|||
The discussion on misc was about OpenBSD, the OP is asking advice about FreeBSD partition layout ;-)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Why is this section still at the top of daemonforums? FreeBSD has their own exclusive V.I.P. club.
We need special treatment. |
|
|||
thank guys,
I'll take it all onboard and keep learning...I'll probably reinstall openbsd as sugested above at some point ... |
|
|||
Fred974, while the information presented about OpenBSD is valid, there is no reason to construe that FreeBSD is not capable of custom partitioning. FreeBSD is an equally viable choice.
|
|
|||
Hi ocicat,
FreeBSD is the OS that I will be using. I have been looking around and the support and tutorial is way bigger than OpenBSD. I guess, once i master FreeBSD it shouldn't be that difficult to switch to OpenBSD later on if needed. My Plan is now to have my web server setup with FreeBSD and have 3 jails in it. 1x for webserver 1x for MySQL DB 1x for Email Server Now...looking at the FreeBSD manual, the jail get installed in the Quote:
Quote:
I really need to get the partitions right as i really need to be back online (hostmonster has lost all my files and left me in deep s***) The hardware is HP Prolian Micro Server with 5Gb Ram and about 250Bg disk Sorry to bug you all and Thank you very much for all your replies Fred |
|
|||
Because nobody has or probably will run the exact configuration like you, you could do a test install on a local box with the same size of disk or FreeBSD slice. Use the advice of jggimi, by putting everything in a single giant "a" partition/label and calculate the sizes from that.
You can calculate those sizes with "du" Code:
j65nko@hercules[~] du -hs /home/j65nko 5.1G /home/j65nko j65nko@hercules[~] du -hs /var/log 1.1M /var/log I thought I already posted this several days ago, but apparently I forgot to click the "Submit Reply" button
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
many thank for your reply J65nko.
I have setup a VM to test all this theories |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserving existing OpenBSD partition layout during a re-install | J65nko | Guides | 3 | 17th February 2010 03:55 AM |
Recommended Partition Layout | MetalHead | OpenBSD Installation and Upgrading | 12 | 30th November 2008 10:08 AM |
Disk geometry for Seagate disk | phreud | FreeBSD Installation and Upgrading | 5 | 8th November 2008 10:51 PM |
Project layout, any comments? | PatrickBaer | FreeBSD General | 1 | 12th October 2008 05:13 PM |
Keyboard Layout | mfaridi | FreeBSD General | 6 | 26th June 2008 07:13 PM |