From: Luis C. <ad...@co...> - 2003-02-16 04:53:17
|
Okay, let me clarify my own response. I believe that for programs like tar or cpio, the default block size is 512. When you specify 64 blocks, flexbackup thinks it's 1024 * 64. If you specify 64 blocks for cpio it means 512 * 64. It seems to me that there is a logic problem somewhere. Am I right about this? ----- Original Message ----- From: "Luis Cortes" <ad...@co...> To: <fle...@li...> Sent: Saturday, February 15, 2003 8:16 PM Subject: Re: [flexbackup-help] Version 1.01 and mt setblk in Linux > I have been having a similar problem. I haven't tried this fix yet, but I > hope this does it for me. > > My problem is that I set the default to 64 blocks. I am guessing that the > default block size is 512 bytes. But when I try to list anything, it either > says something about the first block all null or that the archive is not > correctly terminated and false to list anything. > > > > ----- Original Message ----- > From: "Edwin Huffstutler" <ed...@co...> > To: "Douglas Bollinger" <dc...@sd...> > Cc: <fle...@li...> > Sent: Saturday, February 15, 2003 2:22 PM > Subject: Re: [flexbackup-help] Version 1.01 and mt setblk in Linux > > > > > > [ Douglas Bollinger wrote: ] > > > I've been using the flexbackup script for a long time. Love it! > > > > Thanks! > > > > > In the latest update, my system has been having trouble, > > > > (Strange, as recent changes haven't touched mt blocksize that I recall) > > > > > I need to have blocks set to 512, but the script takes the 512*1024. > This > > > doesn't work for me. Output of the flexbackup error: > > > > > > Neither of these commands worked: > > > mt -f /dev/nst0 setblk 524288 > > > mt -f /dev/nst0 defblksize 524288 > > > > > > But, if I do this manually: > > > > > > rodan:~# mt -f /dev/nst0 setblk 524288 > > > mt: /dev/nst0: Input/output error > > > rodan:~# mt -f /dev/nst0 setblk 512 > > > rodan:~# > > > > > > You can see, I need the blocks in k's, not multiplied by 1024. In the > > > script I had to change line 2251: > > > > > > # $main::mt_blksize = $cfg::blksize * 1024; > > > $main::mt_blksize = $cfg::blksize; > > > > > > And now it works. > > > > > > I bet you can set $blksize=1 and you'd be fine. A multiple of the > > hardware block size is OK in my experience and testing. > > > > I think the problem you ran into is that 512k is huge and over a limit > > somewhere. > > > > Also, does $mt_var_blksize='true' work for you? That's more often > > recommended and is easier than trying to find the right blocksize for your > > tape drive. > > > > At any rate, please report back. I may need to adjust so non-multiples of > > 1024 bytes can be used. > > > > > > Thanks, > > -Edwin > > > > > > -- > > Edwin Huffstutler Linux - because reboots are for hardware changes > > ed...@co... GnuPG Key ID: AE782DC9 > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > flexbackup-help mailing list > > fle...@li... > > https://lists.sourceforge.net/lists/listinfo/flexbackup-help > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > flexbackup-help mailing list > fle...@li... > https://lists.sourceforge.net/lists/listinfo/flexbackup-help > > > |