1 |
Frank Nørvig wrote: |
2 |
|
3 |
>> It fails after just a few minutes and the complete backup is 3-4 |
4 |
>> hours so I'm guessing that no writing is done, but I'll try adding -v |
5 |
>> to see if anything is succesful. |
6 |
> |
7 |
> |
8 |
> Same result, no data written as far as I can see. |
9 |
> |
10 |
> [2004-10-08 05:11:52] uid=0(root) gid=0(root) |
11 |
> groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video) |
12 |
> |
13 |
> root |
14 |
> SHELL=/bin/sh |
15 |
> PATH=/usr/bin:/bin |
16 |
> PWD=/root |
17 |
> HOME=/root |
18 |
> SHLVL=2 |
19 |
> LOGNAME=root |
20 |
> _=/usr/bin/env |
21 |
> tar: /dev/nst0: Cannot open: Input/output error |
22 |
> tar: Error is not recoverable: exiting now |
23 |
> |
24 |
> |
25 |
> Is there anything else I can do to get more debugging information? |
26 |
> |
27 |
> Frank |
28 |
> |
29 |
> |
30 |
I can't understand why it fails, but I can give some useless advice to |
31 |
try to see if the things change. |
32 |
If it was a shell script you could get more debug info with -x as |
33 |
argument of the script shell: |
34 |
#!/bin/sh -x (at the begining of the first line) |
35 |
In /var/log/messages aren't any message about this /dev/nst0 I/O error? |
36 |
I seen random I/O errors of such type with a broken DAT. |
37 |
Is the tape rewinded? |
38 |
Could you try to give the full path of the tar command? |
39 |
/bin/sh is the same that /bin/bash that you have when you succeed? |
40 |
What's SHLVL? I seen it's different in the 2 environments (failing and |
41 |
good). |
42 |
I seen in another message that you launched the perl script with |
43 |
/usr/bin/perl <PERLSCRIPT>, |
44 |
I think that you could get the same issue with |
45 |
#!/usr/bin/perl at the beginning of the first line of the script, |
46 |
without /usr/bin/perl before |
47 |
<PERLSCRIPT>. |
48 |
|
49 |
Please, let me know if you can solve, because I'm really interested in |
50 |
this trouble. |
51 |
|
52 |
Ragards, |
53 |
|
54 |
Andrea |
55 |
--- |
56 |
it seamed like a good idea at the time |
57 |
Brian Kernighan |