- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- spooler won't start
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 12:58 AM
тАО07-18-2002 12:58 AM
I tried to remove SCHEDLOCK before start the scheduler with lpsched but SCHEDLOCK would be created again together with core.
Please help and thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:11 AM
тАО07-18-2002 01:11 AM
Re: spooler won't start
Under the url is explain about SCHEDLOCK and FIFO.
I hope the url is better help to you.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x30f6f841489fd4118fef0090279cd0f9,00.html
have a nice day!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 01:51 AM
тАО07-18-2002 01:51 AM
Re: spooler won't start
Thank you for your help.
The explanation helps me understanding better of SCHEDLOCK and FIFO. However when I tried lpsched it said scheduler is running. Then I couldn't find lpsched by ps command. If I run lpshut it would complain no scheduler running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 02:03 AM
тАО07-18-2002 02:03 AM
Re: spooler won't start
1)Cleanup
# /usr/sbin/lpshut -> shut down the scheduler
# ps -ef | grep lp -> are lp processes still running ?
-> if yes, kill those processes
# kill
# ps -ef | grep lp -> check if all processes are really gone
# cd /var/spool/lp
# rm FIFO SCHEDLOCK CLD_FIFO Toutputq *.lock
-> delete temporary files, not all of them may exists
2)Restart
# /usr/sbin/lpsched -v -a -> restart lpsched with additional logging enabled
3)Check
Look in /var/adm/lp/log for info
If corefile do file core and post output
What is the last lp patch on the box
swlist -l fileset|grep -i lp
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2002 11:21 PM
тАО07-18-2002 11:21 PM
Re: spooler won't start
I suggest the problem is that you have corrupted *status files. So remove them and restart the scheduler. If necessary to do this remove first the *FIFO and *SCDEDLOCK files.
By
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 12:13 AM
тАО07-19-2002 12:13 AM
Re: spooler won't start
Thank you for your help. I tried but couldn't get anywhere. I guess some files got messed up. I used SAM to stop the spooler and couldn't start it since then. no messages logged under /var/adm/lp/log after that.
lpsched creates a core dump every start.
I attached output from strings core here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 03:51 AM
тАО07-19-2002 03:51 AM
Re: spooler won't start
I may be off base with this, but when I was at one place on 10.2, with a lot of queus, this would happen to me. After removing the lock file, and fifo, I would run ps -ef |grep lp
and see other scheds running, i would kill all of them, and run a cancel on all queus, this seemed to work, why I am not sure, but it would seem after canceling the queues I could get the lpsched to run again.
Not sure if you want to try that, but if your lpsched is still down, it may be worth the try.
scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 04:04 AM
тАО07-19-2002 04:04 AM
Re: spooler won't start
1)Please file core
Note strings core.
2)lpstat -t does it work.
3)Nothing in the log suggests a protection error that lp cannot write.
I have uploaded a script
It correct permissions.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 04:07 AM
тАО07-19-2002 04:07 AM
Re: spooler won't start
Another script
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done
Save and use as script disable
Will disable all printers
Then try and start the spooler
When running script enable to restart printers
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 04:48 AM
тАО07-19-2002 04:48 AM
Solutionsam -> Printers and Plotters -> LP Spooler -> Save/Restore Spooler Configuration
Check that the displayed "Time Saved:" is recent/correct!
The actual Restore Spooler Configuration action is under "Actions".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 05:25 AM
тАО07-19-2002 05:25 AM
Re: spooler won't start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 08:29 AM
тАО07-19-2002 08:29 AM
Re: spooler won't start
HtH,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 09:23 AM
тАО07-19-2002 09:23 AM
Re: spooler won't start
You must guarantee that every printer showed in your SAM spool have a corresponding directory in /var/spool/lp/request. If not, pls follow this steps:
mkdir
chown lp:lp
chmod 766
remove SCHEDLOCK file
restart spool
Other way to restore any previous working-fine spool configuration is:
Make periodically in SAM/Printers and Ploters/LP Spooler/Save-RestoreSpooler Configuration/Action/Save Spooler Configuration
When you need restore this configuration just select Restore Spooler Configuration in same path showed above.
Regards,
Jose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2002 07:31 PM
тАО07-19-2002 07:31 PM
Re: spooler won't start
It's the spooler configuration. I restore the configuration using SAM and it works.
Thanks to everyone who bother to help me.
I am really touched by the response I get.
It's the first time I seek help here.
Victor, I am not the one you knew.
Have a nice weekend!