1837995 Members
15432 Online
110124 Solutions
New Discussion

tape analysis

 
jok llamera
Advisor

tape analysis

hi fellas,

Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.0.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/c0t0d0BESTn
/dev/rmt/0mb /dev/rmt/c0t0d0BESTnb
/dev/rmt/0mn /dev/rmt/c0t0d0DDS
/dev/rmt/0mnb /dev/rmt/c0t0d0DDSb
/dev/rmt/c0t0d0BEST /dev/rmt/c0t0d0DDSn
/dev/rmt/c0t0d0BESTb /dev/rmt/c0t0d0DDSnb


# tar -tvf /dev/rmt/0m
Tar: blocksize = 0; broken pipe?
# dd if=/dev/rmt/0m of=/dev/null
/dev/rmt/0m: No such device or address
dd: cannot open /dev/rmt/0m
#

# dd if=/etc/hosts of=/dev/rmt/0mn
I/O error
2+0 records in
1+1 records out

# tar -cvf /dev/rmt/0mn /etc/hosts
tar: cannot open /dev/rmt/0mn
#

Question: What is wrong?

Thanks
joks
Excelence is not an act but a hobby
8 REPLIES 8
Kenny Chau
Trusted Contributor

Re: tape analysis

Hi,

How about use this command:

# mt -f /dev/rmt/0m status

What error messages you have got??


Regards,
Kenny.
Kenny
melvyn burnard
Honored Contributor

Re: tape analysis

one assumes there is a valid media installed ;-}


What does lssf /dev/rmt/0m show?

It sounds like you may have a broken tape drive.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
jok llamera
Advisor

Re: tape analysis

::> mt -f /dev/rmt/0m status
Drive: HP C1537A
Format: DDS-1 format
Status: [81111300] EOF online compression immediate-report-mode
File: 2
Block: -1

root @ yoda : { / }
::> lssf /dev/rmt/0m
stape card instance 0 SCSI target 0 SCSI LUN 0 at&t best density available at address 0/0/1/0.0.0 /dev/rmt/0m

Excelence is not an act but a hobby
steven Burgess_2
Honored Contributor

Re: tape analysis

To get the state of the drive try

echo "selclass type tape ;info;wait;infolog | cstm > /tmp/tapeinfo

You can also do this with cpu, memory

From the command line type

#cstm

cstm>map

>sel type tape
>info
>infolog

cstm tutorial

http://docs.hp.com//hpux/onlinedocs/diag/stm/stt_crun.htm

Steve
take your time and think things through
Sanjay_6
Honored Contributor

Re: tape analysis

Hi,

First do a rewind on the tape device,

mt -f /dev/rmt/0m rewind

Next do a tar,

tar cvf /dev/rmt/0m some_file

Now do a list,

tar tvf /dev/rmt/0m

If you use a norewind device file 0mn, you should rewind the tape first and then do a tar list. Otherwise it may give you a broken pipe error.

Follow this link if you want to put multiple backup on a single tape,

http://us-support.external.hp.com/cki/bin/doc.pl/sid=ba97806c171d7182c9/screen=ckiDisplayDocument?docId=200000007950095

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: tape analysis

First thing, you have a dds1 tape in your tape drive and your tape drive is a dds3.

Please read:

http://us-support.external.hp.com/cki/bin/doc.pl/sid=ebbc5e3d0ed6965e8f/screen=ckiDisplayDocument?docId=200000057219202

live free or die
harry
Live Free or Die
jok llamera
Advisor

Re: tape analysis

::> mt -f /dev/rmt/0m rewind
/dev/rmt/0m: No such device or address

::> mt -f /dev/rmt/0mn rewind
/dev/rmt/0mn: No such device or address

Thanks,
joks
Excelence is not an act but a hobby
Sanjay_6
Honored Contributor

Re: tape analysis

Hi,

I guess, if you have not rebooted the system after the first few failures, a reboot and trying after that might help.

Hope this helps.

Regds.