Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 160068 - Tar hangs in D state on tape write.
Summary: Tar hangs in D state on tape write.
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
: 160069 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2005-06-10 16:22 UTC by Pablo Mayrgundter
Modified: 2015-01-04 22:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-05-04 13:51:17 UTC

Attachments (Terms of Use)

Description Pablo Mayrgundter 2005-06-10 16:22:20 UTC
Description of problem:

Tar hangs in D state on tape write, using Adaptec AHA-3960D SCSI card and Dell
PowerVault 122T.  I can't kill the process and can't 'ls /proc/[it's pid]/fd/'

Version-Release number of selected component (if applicable):

I'm using an FC3 system with kernel 2.6.11-1.14_FC3smp.

How reproducible:

Tar accepts a "-b" flag for the size of blocks to use in writing and reading. 
If I don't first set the tape drive to use a corresponding block size, tar hangs
immediate on invocations for read or write.  When I do set the corresponding
block sizes, the behavior becomes infrequent, but happens after about a day of
solid usage.

Steps to Reproduce:
1. tar cf /dev/tape files
Actual results:

Tar hangs.

Expected results:

Shouldn't hang.

Additional info:

Comment 1 Dave Jones 2005-06-24 01:14:36 UTC
*** Bug 160069 has been marked as a duplicate of this bug. ***

Comment 2 Dave Jones 2005-06-27 23:21:46 UTC
Mass update of -test bugs to update version to fc4.
(Please retest on final release, and report results if you have not already done


Comment 3 Pablo Mayrgundter 2005-06-28 15:06:08 UTC
With a block size of 20 ("-b 20"), there is no hang.  That is the default for
tar and possibly why this doesn't happen more often.  Presumably the driver
doesn't wait for the I/O interrupt correctly, but assumes a fast return.  A fast
return is more likely with a smaller block size, and so below a certain level
(e.g. around tar's default of 20), hangs are rare or don't happen.  If this is
the case, it's a nice workaround but this is still a bug.

Comment 4 Dave Jones 2005-07-15 21:40:05 UTC
[This comment has been added as a mass update for all FC4 kernel bugs.
 If you have migrated this bug from an FC3 bug today, ignore this comment.]

Please retest your problem with todays 2.6.12-1.1398_FC4 update.

If your problem involved being unable to boot, or some hardware not being
detected correctly, please make sure your /etc/modprobe.conf is correct *BEFORE*
installing any kernel updates.
If in doubt, you can recreate this file using..

mv /etc/sysconfig/hwconf /etc/sysconfig/hwconf.bak
mv /etc/modprobe.conf /etc/modprobe.conf.bak

Thank you.

Comment 5 Dave Jones 2005-09-30 07:08:56 UTC
Mass update to all FC4 bugs:

An update has been released (2.6.13-1.1526_FC4) which rebases to a new upstream
kernel ( As there were ~3500 changes upstream between this and the
previous kernel, it's possible your bug has been fixed already.

Please retest with this update, and update this bug if necessary.


Comment 6 Dave Jones 2005-11-10 20:14:38 UTC
2.6.14-1.1637_FC4 has been released as an update for FC4.
Please retest with this update, as a large amount of code has been changed in
this release, which may have fixed your problem.

Thank you.

Comment 7 Dave Jones 2006-02-03 07:17:39 UTC
This is a mass-update to all currently open kernel bugs.

A new kernel update has been released (Version: 2.6.15-1.1830_FC4)
based upon a new upstream kernel release.

Please retest against this new kernel, as a large number of patches
go into each upstream release, possibly including changes that
may address this problem.

This bug has been placed in NEEDINFO_REPORTER state.
Due to the large volume of inactive bugs in bugzilla, if this bug is
still in this state in two weeks time, it will be closed.

Should this bug still be relevant after this period, the reporter
can reopen the bug at any time. Any other users on the Cc: list
of this bug can request that the bug be reopened by adding a
comment to the bug.

If this bug is a problem preventing you from installing the
release this version is filed against, please see bug 169613.

Thank you.

Comment 8 John Thacker 2006-05-04 13:51:17 UTC
Closing per previous comment.

Note You need to log in before you can comment on or make changes to this bug.