Browse Prior Art Database

HOW TO RECOVER PRINT FILES AFTER QDAEMON CRASH UNDER AIX

IP.com Disclosure Number: IPCOM000020654D
Original Publication Date: 2003-Dec-08
Included in the Prior Art Database: 2003-Dec-08
Document File: 3 page(s) / 52K

Publishing Venue

IBM

Abstract

A method and computer program under AIX (AIX is a trademark of International Business Machines Corporation) are disclosed for resuming printing operations after failure of the QDAEMON without losing spool files.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 1 of 3

HOW TO RECOVER PRINT FILES AFTER QDAEMON CRASH UNDER AIX

The QDAEMON in the AIX environment (AIX is the IBM operating system for RISC
6000) is a program responsible for handling print spool. In some circumstances, this program can fail or crash and there is no way to restart it. A common solution consists in deleting all print files in queues. This solution is unacceptable for customers. Some of the print files represent orders or production instructions which must not be deleted. A print file comprises a pair of associated files, one file in the /var/spool/lpd/qdir directory and the other file is in the /var/spool/qdaemon directory. Each pair of files associated with each document to print, must be preserved (not destroyed) if the customer considers that these documents contain vital information. A problem is that it is difficult to associate files by pair. In fact, a file stored in the /var/spool/lpd/qdir directory comprises in its last record the name of its associated file in the /var/spool/qdaemon directory. Furthermore, the naming convention used for these files is not simple and uses special characters. The problem is that system commands must be coded in a special way to comply with this naming convention. The method used by the system administrator to prevent the loss of prints, comprises the following steps.

1) Restarting the QDAEMON

- creating temporary directories such as:

= /tmpspool/qdir

= /tmpspool/qdaemon - stopping the applications which generate print files. - checking that the system program managing the printers /usr/sbin/qdaemon does not run. (some instances may run without serving prints) - killing the /usr/sbin/qdaemon, if it still runs. - moving the files of the print queues into the temporary directory /tmpspool/qdir by means of the following AIX commands: = cd /var/spool/lpd/qdir.

= find . -type f -exec mv {} /tmpspool/qdir \; - moving the files of the print queues into the other temporary directory /tmpspool/qdaemon by means of the following AIX commands: = cd /var/spool/qdaemon

= find . -type f -name "t*" -exec mv {} /tmpspool/qd...