Jay D. Anderson
2002-Feb-25 09:23 UTC
[Samba] Samba 2.2.3a, print queue status "opening," high server load
I have Samba 2.2.3a installed and running successfully on Solaris 8 in a
test environment. I manually enter printer shares into the smb.conf
file, and then I can upload printer drivers to the Samba server from a
Windows session without problems.
When I try to print to a print queue on this server from a Windows 2000
SP2 machine, the application I am printing from hangs, the CPU usage of
the smbd process shoots up to 100% and stays there, and nothing else
happens until I kill the application in Task Manager.
I haven't found anything applicable in the mail list archives, so I'm
wondering what I'm doing wrong. I have been running Samba 2.0.x for a
long time, but I haven't been able to switch to 2.2.x for production yet
due to server loading issues. Using 2.2.2, printing worked fine, so
this problem only came up when I switched to 2.2.3. From reading about
some of the changes between 2.2.2 and 2.2.3, I was hoping the server
loading issues for large numbers of users would be resolved, but I ran
into this new printing issue.
I'm including my globals and a sample printer share from my smb.conf
file. If anyone would like a level 3 log of what happens when this
printing problem occurs, just tell me where to send it.
Thank you.
[global]
workgroup = JDDOM
netbios name = H2O
server string = Test Server - Samba %v
interfaces = 166.191.196.12/20
security = DOMAIN
encrypt passwords = Yes
map to guest = Bad User
password server = DDWPDC
max log size = 5000
username map = /usr/local/samba/lib/user.map
time server = Yes
deadtime = 15
socket options = IPTOS_LOWDELAY TCP_NODELAY
large readwrite = Yes
local master = No
dns proxy = No
wins proxy = Yes
wins server = 166.191.196.135
message command = csh -c '/usr/bin/mailx -s Winpopup postmaster
< %s;/bin/rm -f %s' &
load printers = no
name resolve order = lmhosts wins host bcast
printing = SYSV
print command = /usr/bin/lp -c -dprint01.dw.deere.com:%p %s ;
/bin/rm -f %s
lpq command = /usr/bin/lpstat -o%p -L
lpq cache time = 60
veto files = /*.eml/*.nws/Ne*:/
[dwpr54]
comment = HPLJ4000N
path = /var/spool/samba
guest ok = Yes
printable = Yes
printer name = dwpr54
--
---------------------------------------------------------------------
Jay D. Anderson John Deere Davenport Works
Jay@Deere.com P.O. Box 4198
Phone: 563.388.4268 Fax: 563.388.4159 Davenport, Iowa 52808
http://www.dw.deere.com/~hz01930 http://jayanderson.cjb.net
Dave.Stevenson@durham.ac.uk
2002-Feb-25 10:57 UTC
[Samba] Samba 2.2.3a, print queue status "opening," high server load
Sounds just like the problem I had uploading the type 3 drivers from the windows2k SP2 machine rather than using the NT4/W2K type 2 drivers solved this for me. Both co-exist happily with legacy NT machines loading the type 2's. Solves the hangups then you need to look at setting Default Printer settings. I still have issues with permissions on settings that I can't seem to resolve between w2k and NT4 clients. w2k clients behave as predicted with users being able to change document options but not printer default settings. nt4 clients cannot change document defaults from printer properties unless the user is a "printer admin" (or obviously admin mapped to server/root) I suspect this is an area of development...but as a temporary fix/workaround I thought I might hack the srv_spoolss_nt.c to deny some of the catastrophic changes to printer admins (apart from root) and open up options re changing printer parameters. As I'm likely to get out of my depth here pretty quick a little feedback as to if this is feasible would be welcomed?
Jay D. Anderson
2002-Feb-28 06:15 UTC
[Samba] Samba 2.2.3a, print queue status "opening," high server load
Okay, I *thought* this was fixed with a couple changes I made, but I was
wrong. I am still seeing the same behavior as outlined below. As an
example, I try to print from Word and after selecting the printer Word
stops responding and I the smbd process loads up a CPU.
I have Samba 2.2.3a installed and running successfully on Solaris 8 in a
test environment. I manually enter printer shares into the smb.conf
file, and then I can upload printer drivers to the Samba server from a
Windows session without problems.
When I try to print to a print queue on this server from a Windows 2000
SP2 machine, the application I am printing from hangs, the CPU usage of
the smbd process shoots up to 100% and stays there, and nothing else
happens until I kill the application in Task Manager.
I haven't found anything applicable in the mail list archives, so I'm
wondering what I'm doing wrong. I have been running Samba 2.0.x for a
long time, but I haven't been able to switch to 2.2.x for production yet
due to server loading issues. Using 2.2.2, printing worked fine, so
this problem only came up when I switched to 2.2.3. From reading about
some of the changes between 2.2.2 and 2.2.3, I was hoping the server
loading issues for large numbers of users would be resolved, but I ran
into this new printing issue.
I'm including my globals and a sample printer share from my smb.conf
file. If anyone would like a level 3 log of what happens when this
printing problem occurs, just tell me where to send it.
Thank you.
[global]
workgroup = JDDOM
netbios name = H2O
server string = Test Server - Samba %v
interfaces = 166.191.196.12/20
security = DOMAIN
encrypt passwords = Yes
map to guest = Bad User
password server = DDWPDC
max log size = 5000
username map = /usr/local/samba/lib/user.map
time server = Yes
deadtime = 15
socket options = IPTOS_LOWDELAY TCP_NODELAY
large readwrite = Yes
local master = No
dns proxy = No
wins proxy = Yes
wins server = 166.191.196.135
message command = csh -c '/usr/bin/mailx -s Winpopup postmaster
< %s;/bin/rm -f %s' &
load printers = no
name resolve order = lmhosts wins host bcast
printing = SYSV
print command = /usr/bin/lp -c -dprint01.dw.deere.com:%p %s ;
/bin/rm -f %s
lpq command = /usr/bin/lpstat -o%p -L
lpq cache time = 60
veto files = /*.eml/*.nws/
[dwpr54]
comment = HPLJ4000N
path = /var/spool/samba
guest ok = Yes
printable = Yes
printer name = dwpr54
--
---------------------------------------------------------------------
Jay D. Anderson John Deere Davenport Works
Jay@Deere.com P.O. Box 4198
Phone: 563.388.4268 Fax: 563.388.4159 Davenport, Iowa 52808
http://www.dw.deere.com/~hz01930 http://jayanderson.cjb.net