1820540 Members
3133 Online
109626 Solutions
New Discussion юеВ

Re: mt stat ....

 
SOLVED
Go to solution
Manuales
Super Advisor

mt stat ....

how can i know size of a tape?

i know is with:

sapd01:/home->mt stat
mt: unknown command "stat"

is there other command to review it?

Thanks, Manuales.
12 REPLIES 12
Geoff Wild
Honored Contributor

Re: mt stat ....

Try

mt status

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rick Garland
Honored Contributor

Re: mt stat ....

The command is "mt /dev/rmt/0m stat"

The tape device name is arbitrary, only for example in this post. Replace with your tape device name
Deoncia Grayson_1
Honored Contributor
Solution

Re: mt stat ....

did you try doing
mt -f /dev/rmt/0mn(tape device name) stat?
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Geoff Wild
Honored Contributor

Re: mt stat ....

Actually - I think you have to use -f

mt -f /dev/rmt/0mnb status

Set the 0mnb to your device - though 0mnb is the default...so, if yours is the default - you shouldn't need to put in the -f /dev/rmt/0mnb (atleast according to the mt man page).

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Raj D.
Honored Contributor

Re: mt stat ....

Hi Manuales ,

You can Check

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

Else if its HP DDS2 or DDS3 or DDS4 or DLT drive you can find out with model number , how much it supports.

http://www.partsurfer.hp.com

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Sanjay_6
Honored Contributor

Re: mt stat ....

Hi,

Easy answer,

You cannot. Look at the media to check its size.

Hope this helps.

regds
Oviwan
Honored Contributor

Re: mt stat ....

Hi

In addition check this:
http://www.die.net/doc/linux/man/man1/mt.1.html

Regards
Raj D.
Honored Contributor

Re: mt stat ....

Hi Manuales,


Else just check the Label of the Tape, you can findit out.:)-

also ,
90 Meter --> 2GB
120 Meter --> 4/8GB Compressed.
125 Meter --> 12GB / 24GB Compressed
150 Meter--> 20GB
170 meter--> 36GB

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Manuales
Super Advisor

Re: mt stat ....

Hi !!!

sa1:/->mt -f /dev/rmt/0mn stat
mt: unknown command "-f"
sa1:/->mt /dev/rmt/0m stat
mt: unknown command "/dev/rmt/0m"
sa1:/->mt /dev/rmt/0mn stat
mt: unknown command "/dev/rmt/0mn"
sa1:/->mt /dev/rmt/0mb stat
mt: unknown command "/dev/rmt/0mb"

My OS is hp-ux B.10.20 do i nedd some patch or something else?

Manuales.
Raj D.
Honored Contributor

Re: mt stat ....

Hi Manuales ,

Use
# mt -t /dev/rmt/0mn status

check the option in man page. Its -t for lower version and in 11.00 or 11i its -f .

Hope this will work ,

Cheers,
Raj
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: mt stat ....

Manuales,

To check the device file of tape , here is the command ,

# ioscan -fnC tape

[ And look for your internal or external tape drive with something like /dev/rmt/0m or 1m ..

Hope it will work now.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: mt stat ....

The problem is that you are running an obsolete operating system and the mt command does not have a status option. The man page will also confirm this. For 10.20, you have to look at the tape length to determine it's capacity.


Bill Hassell, sysadmin