From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d1e7f9f3cbd882f9 X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: HELP! How to create dev files for storgeworks -100304.336@compuserve.com (Claudia Schasiepen) Date: 1995/06/12 Message-ID: <3rig3t$5h9@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 104317375 distribution: world references: <3r7mpm$us@dub-news-svc-6.compuserve.com> organization: Digital Equipment Corporation keywords: dev rz28 reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article <3r7mpm$us@dub-news-svc-6.compuserve.com>, <100304.336@compuserve.com> writes: >Hi, > >does somebody know how to calculate the minor numbers for devices >which are connected to a HSZ40 storage works controller? I'm using >KZTSA-AA as a SCSI adapter. I'm a bit confused with all the different >LUNs ports and SCSI busses! If you have V3.2A (or later) installed use the script /dev/MAKE_RAID_LUNS and don't worry about it. For earlier versions, find one to send you the script since it probably doesn't depend on anything particular to V3.2. For the logical unit 0 devices, just use the usual name: rz#; # = (bus * 8) + target-id For non-LUN 0 devices you want to find a way to include the logical unit in the name without creating names that will conflict with other device names. A common, but slightly broken convention is to use the base drive number and then use a number for the logical unit. For example, the logical units for rz8 become rz80, rz81, etc. Unfortunately, you could have enough SCSI busses on a system to have an rz80, rz81, etc. The naming convention used by the MAKE_RAID_LUNS script is: rz[b-h]#[a-h] where, the first letter after the rz is the logical unit: b = LUN 1 c = LUN 2 etc. You don't need to use A for LUN 0, because that is just the base rz# name. If you need to calculate the minor device numbers: (bus * 16384) + (target * 1024) + (LUN * 64) + partition (This is documented in the SCSI(7) manual page.) >Thanks a lot! > >Claudia > -- Alan Rollow alan@nabeth.cxo.dec.com