From: Edwin H. <ed...@co...> - 2003-02-15 21:22:21
|
[ 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 |