Operating System - HP-UX
1834628 Members
2945 Online
110069 Solutions
New Discussion

Re: rebuilding tape drive device files

 
Aaron Sheard
Frequent Advisor

rebuilding tape drive device files

hello ppl; a quick question to refresh my memory. I have an L3000 with 5 lto drives connected over 3 scsi to fiber bridges to 3 fiber cards in the back of the server. I use Veritas netbackup 3.2 with this hardware. The device files seem to be messed up and i remember in the past i used a command to rebuild them. it was 2 commands, one is 'insf -e' but i cant remember the other one. Has anyone had to do this? I'd like to delete the files and rebuild them. at this point, ioscan -fnC tape shows nothing.
"uh, hey... did we get a good backup last night?"
7 REPLIES 7
Mark Grant
Honored Contributor

Re: rebuilding tape drive device files

insf -r -C tape should do the trick or just plain insf -e -H hardware path. Not sure you could use any other command, except perhaps shudown -r 0 :)
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor

Re: rebuilding tape drive device files

Sorry, insf -e -C tape not -r!
Never preceed any demonstration with anything more predictive than "watch this"
Pete Randall
Outstanding Contributor

Re: rebuilding tape drive device files

Aaron,

"insf -e" should be enough. If you want to be specific about the names, I've attached a procedure for creating tape device files.


Pete


Pete
Aaron Sheard
Frequent Advisor

Re: rebuilding tape drive device files

also im getting this message in syslog:

Sep 15 11:16:56 xbak000 vmunix: SCSI: bp: 000000004c104800
Sep 15 11:16:56 vmunix: dev: cd0681c0
Sep 15 11:16:56 vmunix: cdb: 12 01 80 00 ff 00
Sep 15 11:16:56 vmunix: residual: ff
Sep 15 11:16:56 vmunix: status: (400) None -- Incomplete

not sure what it means. all i know is before i turned everything off on saturday i could run ioscan -fnC tape and it would list 5 drives, now it lists none. I remembered this happened once before and i ran insf -e and one other command that i cant remember to recreate the files properly.


"uh, hey... did we get a good backup last night?"
Zigor Buruaga
Esteemed Contributor
Mark Grant
Honored Contributor

Re: rebuilding tape drive device files

Sorry,

Misunderstood here!

If ioscan -fnC tape shows nothing at all then there is something wrong at the SAN level probably. Either a zoning issue in the switches or the scsi-fibre bridges.

What changes did you make before encountering the problem?

Having said this, we have lost tape drives after making changes within the SAN and got them back by kicking our HBA's thus.

fcmsutil /dev/td* devstat all | grep Nport (where td is the your HBA)
This will display port Nport id's

fcmsutil /dev/td* echo XXXX (0x610413 for example)where XXXX is each individual Nport. Find the one which says "Data came back intact" and note it's Nportid

fcmsutil /dev/td* replace_dsk Nport id noted above
Never preceed any demonstration with anything more predictive than "watch this"
leyearn
Regular Advisor

Re: rebuilding tape drive device files

did you have the everything off but rebooted the system?
if it was
you should turn everything on and use
the command:
#insf -e
then you can use the command
#iosan -fnC tape
to check it!