Operating System - HP-UX
1835259 Members
2582 Online
110078 Solutions
New Discussion

lpsched running multiple processes

 
machaya chivaviro_2
Occasional Advisor

lpsched running multiple processes

I am using hp 11.0 and all my printers have stopped printing. I have rebooted the server but did not help. I have checked on the scheduler and got these results. When one tries to print a job it runs multiple processes which should not happen. I have checked the permisions they are all ok. What could be the problem.
# lpshut
scheduler stopped
but does not stop it.
# ps -ef|grep lpsched
lp 1331 1 235 10:14:56 ? 0:18 /usr/sbin/lpsched
root 1691 1377 0 10:15:45 pts/tub 0:00 grep lpsched
# lp -dhelpdesk /etc/profile
request id is helpdesk-1774 (1 file)
# ps -ef|grep lpsched
lp 3505 1331 121 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 1331 1 0 10:14:56 ? 2:34 /usr/sbin/lpsched
lp 3500 1331 0 10:18:27 ? 0:00 /usr/sbin/lpsched
lp 3498 1331 0 10:18:27 ? 0:00 /usr/sbin/lpsched
lp 3502 1331 122 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3499 1331 0 10:18:27 ? 0:00 /usr/sbin/lpsched
lp 3503 1331 120 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3504 1331 120 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3509 1331 120 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3506 1331 121 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3507 1331 119 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3501 1331 0 10:18:27 ? 0:00 /usr/sbin/lpsched
lp 3508 1331 120 10:18:27 ? 0:02 /usr/sbin/lpsched
lp 3510 1331 120 10:18:27 ? 0:02 /usr/sbin/lpsched
The log has this /var/adm/lp/log
/usr/sbin/lpsched: Unable to open and lock "request/br69oc/cA0137okzim"

fork: Resource temporarily unavailable
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: lpsched running multiple processes

You have spooler control file corruption. First, use lpshut, then follow with pr -u to find all the lp processes (don't use grep):

ps -f -u lp

Then kill each of the processes manually. If new ones keep showing up, you'll have to disable spooling in the /etc/rc.config/lp file and then reboot. Then with the spooler shutdown, delete the printer br69oc with:

cancel br69oc -e
lpadmin -xbr69oc

Now check the printer is truly gone:

lpstat -v

If not, you may have to rebuild the printing subsystem by deleting every printer and starting over.

Once the problem printer is gone, start the spooler manually with the lpsched command. Then print a vary small file on one pr more printers. If all is well, add the problem printer back again.


Bill Hassell, sysadmin
Steve Steel
Honored Contributor

Re: lpsched running multiple processes

Hi


You may need to remobe

/var/spool/lp/FIFO /var/spool/lp/SCHEDLOCK

to make it run again


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)