Hi
I'm trying out to use TAR command to perform backup. However, I keep getting hit with the error mentioned in the subject field: /dev/nst0: Input/output error
Here are some info:-
OS: RHEL 5.2
Server: SunFire X4150
Tape Device: SUN SL24 (single-drive)
Below are the commands I ran and the result I saw.
Note: The rewind is expected to fail since I found out that nst0 = non-rewind.
Output:-
[root@NBU ~]# tar -tzf /dev/nst0
tar: /dev/nst0: Cannot open: Input/output error
tar: Error is not recoverable: exiting now
gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@NBU ~]# mt -f /dev/nst0 rewind
/dev/nst0: Input/output error
[root@NBU ~]# mt -f /dev/nst0 tell
/dev/nst0: Input/output error
[root@NBU ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (8050000):
EOD DR_OPEN IM_REP_EN
I have no idea what the above means, but at a glance, it doesn't look right, especially with the "-1" for file and block number, and with the block size being 0 bytes. Anyone can enlighten me on this?
On a side note, I have NetBackup on the server, and it is able to backup to the tape successfully.
Looking forward to some replies that can shed some light.
Thanks in advance.
