1833757 Members
2613 Online
110063 Solutions
New Discussion

tar or tape problem

 
SOLVED
Go to solution
Ammar_4
Frequent Advisor

tar or tape problem

i was only checking that tar work or not i write this command and that was output so what is problem
$ sudo tar cf /dev/rmt/0m /tmp
Password:
tar: cannot open /dev/rmt/0m
15 REPLIES 15
Ammar_4
Frequent Advisor

Re: tar or tape problem

ioscan -fnC tape
Password:
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 8/16/5.0.0 stape CLAIMED DEVICE HP HP35480A
/dev/rmt/0m /dev/rmt/c1t0d0BESTn
/dev/rmt/0mb /dev/rmt/c1t0d0BESTnb
/dev/rmt/0mn /dev/rmt/c1t0d0DDS
/dev/rmt/0mnb /dev/rmt/c1t0d0DDSb
/dev/rmt/c1t0d0BEST /dev/rmt/c1t0d0DDSn
/dev/rmt/c1t0d0BESTb /dev/rmt/c1t0d0DDSnb
Bill Hassell
Honored Contributor

Re: tar or tape problem

Check the tape status:

mt -f /dev/rmt/0m status

If it does not respond (note: the status command only works with 11.00 and higher), then the tape has likely failed. The HP35480A tape drive is very old and cannot use any tape except DDS-1.


Bill Hassell, sysadmin
Ranjith_5
Honored Contributor

Re: tar or tape problem

#ioscan -fnCtape

see that the device is CLAIMED.

Regards,
Syam
Raj D.
Honored Contributor

Re: tar or tape problem

Hi Ammar ,

Check with ioscan first.

1. # ioscan -fnC tape [ it should be CLAIMED ]

2. # mt -f /dev/rmt/0m status [ If the tape is in the drive it will show the status output. ]

3. then check the command,
sudo tar cf /dev/rmt/0m /tmp

Raj.

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

Re: tar or tape problem

Hi Amar,

If you still gets error after step.3 , seems you dont have enough sudo permission ,

Check sudoers file also ,(/usr/local/etc/sudo/sudoers )

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

Re: tar or tape problem

i already give output of ioscan on above
and now status is
sudo mt -f /dev/rmt/0m status
Password:
Drive: HP HP35480A
Format:
Status: [0]
File: 0
Block: 0
Steven E. Protter
Exalted Contributor

Re: tar or tape problem

Looks like the tape(drive?) failed.

Perhaps you could try this as root and avoid the sudo factor.

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
Patrick Wallek
Honored Contributor

Re: tar or tape problem

It appears you have no tape in the drive.

Verify that there is actually a tape in the drive.
Pradeep_29
Frequent Advisor
Solution

Re: tar or tape problem

Just try "mt rew"

If you have tape in, you should be able to rewind it successfully as hardware is claimed and device file is created.

I guess you don't have to use root for this. You can try with your id. You may have problem while writing files for which you don't have permission.

I would suggest to use v options with mt..."mt -cvf /dev/rmt/0m /tmp". It will show if it is writing files.
Devender Khatana
Honored Contributor

Re: tar or tape problem

Hi,

If the tape is loaded in drive while mt status show this, the drive is failed.

HTH,
Devender
Impossible itself mentions "I m possible"
Raj D.
Honored Contributor

Re: tar or tape problem

Hi Amar ,

from the status , it seems that there is no Tape loaded in the drive.

If tape loaded in the drive it will show the status like this :

-----------------------------------------
# mt -f /dev/rmt/0m status
Drive: HP C5683A
Format:
Status: [41112600] BOT online compression immediate-report-mode
File: 0
Block: 0
-----------------------------------------

If this is the case , you can try after loading a tape.

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

Re: tar or tape problem

Amar,

If the tape is loaded , and its not sensing , it means problem with the HP35480A drive , and need to log hardware call for that.

Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Mahesh Kumar Malik
Honored Contributor

Re: tar or tape problem

Hi Ammar

1. Check EMS logs and syslog.log file for errors logged

2. If drive is able to load the media properly try mt /dev/rmt/0m and see if drive responds

3. IF above step does not help, Drive electronics has failed.Log a call to local HP support provider

Regards
Mahesh
Ammar_4
Frequent Advisor

Re: tar or tape problem

Thanks a lot i get answer
Ammar_4
Frequent Advisor

Re: tar or tape problem

Thanks a lot