Hi all I have been using samba for some time now with no problems. Recently I decided to try and backup NT workstations with smbtar/smbclient to DAT tape. I get the following:- getting file \DOS\COUNTRY.SYS of size 26936 bytes as a tar file COUNTRY.SYSError writing to tar file - I/O error Didn't get entire file. size=26936, nread=3856 Padding with 23080 zeros This happens every few files. Note the 'nread' value is the same on each occasion. I have no such problem if I am writing to disk, it is as if it write does not block properly when waiting for the dat drive to write the data to tape. The kit is HP running 10.20, the version of samba is 1.9.18p3. I have the same problem with version 1.19.17p4 but with different error messages. Any ideas please? les grant
On Thu, 19 Mar 1998 20:14:16 +1100, you wrote:>Hi all > I have been using samba for some time now with no >problems. Recently I decided to try and backup NT workstations >with smbtar/smbclient to DAT tape. I get the following:- > >getting file \DOS\COUNTRY.SYS of size 26936 bytes as a tar file >COUNTRY.SYSError writing to tar file - I/O error >Didn't get entire file. size=26936, nread=3856 >Padding with 23080 zeros > >This happens every few files. Note the 'nread' value is the same on each >occasion. I have no >such problem if I am writing to disk, it is as if it write does not >block properly when waiting for >the dat drive to write the data to tape.You're almost at the solution there, doesn't block properly? Perhaps you should try changing the blocksize? I came accross this exact problem around 6 months ago, changing the blocksize seemed to fix all my problems (512 fixed it for me if I recall correctly). Basically, there is a parameter to smbtar which specifies the blocksize (-b if I recall correctly, take a look at man smbtar for more info) and you need to use it.>The kit is HP running 10.20, the version of samba is 1.9.18p3. I have >the same problem with version >1.19.17p4 but with different error messages.Ah, yes, don't try using the blocksize parameter to smbtar in the 1.9.17 branch, there's a small bug in smbtar that causes it to incorrectly pass on this information to smbclient in 1.9.17. Hope this is of help, Simon Hyde Simon Hyde ----------------------------------------------------------- With a PC, I always felt limited by the software available. On Unix, I am limited only by my knowledge.
Simon Hyde wrote:->On Thu, 19 Mar 1998 20:14:16 +1100, you wrote: > >>Hi all >> I have been using samba for some time now with no >>problems. Recently I decided to try and backup NT workstations >>with smbtar/smbclient to DAT tape. I get the following:- >> >>getting file \DOS\COUNTRY.SYS of size 26936 bytes as a tar file >>COUNTRY.SYSError writing to tar file - I/O error >>Didn't get entire file. size=26936, nread=3856 >>Padding with 23080 zeros >> >>This happens every few files. Note the 'nread' value is the same oneach>>occasion. I have no >>such problem if I am writing to disk, it is as if it write does not >>block properly when waiting for >>the dat drive to write the data to tape. >You're almost at the solution there, doesn't block properly? Perhapsyou>should try changing the blocksize? I came accross this exact problemaround>6 months ago, changing the blocksize seemed to fix all my problems (512 >fixed it for me if I recall correctly). Basically, there is a parameterto>smbtar which specifies the blocksize (-b if I recall correctly, take alook>at man smbtar for more info) and you need to use it. >Not for me it hasn't. I tried 512 1024 and 2048. The block size value is being passed as a larger block of data is written before I get the error each time I increase the block size. Is anyone succesfully using smbtar with DAT tapes on HPUX 10.20 ?? Thanks for the input les grant