Operating System - HP-UX
1830899 Members
3525 Online
110017 Solutions
New Discussion

error read backup in device

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

error read backup in device

hello i obtaing this error to read device /dev/rmt/0m
restore with tar
the backup run ok.
sgc1 # tar -cvf * /dev/rmt/0m
a ISEEPlatform_A.03.00.030_HP-UX_B.11.00_32+64.depot 12289 blocks
a Implt/depura.sh 3 blocks
a Implt/print_info 10 blocks
a Implt/control/wtmp.bk.24.gz 145 blocks
a Implt/control/syslog.bk.01 316 blocks
a Implt/control/sulog.24.gz 15 blocks

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

read:

# tar -tvf /dev/rmt/0m
tar: cannot open /dev/rmt/0m

# dd if=/dev/rmt/0m of=/test
/dev/rmt/0m: No such device or address
dd: cannot open /dev/rmt/0m
#

the restore
# tar -xvf /dev/rmt/0m
tar: cannot open /dev/rmt/0m
#


legionx
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: error read backup in device

try this:

insf -e

or

insf -C

Seems like the device driver problem or..

tape write tab issues.

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
Fred Ruffet
Honored Contributor

Re: error read backup in device

Jairo,

in tar command, when specifying -f, it should be followed by device name. So, you order shouldn't be
tar -cvf * /dev/rmt/0m
but
tar -cvf /dev/rmt/0m *

By doing the first one, you have probably overwritten the first file given by * in the directory.

Anyway, if /dev/rmt/0m doesn't exists, as long as it appears CLAIMED in ioscan, you can recreate it by
insf -e

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Jairo Campana
Trusted Contributor

Re: error read backup in device

execute insf -e

the ioscan in state CLAIMED

insf: Installing special files for pseudo driver diag1
insf: Installing special files for pseudo driver klog
insf: Installing special files for pseudo driver sy
insf: Installing special files for pseudo driver kepd
insf: Installing special files for pseudo driver diag2
insf: Installing special files for pseudo driver root
sgc1 # ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/2/1.0.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/0m /dev/rmt/c3t0d0BEST /dev/rmt/c3t0d0DDS
/dev/rmt/0mb /dev/rmt/c3t0d0BESTb /dev/rmt/c3t0d0DDSb
/dev/rmt/0mn /dev/rmt/c3t0d0BESTn /dev/rmt/c3t0d0DDSn
/dev/rmt/0mnb /dev/rmt/c3t0d0BESTnb /dev/rmt/c3t0d0DDSnb
sgc1 # pwd
/bckopera
# tar -cvf /dev/rmt/0m *
tar: cannot open /dev/rmt/0m
#
legionx