BSD 4_2 development
[unix-history] / usr / man / man4 / up.4
CommitLineData
7c6f249e
C
1.TH UP 4 "27 July 1983"
2.UC 4
3.SH NAME
4up \- unibus storage module controller/drives
5.SH SYNOPSIS
6.B "controller sc0 at uba? csr 0176700 vector upintr
7.br
8.B "disk up0 at sc0 drive 0"
9.SH DESCRIPTION
10This is a generic UNIBUS storage module disk driver.
11It is specifically designed to work with the Emulex SC-21 controller.
12It can be easily
13adapted to other controllers (although bootstrapping will
14not necessarily be directly possible.)
15.PP
16Files with minor device numbers 0 through 7 refer to various portions
17of drive 0;
18minor devices 8 through 15 refer to drive 1, etc.
19The standard device names begin with ``up'' followed by
20the drive number and then a letter a-h for partitions 0-7 respectively.
21The character ? stands here for a drive number in the range 0-7.
22.PP
23The block files access the disk via the system's normal
24buffering mechanism and may be read and written without regard to
25physical disk records. There is also a `raw' interface
26which provides for direct transmission between the disk
27and the user's read or write buffer.
28A single read or write call results in exactly one I/O operation
29and therefore raw I/O is considerably more efficient when
30many words are transmitted. The names of the raw files
31conventionally begin with an extra `r.'
32.PP
33In raw I/O counts should be a multiple of 512 bytes (a disk sector).
34Likewise
35.I seek
36calls should specify a multiple of 512 bytes.
37.SH "DISK SUPPORT"
38The driver interrogates the controller's holding register
39to determine the type of drive attached. The driver recognizes
40four different drives: AMPEX 9300, CDC 9766, AMPEX Capricorn,
41and FUJITSU 160.
42The origin and size of the pseudo-disks on each drive are
43as follows:
44.PP
45.nf
46.ta .5i +\w'000000 'u +\w'000000 'u +\w'000000 'u
47CDC 9766 300M drive partitions:
48 disk start length cyl
49 up?a 0 15884 0-26
50 up?b 16416 33440 27-81
51 up?c 0 500384 0-822
52 up?d 341696 15884 562-588
53 up?e 358112 55936 589-680
54 up?f 414048 861760 681-822
55 up?g 341696 158528 562-822
56 up?h 49856 291346 82-561
57.PP
58AMPEX 9300 300M drive partitions:
59 disk start length cyl
60 up?a 0 15884 0-26
61 up?b 16416 33440 27-81
62 up?c 0 495520 0-814
63 up?d 341696 15884 562-588
64 up?e 358112 55936 589-680
65 up?f 414048 81312 681-814
66 up?g 341696 153664 562-814
67 up?h 49856 291346 82-561
68.PP
69AMPEX Capricorn 330M drive partitions:
70 disk start length cyl
71 hp?a 0 15884 0-31
72 hp?b 16384 33440 32-97
73 hp?c 0 524288 0-1023
74 hp?d 342016 15884 668-699
75 hp?e 358400 55936 700-809
76 hp?f 414720 109408 810-1023
77 hp?g 342016 182112 668-1023
78 hp?h 50176 291346 98-667
79.PP
80FUJITSU 160M drive partitions:
81 disk start length cyl
82 up?a 0 15884 0-49
83 up?b 16000 33440 50-154
84 up?c 0 263360 0-822
85 up?d 49600 15884 155-204
86 up?e 65600 55936 205-379
87 up?f 121600 141600 380-822
88 up?g 49600 213600 155-822
89.DT
90.fi
91.PP
92It is unwise for all of these files to be present in one installation,
93since there is overlap in addresses and protection becomes
94a sticky matter.
95The up?a partition is normally used for the root file system,
96the up?b partition as a paging area,
97and the up?c partition for pack-pack copying (it maps the entire disk).
98On 160M drives the up?g partition maps the rest of the pack.
99On other drives both up?g and up?h are used to map the
100remaining cylinders.
101.SH FILES
102/dev/up[0-7][a-h] block files
103.br
104/dev/rup[0-7][a-h] raw files
105.SH SEE ALSO
106hk(4), hp(4), uda(4)
107.SH DIAGNOSTICS
108\fBup%d%c: hard error sn%d cs2=%b er1=%b er2=%b\fR. An unrecoverable
109error occurred during transfer of the specified sector in the specified
110disk partition.
111The contents of the cs2, er1 and er2 registers are printed
112in octal and symbolically with bits decoded.
113The error was either unrecoverable, or a large number of retry attempts
114(including offset positioning and drive recalibration) could not
115recover the error.
116.PP
117\fBup%d: write locked\fR. The write protect switch was set on the drive
118when a write was attempted. The write operation is not recoverable.
119.PP
120\fBup%d: not ready\fR. The drive was spun down or off line when it was
121accessed. The i/o operation is not recoverable.
122.PP
123\fBup%d: not ready (flakey)\fR. The drive was not ready, but after
124printing the message about being not ready (which takes a fraction
125of a second) was ready. The operation is recovered if no further
126errors occur.
127.PP
128\fBup%d%c: soft ecc sn%d\fR. A recoverable ECC error occurred on the
129specified sector of the specified disk partition.
130This happens normally
131a few times a week. If it happens more frequently than
132this the sectors where the errors are occurring should be checked to see
133if certain cylinders on the pack, spots on the carriage of the drive
134or heads are indicated.
135.PP
136\fBsc%d: lost interrupt\fR. A timer watching the controller detecting
137no interrupt for an extended period while an operation was outstanding.
138This indicates a hardware or software failure. There is currently a
139hardware/software problem with spinning down drives while they are
140being accessed which causes this error to occur.
141The error causes a UNIBUS reset, and retry of the pending operations.
142If the controller continues to lose interrupts, this error will recur
143a few seconds later.
144.SH BUGS
145In raw I/O
146.I read
147and
148.IR write (2)
149truncate file offsets to 512-byte block boundaries,
150and
151.I write
152scribbles on the tail of incomplete blocks.
153Thus,
154in programs that are likely to access raw devices,
155.I read, write
156and
157.IR lseek (2)
158should always deal in 512-byte multiples.
159.PP
160DEC-standard error logging should be supported.
161.PP
162A program to analyze the logged error information (even in its
163present reduced form) is needed.
164.PP
165The partition tables for the file systems should be read off of each
166pack, as they are never quite what any single installation would prefer,
167and this would make packs more portable.