- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printing Headaches
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
Forums
Discussions
Discussions
Discussions
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
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
06-10-2003 07:43 PM
06-10-2003 07:43 PM
I had started copy some directories from my old drive. When I finished I had problems so I copied everything back to the way it was before I messed with it. Still is indicating that error.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 07:52 PM
06-10-2003 07:52 PM
Re: Printing Headaches
Check the ownership of /etc/lp,/var/spool/lp directories . They suppose to have user ownership of lp and group ownership of bin.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 07:59 PM
06-10-2003 07:59 PM
SolutionLooks like you missed something. Do you have anything there under /var/spool/lp directory?. There should be a file called "outputq" with lp as the owner and sys as the group. If the file is missing, then 'touch outputq' and chown the owner and group
with 644 permissions.
Permissions are very important for the printer setup. While copying the dictories/files, if you didn't preserve the permissions, then printers wont work.
/etc/lp, /var/spool/lp and /var/adm/lp should be owned by lp and the group bin.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:15 PM
06-10-2003 08:15 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:17 PM
06-10-2003 08:17 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:25 PM
06-10-2003 08:25 PM
Re: Printing Headaches
The outputq should have 644 permissions something like this
-rw-r--r-- 1 lp sys 996 Aug 19 2002 outputq
As I said before copying /etc/lp alone is not sufficient. You will need to have /var/adm/lp and /var/spool/lp also as they are without permission or ownership changes.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:26 PM
06-10-2003 08:26 PM
Re: Printing Headaches
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:28 PM
06-10-2003 08:28 PM
Re: Printing Headaches
Should all of the files under /var/spool/lp/ have lp:sys.
and all of the files under /var/adm/lp and /var/spool/lp have lp:bin????
I will check the log file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:33 PM
06-10-2003 08:33 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:43 PM
06-10-2003 08:43 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:44 PM
06-10-2003 08:44 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:44 PM
06-10-2003 08:44 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:51 PM
06-10-2003 08:51 PM
Re: Printing Headaches
I still feel you didn't copy the files and directories properly. You log indicates that the request directories are missing.
This is what I would do.
1. Backup the new lp directories on the current server
mv /etc/lp /etc/lp.new
mv /var/adm/lp /var/adm/lp.new
mv /var/spool/lp /var/spool/lp.new
2. On the old server, take a tar of all the lp directories
tar cvf /tmp/lp.tar /etc/lp /var/spool/lp /var/adm/lp
Copy /tmp/lp.tar onto the new system.
3. Untar lp.tar.
tar xvf /tmp/lp.tar. This will restore all the above directories with permissions.
Remove /var/spool/lp/SCHEDLOCK file.
4. Run lpsched and it should start.
As mentioned in the other thread, use 'transferqueue' command to tranfer the printers to jetdirect.
If anything fails, then move back the original files.
#rm /var/spool/lp /var/adm/lp /etc/lp
#mv /etc/lp.new /etc/lp
#mv /var/adm/lp /var/adm/lp
#mv /var/spool/lp.new /var/spool/lp
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:58 PM
06-10-2003 08:58 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 08:58 PM
06-10-2003 08:58 PM
Re: Printing Headaches
I looked at the permissions. Some of them are wrong. Particularly /var/spool/lp/request.
This should be owned by lp:bin. Underneath it you will see subdirectories with each printer's name. They should be owned by lp:lp.
It will be very difficult to fix the permissions for each and every file.
If you follow my above tar procedure, it will restore the permissions back.
-Sri
PS: You do not need to assign points until your issue is completely solved. This may be my last post as it is too late here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 09:04 PM
06-10-2003 09:04 PM
Re: Printing Headaches
It is a problem. You will need to have /var/spool/lp as most of the configuration is there.
If your old system was configured with LVM, then /var would be on a seperate filesystem. You would need to mount the corresponding logical volume. You can get it by looking at /etc/fstab file. Once you mount that filesystem, you should be able to retrieve these two directories.
-Sri
PS: PLEASE PLEASE PLEASE do not assign any points. I may not be able to help you completely as it is too late now and I have to get up early in the morning. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2003 09:23 PM
06-10-2003 09:23 PM
Re: Printing Headaches
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 12:09 AM
06-12-2003 12:09 AM