1823179 Members
3588 Online
109647 Solutions
New Discussion юеВ

can't use backup device

 
hanyyu1
Advisor

can't use backup device

I check the device by ioscan , it seems can detect the tape device at /dev/rmt/0m

# ioscan -kfnC tape
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
tape 0 0/6/2/0/4/0.0.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/0m /dev/rmt/c4t0d0BESTn
/dev/rmt/0mb /dev/rmt/c4t0d0BESTnb
/dev/rmt/0mn /dev/rmt/c4t0d0DDS
/dev/rmt/0mnb /dev/rmt/c4t0d0DDSb
/dev/rmt/c4t0d0BEST /dev/rmt/c4t0d0DDSn
/dev/rmt/c4t0d0BESTb /dev/rmt/c4t0d0DDSnb

but if I try tar -cvf /dev/rmt/0m /tmp/* , it pop "tar: cannot open /dev/rmt/0m" , could suggest what is wrong ? thx
7 REPLIES 7
Joseph Loo
Honored Contributor

Re: can't use backup device

hi,

have u tried:

# tar -cvf /dev/rmt/0mn /tmp/*
take note of the "n", i.e. no-rewind device, behind 0m

regards.
what you do not see does not mean you should not believe
Patrick Wallek
Honored Contributor

Re: can't use backup device

Is there a tape in the drive?

What doesthe command below return:

# mt -f /dev/rmt/0mn stat
hanyyu1
Advisor

Re: can't use backup device

thx replies,

# tar -cvf /dev/rmt/0mn /tmp/*
tar: cannot open /dev/rmt/0mn
# mt -f /dev/rmt/0mn stat
Drive: HP C5683A
Format: DDS-1 format
Status: [45111300] BOT write-protected online compression immediate-report-mode
File: 0
Block: 0
#
Bill Hassell
Honored Contributor

Re: can't use backup device

The message "cannot open" is a bit misleading. You are writing a tar file to the tape but it is write-protected (from the message provided from mt status). Change the write-protect tab on the tape and it should work fine.


Bill Hassell, sysadmin
Joseph Loo
Honored Contributor

Re: can't use backup device

hi,

could u power on and off the tape device and also check if the device is in working condition.

if tar command still not working, run rmsf and insf on the tape device and run tar again.

also, is it really that difficult to assign points? 0 out of 80 (and counting) is not good.

regards.
what you do not see does not mean you should not believe
Patrick Wallek
Honored Contributor

Re: can't use backup device

Status: [45111300] BOT write-protected online compression immediate-report-mode

The key words there are "write-protected". You must eject the tape, move the white tab so that it covers the hole on the tape and then put the tape back in.

Now, since someone write-protected the tape at some point, make absolutely sure that it is OK to overwrite this tape!
Sivakumar TS
Honored Contributor

Re: can't use backup device


Hi,

Could you try to read the contents of any previous backup.

#tar -tvf /dev/rmt/om --> to read the content.

May be you can try with a different media also.

With Regards,

Siva.
Nothing is Impossible !