Operating System - HP-UX
1847710 Members
6267 Online
110265 Solutions
New Discussion

tape drive problem HP-UX 11i

 
SOLVED
Go to solution
Chang_6
Regular Advisor

tape drive problem HP-UX 11i

Hi,
This is the sequence of steps that I use to test a tape drive on an HP-UX 11i machine

1) ioscan -fnC tape
2) rmsf -H 0/12/0/../../..
3) insf -H 0/12/0/../../..

were performed. Verified 4) ioscan -fnC tape and I could see the listing.

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
tape 0 14/0/3.0.0 stape CLAIMED DEVICE HP C5713A
/dev/rmt/0m /dev/rmt/0mnb /dev/rmt/c3t0d0BESTn /dev/rmt/c3t0d0DDSb
/dev/rmt/0mb /dev/rmt/c3t0d0BEST /dev/rmt/c3t0d0BESTnb /dev/rmt/c3t0d0DDSn
/dev/rmt/0mn /dev/rmt/c3t0d0BESTb /dev/rmt/c3t0d0DDS /dev/rmt/c3t0d0DDSnb

However, I issued tar cf /dev/rmt/0m /var

result:
# tar cf /dev/rmt/0m /var
tar: cannot open /dev/rmt/0m

Also,
# mt -f /dev/rmt/0m rewind
/dev/rmt/0m: No such device or address

I issued:
# lssf /dev/rmt/0m

result:
#stape card instance 3 SCSI target 0 SCSI LUN 0 at&t best density available at address 14/0/3.0.0 /dev/rmt/0m

Any ideas what's going wrong? Please suggest me some steps that test the tape. After testing is complete approx. 30GB data should be backed up into it.
50 REPLIES 50
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

Baffeled with that. Perms on /dev/rmt/0m??

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Hi,

I was doing that as root. Here's the listing. Please help.

# ls -l /dev/rmt
total 0
crw-rw-rw- 2 bin bin 205 0x030000 Aug 3 14:08 0m
crw-rw-rw- 2 bin bin 205 0x030080 Aug 3 14:08 0mb
crw-rw-rw- 2 bin bin 205 0x030040 Aug 3 14:08 0mn
crw-rw-rw- 2 bin bin 205 0x0300c0 Aug 3 14:08 0mnb
crw-rw-rw- 2 bin bin 205 0x030000 Aug 3 14:08 c3t0d0BEST
crw-rw-rw- 2 bin bin 205 0x030080 Aug 3 14:08 c3t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x030040 Aug 3 14:08 c3t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x0300c0 Aug 3 14:08 c3t0d0BESTnb
crw-rw-rw- 1 bin bin 205 0x030001 Aug 3 14:08 c3t0d0DDS
crw-rw-rw- 1 bin bin 205 0x030081 Aug 3 14:08 c3t0d0DDSb
crw-rw-rw- 1 bin bin 205 0x030041 Aug 3 14:08 c3t0d0DDSn
crw-rw-rw- 1 bin bin 205 0x0300c1 Aug 3 14:08 c3t0d0DDSnb
crw-r--r-- 1 bin bin 205 0xfffffe Nov 23 1999 stape_config
Steven E. Protter
Exalted Contributor

Re: tape drive problem HP-UX 11i

Check the write tab on the tape. I would think if the scisi card is lun 0 th drive should have a different number.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gary L. Paveza, Jr.
Trusted Contributor

Re: tape drive problem HP-UX 11i

Stupid question, but is there a tape in the drive? And is it write-protected?

The tar cf error could be either.

mt rewind could be no tape.
Bharat Katkar
Honored Contributor

Re: tape drive problem HP-UX 11i

Hi,
Check the thread below:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=635088
I think it simulates your problem.
Regards,
You need to know a lot to actually know how little you know
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Hi,

I read it, not sure what
"for those devices that only seem to have a cXtYdZ device file" means

I don't seem to have that one here
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

I also issued insf -e and then tried

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

It said:

#/dev/rmt/0m: No such device or address
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Also,

How to confirm there is tape in the drive?

Please suggest
Bharat Katkar
Honored Contributor

Re: tape drive problem HP-UX 11i

Kumar,

what i would suggest is to do rmsf on all unused speial files in /dev/rmt but be carefull and then execute insf -e. That thread addresses that there are 2 files accesing the same device.
That should create fresh and unique file for your tape device.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Bharat,

Thank you very much for the response.

I did this a couple of hours back

) ioscan -fnC tape
2) rmsf -H 0/12/0/../../..
3) insf -H 0/12/0/../../..


I also issued insf -e.

Now, could you please explain the steps little bit clear? Could you please give me what to do in an order? Thanks a million in advance.
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

mt -f /dev/rmt/c3t0d0BEST

What does it say??

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Anil,

mt -f /dev/rmt/c3t0d0BEST
usage: mt [ -f tapename ] command [ count ]
command is one of:
eof, fsf, bsf, fsr, bsr, rewind, offline, eod, smk, fss, bss, reserve, release, status
A. Clay Stephenson
Acclaimed Contributor

Re: tape drive problem HP-UX 11i

The first thing that I would do is install the latest stape driver patch, PHKL_29899.
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: tape drive problem HP-UX 11i

>>How to confirm there is tape in the drive?

Go look at the drive, or try

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

If it returns an error you almost certainly do NOT have a tape in the drive.

RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

Oh, I mean mt -f /dev/rmt/c3t0d0BEST stat

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Anil,

mt -f /dev/rmt/c3t0d0BEST stat
Drive: HP C5713A
Format:
Status: [0]
File: 0
Block: 0
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

Now I think the problem is with /dev/rmt/0m device file.

ls -il /dev/rmt/0m
ls -il /dev/rmt/c3t0d0BEST

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Anil,

ls -il /dev/rmt/0m
1856 crw-rw-rw- 2 bin bin 205 0x030000 Aug 3 14:08 /dev/rmt/0m

ls -il /dev/rmt/c3t0d0BEST
1856 crw-rw-rw- 2 bin bin 205 0x030000 Aug 3 14:08 /dev/rmt/c3t0d0BEST

Thanks
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

They both are same files. The inode nos are same.

rmsf /dev/rmt/0m
mknod /dev/rmt/0m c 205 0x030000
chown bin:bin /dev/rmt/0m
chmod 666 /dev/rmt/0m

mt -f /dev/rmt/0m stat

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Anil,

Thanks again.

# rmsf /dev/rmt/0m
# mknod /dev/rmt/0m c 205 0x030000
# chown bin:bin /dev/rmt/0m
# chmod 666 /dev/rmt/0m
# mt -f /dev/rmt/0m stat
Drive: HP C5713A
Format:
Status: [0]
File: 0
Block: 0
# mt -f /dev/rmt/0m rewind
/dev/rmt/0m: No such device or address

I see "No such device or address" message again. Whats happening?
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

mt rewind
What does it say???

Anil
There is no substitute to HARDWORK
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

Is it giving error because, the tape is already rewinded.

mt -f /dev/rmt/0m stat
Make sure it is at file 0
mt -f /de/rmt/0mn fsf 1
mt -f /dev/rmt/0m rewind

Anil
There is no substitute to HARDWORK
Chang_6
Regular Advisor

Re: tape drive problem HP-UX 11i

Anil,

mt rewind
/dev/rmt/0mnb: No such device or address


It says "/dev/rmt/0mnb" not "/dev/rmt/0". May I know why?

Please tell if I should test these now?

mt -f /dev/rmt/0m stat
Make sure it is at file 0
mt -f /de/rmt/0mn fsf 1
mt -f /dev/rmt/0m rewind
RAC_1
Honored Contributor

Re: tape drive problem HP-UX 11i

If I remember correctly mt rewind should take default device - /dev/rmt/0m

Yes, please try following.

mt -f /dev/rmt/0m stat
Make sure it is at file 0
mt -f /de/rmt/0mn fsf 1
mt -f /dev/rmt/0m rewind

Anil
There is no substitute to HARDWORK