11/16/94 Clearing Your Queuing System in AIX 3.1 or 3.2 SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. +----------------------------------------------------------+ | | | NOTE: The information in this document has NOT been | | verified for AIX 4.1. | | | +----------------------------------------------------------+ ABOUT THIS DOCUMENT Use this procedure if qdaemon repeatedly dies or if your queuing subsystem is completely down. If you find that this procedure must be constantly run to keep your queuing 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 both AIX 3.1 and 3.2 on the RISC System/6000. SUMMARY OF PROCEDURE To clear the queuing system, you will need to stop the qdaemon process and check that the "/usr" (AIX 3.1) or "/var" (3.2) file system is not full. Then, clear the queue directories and start the qdaemon process again. STEPS 1. Log in as root. 2. Let current print jobs finish printing or cancel them. To list current print job numbers, enter lpstat To cancel print jobs, enter: enq -x 3. Now, stop the qdaemon process by entering: stopsrc -s qdaemon Clearing Your Queuing System in AIX 3.1 or 3.2 1 11/16/94 4. Use the following commands to ensure that qdaemon has not forked other processes and left them running. 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.) 5. Kill the forked processes with the following command. kill -9 xxxx Run the command for each process ID you noted above, replacing xxxx with the process ID. 6. If it is important to save the current print jobs from being deleted, continue with this step. If not, go to step 7. If your print job exists in one of the following direc- tories, make a copy of it and place it in "/tmp"; you can print it when the queuing 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, /var/spool/qdaemon /var/spool/lpd 7. If the "/usr" (3.1) or "/var" (3.2) file system gets too full, you may experience problems with qdaemon or the spooler. Large print jobs may fail, or "00root" files with zero lengths may appear in your "qdir" directory. Rebooting the system may not help clear files out or restart qdaemon. 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 nec- essary. 8. Change directory: On AIX 3.1, cd /usr/lpd/qdir Clearing Your Queuing System in AIX 3.1 or 3.2 2 11/16/94 On AIX 3.2, cd /var/spool/lpd/qdir 9. Issue the "pwd" command to verify that you are in the proper directory ("qdir"); then remove all files in this directory: "rm *". 10. Change directory again: On AIX 3.1, cd /usr/lpd/stat On AIX 3.2, cd /var/spool/lpd/stat 11. Issue the "pwd" command to verify that you are in the proper directory ("stat"); then remove all files in this directory: "rm *". 12. Change directory: On AIX 3.1, cd /usr/spool/qdaemon On AIX 3.2, cd /var/spool/qdaemon 13. Issue the "pwd" command to verify that you are in the proper directory; then remove all files in this direc- tory: "rm *". Continue with the following steps if you are having trouble with remote queues or with lpd. Otherwise, skip to Step 16. 14. Change directory: On AIX 3.1, cd /usr/spool/lpd On AIX 3.2, cd /var/spool/lpd 15. Issue the "pwd" command to verify that you are in the proper directory ("lpd"); then remove all files in this directory: "rm *". (This will not remove the subdirec- tories.) 16. Now, start qdaemon: startsrc -s qdaemon Clearing Your Queuing System in AIX 3.1 or 3.2 3 11/16/94 The queuing system should start normally. If some queues are still down, try to bring them up with "enable ". Clearing Your Queuing System in AIX 3.1 or 3.2 4 11/16/94 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: ______________________________________________________________________ END OF DOCUMENT (clearq.zap, 4FAX# 1867) Clearing Your Queuing System in AIX 3.1 or 3.2 5