Operating System - HP-UX
1745926 Members
4268 Online
108723 Solutions
New Discussion юеВ

how to check the Tape drives working condition by using command.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to check the Tape drives working condition by using command.

Hi

I am using hpux 10.20, 11.00 and 11.11.

We can view the Tape drives availability thru "ioscan" command.

How to check whether Tape Drive are working fine?

Is there any command available to check the Working condition of the Tape Drive?

14 REPLIES 14
Patrick Wallek
Honored Contributor

Re: how to check the Tape drives working condition by using command.

The true test is to see if you can write to and read from the tape drives.

Put a tape in the drive and use something like tar or fbackup to write to the tape. The try restoring what you just wrote. If that works, you can feel pretty good that your tape drives are functional.

Durvesh Mendhekar
Regular Advisor

Re: how to check the Tape drives working condition by using command.

Hi Senthil,

If the command ioscan -funC tape is showing CLAIMED then you can consider it as device is fine but concerning about it working you can check it by inserting a tape and taking a test backup.

Regards
Durvesh
senthil_kumar_1
Super Advisor

Re: how to check the Tape drives working condition by using command.

Hi

I issued following command to check the tape drives availability.

root@aa128116:/root > ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 1 0/6/0/0.1.0 stape CLAIMED DEVICE QUANTUM DLT7000
/dev/rmt/1m /dev/rmt/1mnb /dev/rmt/c4t1d0BESTn
/dev/rmt/1mb /dev/rmt/c4t1d0BEST /dev/rmt/c4t1d0BESTnb
/dev/rmt/1mn /dev/rmt/c4t1d0BESTb



I am seeing six names for one tape device for example:

/dev/rmt/1m

/dev/rmt/1mb

/dev/rmt/1mn

/dev/rmt/1mnb

/dev/rmt/c4t1d0BEST

/dev/rmt/c4t1d0BESTb

/dev/rmt/c4t1d0BESTn

/dev/rmt/c4t1d0BESTnb


In above sixe file, which file that we have to use.

Pls clarify me.
Sunny123_1
Esteemed Contributor

Re: how to check the Tape drives working condition by using command.

Hi

You can use one of the above .But by default you use /dev/rmt/1mn or /dev/rmt/1m


Regards
Sunny
senthil_kumar_1
Super Advisor

Re: how to check the Tape drives working condition by using command.

Hi

In of my hpux server, Hardware Type of Tape device is "NO_HW". what does it mean.

Ex:

lndsll03:/homeroot->ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
========================================================================
tape 1 0/4/1/1.1.0.255.0.0.1 stape NO_HW DEVICE HP Ultrium 3-SCSI
tape 2 0/4/1/1.1.0.255.0.0.2 stape NO_HW DEVICE HP Ultrium 3-SCSI


Pls clarify.
senthil_kumar_1
Super Advisor

Re: how to check the Tape drives working condition by using command.

Sorry it is "S/W state" but not "Hardware Type".

Sunny123_1
Esteemed Contributor
Solution

Re: how to check the Tape drives working condition by using command.

Hi

No_hw state means that it is not connected to your system.

Regards
Sunny
Bill Hassell
Honored Contributor

Re: how to check the Tape drives working condition by using command.

There is no way to check a tape drive's working condition without putting a tape in the drive, writing something to it such as a small tar file and then rewinding and reading the table of contents.

ioscan simply identifies the drive. NO_HW means that at some time in the past, there was a tape drive connected to that hardware path, but it has been removed or powered off.

You can use the mt command to read the status:

mt -t /dev/rmt/1m status

NOTE: older versions of HP-UX do not have the status command. See your man page for mt on each system.

The names of the tape device files reflect their default behavior. Use the command:

lssf /dev/rmt/*

to decode the capabilities. Use the device file that meets your needs.


Bill Hassell, sysadmin
Suraj K Sankari
Honored Contributor

Re: how to check the Tape drives working condition by using command.

Hi,
Here is the software state of ioscan

Software state The result of software binding.
CLAIMED -:- software bound successfully
UNCLAIMED -:- no associated software found
DIFF_HW -:- software found does not match the associated software
NO_HW -:- the hardware at this address is no longer responding
ERROR -:- the hardware at this address is responding but is in an error state
SCAN -:- node locked, try again later


Suraj