Operating System - HP-UX
1833788 Members
2411 Online
110063 Solutions
New Discussion

Re: Increasing /var/spool/lp

 
SOLVED
Go to solution
rana786
Regular Advisor

Increasing /var/spool/lp

Hi All,
last Friday, I had a problem in our Billing Server where we were not able to login to the server. All communication to that server was stopped including database connection. We had to restart the server and then it was OK again.

Before that I wanted to mount a 4GB lun to /var/spool/lp directory. I renamed the directory and then after sometime no activity was possible in the server including login. I am not sure whether the problem occurred because of renaming the /var/spool/lp directory or not. But it should not happen as /var/spool/lp directory is only used for storing printing related files.

Another problem is that /var becomes full sometimes while our bill printing is going on. It happens because the printing requests are queued in /var/spool/lp folder. So I want to mount 4GB lun to /var/spool/lp. Is it possible?
Please help.

Best regards,
Rana
Walker_dhk
2 REPLIES 2
Andrew Young_2
Honored Contributor
Solution

Re: Increasing /var/spool/lp

Hi Rana

Its actually very easy to do this.

Firstly create the new logical volume with the following command

lvcreate -L 4096 vg00 (assuming vg00)
mkfs -F vxfs -o largefiles /dev/vg00/rlvolYY

Thereafter stop the scheduler with lpshut. I would also as a precaution stop any apps that will try to print at them time or set all your printers to reject new jobs.

then run:

mkdir -p /tmp/spool/lp
mount /dev/vg00/lvolYY /tmp/spool/lp
mv /var/spool/lp/* /tmp/spool/lp/
umount /tmp/spool/lp

Add an entry for /var/spool/lp into the /etc/fstab file

mount /var/spool/lp

then restart the scheduler with lpsched.

If you changed all the printers to reject then change them to accept requests again.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
rana786
Regular Advisor

Re: Increasing /var/spool/lp

Its ok.
Walker_dhk