RE: [flexbackup-help] blksize parameters

2005-06-08 Thread Erwan.CHEVALIER
One of the last question.

 | buffer -m 10m -p 75 -s 10k -t -u 100 -i /dev/nst0 | afio -t -z -D \
|   /usr/bin/flexbackup -P gzip -Q -d -Q -q -Z -v   -b 10k -
|
afio: - [offset 6]: Fatal error:
afio: -: Unrecognizable archive
Kilobytes Out 10
|
At block 1.

Here is the stdout of the flexbackup -list of the only one archive I've made.
My archive is ok 

Thanks for all

-Message d'origine-
De : Niall Brosnan [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 7 juin 2005 19:30
À : CHEVALIER, Erwan -Syntegra FR
Objet : RE: [flexbackup-help] blksize parameters 

On Tue, 7 Jun 2005 [EMAIL PROTECTED] wrote:
 
 
 [EMAIL PROTECTED] flextest]# flexbackup -test-tape-drive 
 -compress=false -device=st0

No, -device=/dev/nst0
 $device = '/dev/nst0';

This is your problem.

Niall





This email may contain information which is privileged or confidential. If you 
are not the intended recipient of this email, please notify the sender 
immediately and delete it without reading, copying, storing, forwarding or 
disclosing its contents to any other person
Thank you

Check us out at http://www.bt.com/consulting





---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


RE: [flexbackup-help] blksize parameters

2005-06-08 Thread Niall Brosnan
CHEVALIER, Erwan wrote:
 It's ok.
 Success.
 Yes, Thanks for all Niall
 So now parameters working.
 In order to all understand, what is the difference between nst0 and st0.
 Someone had explain to me:
 St0: When you backup the device rewind then after each record.
 Not on st0.
 If it's true how it can block a test??
 This is the last question for you Master .
 Bye and thanks again. 

Hi Erwan,
great!

The non-rewinding device (nst0) allows multiple archives on one tape.
During the test, flexbackup writes several files to tape.
Then it compares them back against where they should be on tape:
e.g. It counts 2 records forward and then compares the third file.

The difference comes when you write multiple files:

NST0 += FILE 1 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
NST0 += FILE 1 -= | = FILE 2 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
NST0 += FILE 1 -= | = FILE 2 -= | = FILE 3 -=-=-=-=-=-=-=-=-=-=-=+
NST0 += FILE 1 -= | = FILE 2 -= | = FILE 3 -= | = FILE 4 -=-=-=-=+

ST0  += FILE 1  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
ST0  += FILE 2  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
ST0  += FILE 3  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
ST0  += FILE 4  =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

Now when you compare FILE 1 on disk to FILE 1 on tape,
it is succesful for /dev/nst0, but fails for /dev/st0 
as FILE 1 != FILE 4

flexbackup should really trap that particular error,
and suggest that you use the non-rewinding device.
It is however, clearly marked in the config.

Good luck with your restore,
Niall

 
 -Message d'origine-
 De : Niall Brosnan [mailto:[EMAIL PROTECTED] 
 Envoyé : mardi 7 juin 2005 19:28
 À : CHEVALIER, Erwan -Syntegra FR
 Cc : flexbackup-help@lists.sourceforge.net
 Objet : RE: [flexbackup-help] blksize parameters
 
 Hi Erwan,
 thanks for your perseverance.
 
 Your config file is still set to
 $device = '/dev/st0'  ; though,
 
 It really HAS to be the non rewinding device, /dev/nst0
 
 On my system, this error gives the same error that you are seeing.
 
 Niall
 



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


RE: [flexbackup-help] blksize parameters

2005-06-07 Thread Niall Brosnan
Hi Erwan,
Could you include your configuration again?
 grep -v -e ^\# -v -e ^$ /etc/flexbackup.conf  
will give us just your active configuration.

What output do you get from:  mt status  ?

Are you using version 1.2.1 of flexbackup?

OK - take compression and the tape out of your next test.
Make a directory /tmp/FlexTest,
set these options and run flexbackup again.

$compress = 'false';
$device = '/tmp/FlexTest/';

Now   flexbackup -test-tape-drive  will say,
'No use trying tape drive tests on directories!',
but it will tell you if the rest of your syntax is correct.

If you get no errors, run it again without compression but with the tape:
$compress = 'false';
$device = '/dev/nst0';

Please answer the list rather than me personally,
so that others may benefit and offer further advice.

Good luck,
Niall

On Mon, 6 Jun 2005 [EMAIL PROTECTED] wrote:
 Hi Niall.
 Yes, I've already tried all this feature.
  For the compression to I've already tried bzip, gzip, hardware and so on.
 My impression is the next one.
 After each 
 flexbackup-test-tape-drive
 It send me
 
 Comparing...
 directory /etc/flexbackup.conf and /tmp/test2.10734 are différents
 
 FAILURE! Problem with tape driver or parameters.  Please see the FAQ
 or try changing the $blksize, $pad_blocks, or $mt_blksize settings.
 
 SO I've tried to see what is talking about this /tmp/test.
 I modified the script and  I copy them into a directory
  and when i open it it was just the /usr/bin/flexbackup.
 SO no idea but I continue.
 Thanks a lot for your help
 
 -Message d'origine-
 De : Niall Brosnan [mailto:[EMAIL PROTECTED] 
 Envoyé : lundi 6 juin 2005 11:46
 À : CHEVALIER, Erwan -Syntegra FR
 Objet : Re: [flexbackup-help] blksize parameters (fwd)
 
 Hi Erwan,
 here is the message as sent to the list on Thursday.
 Do you usually receive list mail?
 
 Hope it helps,
 Niall
 
 -- Forwarded message --
 Date: Thu, 2 Jun 2005 11:29:06 +0100 (IST)
 From: Niall Brosnan [EMAIL PROTECTED]
 To: flexbackup-help@lists.sourceforge.net
 Subject: Re: [flexbackup-help] blksize parameters
 
 Dear Erwan,
 
  From: [EMAIL PROTECTED]
  Dear Flexbackup users,
  I've tried all blksize between 0 and 512 which my max, and none of 
  this values is correct, so anyone can explain to me, where i'm wrong.
  Here is my Flexbackup.conf
 
 I assume you are using linux, and you should first change this setting:
  $device = '/dev/st0';
 to
  $device = '/dev/nst0';
 This is very important!
 
  Dell Powervault 100T DAT 72 with magnetic tape of 36-72 GB.
 If your tape drive has compression turned on, you should not use software
 compression.
 I would recommend using software compression where possible as you will get
 better predictions on size, and you will get better portability of your
 backups.
 It's far easier to recompile bzip2 for a new platform than it is to reverse
 engineer a compression algorithm on a chip when your Dell tape drive dies.
 
 What errors are you seeing in /var/log/flexbackup ?
 Why do you feel that the blksize is your problem?
 
 Niall
 
 
 
 
 
 
 
 This email may contain information which is privileged or confidential. If 
 you are not the intended recipient of this email, please notify the sender 
 immediately and delete it without reading, copying, storing, forwarding or 
 disclosing its contents to any other person
 Thank you
 
 Check us out at http://www.bt.com/consulting
 
 
 

-- 
#The information transmitted in this Notice is intended only for#
#the person or entity to which it is addressed and may contain  #
#confidential and/or privileged material.   #
#Any review, reproduction, retransmission, dissemination or other use   #
#of, or taking of any action in reliance upon, this information by  #
#persons or entities other than the intended recipient is prohibited.   #

# Niall Brosnan   # Tel: +353-87-2337386#
# Communication Systems Consultants   # Fax: +353-1-4926806 #
# Athronan, Dunsany, Co. Meath, Ireland   # mail: [EMAIL PROTECTED] #
# GPG key fingerprint = 597C 0514 95B9 48DD 216F B892 5B51 D257 0D44 5B01   #

Un*x: Because cat is faster than a mouse.



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


RE: [flexbackup-help] blksize parameters (fwd)

2005-06-07 Thread Niall Brosnan
Hi Erwan,
I know you've probably tried most of this.
Checking back on your mail of 5 May,
I see:
/dev/nst0: Input/output error

There is nothing flexbackup can do until that is sorted.
What blocksize does mt status report on a clean boot?
Can you run a simple tar to the drive?

mt -f /dev/st0  status
mt -f /dev/st0  rewind
tar cf /dev/nst0 /etc
mt -f /dev/st0  rewind
tar tf /dev/nst0


Try manually setting the blocksize to the same as what
you're using in the script.

mt -f /dev/st0 setblk 1024
and use
$mt_blksize = 1024;

Niall



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


Re: [flexbackup-help] blksize parameters

2005-06-07 Thread s. keeling
Incoming from Niall Brosnan:
 
 Could you include your configuration again?
  grep -v -e ^\# -v -e ^$ /etc/flexbackup.conf  
 will give us just your active configuration.

grep -v '^#|^$' /etc/flexbackup.conf


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://www.spots.ab.ca/~keeling  Please don't Cc: me.
- -


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r=20
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help


RE: [flexbackup-help] blksize parameters

2005-06-07 Thread Erwan.CHEVALIER





RE 
Niall
After erasing, 
i'll give you all infos about each questions you asked to 
me.
What output do you get from: " mt status "?
 
[EMAIL PROTECTED] local]# mt -f /dev/st0 
status
SCSI 2 tape drive:File number=0, block 
number=0, partition=0.Tape block size 4096 bytes. Density code 0x47(
 TR-5).Soft error count since last status=0General status bits on(
 4101):BOT ONLINE IM_REP_EN
Are you using version 1.2.1 of flexbackup?
Yes

OK - take compression and the tape out of your next 
test.
Make a directory /tmp/FlexTest,

set these options and run flexbackup 
again.
$compress = 'false';
$device = '/tmp/FlexTest/';
Now " flexbackup -test-tape-drive " will say, 'No use 
trying tape drive tests on directories!', but it will tell you if the rest of 
your syntax is correct.
Say nothing so 
syntax ok
If you get no errors, run it again withoutc
 ompression but with the tape:
$compress = 'false';
$device = '/dev/nst0';
[EMAIL PROTECTED] flextest]# flexbackup 
-test-tape-drive -compress=false 
-device=st0
flexbackup version 1.2.1 (http://flexbackup.sourceforge.net)/etc/flexbackup.conf 
syntax OK
|| 
Checking 'buffer' on this machine... Ok| Checking /bin/sh on this machine... 
bash2||T
 esting will *erase* the tape currently in the drive!| Hit CTRL-C to abort 
within 10 
seconds...|| 
If for some reason this program does not exit within a few minutes,| Hit 
CTRL-C, and try adjusting $blksize, $pad_blocks, or 
$mt_blksize.|| 
Rewinding  erasing tape...| Creating index key 
200506071610|At 
block 0.
Writing test file #1
Kilobytes Out 160
At block 0.
Writing test file #2Kilobytes Out 
10At block 0.Writing test file #3Kilobytes Out 160At block0
 .
Rewinding...Skipping index label...At 
block 0.
Reading test file #1Kilobytes Out 
160At block 0.Reading test file #2Kilobytes Out 160At block0
 .Reading test file #3Kilobytes Out 160At block 
0.
Comparing...Les fichiers 
/etc/flexbackup.conf et /tmp/test2.3734 sont différents.
FAILURE! Problem with tape driver orp
 arameters. Please see the FAQor try changing the $blksize, 
$pad_blocks, or $mt_blksize settings.

[EMAIL PROTECTED] flextest]# flexbackup 
-test-tape-drive -compress=false -device=nst0
flexbackup version 
1.2.1/etc/flexbackup.conf syntax OK
Errors:$device must be set to a 
directory, a local device, or a remote device

Please answer the list rather than me personally, so 
that others may benefit and offer further advice.
Good luck,
Niall
On Mon, 6 Jun 2005 [EMAIL PROTECTED] 
wrote:
 Hi Niall.
 Yes, I've already tried all this 
feature.
 For the compression to I've already tried bzip, 
gzip, hardware and so on.
 My impression is the next one.
 After each
 flexbackup-test-tape-drive
 It send me
 
 Comparing...
 directory /etc/flexbackup.conf and 
/tmp/test2.10734 are différents
 
 FAILURE! Problem with tape driver or parameters. 
Please see the FAQ 
 or try changing the $blksize, $pad_blocks, or 
$mt_blksize settings.
 
 SO I've tried to see what is talking about this 
/tmp/test.
 I modified the script and I copy them into a 
directory and when i 
 open it it was just the 
/usr/bin/flexbackup.
 SO no idea but I continue.
 Thanks a lot for your help
 
 -Message d'origine-
 De : Niall Brosnan [mailto:[EMAIL PROTECTED]] Envoyé : lundi 6 
 juin 2005 11:46 À : CHEVALIER, Erwan -Syntegra 
FR Objet : Re: 
 [flexbackup-help] blksize parameters 
(fwd)
 
 Hi Erwan,
 here is the message as sent to the list on 
Thursday.
 Do you usually receive list mail?
 
 Hope it helps,
 Niall
 
 -- Forwarded message 
--
 Date: Thu, 2 Jun 2005 11:29:06 +0100 
(IST)
 From: Niall Brosnan 
[EMAIL PROTECTED]
 To: 
flexbackup-help@lists.sourceforge.net
 Subject: Re: [flexbackup-help] blksizep
 arameters
 
 Dear Erwan,
 
  From: 
[EMAIL PROTECTED]
  Dear Flexbackup users,
  I've tried all blksize between 0 and 512 
which my max, and none of 
  this values is correct, so anyone can 
explain to me, where i'm wrong.
  Here is my Flexbackup.conf
 
 I assume you are using linux, and you should 
first change this setting:
  $device = '/dev/st0';
 to
 $device = '/dev/nst0';
 This is very important!
 
  Dell Powervault 100T DAT 72 with magnetic 
tape of 36-72 GB.
 If your tape drive has compression turned on, 
you should not use 
 software compression.
 I would recommend using software compression 
where possible as you 
 will get better predictions on size, and you 
will get better 
 portability of your backups.
 It's far easier to recompile bzip2 for a new 
platform than it is to 
 reverse engineer a compression algorithm on a 
chip when your Dell tape drive dies.
 
 What errors are you seeing in 
/var/log/flexbackup ?
 Why do you feel that the blks

RE: [flexbackup-help] blksize parameters (fwd)

2005-06-07 Thread Erwan.CHEVALIER
Hi list and niall 

Can you run a simple tar to the drive?

mt -f /dev/st0  status

- I've already answered 

mt -f /dev/st0  rewind

Nothing too

[EMAIL PROTECTED] flextest]# tar cf /dev/nst0 /etc
tar: Retrait de l'en-tête `/' des noms des membres

mt -f /dev/st0  rewind
Take time but ok

tar tf /dev/nst0
Ok it show me all the tar that I've done.



Try manually setting the blocksize to the same as what you're using in the
script.

mt -f /dev/st0 setblk 1024
and use
$mt_blksize = 1024;

I've done it and do a 
Flexbackup-test-tape-drive but it's not better.

Thanks for all

Niall






This email may contain information which is privileged or confidential. If you 
are not the intended recipient of this email, please notify the sender 
immediately and delete it without reading, copying, storing, forwarding or 
disclosing its contents to any other person
Thank you

Check us out at http://www.bt.com/consulting





---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61 plasma display: http://www.necitguy.com/?r 
___
flexbackup-help mailing list
flexbackup-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flexbackup-help