From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7a85d3f8f1bab332 X-Google-Attributes: gid1164f8,public From: Jesper Frank Nemholt Subject: Re: Minor number device under Digital Unix Date: 2000/01/07 Message-ID: <38752D36.CA49F206@dassic.com> X-Deja-AN: 569321152 Content-Transfer-Encoding: 7bit References: <38747C45.621CE2C2@syseca.thomson-csf.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: Department of Abuse X-Trace: news.inet.tele.dk 947203496 20183 195.249.165.73 (7 Jan 2000 00:04:56 GMT) Organization: Dassic Mime-Version: 1.0 NNTP-Posting-Date: 7 Jan 2000 00:04:56 GMT Newsgroups: comp.sys.dec Herve Gautier wrote: > > I don't understand how to find a minor number for scsi device under Digital Unix > / Tru64 UNIX. > > The problem is that I can't understand the explication of the rz man page. > > I need to add a new SCSI disk without stop the system. My SCSI adapter supports > the hot plug. I think I should plug the disk, create the devices > in /dev with the correct minor & major number and run a disklabel. > > Someone can help me ? Do a "scu scan edt" to scan for new stuff. Do a "scu show edt" to see what's on the SCSI bus. Your disk should be in the list you get. To play safe you can let scu scan only the bus the disk is on rather than all. Normally it's not an issue. cd to /dev do a ./MAKEDEV rzXY You calculate XY like this : SCSI bus 0, ID 0 -> 7 = rz0 -> rz7 SCSI bus 1, ID 0 -> 7 = rz8 -> rz15 SCSI bus 2, ID 0 -> 7 = rz16 -> rz23 ...and so on, assuming you aren't playing with LUN numbers, or the disk is on a RAID controller. If it's a cluster and the disk is on a shared bus, the SCSI numbers will most likely be renumbered. This is no problem seen from the OS, but if you try to do a real life calculation of the number of SCSI controllers and ID's to get the rz name, you'll get confused. LUN numbers will show up as letters after the rz but before the number. LUN 0 (no LUN) doesn't have a letter (ex. rz129) LUN 1 is b (rzb129), LUN 2 is c (rzc129) and so on. Example from /var/adm/messages (it's a ES40 ASE cluster with HSG80/ESA12000 storage) : Dec 5 15:14:29 subra vmunix: Alpha boot: available memory from 0x65a8000 to 0x13fff0000 Dec 5 15:14:29 subra vmunix: Digital UNIX V4.0F (Rev. 1229); Wed Nov 3 18:57:18 MET 1999 Dec 5 15:14:29 subra vmunix: physical memory = 5120.00 megabytes. Dec 5 15:14:29 subra vmunix: available memory = 5014.29 megabytes. Dec 5 15:14:29 subra vmunix: using 6545 buffers containing 51.13 megabytes of memory Dec 5 15:14:29 subra vmunix: Master cpu at slot 0. Dec 5 15:14:29 subra vmunix: Firmware revision: 5.4-11 Dec 5 15:14:29 subra vmunix: PALcode: Digital UNIX version 1.50-2 Dec 5 15:14:29 subra vmunix: Compaq AlphaServer ES40 Dec 5 15:14:29 subra vmunix: pci1 at nexus Dec 5 15:14:29 subra vmunix: Initializing xcr0. Please wait.... Dec 5 15:14:29 subra vmunix: xcr0 at pci1 slot 1 Dec 5 15:14:29 subra vmunix: re0 at xcr0 unit 0 (unit status = ONLINE, raid level = 1) Dec 5 15:14:29 subra vmunix: (WRITE BACK cache operation SUPPORTED if battery backup enabled) Dec 5 15:14:29 subra vmunix: emx0 at pci1 slot 2 Dec 5 15:14:29 subra vmunix: KGPSA adapter: Driver Rev 1.10 : F/W Rev 2.20X2(1.12) : wwn 1000-0000-c921-26e8 Dec 5 15:14:29 subra vmunix: scsi16 at emx0 slot 0 Dec 5 15:14:29 subra vmunix: rz129 at scsi16 target 1 lun 0 (LID=0) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzb129 at scsi16 target 1 lun 1 (LID=1) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzc129 at scsi16 target 1 lun 2 (LID=2) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzd129 at scsi16 target 1 lun 3 (LID=3) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rze129 at scsi16 target 1 lun 4 (LID=4) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzf129 at scsi16 target 1 lun 5 (LID=5) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzg129 at scsi16 target 1 lun 6 (LID=6) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzh129 at scsi16 target 1 lun 7 (LID=7) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: processor at scsi16 target 2 lun 0 (LID=8) (Tru64 KGPSA 1.10) Dec 5 15:14:29 subra vmunix: processor at scsi16 target 2 lun 7 (LID=15) (ASE AM KGPSA ) Dec 5 15:14:29 subra vmunix: emx1 at pci1 slot 3 Dec 5 15:14:29 subra vmunix: KGPSA adapter: Driver Rev 1.10 : F/W Rev 2.20X2(1.12) : wwn 1000-0000-c921-3324 Dec 5 15:14:29 subra vmunix: scsi17 at emx1 slot 0 Dec 5 15:14:29 subra vmunix: rz136 at scsi17 target 0 lun 0 (LID=16) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzb136 at scsi17 target 0 lun 1 (LID=17) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:29 subra vmunix: rzc136 at scsi17 target 0 lun 2 (LID=18) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: rzd136 at scsi17 target 0 lun 3 (LID=19) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: rze136 at scsi17 target 0 lun 4 (LID=20) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: rzf136 at scsi17 target 0 lun 5 (LID=21) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: rzg136 at scsi17 target 0 lun 6 (LID=22) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: rzh136 at scsi17 target 0 lun 7 (LID=23) (DEC HSG80 V84F) (Wide16) Dec 5 15:14:30 subra vmunix: processor at scsi17 target 1 lun 0 (LID=24) (Tru64 KGPSA 1.10) Dec 5 15:14:30 subra vmunix: processor at scsi17 target 1 lun 7 (LID=31) (ASE AM KGPSA ) Dec 5 15:14:30 subra vmunix: gpc0 at isa0 Dec 5 15:14:30 subra vmunix: pci0 at nexus Dec 5 15:14:30 subra vmunix: comet0 at pci0 slot 1 Dec 5 15:14:30 subra vmunix: fta0 DEC DEFPA FDDI Module, Hardware Revision 1 Dec 5 15:14:30 subra vmunix: fta0 at pci0 slot 2 Dec 5 15:14:30 subra vmunix: fta0: DEC DEFPA (PDQ) FDDI Interface, Hardware address: 00-60-6D-17-A2-8D Dec 5 15:14:30 subra vmunix: fta0: Firmware rev: 3.10 Dec 5 15:14:30 subra vmunix: tu0: DECchip 21143: Revision: 3.0 Dec 5 15:14:30 subra vmunix: tu0: auto negotiation capable device Dec 5 15:14:30 subra vmunix: tu0 at pci0 slot 3 Dec 5 15:14:30 subra vmunix: tu0: DEC TULIP (10/100) Ethernet Interface, hardware address: 08-00-2B-C4-15-E3 Dec 5 15:14:30 subra vmunix: tu0: auto negotiation off: selecting 100BaseTX (UTP) port: full duplex Dec 5 15:14:30 subra vmunix: isa0 at pci0 Dec 5 15:14:30 subra vmunix: ace0 at isa0 Dec 5 15:14:30 subra vmunix: ace1 at isa0 Dec 5 15:14:30 subra vmunix: lp0 at isa0 Dec 5 15:14:30 subra vmunix: fdi0 at isa0 Dec 5 15:14:30 subra vmunix: fd0 at fdi0 unit 0 Dec 5 15:14:30 subra vmunix: ata0 at pci0 slot 15 Dec 5 15:14:30 subra vmunix: ata0: ACER M1543C Dec 5 15:14:30 subra vmunix: scsi2 at ata0 slot 0 Dec 5 15:14:30 subra vmunix: rz16 at scsi2 target 0 lun 0 (LID=32) (COMPAQ CDR-8435 0013) Dec 5 15:14:30 subra vmunix: scsi3 at ata0 slot 1 Dec 5 15:14:30 subra vmunix: usb0 at pci0 slot 19 Dec 5 15:14:30 subra vmunix: Created FRU table binary error log packet Dec 5 15:14:30 subra vmunix: lvm0: configured. Dec 5 15:14:30 subra vmunix: lvm1: configured. Dec 5 15:14:30 subra vmunix: kernel console: comet0 Dec 5 15:14:30 subra vmunix: dli: configured Dec 5 15:14:30 subra vmunix: ATM Subsystem configured with 4 restart threads Dec 5 15:14:30 subra vmunix: ATM IFMP: configured Dec 5 15:14:30 subra vmunix: clubase: configured Dec 5 15:14:30 subra vmunix: ATMUNI: configured Dec 5 15:14:30 subra vmunix: ATMSIG: 3.x (module=uni3x) configured Dec 5 15:14:30 subra vmunix: ILMI: 3.x (module=ilmi) configured Dec 5 15:14:30 subra vmunix: ATM IP: configured Dec 5 15:14:30 subra vmunix: ATM LANE: configured. Dec 5 15:14:30 subra vmunix: ADVFS: using 54548 buffers containing 426.15 megabytes of memory Dec 5 15:14:30 subra vmunix: Starting secondary cpu 1 Dec 5 15:14:30 subra vmunix: Starting secondary cpu 2 Dec 5 15:14:30 subra vmunix: Starting secondary cpu 3 Dec 5 15:14:30 subra vmunix: AM found a host at bus 16 target 2, lun 7 Dec 5 15:14:30 subra vmunix: AM found a host at bus 17 target 1, lun 7 Do a file /dev/rrzXY to se you got the device file created correctly. Then do a disklabel -r rzXY just to see you got the right disk. It shouldn't have a disklabel if it's new. Just to be sure do a disklabel -z on it, especially if it's a used disk and it has a disklabel. The disklabel might be wrong and origin from a stripeset or something. It'll seem to work but it really doesn't. Then do a disklabel -wr -t advfs rzXY AdvFS (or whatever you normally use for default disklabel). Then change the disklabel with disklabel -e rzXY if you need to. The rest of the procedure (ie. putting AdvFS, LSM or UFS on it) is probably wellknown to you. l8r/Jspr