Hi
There's supposed to be a nightly backup running which never returns any errors, so the boss assumed it's working fine.
The command inside the nightly script which runs the backup is:
Code:
TAPE=/dev/st0
# Ensure that the device is valid
if [ ! -c "$TAPE" ] ; then
echo "$TAPE is not a character device - ABORTING!"
exit 1
fi
find . -path './mnt' -prune -o -path './tmp' -prune -o -path './sys' -prune -o -path './proc' -prune -o -print | cpio -ocB >$TAPE 2>&1
when I try "cpio -t /dev/st0" I get nothing, the prompt just sits and after awhile, I abort out (ctrl-C)
cat /proc/scsi/scsi
Code:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ServeRA Model: RAID1-Mirror Rev: V1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: Ultrium 2-SCSI Rev: S65D
Type: Sequential-Access ANSI SCSI revision: 03
mt -f /dev/st0 status
Code:
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x42 (LTO-2).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
how else can I check the contents of the tape and verify something is being written to the tape?
There is only one tape drive, how do I confirm /dev/st0 is the right device?