Print spool files filling /var/spool/printer

Print spool files filling /var/spool/printer

Post by Mike Rya » Sat, 06 Nov 1999 04:00:00



Solaris 2.6

I have started getting complaints from users that old documents are
being printer from one of our network printers.

Looking at the /var/print/spool directory I see that there are 100's of
spool files. The 10th file , date wise, is .printd.lock
doing a ps -ef also shows a printd process running
also there are about 20 lpr processes

I have no idea whats going on. Is it possible that this printd process
was interfeering with the spool directory ?
What does printd do ?

how can I investigate why spool files for this one particular printer
are filling up the spool directory ?

any suggestions would be appreciated and yes I am in RTFM mode.........

Thanks,
Mike.

 
 
 

Print spool files filling /var/spool/printer

Post by Greg Andre » Thu, 11 Nov 1999 04:00:00



>Solaris 2.6

>I have started getting complaints from users that old documents are
>being printer from one of our network printers.

>Looking at the /var/print/spool directory I see that there are 100's of
>spool files. The 10th file , date wise, is .printd.lock
>doing a ps -ef also shows a printd process running
>also there are about 20 lpr processes

>I have no idea whats going on. Is it possible that this printd process
>was interfeering with the spool directory ?

Probably not.

Quote:

>What does printd do ?

Catches incoming print jobs from the network, stores them in the
/var/spool/print directory, and makes TCP connections to the network
printer or print server and forwards the print jobs.

Quote:

>how can I investigate why spool files for this one particular printer
>are filling up the spool directory ?

What does "lpstat -p printername" say about the printer?
Does "lpstat -t" say anything different?

Quote:

>any suggestions would be appreciated and yes I am in RTFM mode.........

I would stop the print system with the "lpshut" command, edit the
inetd.conf file to disable the daemon for incoming print jobs
(the line starts with the word "printer"), and kill off any lpsched,
printd, in.lpd, lp, and lpr processes.  Delete the files in the
/var/spool/print directory.  It's safe to do that now that there
are no processes that could be using them.  Then re-start lpsched
("/etc/init.d/lp start"), and re-enable the print daemon in the
inetd.conf file.

See if cleaning out the spool directory like that gets rid of the
problem.

  -Greg
--

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

 
 
 

1. /var/spool/mail vs. /usr/spool/mail

I know this might appear to be a real newbee question, but it
is coming from one. ;)

Why do I have a /var/spool/mail and a /usr/spool/mail?

The /var/spool/mail doesn't seem to do anything, does it:

I ran a test.
    I chown'd a partickular user's /var/spool/mail file to
    root and chown'd the same user's /usr/spool/mail file
    to root.

   The result was that the user couldn't check mail--that makes sense!.

   I then chown'd that user's /usr/spool/mail  to make that user the
   owner and that user could then check mail.

   If /var/spool/mail was still owned by root ad the user was able to
   check mail, what is the function of /var/spool/mail?

2. WAREZ uploaders and downloaders

3. Problem with /var/spool/mqueue filling up

4. Virtual Host prob on Apache 1.3.9/Linux

5. Postfix fills up /var/spool/postfix/maildrop?

6. OpenBSD3.1 ports-postfix-1.1.6

7. /var/spool/mqueue -- Filling up my /usr filesystem!!!

8. What sendmail on AIX 3.1.5?

9. Cannot Print to /var/spool/print??

10. mail folder is in /var/mail or /var/spool/mail

11. Red Hat up2date files in /var/spool/up2date

12. More mail file locking questions (lockf, NFS, /var/spool/mail/*.lock)

13. cmsd exploit and /var/spool/calendar files