xref: /csrg-svn/share/man/man4/man4.vax/hk.4 (revision 47674)
1*47674Scael.\" Copyright (c) 1980, 1991 Regents of the University of California.
2*47674Scael.\" All rights reserved.
320662Smckusick.\"
4*47674Scael.\" %sccs.include.redist.man%
520662Smckusick.\"
6*47674Scael.\"     @(#)hk.4	6.4 (Berkeley) 03/27/91
7*47674Scael.\"
8*47674Scael.Dd
9*47674Scael.Dt HK 4
10*47674Scael.Os BSD 4
11*47674Scael.Sh NAME
12*47674Scael.Nm hk
13*47674Scael.Nd
14*47674Scael.Tn RK6-11 Ns / Tn RK06
15*47674Scaeland
16*47674Scael.Tn RK07
17*47674Scaeldisk interface
18*47674Scael.Sh SYNOPSIS
19*47674Scael.Cd "controller hk0 at uba? csr 0177440 vector rkintr"
20*47674Scael.Cd "disk rk0 at hk0 drive 0"
21*47674Scael.Sh DESCRIPTION
22*47674ScaelThe
23*47674Scael.Nm hk
24*47674Scaeldriver
25*47674Scaelis a typical block-device disk driver; block device
26*47674Scael.Tn I/O
27*47674Scaelis
28*47674Scaeldescribed in
29*47674Scael.Xr physio 4 .
30*47674Scael.Pp
31*47674ScaelThe script
32*47674Scael.Xr MAKEDEV 8
33*47674Scaelshould be used to create the special files; if a special file
34*47674Scaelneeds to be created by hand consult
35*47674Scael.Xr mknod 8 .
36*47674Scael.Sh DISK SUPPORT
37*47674ScaelSpecial file names begin with
38*47674Scael.Sq Li hk
39*47674Scaeland
40*47674Scael.Sq Li rhk
41*47674Scaelfor the block and character files respectively. The second
42*47674Scaelcomponent of the name, a drive unit number in the range of zero to
43*47674Scaelseven, is represented by a
44*47674Scael.Sq Li ?
45*47674Scaelin the disk layouts below. The last component is the file system partition
46*47674Scaelwhich is designated
47*47674Scaelby a letter from
48*47674Scael.Sq Li a
49*47674Scaelto
50*47674Scael.Sq Li h .
51*47674Scaeland
52*47674Scaelcorresponds to a minor device number set: zero to seven,
53*47674Scaeleight to 15, 16 to 23 and so forth for drive zero, drive two and drive
54*47674Scaelthree respectively.
55*47674ScaelThe location and size (in sectors) of the
56*47674Scaelpartitions for the
57*47674Scael.Tn RK06
58*47674Scaeland
59*47674Scael.Tn RK07
60*47674Scaeldrives are as follows:
61*47674Scael.Bl -column header diskx undefined length
62*47674Scael.Tn RK07 No partitions:
63*47674Scael.Sy	disk	start	length	cyl
6420662Smckusick	hk?a	0	15884	0-240
6520662Smckusick	hk?b	15906	10032	241-392
6620662Smckusick	hk?c	0	53790	0-814
6728937Smis	hk?d	25938	15884	393-633
6828937Smis	hk?f	41844	11792	634-814
6928937Smis	hk?g	25938	27786	393-813
70*47674Scael
71*47674Scael.Tn RK06 No partitions
72*47674Scael.Sy	disk	start	length	cyl
7320662Smckusick	hk?a	0	15884	0-240
7420662Smckusick	hk?b	15906	11154	241-409
7520662Smckusick	hk?c	0	27126	0-410
76*47674Scael.El
77*47674Scael.Pp
78*47674ScaelOn a dual
79*47674Scael.Tn RK-07
80*47674Scaelsystem
8120662Smckusickpartition hk?a is used
8220662Smckusickfor the root for one drive
8320662Smckusickand partition hk?g for the /usr file system.
8420662SmckusickIf large jobs are to be run using
8520662Smckusickhk?b on both drives as swap area provides a 10Mbyte paging area.
8620662SmckusickOtherwise
8720662Smckusickpartition hk?c on the other drive
8820662Smckusickis used as a single large file system.
89*47674Scael.Sh FILES
90*47674Scael.Bl -tag -width /dev/rhk[0-7][a-h] -compact
91*47674Scael.It Pa /dev/hk[0-7][a-h]
92*47674Scaelblock files
93*47674Scael.It Pa /dev/rhk[0-7][a-h]
94*47674Scaelraw files
95*47674Scael.El
96*47674Scael.Sh DIAGNOSTICS
97*47674Scael.Bl -diag
98*47674Scael.It "hk%d%c: hard error %sing fsbn %d[-%d] cs2=%b ds=%b er=%b."
9934730SkarelsAn unrecoverable error occurred during transfer of the specified
10034730Skarelsfilesystem block number(s),
10134730Skarelswhich are logical block numbers on the indicated partition.
10234730SkarelsThe contents of the cs2, ds and er registers are printed
10320662Smckusickin octal and symbolically with bits decoded.
10420662SmckusickThe error was either unrecoverable, or a large number of retry attempts
10520662Smckusick(including offset positioning and drive recalibration) could not
10620662Smckusickrecover the error.
107*47674Scael.Pp
108*47674Scael.It rk%d: write locked.
109*47674ScaelThe write protect switch was set on the drive
11020662Smckusickwhen a write was attempted.  The write operation is not recoverable.
111*47674Scael.Pp
112*47674Scael.It rk%d: not ready.
113*47674ScaelThe drive was spun down or off line when it was
11420662Smckusickaccessed.  The i/o operation is not recoverable.
115*47674Scael.Pp
116*47674Scael.It rk%d: not ready (came back!).
117*47674ScaelThe drive was not ready, but after
11820662Smckusickprinting the message about being not ready (which takes a fraction
11920662Smckusickof a second) was ready.  The operation is recovered if no further
12020662Smckusickerrors occur.
121*47674Scael.Pp
122*47674Scael.It rk%d%c: soft ecc reading fsbn %d[-%d].
123*47674ScaelA recoverable
124*47674Scael.Tn ECC
125*47674Scaelerror occurred on the
12634730Skarelsspecified sector(s) in the specified disk partition.
12720663SmckusickThis happens normally
12820662Smckusicka few times a week.  If it happens more frequently than
12920663Smckusickthis the sectors where the errors are occurring should be checked to see
13020662Smckusickif certain cylinders on the pack, spots on the carriage of the drive
13120662Smckusickor heads are indicated.
132*47674Scael.Pp
133*47674Scael.It hk%d: lost interrupt.
134*47674ScaelA timer watching the controller detected
13520662Smckusickno interrupt for an extended period while an operation was outstanding.
13620662SmckusickThis indicates a hardware or software failure.  There is currently a
13720662Smckusickhardware/software problem with spinning down drives while they are
13820662Smckusickbeing accessed which causes this error to occur.
139*47674ScaelThe error causes a
140*47674Scael.Tn UNIBUS
141*47674Scaelreset, and retry of the pending operations.
14220662SmckusickIf the controller continues to lose interrupts, this error will recur
14320662Smckusicka few seconds later.
144*47674Scael.El
145*47674Scael.Sh SEE ALSO
146*47674Scael.Xr hp 4 ,
147*47674Scael.Xr uda 4 ,
148*47674Scael.Xr up 4 ,
149*47674Scael.Xr syslogd 8
150*47674Scael.Sh HISTORY
151*47674ScaelThe
152*47674Scael.Nm
153*47674Scaeldriver appeared in
154*47674Scael.Bx 4.1 .
155*47674Scael.Sh BUGS
156*47674ScaelThe
157*47674Scael.Xr write
158*47674Scaelfunction
15920662Smckusickscribbles on the tail of incomplete blocks.
160*47674Scael.Pp
161*47674Scael.Tn DEC Ns -standard
162*47674Scaelerror logging should be supported.
163*47674Scael.Pp
16420662SmckusickA program to analyze the logged error information (even in its
16520662Smckusickpresent reduced form) is needed.
166*47674Scael.Pp
16720662SmckusickThe partition tables for the file systems should be read off of each
16820662Smckusickpack, as they are never quite what any single installation would prefer,
16920662Smckusickand this would make packs more portable.
170*47674Scael.Pp
171*47674ScaelThe
172*47674Scael.Tn RK07
173*47674Scaelg partition size in rk.c disagrees with that in
174*47674Scael.Pa /etc/disktab.
175