xref: /netbsd-src/share/man/man4/man4.vax/hp.4 (revision 2a399c6883d870daece976daec6ffa7bb7f934ce)
1.\"	$NetBSD: hp.4,v 1.5 1997/10/19 13:00:16 mrg Exp $
2.\"
3.\" Copyright (c) 1991, 1993, 19801988
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"	from: @(#)hp.4	8.1 (Berkeley) 6/5/93
35.\"
36.Dd June 5, 1993
37.Dt HP 4 vax
38.Os BSD 4
39.Sh NAME
40.Nm hp
41.Nd
42.Tn MASSBUS
43disk interface
44.Sh SYNOPSIS
45.Cd "hp0 at mba0 drive 0"
46.Cd "hp* at mba? drive ?"
47.Sh DESCRIPTION
48The
49.Nm hp
50driver
51is a generic Massbus disk driver which handles the standard
52.Tn DEC
53controllers.
54It is typical of a block-device disk driver; block
55.Tn I/O
56is
57described in
58.Xr physio 4 .
59.Pp
60The script
61.Xr MAKEDEV 8
62should be used to create the special files; if a special file
63needs to be created by hand consult
64.Xr mknod 8 .
65It is recommended as a security precaution to not create special files
66for devices which may never be installed.
67.Pp
68The first sector of each disk contains both a first-stage bootstrap program
69and a disk label containing geometry information and partition layouts (see
70.Xr disklabel 5 .
71This sector is normally write-protected, and disk-to-disk copies should
72avoid copying this sector.
73The label may be updated with
74.Xr disklabel 8 ,
75which can also be used to write-enable and write-disable the sector.
76The next 15 sectors contain a second-stage bootstrap program.
77.Sh DISK SUPPORT
78During autoconfiguration or whenever a drive comes on line for the first time,
79or when a drive is opened after all partitions are closed,
80the first sector of the drive is examined for a disk label.
81If a label is found, the geometry of the drive and the partition tables
82are taken from it.
83If no label is found, a fake label is created by the driver, enough
84so that a real label can be written.
85.Pp
86The hp?a partition is normally used for the root file system,
87the hp?b partition as a paging area,
88and the hp?c partition for pack-pack copying (it maps the entire disk).
89On disks larger than about 205 Megabytes, the hp?h partition
90is inserted prior to the hp?d or hp?g partition;
91the hp?g partition then maps the remainder of the pack.
92.Pp
93.Sh FILES
94.Bl -tag -width /dev/rhp[0-7][a-h] -compact
95.It Pa /dev/hp[0-7][a-h]
96block files
97.It Pa /dev/rhp[0-7][a-h]
98raw files
99.El
100.Sh DIAGNOSTICS
101.Bl -diag
102.It "hp%d%c: hard error %sing fsbn %d [of %d-%d] (hp%d bn %d cn %d tn %d sn %d) mbsr=%b er1=%b er2=%b."
103An unrecoverable error occurred during transfer of the specified
104filesystem block number,
105which is a logical block number on the indicated partition.
106If the transfer involved multiple blocks, the block range is printed as well.
107The parenthesized fields list the actual disk sector number
108relative to the beginning of the drive,
109as well as the cylinder, track and sector number of the block.
110The
111.Tn MASSBUS
112status register is printed in hexadecimal and
113with the error bits decoded if any error bits other than
114.Tn MBEXC
115and
116.Tn DTABT
117are set.  In any case the contents of the two error registers are also printed
118in octal and symbolically with bits decoded.
119(Note that er2 is what old
120.Tn RP06
121manuals would call
122.Tn RPER3 ;
123the terminology
124is that of the
125.Tn RM
126disks).
127The error was either unrecoverable, or a large number of retry attempts
128(including offset positioning and drive recalibration) could not
129recover the error.
130.Pp
131.It "hp%d%c: soft ecc reading fsbn %d [of %d-%d] (hp%d bn %d cn %d tn %d sn %d)."
132A recoverable
133.Tn ECC
134error occurred on the
135specified sector of the specified disk partition.
136If the transfer involved multiple blocks, the block range is printed as well.
137The parenthesized fields list the actual disk sector number
138relative to the beginning of the drive,
139as well as the cylinder, track and sector number of the block.
140This happens normally
141a few times a week.  If it happens more frequently than
142this the sectors where the errors are occurring should be checked to see
143if certain cylinders on the pack, spots on the carriage of the drive
144or heads are indicated.
145.Pp
146.El
147.Sh SEE ALSO
148.Xr physio 4 ,
149.Xr up 4 ,
150.Xr disklabel 5 ,
151.Xr MAKEDEV 8
152.Xr disklabel 8
153.Xr mknod 8
154.Sh HISTORY
155The
156.Nm
157driver appeared in
158.Bx 4.0 .
159.br
160A new
161.Nm
162driver showed up in NetBSD 1.1A.
163.Sh BUGS
164.Tn DEC Ns -standard
165.Xr bad144 8
166bad-block handling should be used.
167.Pp
168.Tn DEC Ns -standard
169error logging should be supported.
170.Pp
171A program to analyze the logged error information (even in its
172present reduced form) is needed.
173