atom feed97 messages in org.freebsd.freebsd-questionsRe: One or Four?
FromSent OnAttachments
Robison, DaveFeb 17, 2012 2:05 pm 
Chuck SwigerFeb 17, 2012 2:17 pm 
Devin TeskeFeb 17, 2012 2:34 pm 
Maxim KhitrovFeb 17, 2012 2:40 pm 
Douglas CarmichaelFeb 17, 2012 2:42 pm 
PolytroponFeb 17, 2012 2:46 pm 
Jerry McAllisterFeb 17, 2012 2:48 pm 
Douglas CarmichaelFeb 17, 2012 2:50 pm 
Jerry McAllisterFeb 17, 2012 2:53 pm 
Da RockFeb 17, 2012 2:54 pm 
Devin TeskeFeb 17, 2012 3:11 pm 
Julian H. StaceyFeb 17, 2012 3:19 pm 
PolytroponFeb 17, 2012 3:22 pm 
Robison, DaveFeb 17, 2012 3:24 pm 
Da RockFeb 17, 2012 3:29 pm 
Chris HillFeb 17, 2012 3:49 pm 
Chuck SwigerFeb 17, 2012 3:55 pm 
Devin TeskeFeb 17, 2012 4:02 pm 
Robison, DaveFeb 17, 2012 4:09 pm 
Devin TeskeFeb 17, 2012 4:11 pm 
Chuck SwigerFeb 17, 2012 4:40 pm 
Devin TeskeFeb 17, 2012 4:54 pm 
Da RockFeb 17, 2012 4:54 pm 
Da RockFeb 17, 2012 4:59 pm 
Devin TeskeFeb 17, 2012 5:05 pm 
Devin TeskeFeb 17, 2012 5:09 pm 
Chuck SwigerFeb 17, 2012 5:13 pm 
David BrodbeckFeb 17, 2012 5:17 pm 
Da RockFeb 17, 2012 5:17 pm 
Doug HardieFeb 17, 2012 5:50 pm 
Erich DollanskyFeb 17, 2012 6:08 pm 
Daniel StaalFeb 17, 2012 6:16 pm 
Da RockFeb 17, 2012 7:16 pm 
Leslie JensenFeb 17, 2012 9:44 pm 
Lars EighnerFeb 17, 2012 10:05 pm 
Robert BonomiFeb 17, 2012 10:32 pm 
Robert BonomiFeb 17, 2012 11:15 pm 
Erich DollanskyFeb 17, 2012 11:47 pm 
Doug HardieFeb 17, 2012 11:54 pm 
Matthew SeamanFeb 18, 2012 12:39 am 
PolytroponFeb 18, 2012 2:12 am 
PolytroponFeb 18, 2012 2:22 am 
Da RockFeb 18, 2012 2:43 am 
Damien FleuriotFeb 18, 2012 3:06 am 
Damien FleuriotFeb 18, 2012 3:10 am 
Matthew SeamanFeb 18, 2012 3:23 am 
Da RockFeb 18, 2012 3:36 am 
PolytroponFeb 18, 2012 3:39 am 
Da RockFeb 18, 2012 3:56 am 
Matthew SeamanFeb 18, 2012 5:38 am 
Da RockFeb 18, 2012 5:47 am 
Matthew SeamanFeb 18, 2012 6:28 am 
Robert BonomiFeb 18, 2012 6:45 am 
RWFeb 18, 2012 6:54 am 
Da RockFeb 18, 2012 6:54 am 
PolytroponFeb 18, 2012 8:26 am 
Jerry McAllisterFeb 18, 2012 1:06 pm 
Jerry McAllisterFeb 18, 2012 1:33 pm 
Michael SierchioFeb 18, 2012 2:45 pm 
Matthew StoryFeb 18, 2012 3:08 pm 
Daniel StaalFeb 18, 2012 3:10 pm 
Michael SierchioFeb 18, 2012 3:31 pm 
Erich DollanskyFeb 18, 2012 5:03 pm 
Jerry McAllisterFeb 18, 2012 6:30 pm 
Erich DollanskyFeb 18, 2012 7:54 pm 
Carl JohnsonFeb 18, 2012 8:39 pm 
Erich DollanskyFeb 18, 2012 9:26 pm 
Stephen CookFeb 18, 2012 11:21 pm 
Julian H. StaceyFeb 19, 2012 6:29 am 
Daniel StaalFeb 19, 2012 8:10 am 
parvFeb 19, 2012 8:43 am 
Julian H. StaceyFeb 19, 2012 10:37 am 
Da RockFeb 20, 2012 6:44 am 
Jerry McAllisterFeb 20, 2012 6:47 am 
Jerry McAllisterFeb 20, 2012 6:55 am 
Jerry McAllisterFeb 20, 2012 6:58 am 
Julian H. StaceyFeb 20, 2012 8:14 am 
Jerry McAllisterFeb 20, 2012 8:34 am 
Devin TeskeFeb 20, 2012 8:36 am 
Julian H. StaceyFeb 20, 2012 9:43 am 
Robison, DaveFeb 20, 2012 1:43 pm 
Paul MatherFeb 20, 2012 2:05 pm 
Erich DollanskyFeb 20, 2012 6:09 pm 
Chip CamdenFeb 20, 2012 9:25 pm 
Erich DollanskyFeb 20, 2012 9:40 pm 
Robert BonomiFeb 20, 2012 10:06 pm 
Chip CamdenFeb 20, 2012 10:19 pm 
Doug HardieFeb 20, 2012 10:52 pm 
Erich DollanskyFeb 20, 2012 11:37 pm 
Erich DollanskyFeb 20, 2012 11:43 pm 
Robert BonomiFeb 21, 2012 4:38 am 
PolytroponFeb 21, 2012 7:18 am 
Jerry McAllisterFeb 21, 2012 7:56 am 
per...@pluto.rain.comFeb 21, 2012 10:13 am 
David BrodbeckFeb 21, 2012 11:47 am 
Erich DollanskyFeb 21, 2012 4:43 pm 
Erich DollanskyFeb 21, 2012 4:50 pm 
Subject:Re: One or Four?
From:Paul Mather (pa@gromit.dlib.vt.edu)
Date:Feb 20, 2012 2:05:30 pm
List:org.freebsd.freebsd-questions

On Sat, 18 Feb 2012 08:39:53, Matthew Seaman <m.se@infracaninophile.co.uk>
wrote:

On 17/02/2012 22:17, Chuck Swiger wrote:

On Feb 17, 2012, at 2:05 PM, Robison, Dave wrote:

We'd like a show of hands to see if folks prefer the "old" style default with 4 partitions and swap, or the newer iteration with 1 partition and swap.

For a user/desktop machine, I prefer one root partition. For other roles like a server, I prefer multiple partitions which have been sized for the intended usage.

I thought the installer switched to the one-partition style based on disk size? Whatever. Personally I much prefer using one big partition, even for servers -- this applies to /, /usr, /usr/local, /var -- standard OS level bits, and not to application specific bits like partitions dedicated to RDBMS data areas (particularly if the application needs to write a lot of data). Having /tmp on a separate memory backed fiesystem is important though: if sshd can't create its socket there, then you won't be able to login remotely and fix things.

The reasoning is simple: running out of space in any partition requires expensive sys-admin intervention to fix. The root partition has historically been a particular problem in this regard. Even if it is just log files filling up /var -- sure you can just remove some files, but why would you keep the logs in the first place if they weren't important? Splitting space up into many small pieces means each piece has limited headroom in which to expand. Having effectively one common chunk of free space makes that scenario much less likely[*].

Yes, in principle you can fill up the entire disk like this. However, firstly, on FreeBSD that doesn't actually tend to kill the server entirely, unless the workload is write-heavy (but see the caveat above about application specific partitions) and the system will generally carry on perfectly happily if you can get rid of some files and create space. [Note: this is not true of most OSes -- FreeBSD is particularly good in this regard.] Secondly, typical server grade hardware will have something like 80--120GB for system drives nowadays. FreeBSD + a selection of server applications takes under 5GB. Even allowing for a pretty large load of application data, you're going to have tens of Gb of free space there. Generally your monitoring is going to flag that the disk is filling up well before the space does run out. Yes, I know there are disaster scenarios where the disk fills up in minutes; you're screwed whatever partitioning scheme you use in those cases, just a few seconds slower than in the multiple partitions case.

I'm coming into this thread part way through, so maybe this has been pointed out
already, but, if so, I didn't see it.

It seems from reading this thread that the focus has been on the running out of
space aspect. Using multiple partitions has a value that goes beyond that: it
can afford extra protection and help enhance security and even performance.
Separate partitions can have different mount options. (Even in the Linux world
they recognise this: the NSA hardening tips for RHEL 5
[http://www.nsa.gov/ia/_files/os/redhat/rhel5-pamphlet-i731.pdf] suggests
putting areas with user-writeable directories on separately-mounted file systems
and to use mount options to limit user access appropriately.) Options like
noexec and nosuid may help improve security. Options like noatime and async may
help improve performance.

Using multiple partitions is very helpful if you are backing up using dump. It
can also help segregate areas of high file system churn, e.g., /usr/ports;
/usr/obj; /usr/src; etc. I like to keep these on separate file systems so I can
treat them differently to system areas I consider to be more stable and
valuable.

[*] Mostly I prefer ZFS nowadays, which renders this whole argument moot, as having one common pool of free space is exactly how ZFS works.

I almost always use ZFS-only installs these days, for exactly the reasons you
mention. You get the best of both worlds: pooled storage (meaning not having to
agonize over partition sizes) and fine-grained control over file sets (meaning
being able to tune attributes to enhance security and performance).

Cheers,

Paul.