1*47674Scael.\" Copyright (c) 1980,1988, 1991 Regents of the University of California. 2*47674Scael.\" All rights reserved. 320693Smckusick.\" 4*47674Scael.\" %sccs.include.redist.man% 520693Smckusick.\" 6*47674Scael.\" @(#)up.4 6.4 (Berkeley) 03/27/91 7*47674Scael.\" 8*47674Scael.Dd 9*47674Scael.Dt UP 4 vax 10*47674Scael.Os BSD 4 11*47674Scael.Sh NAME 12*47674Scael.Nm up 13*47674Scael.Nd unibus storage module controller/drives 14*47674Scael.Sh SYNOPSIS 15*47674Scael.Cd "controller sc0 at uba? csr 0176700 vector upintr 16*47674Scael.Cd "disk up0 at sc0 drive 0" 17*47674Scael.Sh DESCRIPTION 18*47674ScaelThis is a generic 19*47674Scael.Tn UNIBUS 20*47674Scaelstorage module disk driver. 2128242SmckusickIt is specifically designed to work with the 22*47674ScaelEmulex 23*47674Scael.Tn SC-21 24*47674Scaeland 25*47674Scael.Tn SC-31 26*47674Scaelcontrollers. 2720694SmckusickIt can be easily 2820694Smckusickadapted to other controllers (although bootstrapping will 29*47674Scaelnot necessarily be directly possible.) 30*47674Scael.Pp 31*47674ScaelThe script 32*47674Scael.Xr MAKEDEV 8 33*47674Scaelshould be used to create the 34*47674Scael.Nm up 35*47674Scaelspecial files; consult 36*47674Scael.Xr mknod 8 37*47674Scaelif a special file needs to be made manually. 38*47674ScaelIt is recommended as a security precaution to not create special files 39*47674Scaelfor devices which may never be installed. 40*47674Scael.Sh DISK SUPPORT 4120694SmckusickThe driver interrogates the controller's holding register 4220694Smckusickto determine the type of drive attached. The driver recognizes 4328242Smckusickseven different drives: 44*47674Scael.Tn CDC 45*47674Scael9762, 46*47674Scael.Tn CDC 47*47674Scael9766, 48*47674Scael.Tn AMPEX DM Ns 980 , 49*47674Scael.Tn AMPEX 50*47674Scael9300, 51*47674Scael.Tn AMPEX 52*47674ScaelCapricorn, 53*47674Scael.Tn FUJITSU 54*47674Scael160, and 55*47674Scael.Tn FUJITSU 56*47674ScaelEagle 5728242Smckusick(the Eagle is not supported by the SC-21). 58*47674Scael.Pp 59*47674ScaelSpecial file names begin with 60*47674Scael.Sq Li up 61*47674Scaeland 62*47674Scael.Sq Li rup 63*47674Scaelfor the block and character files respectively. The second 64*47674Scaelcomponent of the name, a drive unit number in the range of zero to 65*47674Scaelseven, is represented by a 66*47674Scael.Sq Li ? 67*47674Scaelin the disk layouts below. The last component of the name, the 68*47674Scaelfile system partition, is 69*47674Scaeldesignated by a letter from 70*47674Scael.Sq Li a 71*47674Scaelto 72*47674Scael.Sq Li h 73*47674Scaelwhich also corresponds to a minor device number set: zero to seven, 74*47674Scaeleight to 15, 16 to 23 and so forth for drive zero, drive two and drive 75*47674Scaelthree respectively (see 76*47674Scael.Xr physio 4 ) . 77*47674ScaelThe location and size (in 512 byte sectors) of the 78*47674Scaelpartitions for the above drives: 79*47674Scael.Bl -column header diskx undefined length 80*47674Scael.Tn CDC No 9762 partitions 81*47674Scael.Sy disk start length cyls 8228242Smckusick hp?a 0 15884 0-99 8328242Smckusick hp?b 16000 33440 100-309 8428242Smckusick hp?c 0 131680 0-822 8528242Smckusick hp?d 49600 15884 309-408 8628242Smckusick hp?e 65440 55936 409-758 8728242Smckusick hp?f 121440 10080 759-822 8828242Smckusick hp?g 49600 82080 309-822 89*47674Scael 90*47674Scael.Tn CDC No 9766 300M drive partitions: 91*47674Scael.Sy disk start length cyl 9220693Smckusick up?a 0 15884 0-26 9320693Smckusick up?b 16416 33440 27-81 9420694Smckusick up?c 0 500384 0-822 9520694Smckusick up?d 341696 15884 562-588 9620694Smckusick up?e 358112 55936 589-680 9720694Smckusick up?f 414048 861760 681-822 9820694Smckusick up?g 341696 158528 562-822 9920694Smckusick up?h 49856 291346 82-561 100*47674Scael 101*47674Scael.Tn AMPEX DM Ns No 980 partitions 102*47674Scael.Sy disk start length cyls 10328242Smckusick hp?a 0 15884 0-99 10428242Smckusick hp?b 16000 33440 100-309 10528242Smckusick hp?c 0 131680 0-822 10628242Smckusick hp?d 49600 15884 309-408 10728242Smckusick hp?e 65440 55936 409-758 10828242Smckusick hp?f 121440 10080 759-822 10928242Smckusick hp?g 49600 82080 309-822 110*47674Scael 111*47674Scael.Tn AMPEX No 9300 300M drive partitions: 112*47674Scael.Sy disk start length cyl 11320694Smckusick up?a 0 15884 0-26 11420694Smckusick up?b 16416 33440 27-81 11520693Smckusick up?c 0 495520 0-814 11620693Smckusick up?d 341696 15884 562-588 11720693Smckusick up?e 358112 55936 589-680 11820694Smckusick up?f 414048 81312 681-814 11920694Smckusick up?g 341696 153664 562-814 12020693Smckusick up?h 49856 291346 82-561 121*47674Scael 122*47674Scael.Tn AMPEX No Capricorn 330M drive partitions: 123*47674Scael.Sy disk start length cyl 12420694Smckusick hp?a 0 15884 0-31 12520694Smckusick hp?b 16384 33440 32-97 12620694Smckusick hp?c 0 524288 0-1023 12720694Smckusick hp?d 342016 15884 668-699 12820694Smckusick hp?e 358400 55936 700-809 12920694Smckusick hp?f 414720 109408 810-1023 13020694Smckusick hp?g 342016 182112 668-1023 13120694Smckusick hp?h 50176 291346 98-667 132*47674Scael 133*47674Scael.Tn FUJITSU No 160M drive partitions: 134*47674Scael.Sy disk start length cyl 13520693Smckusick up?a 0 15884 0-49 13620693Smckusick up?b 16000 33440 50-154 13720693Smckusick up?c 0 263360 0-822 13820694Smckusick up?d 49600 15884 155-204 13920694Smckusick up?e 65600 55936 205-379 14020694Smckusick up?f 121600 141600 380-822 14120694Smckusick up?g 49600 213600 155-822 142*47674Scael 143*47674Scael.Tn FUJITSU No Eagle partitions 144*47674Scael.Sy disk start length cyls 14528242Smckusick hp?a 0 15884 0-16 14628242Smckusick hp?b 16320 66880 17-86 14728242Smckusick hp?c 0 808320 0-841 14828242Smckusick hp?d 375360 15884 391-407 14928242Smckusick hp?e 391680 55936 408-727 15028242Smckusick hp?f 698880 109248 728-841 15128242Smckusick hp?g 375360 432768 391-841 15228242Smckusick hp?h 83520 291346 87-390 153*47674Scael.El 154*47674Scael.Pp 15520693SmckusickThe up?a partition is normally used for the root file system, 15620693Smckusickthe up?b partition as a paging area, 15720693Smckusickand the up?c partition for pack-pack copying (it maps the entire disk). 15820694SmckusickOn 160M drives the up?g partition maps the rest of the pack. 15920694SmckusickOn other drives both up?g and up?h are used to map the 16020693Smckusickremaining cylinders. 161*47674Scael.Sh FILES 162*47674Scael.Bl -tag -width Pa -compact 163*47674Scael.It Pa /dev/up[0-7][a-h] 164*47674Scaelblock files 165*47674Scael.It Pa /dev/rup[0-7][a-h] 166*47674Scaelraw files 167*47674Scael.El 168*47674Scael.Sh DIAGNOSTICS 169*47674Scael.Bl -diag 170*47674Scael.It "up%d%c: hard error %sing fsbn %d[-%d] cs2=%b er1=%b er2=%b." 17134730SkarelsAn unrecoverable error occurred during transfer of the specified 17234730Skarelsfilesystem block number(s), 17334730Skarelswhich are logical block numbers on the indicated partition. 17420694SmckusickThe contents of the cs2, er1 and er2 registers are printed 17520693Smckusickin octal and symbolically with bits decoded. 17620693SmckusickThe error was either unrecoverable, or a large number of retry attempts 17720693Smckusick(including offset positioning and drive recalibration) could not 17820693Smckusickrecover the error. 179*47674Scael.Pp 180*47674Scael.It "up%d: write locked." 181*47674ScaelThe write protect switch was set on the drive 18220693Smckusickwhen a write was attempted. The write operation is not recoverable. 183*47674Scael.Pp 184*47674Scael.It "up%d: not ready." 185*47674ScaelThe drive was spun down or off line when it was 18620693Smckusickaccessed. The i/o operation is not recoverable. 187*47674Scael.Pp 188*47674Scael.It "up%d: not ready (flakey)." 189*47674ScaelThe drive was not ready, but after 19020693Smckusickprinting the message about being not ready (which takes a fraction 19120693Smckusickof a second) was ready. The operation is recovered if no further 19220693Smckusickerrors occur. 193*47674Scael.Pp 194*47674Scael.It "up%d%c: soft ecc reading fsbn %d[-%d]." 19534730SkarelsA recoverable ECC error occurred on the 19620694Smckusickspecified sector of the specified disk partition. 19720694SmckusickThis happens normally 19820693Smckusicka few times a week. If it happens more frequently than 19920694Smckusickthis the sectors where the errors are occurring should be checked to see 20020693Smckusickif certain cylinders on the pack, spots on the carriage of the drive 20120693Smckusickor heads are indicated. 202*47674Scael.Pp 203*47674Scael.It "sc%d: lost interrupt." 204*47674ScaelA timer watching the controller detecting 20520693Smckusickno interrupt for an extended period while an operation was outstanding. 20620693SmckusickThis indicates a hardware or software failure. There is currently a 20720693Smckusickhardware/software problem with spinning down drives while they are 20820693Smckusickbeing accessed which causes this error to occur. 209*47674ScaelThe error causes a 210*47674Scael.Tn UNIBUS 211*47674Scaelreset, and retry of the pending operations. 21220693SmckusickIf the controller continues to lose interrupts, this error will recur 21320693Smckusicka few seconds later. 214*47674Scael.El 215*47674Scael.Sh SEE ALSO 216*47674Scael.Xr hk 4 , 217*47674Scael.Xr hp 4 , 218*47674Scael.Xr uda 4 219*47674Scael.Sh HISTORY 220*47674ScaelThe 221*47674Scael.Nm up 222*47674Scaeldriver appeared in 223*47674Scael.Bx 4.0 . 224*47674Scael.Sh BUGS 225*47674Scael.Pp 22620693SmckusickA program to analyze the logged error information (even in its 22720693Smckusickpresent reduced form) is needed. 228*47674Scael.Pp 22920693SmckusickThe partition tables for the file systems should be read off of each 23020693Smckusickpack, as they are never quite what any single installation would prefer, 23120693Smckusickand this would make packs more portable. 232