Re: Current thoughts on system partitioning
From: Bill Davidsen (davidsen_at_tmr.com)
Date: 01/21/05
- Previous message: Michael Heiming: "Re: ext3 and reiserfs journalling - what is the difference and which is better?"
- In reply to: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Next in thread: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Reply: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 21 Jan 2005 19:11:22 GMT
Nico Kadel-Garcia wrote:
> "Bill Davidsen" <davidsen@tmr.com> wrote in message
> news:qJVHd.8347$qG1.6537@newssvr31.news.prodigy.com...
>
>>Morris Jones wrote:
>>
>>>Used to be the conventional wisdom for a *nix system was to have separate
>>>disk partitions for areas like /boot, /var, /home, /usr.
>>>
>>>I can certainly see the wisdom of a separate partition for a usenet
>>>volume,
>>>if you're doing that.
>>
>>Definitely if you're doing it seriously.
>>
>>>My server hosts a handful of domains and email accounts for friends and
>>>family. I've run into issues with the mounted /var partition filling up
>>>with a runaway log file and causing other problems.
>>
>>You can make a good case for a /var/log filesystem. You can also make a
>>case that you don't want to lose data if you have a problem, but if you
>>run /var out of space you have a BIG problem. You should at the least make
>>a consious choice about that one.
>
>
> The reasoning is sound, but I massively disagree. Exploding /var/log becomes
> far more likely when you partition it off, and makes your system vastly more
> likely to fail core services. Unless you can be extremely generous with such
> a partition, I'd advise you not to bother and simply use /var if you need to
> keep that highly material separate.
You ignore the consequences... If I run out of /var/log I stop logging.
If I run out of /var/tmp a lot more things stop, and the system no
longer provides service. The example of turning log level way up is
silly, bad administration is bad administration, it's like saying "what
happens if you type rm -rf /" or other undesirable things.
>
>
>>>What's the current advice for partitioning a modern server? What's the
>>>downside of using one large partition for the system?
>>
>>The downside is that if one thing runs away it can break the system very
>>badly. I like a seriously used system to have /tmp by itself. Disk is
>>cheap, time isn't. Just make everything larger than you think it needs to
>>be by a good bit!
>
>
> Again, the reasoning is sound, but when you start doing this sort of thing
> you can actually destabilize your environment because software *will* insist
> on dumping large things in /tmp. A lot of web browsers, for example, cache
> their downloads in /tmp. RPM recompilation takes up big chunks of /usr/src,
> except when it winds up in /var/tmp such as when compiling the kernel RPM,
> etc., etc.
Which is why you want a separate /tmp and if you build kernels a lot you
might want a separate /usr/src or not. I build rather a lot and I have
never run out of space on a small 10GB partition, if you're a vendor you
have special needs.
>
>
>>>One good thing I can think of is to have a small disk partition available
>>>as an alternate boot for doing maintenance with the main partition
>>>unmounted. That also might be practical with a live CD, saving the disk
>>>space.
>>
>>Most distros have a live CD capability and will run with no disk at all
>>available. Probably not worth it.
>
>
> Agreed, as long as the live CD actually works with your hardware. Sometimes
> you have to special load drivers, especially for new disk controllers. But
> this is a good approach.
Considering the probability that you will remember to keep the backup
boot up-to-date, when you add hardware you have to have the drivers
everywhere you need to boot. Most people run stock hardware and don't
patch and build their kernel, so if it works once it probably will again ;-)
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
- Previous message: Michael Heiming: "Re: ext3 and reiserfs journalling - what is the difference and which is better?"
- In reply to: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Next in thread: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Reply: Nico Kadel-Garcia: "Re: Current thoughts on system partitioning"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|