From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,79528e1079cf8050 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-07 20:51:17 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!xlink.net!slsv6bt!slbh01.bln.sel.alcatel.de!rcvie!Austria.EU.net!EU.net!julienas!ubu!news From: jlb@acri.fr (Jean-Luc Bernard) Subject: Re: Crashdumps fill up my /var Message-ID: <1994Sep7.144155.27242@acri.fr> Sender: news@acri.fr (News Admin) Reply-To: jlb@acri.fr Organization: Advanced Computer Research Institute References: <34734b$9k9@unicorn.ccc.nottingham.ac.uk> Date: Wed, 7 Sep 1994 14:41:55 GMT In article 9k9@unicorn.ccc.nottingham.ac.uk, pdxjfp@evol.nott.ac.uk (John F Peden) writes: > >Hi > >For some unknown reason, my system is crashing about once a day >(usually at night -- it may be related to the console window manager) > >But anyway, when it does, it stores a coredump in /var/adm/crash, >these rapidly fill up the partition and eventually it refuses to boot >to multi-user mode. So none of my users can log in, until I arrive. > > >My question is > >How do I limit of a crashdump to a fixed size in the same way as I can >a standard core dump ? > >I would still like to keep a record in the crash directory >that the machine went down i.e. a 1 K file with a date stamp, >but not the full 100Mb. First, it is useless to save a truncated crash file, as you will not be able to use it afterward. Second, a possible answer to you question, from 'man savecore', is : savecore [-cefv] directory [system] -c Does not copy the dump, but simply marks it invalid. You can change the savecore parameters in the /sbin/init.d/savecore file. --- "Je ne suis ni pour, ni contre, bien au contraire" -- Coluche _________________________________________________________________ Jean-Luc BERNARD Computer Center Advanced Computer Research Institute Email: jlbernard@acri.fr 1 Boulevard Marius Vivier-Merle Voice: (+33) 72.35.84.03 69443 LYON CEDEX 03 - FRANCE Fax (+33) 72.35.84.10