Operating System - HP-UX
1826435 Members
3997 Online
109692 Solutions
New Discussion

need help with mknod command with tape library

 
SOLVED
Go to solution
Keith Zuidema_1
Advisor

need help with mknod command with tape library

I am following the document HOW TO CONFIGURE A TAKE LIBRARY IN HP_UX document ID ucr_na-KMNOV_EN010365-1
I am using the sctl driver and I dont understand the mknod command listed.
the ioscan output is

# ioscan -fH 0/7/1/0.22.11
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
ext_bus 13 0/7/1/0.22.11.255.0 fcd_vbus NO_HW INTERFACE FCP Device Interface
target 17 0/7/1/0.22.11.255.0.0 tgt NO_HW DEVICE
autoch 1 0/7/1/0.22.11.255.0.0.1 schgr NO_HW DEVICE HP MSL5000 Series
tape 5 0/7/1/0.22.11.255.0.0.2 stape NO_HW DEVICE COMPAQ SuperDLT1
tape 6 0/7/1/0.22.11.255.0.0.3 stape NO_HW DEVICE COMPAQ SuperDLT1
tape 7 0/7/1/0.22.11.255.0.0.4 stape NO_HW DEVICE COMPAQ SuperDLT1
tape 8 0/7/1/0.22.11.255.0.0.5 stape NO_HW DEVICE COMPAQ SuperDLT1

the output of lsdev -d sctl is

# lsdev -d sctl
Character Block Driver Class
203 -1 sctl ctl

I am not sure what the mknod command would be.
11 REPLIES 11
Tim Nelson
Honored Contributor

Re: need help with mknod command with tape library

Looks like you are 75% of the way there, except the missing/NO_HW.

Once the hardware shows up claimed how about insf -eH 0/7/1/0 to install the device files ?

Re: need help with mknod command with tape library

Thats a pretty old document... you have problems before this though - all your devices are NO_HW which means your system can't see them any more. You'll need to figure out why the host can't see the tape drives before continuuing...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Denver Osborn
Honored Contributor

Re: need help with mknod command with tape library

mknod /dev/your_robot c 203 0x190100

Where the instance number from ext_bus,dec 13, is 19 hex...

to test your device...

mc -p /dev/your_picker -rIDSM

hope this helps,
-denver
Denver Osborn
Honored Contributor

Re: need help with mknod command with tape library

yes, that was stupid. :)

take ext_bus 13 to get d hex for when you create your device special file.

0x0d0100 not 0x19...
Keith Zuidema_1
Advisor

Re: need help with mknod command with tape library

O.K. Thanks all for your help, I got the server to see the drives (wrong setting on the NSR) and I tried the insf -eH 0/7/1. the ioscan now shows

autoch 2 0/7/1/0.22.11.255.0.0.0 schgr CLAIMED DEVICE HP MSL5000 Series
tape 9 0/7/1/0.22.11.255.0.0.1 stape CLAIMED DEVICE COMPAQ SuperDLT1
tape 5 0/7/1/0.22.11.255.0.0.2 stape CLAIMED DEVICE COMPAQ SuperDLT1
tape 6 0/7/1/0.22.11.255.0.0.3 stape CLAIMED DEVICE COMPAQ SuperDLT1
tape 7 0/7/1/0.22.11.255.0.0.4 stape CLAIMED DEVICE COMPAQ SuperDLT1
so I tried the mknod /dev/your_robot c 203 0x0d0100 (I still dont fully understand how this was arrived at)
and then tried the mc -p /dev/your_picker -rIDSM
and I got the error
ERROR: 0x5 Illegal Request : 0x2400 Invalid field in command descriptor block

Torsten.
Acclaimed Contributor

Re: need help with mknod command with tape library

I doubt if you need to do this ...

Do a "insf -e" and you will get a device file for the robot like this:

/dev/rac/c8t0d0

now try mc command with this device file.

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!   
Keith Zuidema_1
Advisor

Re: need help with mknod command with tape library

forgive me, I am new to unix.
I am not sure how to see if the device was recognized as dev/rac/c8t0d0 is there a ioscan switch I need?
Torsten.
Acclaimed Contributor
Solution

Re: need help with mknod command with tape library

Please run this:

# ioscan -fn

and let us see.

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!   
Keith Zuidema_1
Advisor

Re: need help with mknod command with tape library

# ioscan -fn
autoch 2 0/7/1/0.22.11.255.0.0.0 schgr CLAIMED DEVICE HP MSL5000 Series
/dev/rac/c13t0d0
tape 9 0/7/1/0.22.11.255.0.0.1 stape CLAIMED DEVICE COMPAQ SuperDLT1
/dev/rmt/9m /dev/rmt/9mn /dev/rmt/c13t0d1BEST /dev/rmt/c13t0d1BESTn
/dev/rmt/9mb /dev/rmt/9mnb /dev/rmt/c13t0d1BESTb /dev/rmt/c13t0d1BESTnb
tape 5 0/7/1/0.22.11.255.0.0.2 stape CLAIMED DEVICE COMPAQ SuperDLT1
/dev/rmt/5m /dev/rmt/5mn /dev/rmt/c13t0d2BEST /dev/rmt/c13t0d2BESTn
/dev/rmt/5mb /dev/rmt/5mnb /dev/rmt/c13t0d2BESTb /dev/rmt/c13t0d2BESTnb
tape 6 0/7/1/0.22.11.255.0.0.3 stape CLAIMED DEVICE COMPAQ SuperDLT1
/dev/rmt/6m /dev/rmt/6mn /dev/rmt/c13t0d3BEST /dev/rmt/c13t0d3BESTn
/dev/rmt/6mb /dev/rmt/6mnb /dev/rmt/c13t0d3BESTb /dev/rmt/c13t0d3BESTnb
tape 7 0/7/1/0.22.11.255.0.0.4 stape CLAIMED DEVICE COMPAQ SuperDLT1
/dev/rmt/7m /dev/rmt/7mn /dev/rmt/c13t0d4BEST /dev/rmt/c13t0d4BESTn
/dev/rmt/7mb /dev/rmt/7mnb /dev/rmt/c13t0d4BESTb /dev/rmt/c13t0d4BESTnb

I see now where the /dev/rac/c13t0d0 is found, I ran the mc -p /dev/rac/c13t0d0 -rIDSM and the listing of the tapes came up. Thank you torsten fot the help.(points assigned)

now if someone could point me to a document about running a backuop to diffrent tapes, I would be greatfull. :)




Alex Glennie
Honored Contributor

Re: need help with mknod command with tape library

I'd suggest closing this thread, starting a new one with the new topic as it's heading ... it will assist everyone.

try http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1154934

but it depends what you mean by backup and of what.

have a read of the fbackup man page, see http://docs.hp.com/en/IUX/index.html and perhaps look into dataprotector if you have ca$h.

no points this time please.
Keith Zuidema_1
Advisor

Re: need help with mknod command with tape library

Please run this:

# ioscan -fn

and let us see.

I see now where the /dev/rac/c13t0d0 is found, I ran the mc -p /dev/rac/c13t0d0 -rIDSM and the listing of the tapes came up. Thank you torsten fot the help.(points assigned)