Operating System - Linux
1827983 Members
2283 Online
109973 Solutions
New Discussion

Re: backup problem on SureStore DAT8 on RedHat 7.2

 
Kelvin Leung
New Member

backup problem on SureStore DAT8 on RedHat 7.2

I got problem on tar & cpio to tape.
error message log as follow.

when I issue mt -f /dev/st0 rewind,
the tape rewind command is ok.

any one can help me??

******************************************
[root@octopus root]# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x24 (DDS-2).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[root@octopus root]#
***********************
[root@octopus /]# tar cvf /dev/st0 ./home
./home/
./home/leungcwk/
./home/leungcwk/.netscape/
./home/leungcwk/.netscape/preferences.js
tar: /dev/st0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
[root@octopus /
*************************
[root@octopus /]# find ./home -print |cpio -oc > /dev/st0
Found end of volume. To continue, type device/file name when ready.




6 REPLIES 6
Stuart Browne
Honored Contributor

Re: backup problem on SureStore DAT8 on RedHat 7.2

Does this occur with all tapes, or just one?

What kind of controller is it connected too?

Are there other devices on the same SCSI chain?

Is there a proper terminator on the SCSI chain?

From the information you've given us thus far we can't help all that much. It just appears as if the drive is having an issue writing data to the tape.
One long-haired git at your service...
Kelvin Leung
New Member

Re: backup problem on SureStore DAT8 on RedHat 7.2

reply to Stuart Browne

1. I had used serval tapes the outcome is same.
2. the controller is adaptec 2940
3. I had tried to copy a small file to tape, it seems ok.
I use the command > cp text.txt /dev/nst0
and then use > mt -f /dev/nst0 status
to check the status.
the "file number' changed from '0' to '1'

--end--



Stuart Browne
Honored Contributor

Re: backup problem on SureStore DAT8 on RedHat 7.2

Could I get you to do the following:

ls -al /dev/*st*

If you've just "cp"'d a file, then something is certainly not right.

The Devices should not be accessable like that! They should have a major of 9, and be a character deivce (i.e. line starts with 'c'). The no-rewind should have a mintor 128.. Please verify these for us.

Also, please paste the contents of '/proc/scsi/scsi' so we can get a better idea of the device layout.
One long-haired git at your service...
Kelvin Leung
New Member

Re: backup problem on SureStore DAT8 on RedHat 7.2

 
Stuart Browne
Honored Contributor

Re: backup problem on SureStore DAT8 on RedHat 7.2

Two things.. I wanted to see the contents of /proc/scsi/scsi, not the permissions, so plcase: 'cat /proc/scsi/scsi'.

The other, is anybody else getting garbage in that directory listing that was pasted? Or is that just international stuff for the 'months'? :) Just want to make sure..

What happens when you issue 'file -s /dev/nst0' ? does it return any errors, or do you get anything showing up on the console?
One long-haired git at your service...
Kelvin Leung
New Member

Re: backup problem on SureStore DAT8 on RedHat 7.2

1. please see the log as follow:

2. yes, this is chinese char set.

thanks
************************

> cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 05 Lun: 00
Vendor: HP Model: C1533A Rev: A812
Type: Sequential-Access ANSI SCSI revision: 02

> file -s /dev/nst0

/dev/nst0: empty