Re: Cannot seek to 0: Bad file descriptor
2006-04-04 05:52:34
Thank you for the tips. Reply inline.
On Tue, 2006-04-04 at 11:33 +0200, Paul Bijnens wrote:
> On 2006-04-04 10:48, David Leangen wrote:
> > sendsize: debug 1 pid 18503 ruid 503 euid 503: start at Tue Apr 4
> > sendsize[18505]: argument list: /bin/gtar --create --file /dev/null
> > --directory /usr/local/repo --one-file-system --list
> > ed-incremental
> > /usr/local/var/amanda/gnutar-lists/shinsaibashi_usr_local_repo_0.new
> > --sparse --ignore-failed-read --tota
> > ls .
>
> That was the command that Amanda executed.
> What happens if you run that command by hand, as root?
[root@shinsaibashi amanda]# /bin/gtar --create --file /dev/null
--directory /usr/local/repo --one-file-system
--listed-incremental /dev/null --sparse --ignore-failed-read --totals .
/bin/gtar: ./xxx/db/__db.003: Warning: Cannot seek to 0: Bad file
descriptor
/bin/gtar: ./xxx/db/__db.004: Warning: Cannot seek to 0: Bad file
descriptor
/bin/gtar: ./xxx/db/__db.001: Warning: Cannot seek to 0: Bad file
descriptor
Here is an ls of files that are listed in this problem (only the
__db.00xx files):
total 1508
drwxrws--- 2 subversion subversion 4096 Feb 6 20:19 .
drwxrwx--- 7 subversion subversion 4096 Feb 6 20:20 ..
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 changes
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 copies
-rw-rw---- 1 subversion subversion 16384 Feb 6 20:19 __db.001
-rw-rw---- 1 subversion subversion 278528 Feb 6 20:19 __db.002
-rw-rw---- 1 subversion subversion 327680 Feb 6 20:19 __db.003
-rw-rw---- 1 subversion subversion 892928 Feb 6 20:19 __db.004
-rw-rw---- 1 subversion subversion 16384 Feb 6 20:19 __db.005
-rw-rw---- 1 subversion subversion 1738 Feb 6 20:19 DB_CONFIG
-rw-rw---- 1 subversion subversion 4 Feb 6 20:19 fs-type
-rw-rw---- 1 subversion subversion 592391 Mar 28 13:07 log.0000000001
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 nodes
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 representations
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 revisions
-rw-rw---- 1 subversion subversion 32768 Mar 28 13:07 strings
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 transactions
-rw-rw---- 1 subversion subversion 8192 Mar 28 13:07 uuids
> Also, older versions of gnutar had bugs in handling sparse files.
> Are you sure have a good gnutar version? (1.15.1 is OK, as wel
> as Redhat 1.14 with backported patches e.g. "tar-1.14-9.RHEL4" rpm
> package.)
Version seems fine:
[root@shinsaibashi amanda]# tar --version
tar (GNU tar) 1.15.1
Thanks!
|
|
|