Hi Darrel,

On Tue Jun 26 2012 14:58, Darrel wrote:
> We have less limitation on partitioning these days, so /usr/obj
> was obvious- actually had that one before.  I chose /usr/src and
> /usr/local as well, and expect that this was unimportant unless
> moving into NFS or some special circumstance.

no, this isn't necessarily true. Think of FFS' block alignment feature,
using different mount options, file system optimisations, etc.

> I have looked at some of the things that folks are doing with /var
> on ZFS.  I understand that ZFS is not within the scope of this
> list; however, does anyone have some neat ideas about partitions
> under /var?
> 
> Particularly, I am interested in /var/crash, /var/tmp, and /tmp.
> I would not personally have any use for a crashdump, unless it
> would be to pass it along to someone who could make use of it.  I
> basically want the partitions to be set up logically.
> 
> Typically etc, usr, tmp, var, home, and / have been enough.  /usr/obj
> is an excellent addition and so does someone have recommendations
> of further refining my scheme for OpenBSD51?
> 
> I used /altroot for the first time on OpenBSD50, but had to modify
> fstab like this:
> #bb128e900f20094a.d /altroot ffs xx 0 0
> /dev/wd0d /altroot ffs xx 0 0
> 
> I guess that /var/crash should be crafted to memory and that

Hmm. No. Be aware that the kernel dumps the entire physical memory to
swap. When rebooting, savecore(8) copies the dump to /var/crash.
Therefore, it needs to be at least as big as available system RAM + a
few bits more. You see why mfs is not suited for this.

> /var/tmp as well as /tmp can actually be very small?

Yes, they can. But it depends on your setup. See, /tmp can become scarce
when your web browser stores its temporary data there, e.g. video data.
And, one further hint, you should place /var/tmp on non-volatile
storage, as it is supposed to hold temporary data between reboots,
whereas /tmp can safely be an mfs.

My imperfect configuration looks like this:

~ $ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd2a      509M   64.0M    420M    13%    /
/dev/sd2p     44.8G   29.1G   13.5G    68%    /home
/dev/sd2d     1001M    793M    158M    83%    /usr
/dev/sd2e      502M    196M    281M    41%    /usr/X11R6
/dev/sd2f      6.9G    2.7G    3.8G    42%    /usr/local
/dev/sd2i      2.0G    1.1G    812M    58%    /usr/obj
/dev/sd2k      4.9G    384M    4.3G     8%    /usr/ports
/dev/sd2l      3.9G   87.4M    3.7G     2%    /usr/ports/pobj
/dev/sd2g      2.9G    890M    1.9G    31%    /usr/src
/dev/sd2h      2.0G    552M    1.3G    29%    /usr/xenocara
/dev/sd2j      2.0G    495M    1.4G    26%    /usr/xobj
/dev/sd2m      123M   17.4M   99.8M    15%    /var
/dev/sd2o      246M    5.1M    229M     2%    /var/log
/dev/sd2n      123M   96.0K    117M     0%    /var/tmp
mfs:4517       495M    109K    470M     0%    /tmp

Yours,
Norman.

Reply via email to