[Linux-ha-dev] dumping core
lmb at suse.de
Fri Oct 15 07:02:39 MDT 2004
On 2004-10-14T20:41:39, Alan Robertson <alanr at unix.sh> wrote:
> It would be nice to capture every possible core dump - but I'm not
> fanatically worried about that - because core dumps are (and should be!)
> rare. From this perspective, I thought LMB's proposal was overkill and
> messy (perhaps a bit hard to keep cleaned up too).
I had a proposal? Woah, I don't even remember ;-)
> So, I have what I think is a minimal solution which deals with the
> security issues as best as they can be, while allowing each process to
> dump its dump as needed...
> The core dump directory hierarchy is rooted at
> /var/run/heartbeat/cores, and it is owned by root and mode 755 (or 511
> or whatever suits you)
> It would be structured like this:
> /var/run/heartbeat/cores 755 owned by root
> /var/run/heartbeat/cores/hacluster 700 owned by hacluster
> /var/run/heartbeat/cores/root 700 owned by root
> /var/run/heartbeat/cores/nobody 700 owned by nobody
> This would permit us to write one core process per user id we run as.
> I think this is enough, and it keeps us from filling up the filesystem
> if something somehow goes nuts and our wonderful restart capability
> keeps restarting us again and again and again ;-)
Sounds good, if I'd combine it with an option somewhere to not start up
if a core dump is around.
Lars Marowsky-Brée <lmb at suse.de>
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX AG - A Novell company
More information about the Linux-HA-Dev