- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- relocate print spooler location?
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
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
10-18-2005 07:47 PM
10-18-2005 07:47 PM
Many thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 07:54 PM
10-18-2005 07:54 PM
Re: relocate print spooler location?
mkdir /path/spool1
copy all files from /var/spool to this dir.
lpshut
rm /var/spool
ln -s /path/spool1 /var/spool
lpsched -v
That's all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 08:33 PM
10-18-2005 08:33 PM
Re: relocate print spooler location?
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 08:41 PM
10-18-2005 08:41 PM
Re: relocate print spooler location?
as RAC has mentioned, u may change the softlink path but actually of /var/adm/lp/log to another path in a more unused file system:
# ls -ld /var/spool/lp/log
to check
another way is to check housekeep /var/tmp, /var/adm/syslog, etc and look out for any core files from /var file system.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2005 09:07 PM
10-18-2005 09:07 PM
Re: relocate print spooler location?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 12:57 AM
10-19-2005 12:57 AM
Re: relocate print spooler location?
NOTE: symlinks useed to 'scatter' directories onto unrelated mountpoints can be a real sysadmin nightmare. I estimate that no one in your group or the customer will remember this symlink in 6 months and some backup/restore or Ignite action will create a problem because of the link.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 01:01 AM
10-19-2005 01:01 AM
Re: relocate print spooler location?
1. Make a directory of the new location of the print spooler using disk09 (you specified this to be the new location):
mkdir /disk09/var/spool/lp
2. Stop the scheduler:
lpshut
3. Once the scheduler is stopped, copy all of the files from /var/spool/lp to the new directory:
cp â r /var/spool/lp/* /disk09/var/spool/lp
4. Move the original lp directory â this is in case we need to move it back:
mv /var/spool/lp /var/spool/ORIG.lp
5. Create a soft link to the new spooling directory:
ln â s /disk09/var/spool/lp /var/spool/lp
6. Check that the permissions on the new lp directory are the same as the original (permissions should be (755) drwxrwxr-x and the directory should be owned by lp group bin):
ls â l /disk09/var/spool
7. If permissions and ownership are incorrect change to that listed above:
chmod 755 lp
chown â R lp:bin lp
8. Restart the scheduler:
lpsched
9. If all works ok remove the directory moved in step 4:
rm â r /var/spool/ORIG.lp
Will this be ok or should I just do the above for /var/spool/lp/requests???????
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 01:56 AM
10-19-2005 01:56 AM
Re: relocate print spooler location?
Much in the same manner as making /var/crash it own filesystem. One advantage is that if /var/spool does fill, the /var will not be full.
You have separate filesystems for /var and /var/spool
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2005 03:22 AM
10-19-2005 03:22 AM
Solution> mkdir /disk09/var/spool/lp
I would simplify this to just:
mkdir /disk09/varspool
No need to crteate the subdirectories since you only need the request directory stored on disk09.
> lpshut
Correct. Check that no proceses are running owned by lp:
ps -f -u lp
> cp -r /var/spool/lp/* /disk09/var/spool/lp
Since there are directories and files, I would use cpio -p to do everything:
cd /var/spool/lp/request
find . | cpio -pudlmv /disk09/varspool
That takes care of subdirectories and permissions, ownerships.
> mv /var/spool/lp /var/spool/ORIG.lp
Be sure most or all of the print queues are empty. Since we're doing just the request directory, the mv would look like this:
mv /var/spool/lp/request /var/spool/lp/request.ORIG
> ln -s /disk09/var/spool/lp /var/spool/lp
Since we're doing just the request directory, it would look like this:
ln -s /disk09/var/spool/lp/request /var/spool/lp/request
> 6. Check that the permissions on the new lp directory...
They will be fine. However, don't use the chmod -R or chmod -R commands. The -R option is very dangerous in that it does not distinguish between directories and files. Some directories and files are lp:lp, and others are lp:bin. Directories are all 755 but the files are 444 or perhaps 644.
The last step once everything is working correctly:
rm -rf /var/spool/lp/request.ORIG
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2005 09:55 PM
10-23-2005 09:55 PM