Use this procedure if qdaemon repeatedly dies or if your queueing subsystem is completely down. If you find that this procedure must be constantly run to keep your queueing system in working order, you may have a more serious problem with your configuration. Work with your local support team to resolve this situation. This document applies to all AIX Versions on the RISC System/6000.
To clear the queueing system, you will need to stop the qdaemon process and check that the /usr (AIX 3.1) or /var (3.2 and above) file system is not full. Then, clear the queue directories and start the qdaemon process again.
lpstat
To cancel print jobs, enter:
enq -x <job number>
* stopsrc -cs qdaemon
ps -ef | grep qdaemon ps -ef | grep pio
Only one line of output should be displayed for each of the above commands. If this is the case, skip to step 6.
If there was more than one line of output, note the process ID (second column of output) for each process except grep qdaemon and grep pio. (Process names are in the last column.)
kill -9 xxxxRun the command for each process ID you noted above, replacing xxxx with the process ID.
If your print job exists in one of the following directories, make a copy of it and place it in /tmp; you can print it when the queueing system is running again. (In these directories, the files will have unfamiliar system names.)
On AIX 3.1,
/usr/spool/qdaemon /usr/spool/lpd
On AIX 3.2, 4.1x, 4.2x and 4.3x
/var/spool/qdaemon /var/spool/lpd
Enter the df command and look in the "%used" column for /usr or /var to see if the file system is too full. Free or increase space in the file system as necessary.
On AIX 3.1,
cd /usr/lpd/qdir
On AIX 3.2, 4.1x, 4.2x and 4.3x
cd /var/spool/lpd/qdir
On AIX 3.1,
cd /usr/lpd/stat
On AIX 3.2, 4.1x, 4.2x and 4.3x
cd /var/spool/lpd/stat
On AIX 3.1,
cd /usr/spool/qdaemon
On AIX 3.2, 4.1x, 4.2x and 4.3x
cd /var/spool/qdaemon
On AIX 3.1,
cd /usr/spool/lpd
On AIX 3.2, 4.1x, 4.2x and 4.3x
cd /var/spool/lpd
startsrc -s qdaemon
The queueing system should start normally. If some queues are still down, try to bring them up with enable <qname>.
[ Doc Ref: 90605199014844 Publish Date: Jan. 19, 2001 4FAX Ref: 1867 ]