Error attempting to read or write to /dev/st0: sense key Medium Error

Thuyen Le Thai ltthuyen at tma.com.vn
Mon Mar 7 08:08:26 UTC 2011


Hi ,
 
I got error below. Please show me how to fix that error.
 
Thank so much.
ThuyenLe
 
Am Donnerstag, 13. Oktober 2005 08:50 schrieb Julien Cigar:

> Hello,

>

> sometimes I have "write error" messages during my full backup (on tapes) :

>

> 12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:

> block.c:552 Write error at 15:111 on device /dev/st0. ERR=Input/output

> error.

> 12-Oct 18:44 phoenix-sd: BebifFullBackup.2005-10-12_06.00.00 Error:

> Error writing final EOF to tape. This tape may not be readable.

> dev.c:1213 ioctl MTWEOF error on /dev/st0. ERR=Input/output error.



You should have a look in your /var/log/messages (supposing it is linux you

are using). Troubles on the scsi-bus get logged there (at least on my
system).

This should do the trick:

# grep st0 /var/log/messages



These are the normal log entries, when bacula starts to write to tape.

---------------------------------

Oct 14 03:26:35 epistaxis kernel: st0: Mode 0 options: buffer writes: 1,
async 

writes: 1, read ahead: 1

Oct 14 03:26:35 epistaxis kernel: st0:    can bsr: 0, two FMs: 0, fast
mteom: 

0, auto lock: 0,

Oct 14 03:26:35 epistaxis kernel: st0:    defs for wr: 0, no block limits:
0, 

partitions: 0, s2 log: 0

Oct 14 03:26:35 epistaxis kernel: st0:    sysv: 0 nowait: 0

---------------------------------



These are error entries. If you find something similar you should have a
look 

in the messages and

see what else happens around that time.

(This is the unit showing a hardware error, getting really confused and
finally 

blowing its power

supply sometime later)

---------------------------------

Oct  7 12:38:06 epistaxis kernel: st0: Error with sense data: Current
st09:00: 

sense key Hardware Error

Oct  7 12:38:07 epistaxis kernel: st0: Error with sense data: Current
st09:00: 

sense key Hardware Error

Oct  7 12:38:07 epistaxis kernel: st0: Error with sense data: Current
st09:00: 

sense key Medium Error

Oct  7 12:38:12 epistaxis kernel: st0: Error with sense data: Current
st09:00: 

sense key Not Ready

---------------------------------



Also a look into the kernel message ring buffer might help. Use the command 

'dmesg' for that.

But as it is a ring buffer it gets overwritten after some time.



CU Sven





-------------------------------------------------------

This SF.Net email is sponsored by:

Power Architecture Resource Center: Free content, downloads, discussions,

and more. http://solutions.newsforge.com/ibmarch.tmpl

_______________________________________________

Bacula-users mailing list

Bacula-users at lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/bacula-users




More information about the aic7xxx mailing list