Message Purge Failure

impurge will fail if the file system is full. You will see the following error message in the syslog file:

Jul 11 12:52:27 mcm-charmed SUNWmail.ims.impurge[17436]: PURGE erro: Cannot create expungedir tmp file
Jul 11 12:52:27 mcm-charmed SUNWmail.ims.impurge[17436]: PURGE erro: Cannot create ADM expungedir tmp file

There is no convenient workaround, but following procedure will work. Be extremely careful.

  1. Shutdown SIMS.
  2. Move some data to another file system
You must make enough disk space for the day that has that largest total data+index byte size. Move all the data buckets, the index and indexdir files for that day at once. For example:

$ mv /var/opt/SUNWmail/ims/data/1998/0627 /tmp/data.0627
$ mv /var/opt/SUNWmail/ims/index/1998/0627 /tmp/index.0627

  3. Run impurge.
  4. Move the data you moved in step 2 back to the message store.
For example:

$ mv /tmp/data.0627 /var/opt/SUNWmail/ims/data/1998/0627
$ mv /tmp/index.0627 /var/opt/SUNWmail/ims/index/1998/0627

  5. Run impurge again.



Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.