Red Hat Bugzilla – Bug 189618
st0 device busy when using block size > 384k
Last modified: 2015-05-27 11:33:18 EDT
Description of problem:
When trying to access tape device (/dev/st0) get an error that indicates that
device is busy.
Version-Release number of selected component (if applicable):
star rpm: star-1.5a54-2
Steps to Reproduce:
1. star -tv -bs=512k -fs=32m -file=/dev/st0
(write to the tape with star produces the same result)
star: Device or resource busy. Error reading '/dev/st0'.
star: 0 blocks + 0 bytes (total of 0 bytes = 0.00k).
Listing of tape contents
Does not seem to be a problem with the device as using:
tar tvf /dev/st0
tar cvf /dev/st0 ......
Workaround - revert back to old kernel. Using kernel 2.6.15-1.1833_FC4smp works
Could you send strace output, please? Thx.
Created attachment 128168 [details]
use strace -f please
Created attachment 128207 [details]
strace -f output
$dd if=/dev/zero of=/tmp/foo bs=512k count=1
works for you?
Could you try the latest star from devel?
change command dd in comment #5 to
$dd if=/dev/zero of=/dev/st0 bs=512k count=1
The dd command didn't work. Gave:
dd: writing '/dev/st0': Device or resource busy
I tried different 'bs=' values. Found that the dd command works when bs=384k but
not when it is bs=385k.
Perhaps this is not a star problem at all! Could it be a kernel or st module
I could try the latest devel star if you still think that it would be useful.
Yes, it could be a kernel problem. I think it's not necessary to try another
This seems to have been resolved with installation of kernel 2.6.17-1.2142_FC4smp
This problem has re-appeared(?) in RHEL 6.6 2.6.32-504.16.2.el6.x86_64
# mt -f /dev/nst0 rewind
# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x46 (LTO-4).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
# dd if=/dev/zero of=/dev/st0 bs=512k count=1
dd: writing `/dev/st0': Device or resource busy
1+0 records in
0+0 records out
0 bytes (0 B) copied, 4.18458 s, 0.0 kB/s