1*61600Sbostic.\" Copyright (c) 1991, 1993, 19801988 2*61600Sbostic.\" The Regents of the University of California. All rights reserved. 320693Smckusick.\" 447674Scael.\" %sccs.include.redist.man% 520693Smckusick.\" 6*61600Sbostic.\" @(#)up.4 8.1 (Berkeley) 06/05/93 747674Scael.\" 847674Scael.Dd 947674Scael.Dt UP 4 vax 1047674Scael.Os BSD 4 1147674Scael.Sh NAME 1247674Scael.Nm up 1347674Scael.Nd unibus storage module controller/drives 1447674Scael.Sh SYNOPSIS 1547674Scael.Cd "controller sc0 at uba? csr 0176700 vector upintr 1647674Scael.Cd "disk up0 at sc0 drive 0" 1747674Scael.Sh DESCRIPTION 1847674ScaelThis is a generic 1947674Scael.Tn UNIBUS 2047674Scaelstorage module disk driver. 2128242SmckusickIt is specifically designed to work with the 2247674ScaelEmulex 2347674Scael.Tn SC-21 2447674Scaeland 2547674Scael.Tn SC-31 2647674Scaelcontrollers. 2720694SmckusickIt can be easily 2820694Smckusickadapted to other controllers (although bootstrapping will 2947674Scaelnot necessarily be directly possible.) 3047674Scael.Pp 3147674ScaelThe script 3247674Scael.Xr MAKEDEV 8 3347674Scaelshould be used to create the 3447674Scael.Nm up 3547674Scaelspecial files; consult 3647674Scael.Xr mknod 8 3747674Scaelif a special file needs to be made manually. 3847674ScaelIt is recommended as a security precaution to not create special files 3947674Scaelfor devices which may never be installed. 4047674Scael.Sh DISK SUPPORT 4120694SmckusickThe driver interrogates the controller's holding register 4220694Smckusickto determine the type of drive attached. The driver recognizes 4328242Smckusickseven different drives: 4447674Scael.Tn CDC 4547674Scael9762, 4647674Scael.Tn CDC 4747674Scael9766, 4847674Scael.Tn AMPEX DM Ns 980 , 4947674Scael.Tn AMPEX 5047674Scael9300, 5147674Scael.Tn AMPEX 5247674ScaelCapricorn, 5347674Scael.Tn FUJITSU 5447674Scael160, and 5547674Scael.Tn FUJITSU 5647674ScaelEagle 5728242Smckusick(the Eagle is not supported by the SC-21). 5847674Scael.Pp 5947674ScaelSpecial file names begin with 6047674Scael.Sq Li up 6147674Scaeland 6247674Scael.Sq Li rup 6347674Scaelfor the block and character files respectively. The second 6447674Scaelcomponent of the name, a drive unit number in the range of zero to 6547674Scaelseven, is represented by a 6647674Scael.Sq Li ? 6747674Scaelin the disk layouts below. The last component of the name, the 6847674Scaelfile system partition, is 6947674Scaeldesignated by a letter from 7047674Scael.Sq Li a 7147674Scaelto 7247674Scael.Sq Li h 7347674Scaelwhich also corresponds to a minor device number set: zero to seven, 7447674Scaeleight to 15, 16 to 23 and so forth for drive zero, drive two and drive 7547674Scaelthree respectively (see 7647674Scael.Xr physio 4 ) . 7747674ScaelThe location and size (in 512 byte sectors) of the 7847674Scaelpartitions for the above drives: 7947674Scael.Bl -column header diskx undefined length 8047674Scael.Tn CDC No 9762 partitions 8147674Scael.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 8947674Scael 9047674Scael.Tn CDC No 9766 300M drive partitions: 9147674Scael.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 10047674Scael 10147674Scael.Tn AMPEX DM Ns No 980 partitions 10247674Scael.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 11047674Scael 11147674Scael.Tn AMPEX No 9300 300M drive partitions: 11247674Scael.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 12147674Scael 12247674Scael.Tn AMPEX No Capricorn 330M drive partitions: 12347674Scael.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 13247674Scael 13347674Scael.Tn FUJITSU No 160M drive partitions: 13447674Scael.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 14247674Scael 14347674Scael.Tn FUJITSU No Eagle partitions 14447674Scael.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 15347674Scael.El 15447674Scael.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. 16147674Scael.Sh FILES 16247674Scael.Bl -tag -width Pa -compact 16347674Scael.It Pa /dev/up[0-7][a-h] 16447674Scaelblock files 16547674Scael.It Pa /dev/rup[0-7][a-h] 16647674Scaelraw files 16747674Scael.El 16847674Scael.Sh DIAGNOSTICS 16947674Scael.Bl -diag 17047674Scael.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. 17947674Scael.Pp 18047674Scael.It "up%d: write locked." 18147674ScaelThe write protect switch was set on the drive 18220693Smckusickwhen a write was attempted. The write operation is not recoverable. 18347674Scael.Pp 18447674Scael.It "up%d: not ready." 18547674ScaelThe drive was spun down or off line when it was 18620693Smckusickaccessed. The i/o operation is not recoverable. 18747674Scael.Pp 18847674Scael.It "up%d: not ready (flakey)." 18947674ScaelThe 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. 19347674Scael.Pp 19447674Scael.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. 20247674Scael.Pp 20347674Scael.It "sc%d: lost interrupt." 20447674ScaelA 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. 20947674ScaelThe error causes a 21047674Scael.Tn UNIBUS 21147674Scaelreset, and retry of the pending operations. 21220693SmckusickIf the controller continues to lose interrupts, this error will recur 21320693Smckusicka few seconds later. 21447674Scael.El 21547674Scael.Sh SEE ALSO 21647674Scael.Xr hk 4 , 21747674Scael.Xr hp 4 , 21847674Scael.Xr uda 4 21947674Scael.Sh HISTORY 22047674ScaelThe 22147674Scael.Nm up 22247674Scaeldriver appeared in 22347674Scael.Bx 4.0 . 22447674Scael.Sh BUGS 22547674Scael.Pp 22620693SmckusickA program to analyze the logged error information (even in its 22720693Smckusickpresent reduced form) is needed. 22847674Scael.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