Gallagher, Andrew
1999-Jan-19 20:13 UTC
FW: Random(?) errors moving files, in NT 4 dos window, on samba s hares
> This problem was occurring on 19p8 so I moved to samba 2.0.0 yesterday in > hopes it was a bug > that had been solved... All the information I am supplying relates to > version 2.0.0. The only change > I made to my global.conf file between the two versions was to remove the > socket option IPTOS_THROUGHPUT. > > We have a large number of zip files named <STATION><DATE><HOUR>.<PRODUCT> > in one directory. > STATION=2 letter code for the satellite receiving station > DATE=4 number code for the month and day > HOUR=2 number code for the hour of the day > PRODUCT=3 character code for the product/version > > We want to move the files that are a month old to a subdirectory called > ntbackup so that they can be > picked up by a scheduled tape backup. Each file is roughly 1Mb in size. > > In the 1_DUAL directory, for each day, there are 9 stations x 24 hours > 216 files, with the product > extension '01d'. The files for Jan 01 should be moved to ntbackup by the > following command: > > move ??0101??.01d ntbackup > > Only a few (68, 67, 63, 35, 32, 3, 1) files get moved each time and > sometimes there is 1 error message > "an unexpected network error has occurred" > or > "the specified network password is not correct" > or > "the filename, directory name or volume label syntax is incorrect" > or > "the session was cancelled" > that is printed out. > Subsequent trials show that these error messages occurs at different > points, on different files, > each time. > > Issuing the UNIX command > mv ??0101??.01d ntbackup > works perfectly so I could write shell scripts to do this but, the users > aren't UNIX aware and want > to control everything from their wintel (NT4sp3) machines. > > There are 7000 files in this directory and I thought that was the problem > so I have copied one > day's set of data to another directory and created a similar samba share > to the production > version. I still have the same problem. The same problem occurs with > "move *.01D ntbackup". > > I am using "security=server" and "password server=ntsmail" in the global > section of my smb.conf. > > Here are the share definitions: > #production > [bcacs] > comment = bcacs production area > path = /bcacs > writable = no > public = no > browsable = yes > write list = akharaghani bbs ldbc nbaal vvogt bhlasny > force user = ldbc > force group = landdata > > #test for samba "move" problem > [sambatest] > comment = samba test area > path = /rev05/samba_experiment/test > writable = no > public = no > browsable = yes > write list = andrew > force user = ldbc > force group = landdata > > Here is the output of testparm: > 77 root@solrev:/usr/local/samba/bin% testparm > Load smb config files from /usr/local/samba/lib/smb.conf > doing parameter admin users = root,administrator > doing parameter username map = /usr/local/samba/lib/aliases > doing parameter lock directory = /usr/local/samba/var/locks > doing parameter workgroup = Gdbc > doing parameter hosts allow = 142.36.38.0/255.255.254.0 > doing parameter printcap name = /usr/local/samba/lib/printcap > doing parameter load printers = no > doing parameter printing = sysv > doing parameter guest account = pcguest > doing parameter log file = /usr/local/samba/var/log.%m > doing parameter max log size = 1000 > doing parameter security = server > doing parameter password server = NTSMAIL > doing parameter encrypt passwords = yes > doing parameter socket options = TCP_NODELAY > doing parameter local master = no > doing parameter os level = 0 > doing parameter domain master = no > doing parameter preferred master = no > doing parameter wins server = 142.36.38.72 > doing parameter dns proxy = yes > doing parameter include = /usr/local/samba/lib/local.conf > params.c:pm_process() - Processing configuration file > "/usr/local/samba/lib/loca > l.conf" > doing parameter debug level = 3 > doing parameter server string = SAMBA v. %v on %h > doing parameter default case = upper > doing parameter interfaces = 142.36.38.53/255.255.254.0 > Processing section "[homes]" > doing parameter comment = Home Directories > doing parameter browseable = no > doing parameter read only = no > doing parameter create mode = 0644 > Processing section "[printers]" > doing parameter comment = All Printers > doing parameter path = /tmp > doing parameter browseable = no > doing parameter guest ok = yes > doing parameter writable = no > doing parameter printable = yes > doing parameter create mode = 700 > Processing section "[tmp]" > doing parameter comment = Temporary file space > doing parameter path = /tmp > doing parameter read only = yes > doing parameter public = no > doing parameter browseable = yes > Processing section "[bcacs]" > doing parameter comment = bcacs production area > doing parameter path = /bcacs > doing parameter writable = no > doing parameter public = no > doing parameter browsable = yes > doing parameter write list = akharaghani bbs ldbc nbaal vvogt bhlasny > doing parameter force user = ldbc > doing parameter force group = landdata > Processing section "[sambatest]" > doing parameter comment = samba test area > doing parameter path = /rev05/samba_experiment/test > doing parameter writable = no > doing parameter public = no > doing parameter browsable = yes > doing parameter write list = andrew > doing parameter force user = ldbc > doing parameter force group = landdata > Processing section "[trim]" > doing parameter case sensitive = no > doing parameter preserve case = yes > doing parameter comment = trim saif-2 directory > doing parameter path = /trim > doing parameter read only = no > doing parameter public = yes > doing parameter browseable = yes > Processing section "[rev02]" > doing parameter case sensitive = no > doing parameter preserve case = yes > doing parameter comment = rev02 directory > doing parameter path = /rev02 > doing parameter read only = no > doing parameter public = yes > doing parameter browseable = yes > pm_process() returned Yes > Loaded services file OK. > WARNING: You have some share names that are longer than 8 chars > These may give errors while browsing or may not be accessible > to some older clients > Press enter to see a dump of your service definitions > > # Global parameters > workgroup = GDBC > netbios name > netbios aliases > server string = SAMBA v. %v on %h > interfaces = 142.36.38.53/255.255.254.0 > bind interfaces only = No > security = SERVER > encrypt passwords = Yes > update encrypted = No > use rhosts = No > map to guest = Never > null passwords = Yes > password server = NTSMAIL > smb passwd file = /usr/local/samba/private/smbpasswd > hosts equiv = /usr/local/samba/lib/hosts.equiv > root directory = / > passwd program = /bin/passwd > passwd chat = *old*password* %o\n *new*password* %n\n > *new*password* %n\ > n *changed* > passwd chat debug = No > username map = /usr/local/samba/lib/aliases > password level = 0 > username level = 0 > unix password sync = No > log level = 3 > syslog = 1 > syslog only = No > log file = /usr/local/samba/var/log.%m > max log size = 1000 > timestamp logs = Yes > protocol = NT1 > read bmpx = Yes > read raw = Yes > write raw = Yes > nt smb support = Yes > nt pipe support = Yes > announce version = 4.2 > announce as = NT > max mux = 50 > max xmit = 65535 > name resolve order = lmhosts host wins bcast > max packet = 65535 > max ttl = 259200 > max wins ttl = 518400 > min wins ttl = 21600 > time server = No > change notify timeout = 60 > deadtime = 0 > getwd cache = Yes > keepalive = 300 > lpq cache time = 10 > max disk size = 0 > max open files = 10000 > read prediction = Yes > read size = 16384 > shared mem size = 1048576 > socket options = TCP_NODELAY > stat cache size = 50 > load printers = No > printcap name = /usr/local/samba/lib/printcap > printer driver file = /usr/local/samba/lib/printers.def > strip dot = No > character set > mangled stack = 50 > coding system > client code page = 850 > stat cache = Yes > domain groups > domain admin group > domain guest group > domain admin users > domain guest users > machine password timeout = 604800 > add user script > delete user script > logon script > logon path = \\%N\%U\profile > logon drive > logon home = \\%N\%U > domain logons = No > os level = 0 > lm announce = Auto > lm interval = 60 > preferred master = No > local master = No > domain master = No > browse list = Yes > dns proxy = Yes > wins proxy = No > wins server = 142.36.38.72 > wins support = No > kernel oplocks = Yes > ole locking compatibility = Yes > smbrun = /usr/local/samba/bin/smbrun > config file > preload > lock dir = /usr/local/samba/var/locks > default service > message command > dfree command > valid chars > remote announce > remote browse sync > socket address = 0.0.0.0 > homedir map > time offset = 0 > unix realname = No > NIS homedir = No > panic action > comment > path > alternate permissions = No > revalidate = No > username > guest account = pcguest > invalid users > valid users > admin users = root,administrator > read list > write list > force user > force group > read only = Yes > create mask = 0744 > force create mode = 00 > directory mask = 0755 > force directory mode = 00 > guest only = No > guest ok = No > only user = No > hosts allow = 142.36.38.0/255.255.254.0 > hosts deny > status = Yes > max connections = 0 > min print space = 0 > strict sync = No > sync always = No > print ok = No > postscript = No > printing = sysv > print command = lp -c -d%p %s; rm %s > lpq command = lpstat -o%p > lprm command = cancel %p-%j > lppause command = lp -i %p-%j -H hold > lpresume command = lp -i %p-%j -H resume > queuepause command = lpc stop %p > queueresume command = lpc start %p > printer name > printer driver = NULL > printer driver location > default case = upper > case sensitive = No > preserve case = Yes > short preserve case = Yes > mangle case = No > mangling char = ~ > hide dot files = Yes > delete veto files = No > veto files > hide files > veto oplock files > map system = No > map hidden = No > map archive = Yes > mangled names = Yes > mangled map > browseable = Yes > blocking locks = Yes > fake oplocks = No > locking = Yes > oplocks = Yes > strict locking = No > share modes = Yes > copy > include = /usr/local/samba/lib/local.conf > exec > postexec > root preexec > root postexec > available = Yes > volume > fstype = NTFS > set directory = No > wide links = Yes > follow symlinks = Yes > dont descend > magic script > magic output > delete readonly = No > dos filetimes = No > dos filetime resolution = No > fake directory create times = No > > [homes] > comment = Home Directories > read only = No > create mask = 0644 > browseable = No > > [printers] > comment = All Printers > path = /tmp > create mask = 0700 > guest ok = Yes > print ok = Yes > browseable = No > > [tmp] > comment = Temporary file space > path = /tmp > > [bcacs] > comment = bcacs production area > path = /bcacs > write list = akharaghani bbs ldbc nbaal vvogt bhlasny > force user = ldbc > force group = landdata > > [sambatest] > comment = samba test area > path = /rev05/samba_experiment/test > write list = andrew > force user = ldbc > force group = landdata > > [trim] > comment = trim saif-2 directory > path = /trim > read only = No > guest ok = Yes > > [rev02] > comment = rev02 directory > path = /rev02 > read only = No > > > The server is an E3000 running Solaris 2.5.1 with 1.5 Gb RAM and 6 x > 167Mhz cpu's. > > I can certainly supply logs if anyone is interested in helping me solve > this. > > Andrew Gallagher, System Administrator, Geographic Data BC, Ministry of > Environment, Lands & Parks > PO Box 9355 STN PROV GOVT, Victoria, BC, V8W 9M2, Canada > Phone: (250)387-1146 Fax: (250)356-7831 Email: andrew@mail.gdbc.gov.bc.ca > >-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 7339 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/19990119/6c47da55/attachment.bin