System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

backup problem on tape library

 
Md. Nazmul Hassan
Occasional Advisor

backup problem on tape library

Hi,

whem i put fbackup -f /dev/rmt/0m -i /backupfup this command, i got this error output file /dev/rmt/3mn is not a valid device file for backup.

Can any one help me in this issue??

Nazmul
19 REPLIES

Re: backup problem on tape library

Whay have you started 2 seperate thereads for the same issue? One of these will probably get deleted by an admin.

Can you confirm that you definately entered

fbackup -f /dev/rmt/0m -i /backupfup

and that the command responded by complaining about /dev/rmt/3mn ?

You haven't just eneterd a typo there??

fbackup doesn't support "no-rewind on close" tape devices, so you should never use /dev/rmt/3mn or /dev/rmt/0mn - you should use /dev/rmt/3m or /dev/rmt/0m (or whatever rewind-on-close tape device you have).

Of course you can have more issues with rewind-on-close tape devices if the kernel parameter st_san_safe is set to 1.

HTH

Duncan

HTH

Duncan
Joelmel Roche
Valued Contributor

Re: backup problem on tape library

Md. Farhan A Azam
Trusted Contributor

Re: backup problem on tape library

Asalam o aleykum,

Can u post the out put of below command..

#ioscan -fnC tape

Tape Library model,

and the full error which u are getting.

Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi,

Thanks for quick response. Please find below the output of ioscan -fnC tape and fbackup command's output.

I shall wait for your quick suggestions.
Thanks in advanced.

tape 2 0/3/0/0/0/0.1.0.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 4-SCSI
/dev/rmt/2m /dev/rmt/c15t0d0BEST
/dev/rmt/2mb /dev/rmt/c15t0d0BESTb
/dev/rmt/2mn /dev/rmt/c15t0d0BESTn
/dev/rmt/2mnb /dev/rmt/c15t0d0BESTnb
tape 3 0/3/0/0/0/0.1.1.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 4-SCSI
/dev/rmt/3m /dev/rmt/c16t0d0BEST
/dev/rmt/3mb /dev/rmt/c16t0d0BESTb
/dev/rmt/3mn /dev/rmt/c16t0d0BESTn
/dev/rmt/3mnb /dev/rmt/c16t0d0BESTnb


#fbackup -i /test -I index.test -f /dev/rmt/2m
fbackup(1004): session begins on Thu Jan 15 05:40:26 2009
fbackup(3038): output file /dev/rmt/2m is not a valid device file for backup

Torsten.
Acclaimed Contributor

Re: backup problem on tape library

How about your OS version and patch level?

Is your system really able to handle a LTO-4 (driver!)?

Did this ever work?

Please post

# ll /dev/rmt

too and let us see what 0m really is.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujit kumar singh
Honored Contributor

Re: backup problem on tape library

Hello,


u can see by doing again an

#ioscan -fnCtape
#insf
#insf -e

just again can u check that stape module though this driver is there in the system , can u still check one thing?

#kcmodule | grep -i stape and post the O/P?


u can see also by doing a rewind and see if tape loads and status.

#mt -t /dev/rmt/3mn rewind
#mt -t /dev/rmt/3mn status

also what if u are trying to take a tar backup on the tape?


#tar cvf /dev/rmt/3mn /tmp

what does this show???


Regards
sujit


Torsten.
Acclaimed Contributor

Re: backup problem on tape library

For example this patch:

http://www13.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_38496&sel={hpux:11.11,}&BC=main|search|

Patch Description: s700_800 11.11 fbackup(1M), frecover(1M) cumulative patch



says

...
Enhancement request for Ultrium tape drive support
...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
sujit kumar singh
Honored Contributor

Re: backup problem on tape library

Also one thing , this seems to be an FC Tape ,

can u also confirm that u have schgr properly driver installed in the system?


#kcmodule | grep -i stape
#kcmodule | grep -i schgr


If this is an 11.31 system try making the following cimmand, this shall install all the pass through drivers for all the HW reqd.
#mksf -p
the corresponding drivers shall be estape and eschgr in 11iv3

Regards
Sujit
Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi Sujit,

here is the output what u request

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
tape 2 0/3/0/0/0/0.1.0.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 4-SCSI
/dev/rmt/2m /dev/rmt/c15t0d0BEST
/dev/rmt/2mb /dev/rmt/c15t0d0BESTb
/dev/rmt/2mn /dev/rmt/c15t0d0BESTn
/dev/rmt/2mnb /dev/rmt/c15t0d0BESTnb
tape 3 0/3/0/0/0/0.1.1.255.0.0.0 stape CLAIMED DEVICE HP Ultrium 4-SCSI
/dev/rmt/3m /dev/rmt/c16t0d0BEST
/dev/rmt/3mb /dev/rmt/c16t0d0BESTb
/dev/rmt/3mn /dev/rmt/c16t0d0BESTn
/dev/rmt/3mnb /dev/rmt/c16t0d0BESTnb
# insf
# insf -e
insf: Installing special files for asio0 instance 2 address 0/0/1/2
insf: Installing special files for sdisk instance 0 address 0/2/1/0.0.0.0.0
insf: Installing special files for stape instance 2 address 0/3/0/0/0/0.1.0.255. 0.0.0
insf: Installing special files for schgr instance 3 address 0/3/0/0/0/0.1.0.255. 0.0.1
insf: Installing special files for stape instance 3 address 0/3/0/0/0/0.1.1.255. 0.0.0
insf: Installing special files for schgr instance 1 address 0/3/0/0/0/0.1.1.255. 0.0.1
insf: Installing special files for sdisk instance 12 address 0/3/0/0/0/0.1.5.0.0 .0.1
insf: Installing special files for sctl instance 6 address 0/3/0/0/0/0.1.5.255.0 .0.0
insf: Installing special files for sdisk instance 13 address 0/3/0/0/0/0.1.6.0.0 .0.1
insf: Installing special files for sctl instance 8 address 0/3/0/0/0/0.1.6.255.0 .0.0
insf: Installing special files for ipmi instance 0 address 250/0
insf: Installing special files for asio0 instance 3 address 250/1
insf: Installing special files for sasd instance 0 address 0/2/1/0
insf: Installing special files for fcd instance 0 address 0/3/0/0/0/0
insf: Installing special files for fcd instance 1 address 0/3/0/0/0/1
insf: Installing special files for fcd instance 2 address 0/4/0/0/0/0
insf: Installing special files for fcd instance 3 address 0/4/0/0/0/1
insf: Installing special files for esdisk instance 1 address 64000/0xfa00/0x0
insf: Installing special files for esctl instance 12 address 64000/0xfa00/0x4
insf: Installing special files for estape instance 4 address 64000/0xfa00/0x9
insf: Installing special files for estape instance 5 address 64000/0xfa00/0xa
insf: Installing special files for eschgr instance 2 address 64000/0xfa00/0xb
insf: Installing special files for eschgr instance 5 address 64000/0xfa00/0x14
insf: Installing special files for esdisk instance 14 address 64000/0xfa00/0x15
insf: Installing special files for pseudo driver cn
insf: Installing special files for pseudo driver mm
insf: Installing special files for pseudo driver arp
insf: Installing special files for pseudo driver ptym
insf: Installing special files for pseudo driver ptys
insf: Installing special files for pseudo driver devkrs
insf: Installing special files for pseudo driver dmem
insf: Installing special files for pseudo driver ip
insf: Installing special files for pseudo driver dev_config
insf: Installing special files for pseudo driver strlog
insf: Installing special files for pseudo driver sad
insf: Installing special files for pseudo driver nuls
insf: Installing special files for pseudo driver pwr
insf: Installing special files for pseudo driver rawip
insf: Installing special files for pseudo driver stcpmap
insf: Installing special files for pseudo driver asyncdsk
insf: Installing special files for pseudo driver tcp
insf: Installing special files for pseudo driver telm
insf: Installing special files for pseudo driver tels
insf: Installing special files for pseudo driver echo
insf: Installing special files for pseudo driver tlclts
insf: Installing special files for pseudo driver tlcots
insf: Installing special files for pseudo driver dlpi
insf: Installing special files for pseudo driver tlcotsod
insf: Installing special files for pseudo driver udp
insf: Installing special files for pseudo driver vols
insf: Installing special files for pseudo driver dmp
insf: Installing special files for pseudo driver ptm
insf: Installing special files for pseudo driver pts
insf: Installing special files for pseudo driver beep
insf: Installing special files for pseudo driver framebuf
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
insf: Installing special files for pseudo driver escsi
# mt -t /dev/rmt/3mn rewind
/dev/rmt/3mn: No such device or address
# mt -t /dev/rmt/3mn status
Drive: HP Ultrium 4-SCSI
Format:
Status: Tape media is not present
File: 0
Block: 0
# tar cvf /dev/rmt/3mn /test
tar: cannot open /dev/rmt/3mn
#

Please update me what's wrong here??

Nazmul.
Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi Sujit,

output here...


# kcmodule | grep -i stape
estape static best
stape static best
# kcmodule | grep -i schgr
eschgr static best
schgr static best

Nazmul
Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi Torsten,

# ll /dev/rmt
total 0
crw-rw-rw- 2 bin bin 205 0x070000 Oct 22 05:20 0m
crw-rw-rw- 2 bin bin 205 0x070080 Oct 22 05:20 0mb
crw-rw-rw- 2 bin bin 205 0x070040 Oct 22 05:20 0mn
crw-rw-rw- 2 bin bin 205 0x0700c0 Oct 22 05:20 0mnb
crw-rw-rw- 2 bin bin 205 0x080000 Oct 22 05:20 1m
crw-rw-rw- 2 bin bin 205 0x080080 Oct 22 05:20 1mb
crw-rw-rw- 2 bin bin 205 0x080040 Oct 22 05:20 1mn
crw-rw-rw- 2 bin bin 205 0x0800c0 Oct 22 05:20 1mnb
crw-rw-rw- 2 bin bin 205 0x0f0000 Oct 22 05:20 2m
crw-rw-rw- 2 bin bin 205 0x0f0080 Oct 22 05:20 2mb
crw-rw-rw- 2 bin bin 205 0x0f0040 Oct 22 05:20 2mn
crw-rw-rw- 2 bin bin 205 0x0f00c0 Oct 22 05:20 2mnb
crw-rw-rw- 2 bin bin 205 0x100000 Oct 22 05:20 3m
crw-rw-rw- 2 bin bin 205 0x100080 Oct 22 05:20 3mb
crw-rw-rw- 2 bin bin 205 0x100040 Oct 22 05:20 3mn
crw-rw-rw- 2 bin bin 205 0x1000c0 Oct 22 05:20 3mnb
crw-rw-rw- 2 bin bin 205 0x0f0000 Oct 22 05:20 c15t0d0BEST
crw-rw-rw- 2 bin bin 205 0x0f0080 Oct 22 05:20 c15t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x0f0040 Oct 22 05:20 c15t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x0f00c0 Oct 22 05:20 c15t0d0BESTnb
crw-rw-rw- 2 bin bin 205 0x100000 Oct 22 05:20 c16t0d0BEST
crw-rw-rw- 2 bin bin 205 0x100080 Oct 22 05:20 c16t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x100040 Oct 22 05:20 c16t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x1000c0 Oct 22 05:20 c16t0d0BESTnb
crw-rw-rw- 2 bin bin 205 0x070000 Oct 22 05:20 c7t0d0BEST
crw-rw-rw- 2 bin bin 205 0x070080 Oct 22 05:20 c7t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x070040 Oct 22 05:20 c7t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x0700c0 Oct 22 05:20 c7t0d0BESTnb
crw-rw-rw- 2 bin bin 205 0x080000 Oct 22 05:20 c8t0d0BEST
crw-rw-rw- 2 bin bin 205 0x080080 Oct 22 05:20 c8t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x080040 Oct 22 05:20 c8t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x0800c0 Oct 22 05:20 c8t0d0BESTnb
#


Can u tall me how can I install single patch?
I can install Patch deport.

Nazmul
OldSchool
Honored Contributor

Re: backup problem on tape library

the "single" patch will be a depot file. installation doesn't vary.
Johnson Punniyalingam
Honored Contributor

Re: backup problem on tape library

Hi Hassan,

>>Can u tall me how can I install single patch?
I can install Patch deport <<

Yes, You can follow

step1:- ftp the patch files to /tmp/PHSS_3XXX
step2:- cd /tmp/PHSS_3XXX
step3:- sh PHSS_3XXX
this will extract the depot.files
step4:- swinstall -s /tmp/PHSS_3XXX.depot

Thanks,
Johnson

Problems are common to all, but attitude makes the difference
Torsten.
Acclaimed Contributor

Re: backup problem on tape library

>> Status: Tape media is not present !!!

Without a tape in drive you cannot backup!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Md. Farhan A Azam
Trusted Contributor

Re: backup problem on tape library

Hi Nazmul,

You r trying to take backup of data on Tape Library through "fbackup" command.

Now,
1).Have you inserted the media into the LTO, if yes how, because the media will be formatted and loaded by the auto loader.

2). Are you using Data Protector in your enviorenment.

3). What is the model of Tape Library.
Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi,

Thanks,

1. Yes, I have insert the Tape into the LTO by using web base utility.
2. No, there is no Data protector software.
3. MSL4048 2 LTO-4 Ultium 1840 FT TP Library.

Nazmul.
Md. Nazmul Hassan
Occasional Advisor

Re: backup problem on tape library

Hi Johnson,

I have try through ur process but i am fail to install.
Is there any other process.

Nazmul.
sujit kumar singh
Honored Contributor

Re: backup problem on tape library

hi nazmul,


just to make the things clear....


1) after u loaded thetape into the drive manually just run the following coammnds to check that the media is present in the drive that u will use for the backup.

say u load a tape in the drive.

after that

#mt -t /dev/rmt/3mn rewind
#mt -t /dev/rmt/3mn status


if the status shows that the media is online, just try a simple tar Backup a small one and see what happens.


#tar cvf /dev/rmt/3mn /tmp


ans see that ur tar backup is OK aor not atleast.


Regards
Sujit
sujit kumar singh
Honored Contributor

Re: backup problem on tape library

hi


as far installing a single patch is concerned like the patch Torsten has mentioned.


just click on the link that Torsten Mentioned andselest and download that patch


click on the "Expand to see donload Option:"
and choose as a gzip package.

then download, this shall get downloaded a .tgz file.

make a directory say patch inside /tmp on the server.
ftp to the server in binary mode and put this file in say /tmp/patch directory.

then
on the server:

logon as root.

# pwd
/tmp/patch
#
#
# gunzip hpux__11.11_01170743.tgz
# ll
total 1552
-rw-r--r-- 1 root sys 790016 Jan 17 13:17 hpux__11.11_01170743.tar
# tar vxf hpux__11.11_01170743.tar
x patch_manifest, 90 bytes, 1 tape blocks
x README_hp-ux, 1779 bytes, 4 tape blocks
x create_depot_hpux.11.11, 5761 bytes, 12 tape blocks
x PHCO_38496, 777772 bytes, 1520 tape blocks
# ll
total 3120
-rw-r--r-- 1 21164 12753 777772 Oct 20 09:48 PHCO_38496
-rw-r--r-- 1 21164 12753 1779 Jan 13 18:14 README_hp-ux
-rwxr-xr-x 1 21164 12753 5761 Jan 17 00:45 create_depot_hpux.11.11
-rw-r--r-- 1 root sys 790016 Jan 17 13:17 hpux__11.11_01170743.tar
-rw-r--r-- 1 21164 12753 90 Jan 17 00:45 patch_manifest

# sh create_depot_hpux.11.11



this will create a diretory that is /tmp/patch/depot


then do a simple


#swinstall -s /tmp/patch/depot


u can install the patch.


Regards
Sujit