0

I have been googling this without much luck. I hope someone can help here.

We have a customer running SCO Unixware 7 machine. This machine does a daily backup to tape. These have stopped running. It goes through and gets into the /home directory and produces the following error

UX:cpio: HALT: ulimit reached for output file.

This runs out of the root crontab and the ulimit settings for root is this

# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 16384
coredump(blocks) 32768
nofiles(descriptors) 256
memory(kbytes) unlimited

I am unsure what all of the sudden has caused this to stop working. What can I do to help alleviate this issue?

Current Crontab entry

0 23 * * 1-6 /tech/mn/autobackup.sh

Suggested Crontab entry

0 23 * * 1-6 ulimit -f unlimited; sh /tech/mn/autobackup.sh
Deldran
  • 11
  • 3

1 Answers1

0

The ulimits for a root login are not necessarily the same as the ulimits in the cron-spawned cpio. Run ulimit -Sa and ulimit -Ha from the root crontab to find out what the limits inherited by cron jobs are.

Some Unixes have a convenient/exasperating feature where they will configurably apply limits to sessions on session creation, for example in /etc/login.conf.

My approach would be to insert ulimit -f unlimited; on the crontab line before the real command.

aecolley
  • 943
  • 4
  • 15