From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,544b18fd407ddd4f X-Google-Attributes: gidf7344,public X-Google-Thread: f9400,544b18fd407ddd4f X-Google-Attributes: gidf9400,public X-Google-Thread: 1164f8,544b18fd407ddd4f X-Google-Attributes: gid1164f8,public From: nmh1@ccdaw1.cc.rl.ac.uk (Nick Hill) Subject: Re: Does anybody know how to use LUNs with SCSI driver (VMS/ULTRIX/OSF) Date: 1995/07/04 Message-ID: <3tavci$vu2@unixfe.rl.ac.uk>#1/1 X-Deja-AN: 105617114 distribution: world references: <3t86oq$6g@misc.twics.com> organization: Rutherford Appleton Labs, Oxon, Uk. reply-to: nmh1@axplr1.rl.ac.uk newsgroups: comp.os.vms,comp.os.ultrix,comp.sys.dec In article <3t86oq$6g@misc.twics.com>, Information Technology writes: >I have a Nakamichi MBR-7 CDROM changer (7 CDs) >it uses LUNs to select the loaded CDs >and comes only with two drivers (Mac+Win) > >I heard from somebody who heard from somebody... :-) >..who managed to get the same kind of drive running >under SunOS by just reconfiguring the kernel. > >On both VMS and ULTRIX I can see the drive but can't mount it. > >could anybody help with advice on how to probably get the CD >changer runnning under VMS, ULTRIX, OSF > >thanks in advance > >B.Kowarsh >Paribas Capital Markets Tokyo >Information Technology Dept >e-mail: paribas@twics.com > > I don't know about ULTRIX but it should be possible on VMS and OSF. 1)VMS. First you need VMS 6.2! With 6.2 VMS can use SCSI LUNS. If the CD is at SCSI id 1 on the first bus for instance you would need dka100, dka101 dka102... upto dka106 where dka100 is id 1 lun0 and dka106 is id 1 lun 6. There is one slight annoyance, autoconfigure will only attach device dka100, the others will need to be attached manually using sysgen or sysman depending if you are on VAX or AXP. 2)OSF. You will need to define the devices for the different LUNS manually as MAKEDEV does not support them. No Kernel reconfig required. The way to define the devices is the same as using an HSZ40 type device as this works by offering devices as LUNs from a SCSI id. Here is a little script I wrote to do this: #!/bin/sh # # make devices for HSZ40 served disks -- MAKEDEV will not do this # # usage hsz bus# target# lun# # # Nick Hill RAL 24/11/94 # usage_error() { echo "Usage: $me bus target lun" >&2 exit 1 } PATH=/sbin:/usr/sbin:/usr/bin:$PATH export PATH me=`basename $0` [ $# -lt 3 ] && usage_error echo "bus is $1" >&2 echo "target is $2" >&2 echo "lun is $3" >&2 bname="/dev/rz`expr $1 '*' 8 + $2`$3" cname="/dev/rrz`expr $1 '*' 8 + $2`$3" minor=`expr $1 '*' 16384 + $2 '*' 1024 + $3 '*' 64` echo "Make HSZ40 devices for $bname and $cname..." for partlet in a b c d e f g h do echo "mknod $bname$partlet b 8 $minor" mknod $bname$partlet b 8 $minor echo "mknod $cname$partlet c 8 $minor" mknod $cname$partlet c 8 $minor minor=`expr $minor + 1` done exit 1 - Nick Hill +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Computing and Information Systems Department Rutherford Appleton Laboratory Chilton Didcot Internet: nmh1@axprl1.rl.ac.uk Oxfordshire Janet: nmh1@uk.ac.rl.axprl1 OX11 0QX DECnet: omni:.uk.ac.rl.axprl1::nmh1 ENGLAND 20054::nmh1 WWW: http://www.cis.rl.ac.uk/people/nmh1/contact.html Tel: +44 (0)1235-445598 Fax: +44 (0)1235-446626 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++