Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Does dump kill cron?
@ 1996-09-05  4:00 Craig Rodrigues
  1996-09-06  4:00 ` Brian Martin
  1996-09-09  4:00 ` Martin Moore
  0 siblings, 2 replies; 6+ messages in thread
From: Craig Rodrigues @ 1996-09-05  4:00 UTC (permalink / raw)



Hi,

For the past few weeks, cron has been dying mysteriously, and I absolutely
cannot figure out why.
I heard that running dump in a cron job has the potential to kill cron.

Can anyone confirm this?
Is there a fixed dump from Digital?

Thanks.
-- 
Craig Rodrigues                     CyberPlex Interactive Media
Application Programmer              24 Duncan St., Suite 300
                                    Toronto ON  M5V 2B8   CANADA
craig@cyberplex.com                 (416) 597-8889(voice) (416)597-2345(fax)



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Does dump kill cron?
  1996-09-05  4:00 Does dump kill cron? Craig Rodrigues
@ 1996-09-06  4:00 ` Brian Martin
  1996-09-08  4:00   ` wzambotti
  1996-09-09  4:00 ` Martin Moore
  1 sibling, 1 reply; 6+ messages in thread
From: Brian Martin @ 1996-09-06  4:00 UTC (permalink / raw)



Craig Rodrigues wrote:
> I heard that running dump in a cron job has the potential to kill cron.

I run vdump and have no problems.  Close, but may not be a confirmation.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Does dump kill cron?
  1996-09-06  4:00 ` Brian Martin
@ 1996-09-08  4:00   ` wzambotti
  1996-09-09  4:00     ` Steve Jones
  0 siblings, 1 reply; 6+ messages in thread
From: wzambotti @ 1996-09-08  4:00 UTC (permalink / raw)



In article , Brian says...
>
>Craig Rodrigues wrote:
>> I heard that running dump in a cron job has the potential to kill cron.
>
>I run vdump and have no problems.  Close, but may not be a confirmation.

I haven't heard about killing cron but ...

You must be carefull when running dump/vdump from cron because :

dump trys to open the controlling tty the moment it starts
vdump trys to open the controlling tty the moment a tape request is made

they both do this for the same reason.  So they can prompt for tapes during
the dumping.

Of course when run as a cron job there is no controlling tty so you get messages
like :

Cannot open /dev/tty ... aborting.

Because dump does this at the beginning it is not really suited for cron.  And
vdump can only be used if you guarentee that the dump will fit on one tape.

You can try to use redirection with dump so that it can at least perform in a
similar fashion to vdump like so :

( dump -dumpFlags /device /filesystem )  2&>1 >/dev/console </dev/console

From memory the brackets were important, so it was all run in a sub-shell.

Of course if the dump requires more than one tape then it will hang as apposed
to aborting like vdump.

Regards,

Walter Zambotti



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Does dump kill cron?
  1996-09-05  4:00 Does dump kill cron? Craig Rodrigues
  1996-09-06  4:00 ` Brian Martin
@ 1996-09-09  4:00 ` Martin Moore
  1996-09-10  4:00   ` Craig Rodrigues
  1 sibling, 1 reply; 6+ messages in thread
From: Martin Moore @ 1996-09-09  4:00 UTC (permalink / raw)



Craig Rodrigues (craig@alpha.cyberplex.com) wrote:
: Hi,

: For the past few weeks, cron has been dying mysteriously, and I absolutely
: cannot figure out why.
: I heard that running dump in a cron job has the potential to kill cron.

: Can anyone confirm this?
: Is there a fixed dump from Digital?

Please, please, always list what version you are running when asking about
something like this!

In v2.x and v3.0, there was such a problem.  dump could abort and take its
parent process with it.  If cron was the parent process -- no more cron.
There are patches available from your CSC for this.

If you're running 3.2 or later, then it's something else; the dump problem
was fixed in 3.2.

Martin
--
Martin J. Moore				5555 Windward Parkway West
Digital UNIX Support			Alpharetta GA  30201-7407
Digital Equipment Corporation		1-800-354-9000 x31679
martin@alf.dec.com			DECATL::MARTIN



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Does dump kill cron?
  1996-09-08  4:00   ` wzambotti
@ 1996-09-09  4:00     ` Steve Jones
  0 siblings, 0 replies; 6+ messages in thread
From: Steve Jones @ 1996-09-09  4:00 UTC (permalink / raw)



In article <51050q$199@lex.zippo.com>,
 <wzambotti@southmark.xlane.net.au> wrote:
>In article , Brian says...
>>
>>Craig Rodrigues wrote:
>>> I heard that running dump in a cron job has the potential to kill cron.
>>
>>I run vdump and have no problems.  Close, but may not be a confirmation.
>
>I haven't heard about killing cron but ...
>
>You must be carefull when running dump/vdump from cron because :
>
>dump trys to open the controlling tty the moment it starts
>vdump trys to open the controlling tty the moment a tape request is made
>
>they both do this for the same reason.  So they can prompt for tapes during
>the dumping.
>
>Of course when run as a cron job there is no controlling tty so you get messages
>like :
>
>Cannot open /dev/tty ... aborting.
>
>Because dump does this at the beginning it is not really suited for cron.  And
>vdump can only be used if you guarentee that the dump will fit on one tape.
>
>You can try to use redirection with dump so that it can at least perform in a
>similar fashion to vdump like so :
>
>( dump -dumpFlags /device /filesystem )  2&>1 >/dev/console </dev/console
>
>From memory the brackets were important, so it was all run in a sub-shell.
>
>Of course if the dump requires more than one tape then it will hang as apposed
>to aborting like vdump.
>
>Regards,
>
>Walter Zambotti

A program (dwrap.c) which mitigates the problem(s) above 
with using dump from cron is available in the archive:  
 
    ftp://ftp.u.washington.edu/public/noyd/bdump.tar
 
Another characteristic of 'cron' not mentioned above is that it 
will schedule another job regardless of how the previous run of the
job ended (or did not end).  If jobs do not terminate in a timely manner,
cron can be killed or otherwise foiled when it runs out of resources
(account/process limits).
-- 
--
  Steven Jones
  Computing & Communications 354843,  University of Washington
  E-mail:  noyd@u.washington.edu    Phone:  (206) 543-5852



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Does dump kill cron?
  1996-09-09  4:00 ` Martin Moore
@ 1996-09-10  4:00   ` Craig Rodrigues
  0 siblings, 0 replies; 6+ messages in thread
From: Craig Rodrigues @ 1996-09-10  4:00 UTC (permalink / raw)



In article <511af3$5e8@netnews.alf.dec.com>,
Martin Moore <martin@decatl.alf.dec.com> wrote:
>
>Please, please, always list what version you are running when asking about
>something like this!

Sorry, here is the info:

OSF1 alpha.cyberplex.com V3.0 358.78 alpha

>
>In v2.x and v3.0, there was such a problem.  dump could abort and take its
>parent process with it.  If cron was the parent process -- no more cron.
>There are patches available from your CSC for this.

Looks like this is the problem.  Thanks a lot.

>If you're running 3.2 or later, then it's something else; the dump problem
>was fixed in 3.2

How painful is it to upgrade from 3.0B --> 3.2C?  I don't really want to
bring this system down for too long.
.


-- 
Craig Rodrigues                     CyberPlex Interactive Media
Application Programmer              24 Duncan St., Suite 300
                                    Toronto ON  M5V 2B8   CANADA
craig@cyberplex.com                 (416) 597-8889(voice) (416)597-2345(fax)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1996-09-10  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-05  4:00 Does dump kill cron? Craig Rodrigues
1996-09-06  4:00 ` Brian Martin
1996-09-08  4:00   ` wzambotti
1996-09-09  4:00     ` Steve Jones
1996-09-09  4:00 ` Martin Moore
1996-09-10  4:00   ` Craig Rodrigues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox