Technical article 103329

Too many undelivered messages in /usr/spool/mmdf/lock/home/*

OpenServer 5.0.0OpenServer 5.0.6

Written · Last revised

Problem

cron queued the following error message several times in /usr/spool/mmdf/lock/home/addr, /usr/spool/mmdf/lock/home/msg and /usr/spool/mmdf/lock/home/q.local to be delivered to /usr/sys:

To:sys Date: Tue , 24 sep 91 5:00:09 PDT Message-ID: <9109240500.ad28250@hhsregix.UUCP>

cron: can't change directory to your home directory. Your commands will not be executed.

Other symptoms of this problem are:
-  Out of inodes on dev (1/40)
-  no more processes
-  no file

Cause

cron could not execute /usr/sys specific commands because the sys home directory was removed accidentally.

Solution

To resolve this problem take the following steps:

(1) Recreate /usr/sys directory
# mkdir /usr/sys
# chmod 755 /usr/sys
# chown sys /usr/sys
# chgrp sys /usr/sys
(2) Recover disk space.
Change directory:
# cd /usr/spool/mmdf/lock/home
Next, remove the messages in the addr, msg and q.local
 directories.  A quick way to do this is to remove the
 files in all the subdirectories of /usr/spool/mmdf/lock/home:
# find . -type f -print | xargs rm
Clean log files:
#  > /usr/spool/mail/sys
#  > /usr/spool/mail/adm
#  > /usr/spool/mail/root
#  > /usr/mmdf/log/msg.log
#  > /usr/mmdf/log/chan.log
#  > /usr/adm/messages
#  > /etc/wtmp
#  > /etc/utmp
(3) Boot the system.  When you see the following prompt

Type <ctrl>-d to proceed with normal startup, (or give root password for System Maintenance)

enter the root password to bring up the system in single user mode.

At the prompt, enter:
# /etc/fsck -s /dev/root

File system check with an s option updates the free list of available inodes and blocks in the superblock.

NOTE: Also see another article titled How to Configure MMDF to Send Warnings of Undelivered Mail.

From the Xinuos technical article database, record 103329. Reproduced with permission. The original is at www.sco.com/ta/103329, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.