Partition sizes for DNS server?

Harold Pritchett harold at uga.edu
Wed May 24 18:46:49 UTC 2000


Albert Meyer wrote:
> 
> I'm building a DNS server, and since it was my first Linux server I kind of
> hacked it together and got it working (and learned some stuff about Linux in
> the process) and now I'm going to start over and try to do it right. I have
> a 2G HD, and I'm thinking of setting up the partitions like this:
> 
> /       ~5G
> /etc    ~5G
> /var    ~10G
> /swap   128M
> 
> Is that right, or would another config be better? I'm running RH 6.2 and
> Bind 8.2.2, and have 128M RAM. There won't be any users or anything running
> on the box besides DNS.

I think you have a typo somewhere in your above list.  /etc should not
be a filesystem.  /usr should.

I am assuming that the 2GB size for your disk is correct.

I'd do something like this:

Initially, define over-sized partitions.

/		64Mb
swap		128Mb
/usr		1024Mb
/var		256Mb
/tmp		128Mb
/usr/local	256Mb
/home		the rest (192mb)

Now, do an install of RH 6.2, selecting all of the options you will need.

look at the output of the "df" command and see how much space is used
in each of your partitions.  Give yourself a 20 % cushion in the /usr
partition, and do it again.  Leave everything the same except for the
size of the /usr partition.  Space recovered from it will go into /home.


This will give you optimal utilization in /usr, and protect your system 
from filling up /var, /tmp/ or /home.

By putting /home and /usr/local in their own filesystems, you can
re-install the systems as many times as you like without having to
reload your opplications in /usr/local and your user files in /home.

Not the only way, but it's what I usually do.

Harold



More information about the bind-users mailing list