xref: /csrg-svn/share/man/man4/man4.vax/hk.4 (revision 61598)
1*61598Sbostic.\" Copyright (c) 1980, 1991, 1993
2*61598Sbostic.\"	The Regents of the University of California.  All rights reserved.
320662Smckusick.\"
447674Scael.\" %sccs.include.redist.man%
520662Smckusick.\"
6*61598Sbostic.\"     @(#)hk.4	8.1 (Berkeley) 06/05/93
747674Scael.\"
847674Scael.Dd
947674Scael.Dt HK 4
1047674Scael.Os BSD 4
1147674Scael.Sh NAME
1247674Scael.Nm hk
1347674Scael.Nd
1447674Scael.Tn RK6-11 Ns / Tn RK06
1547674Scaeland
1647674Scael.Tn RK07
1747674Scaeldisk interface
1847674Scael.Sh SYNOPSIS
1947674Scael.Cd "controller hk0 at uba? csr 0177440 vector rkintr"
2047674Scael.Cd "disk rk0 at hk0 drive 0"
2147674Scael.Sh DESCRIPTION
2247674ScaelThe
2347674Scael.Nm hk
2447674Scaeldriver
2547674Scaelis a typical block-device disk driver; block device
2647674Scael.Tn I/O
2747674Scaelis
2847674Scaeldescribed in
2947674Scael.Xr physio 4 .
3047674Scael.Pp
3147674ScaelThe script
3247674Scael.Xr MAKEDEV 8
3347674Scaelshould be used to create the special files; if a special file
3447674Scaelneeds to be created by hand consult
3547674Scael.Xr mknod 8 .
3647674Scael.Sh DISK SUPPORT
3747674ScaelSpecial file names begin with
3847674Scael.Sq Li hk
3947674Scaeland
4047674Scael.Sq Li rhk
4147674Scaelfor the block and character files respectively. The second
4247674Scaelcomponent of the name, a drive unit number in the range of zero to
4347674Scaelseven, is represented by a
4447674Scael.Sq Li ?
4547674Scaelin the disk layouts below. The last component is the file system partition
4647674Scaelwhich is designated
4747674Scaelby a letter from
4847674Scael.Sq Li a
4947674Scaelto
5047674Scael.Sq Li h .
5147674Scaeland
5247674Scaelcorresponds to a minor device number set: zero to seven,
5347674Scaeleight to 15, 16 to 23 and so forth for drive zero, drive two and drive
5447674Scaelthree respectively.
5547674ScaelThe location and size (in sectors) of the
5647674Scaelpartitions for the
5747674Scael.Tn RK06
5847674Scaeland
5947674Scael.Tn RK07
6047674Scaeldrives are as follows:
6147674Scael.Bl -column header diskx undefined length
6247674Scael.Tn RK07 No partitions:
6347674Scael.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
7047674Scael
7147674Scael.Tn RK06 No partitions
7247674Scael.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
7647674Scael.El
7747674Scael.Pp
7847674ScaelOn a dual
7947674Scael.Tn RK-07
8047674Scaelsystem
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.
8947674Scael.Sh FILES
9047674Scael.Bl -tag -width /dev/rhk[0-7][a-h] -compact
9147674Scael.It Pa /dev/hk[0-7][a-h]
9247674Scaelblock files
9347674Scael.It Pa /dev/rhk[0-7][a-h]
9447674Scaelraw files
9547674Scael.El
9647674Scael.Sh DIAGNOSTICS
9747674Scael.Bl -diag
9847674Scael.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.
10747674Scael.Pp
10847674Scael.It rk%d: write locked.
10947674ScaelThe write protect switch was set on the drive
11020662Smckusickwhen a write was attempted.  The write operation is not recoverable.
11147674Scael.Pp
11247674Scael.It rk%d: not ready.
11347674ScaelThe drive was spun down or off line when it was
11420662Smckusickaccessed.  The i/o operation is not recoverable.
11547674Scael.Pp
11647674Scael.It rk%d: not ready (came back!).
11747674ScaelThe 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.
12147674Scael.Pp
12247674Scael.It rk%d%c: soft ecc reading fsbn %d[-%d].
12347674ScaelA recoverable
12447674Scael.Tn ECC
12547674Scaelerror 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.
13247674Scael.Pp
13347674Scael.It hk%d: lost interrupt.
13447674ScaelA 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.
13947674ScaelThe error causes a
14047674Scael.Tn UNIBUS
14147674Scaelreset, and retry of the pending operations.
14220662SmckusickIf the controller continues to lose interrupts, this error will recur
14320662Smckusicka few seconds later.
14447674Scael.El
14547674Scael.Sh SEE ALSO
14647674Scael.Xr hp 4 ,
14747674Scael.Xr uda 4 ,
14847674Scael.Xr up 4 ,
14947674Scael.Xr syslogd 8
15047674Scael.Sh HISTORY
15147674ScaelThe
15247674Scael.Nm
15347674Scaeldriver appeared in
15447674Scael.Bx 4.1 .
15547674Scael.Sh BUGS
15647674ScaelThe
15747674Scael.Xr write
15847674Scaelfunction
15920662Smckusickscribbles on the tail of incomplete blocks.
16047674Scael.Pp
16147674Scael.Tn DEC Ns -standard
16247674Scaelerror logging should be supported.
16347674Scael.Pp
16420662SmckusickA program to analyze the logged error information (even in its
16520662Smckusickpresent reduced form) is needed.
16647674Scael.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.
17047674Scael.Pp
17147674ScaelThe
17247674Scael.Tn RK07
17347674Scaelg partition size in rk.c disagrees with that in
17447674Scael.Pa /etc/disktab.
175