On Thu, 2006-09-07 at 09:34, Mark Coetser wrote: > > 'mt status' should show your current block size and > > 'mt setblock' should let you change it. Tar's default > > is normally 10kb. I'm not sure what backuppc uses when > > writing the archive. Linux systems usually default to > > 512 byte tape blocks and work as long as the reads/writes > > divide evenly by that. > > OK running "tar -tv -b 64 -f /dev/st0" gives me the following, > > tar tv -b 64 -f /dev/st0 > tar: Record size = 32 blocks > tar: This does not look like a tar archive > tar: Skipping to next header > tar: Archive contains obsolescent base-64 headers > > I have used tape drives before and usually just dumped the data with tar to > the tape and never had issues with block size, could someone please point me > in the right direction.
With the tape set to variable length blocks you have to read with the same size used for writing. Poking at the code a little it looks like the archivehost setup ends up telling BackupPC_tarCreate to write the tape and it's default is 20 (x512k) blocks per write to match tar's default. Does tar -tv -b 20 -f /dev/st0 work? If it does, I'm confused as to why it didn't without the -b option since that should be the default. Also, your original 'Cannot allocate memory' error doesn't make much sense unless you are really short on RAM. I've seen reports of bugs in the Linux 2.6.16.x kernel range but I thought they only had to do with detecting the end of the tape. -- Les Mikesell [EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ BackupPC-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/
