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

Using MAKEDEV to create tape devs in 4.0G on LUN 1,2

Howard Anderson_2
Frequent Advisor

Using MAKEDEV to create tape devs in 4.0G on LUN 1,2

I am trying to use MAKEDEV to create a set of device special files for a couple of Ultrium drives in Tru64 4.0G. (Old O/S I know, but its all I've got.)

The drives are attached via a Fibre channel router embedded in a tape library.
All of this works fine and presents SCSI ids to the Unix box, but the tape drives are on LUNS 1 and 2, not 0 like I am used to.

I have attached the CAM device list showing the drives, but here is the relevant bit:

Device: Ultrium 2-SCSI Bus: 6, Target: 3, Lun: 1, Type: Sequential Access
Device: Ultrium 2-SCSI Bus: 6, Target: 3, Lun: 2, Type: Sequential Access

If I reboot the server the O/S detects the drives and adds them in correctly, but I don't want to do this on my production system.

So my question is, how do I use MAKEDEV to do this, or do I need to use mknod ??

P.S. scsimgr -scan_all had already detected the drives, but allocated them on the wrong device files, so I deleted them. I want to be able to re-create them with numbers of my choosing, e.g. /dev/nrmt1h not /dev/nrmt3h.
2 REPLIES
Howard Anderson_2
Frequent Advisor

Re: Using MAKEDEV to create tape devs in 4.0G on LUN 1,2

I have now solved this:

The SCSI(7) man page gives details of how to calculate the minor device number and feed this into mknod.

The MAKEDEV script cannot create tape device files for LUNS other than 0.
Howard Anderson_2
Frequent Advisor

Re: Using MAKEDEV to create tape devs in 4.0G on LUN 1,2

See comments above