xref: /netbsd-src/share/man/man4/man4.vax/hp.4 (revision cda4f8f6ee55684e8d311b86c99ea59191e6b74f)
1.\" Copyright (c) 1991, 1993, 19801988
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"     @(#)hp.4	8.1 (Berkeley) 6/5/93
33.\"
34.Dd June 5, 1993
35.Dt HP 4 vax
36.Os BSD 4
37.Sh NAME
38.Nm hp
39.Nd
40.Tn MASSBUS
41disk interface
42.Sh SYNOPSIS
43.Cd "disk hp0 at mba0 drive 0"
44.Sh DESCRIPTION
45The
46.Nm hp
47driver
48is a generic Massbus disk driver which handles both the standard
49.Tn DEC
50controllers and the Emulex
51.Tn SC750
52and
53.Tn SC780
54controllers.
55It is typical of a block-device disk driver; block
56.Tn I/O
57is
58described in
59.Xr physio 4 .
60.Pp
61The script
62.Xr MAKEDEV 8
63should be used to create the special files; if a special file
64needs to be created by hand consult
65.Xr mknod 8 .
66It is recommended as a security precaution to not create special files
67for devices which may never be installed.
68.Pp
69The first sector of each disk contains both a first-stage bootstrap program
70and a disk label containing geometry information and partition layouts (see
71.Xr disklabel 5 .
72This sector is normally write-protected, and disk-to-disk copies should
73avoid copying this sector.
74The label may be updated with
75.Xr disklabel 8 ,
76which can also be used to write-enable and write-disable the sector.
77The next 15 sectors contain a second-stage bootstrap program.
78.Sh DISK SUPPORT
79This driver handles both standard
80.Tn DEC
81controllers and Emulex
82.Tn SC750
83and
84.Tn SC780
85controllers.
86During autoconfiguration or whenever a drive comes on line for the first time,
87or when a drive is opened after all partitions are closed,
88the first sector of the drive is examined for a disk label.
89If a label is found, the geometry of the drive and the partition tables
90are taken from it.
91If no label is found,
92standard
93.Tn DEC
94drive types are
95recognized according to the
96.Tn MASSBUS
97drive type register,
98and default partitions are used.
99For the Emulex controller the drive type register should be configured
100to indicate the drive is an
101.Tn RM02 .
102When this is encountered,
103the driver checks the holding register to find out
104the disk geometry and, based on this information, decides what
105the drive type is.
106.Pp
107Special file names begin with
108.Sq Li hp
109and
110.Sq Li rhp
111for the block and character files respectively. The second
112component of the name, a drive unit number in the range of zero to
113seven, is represented by a
114.Sq Li ?
115in the disk layouts below.
116The last component is the file system partition
117designated
118by a letter from
119.Sq Li a
120to
121.Sq Li h
122and also corresponds to a minor device number set: zero to seven,
123eight to 15, 16 to 23 and so forth for drive zero, drive two and drive
124three respectively.
125The following disks are supported:
126.Tn RM03 ,
127.Tn RM05 ,
128.Tn RP06 ,
129.Tn RM80 ,
130.Tn RP05 ,
131.Tn RP07 ,
132.Tn ML11A ,
133.Tn ML11B ,
134.Tn CDC 9775 ,
135.Tn CDC 9730 ,
136.Tn AMPEX
137Capricorn (32 sectors/track),
138.Tn FUJITSU
139Eagle (48 sectors/track),
140.Tn FUJITSU 2361,
141and
142.Tn AMPEX
1439300.  The default layout and size (in sectors) of the
144partitions for these drives:
145.Bl -column header diskx undefined length
146.Tn RM03 No partitions
147.Sy	disk	start	length	cyls
148	hp?a	0	15884	0-99
149	hp?b	16000	33440	100-309
150	hp?c	0	131680	0-822
151	hp?d	49600	15884	309-408
152	hp?e	65440	55936	409-758
153	hp?f	121440	10080	759-822
154	hp?g	49600	82080	309-822
155
156.Tn RM05 No partitions
157.Sy	disk	start	length	cyls
158	hp?a	0	15884	0-26
159	hp?b	16416	33440	27-81
160	hp?c	0	500384	0-822
161	hp?d	341696	15884	562-588
162	hp?e	358112	55936	589-680
163	hp?f	414048	86176	681-822
164	hp?g	341696	158528	562-822
165	hp?h	49856	291346	82-561
166
167.Tn RP06 No partitions
168.Sy	disk	start	length	cyls
169	hp?a	0	15884	0-37
170	hp?b	15884	33440	38-117
171	hp?c	0	340670	0-814
172	hp?d	49324	15884	118-155
173	hp?e	65208	55936	156-289
174	hp?f	121220	219296	290-814
175	hp?g	49324	291192	118-814
176
177.Tn RM80 No partitions
178.Sy	disk	start	length	cyls
179	hp?a	0	15884	0-36
180	hp?b	16058	33440	37-114
181	hp?c	0	242606	0-558
182	hp?d	49910	15884	115-151
183	hp?e	68096	55936	152-280
184	hp?f	125888	120466	281-558
185	hp?g	49910	192510	115-558
186
187.Tn RP05 No partitions
188.Sy	disk	start	length	cyls
189	hp?a	0	15884	0-37
190	hp?b	15884	33440	38-117
191	hp?c	0	171798	0-410
192	hp?d	2242	15884	118-155
193	hp?e	65208	55936	156-289
194	hp?f	121220	50424	290-410
195	hp?g	2242	122320	118-410
196
197.Tn RP07 No partitions
198.Sy	disk	start	length	cyls
199	hp?a	0	15884	0-9
200	hp?b	16000	66880	10-51
201	hp?c	0	1008000	0-629
202	hp?d	376000	15884	235-244
203	hp?e	392000	307200	245-436
204	hp?f	699200	308600	437-629
205	hp?g	376000	631800	235-629
206	hp?h	83200	291346	52-234
207
208.Tn CDC No 9775 partitions
209.Sy	disk	start	length	cyls
210	hp?a	0	15884	0-12
211	hp?b	16640	66880	13-65
212	hp?c	0	1077760	0-841
213	hp?d	376320	15884	294-306
214	hp?e	392960	307200	307-546
215	hp?f	700160	377440	547-841
216	hp?g	376320	701280	294-841
217	hp?h	84480	291346	66-293
218
219.Tn CDC No 9730 partitions
220.Sy	disk	start	length	cyls
221	hp?a	0	15884	0-49
222	hp?b	16000	33440	50-154
223	hp?c	0	263360	0-822
224	hp?d	49600	15884	155-204
225	hp?e	65600	55936	205-379
226	hp?f	121600	141600	380-822
227	hp?g	49600	213600	155-822
228
229.Tn AMPEX No Capricorn partitions
230.Sy	disk	start	length	cyls
231	hp?a	0	15884	0-31
232	hp?b	16384	33440	32-97
233	hp?c	0	524288	0-1023
234	hp?d	342016	15884	668-699
235	hp?e	358400	55936	700-809
236	hp?f	414720	109408	810-1023
237	hp?g	342016	182112	668-1023
238	hp?h	50176	291346	98-667
239
240.Tn FUJITSU No Eagle partitions
241.Sy	disk	start	length	cyls
242	hp?a	0	15884	0-16
243	hp?b	16320	66880	17-86
244	hp?c	0	808320	0-841
245	hp?d	375360	15884	391-407
246	hp?e	391680	55936	408-727
247	hp?f	698880	109248	728-841
248	hp?g	375360	432768	391-841
249	hp?h	83520	291346	87-390
250
251.Tn FUJITSU No 2361 partitions
252.Sy	disk	start	length	cyls
253	hp?a	0	15884	0-12
254	hp?b	16640	66880	13-65
255	hp?c	0	1077760	0-841
256	hp?d	376320	15884	294-306
257	hp?e	392960	307200	307-546
258	hp?f	700160	377408	547-841
259	hp?g	363520	701248	294-841
260	hp?h	84480	291346	66-293
261
262.Tn AMPEX No 9300 partitions
263.Sy	disk	start	length	cyl
264	hp?a	0	15884	0-26
265	hp?b	16416	33440	27-81
266	hp?c	0	495520	0-814
267	hp?d	341696	15884	562-588
268	hp?e	358112	55936	589-680
269	hp?f	414048	81312	681-814
270	hp?g	341696	153664	562-814
271	hp?h	49856	291346	82-561
272.El
273.Pp
274The hp?a partition is normally used for the root file system,
275the hp?b partition as a paging area,
276and the hp?c partition for pack-pack copying (it maps the entire disk).
277On disks larger than about 205 Megabytes, the hp?h partition
278is inserted prior to the hp?d or hp?g partition;
279the hp?g partition then maps the remainder of the pack.
280All disk partition tables are calculated using the
281.Xr diskpart 8
282program.
283.Pp
284.Sh FILES
285.Bl -tag -width /dev/rhp[0-7][a-h] -compact
286.It Pa /dev/hp[0-7][a-h]
287block files
288.It Pa /dev/rhp[0-7][a-h]
289raw files
290.El
291.Sh DIAGNOSTICS
292.Bl -diag
293.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."
294An unrecoverable error occurred during transfer of the specified
295filesystem block number,
296which is a logical block number on the indicated partition.
297If the transfer involved multiple blocks, the block range is printed as well.
298The parenthesized fields list the actual disk sector number
299relative to the beginning of the drive,
300as well as the cylinder, track and sector number of the block.
301The
302.Tn MASSBUS
303status register is printed in hexadecimal and
304with the error bits decoded if any error bits other than
305.Tn MBEXC
306and
307.Tn DTABT
308are set.  In any case the contents of the two error registers are also printed
309in octal and symbolically with bits decoded.
310(Note that er2 is what old
311.Tn RP06
312manuals would call
313.Tn RPER3 ;
314the terminology
315is that of the
316.Tn RM
317disks).
318The error was either unrecoverable, or a large number of retry attempts
319(including offset positioning and drive recalibration) could not
320recover the error.
321.Pp
322.It hp%d: write locked.
323The write protect switch was set on the drive
324when a write was attempted.  The write operation is not recoverable.
325.Pp
326.It hp%d: not ready .
327The drive was spun down or off line when it was
328accessed.  The
329.Tn I/O
330operation is not recoverable.
331.Pp
332.It "hp%d%c: soft ecc reading fsbn %d [of %d-%d] (hp%d bn %d cn %d tn %d sn %d)."
333A recoverable
334.Tn ECC
335error occurred on the
336specified sector of the specified disk partition.
337If the transfer involved multiple blocks, the block range is printed as well.
338The parenthesized fields list the actual disk sector number
339relative to the beginning of the drive,
340as well as the cylinder, track and sector number of the block.
341This happens normally
342a few times a week.  If it happens more frequently than
343this the sectors where the errors are occurring should be checked to see
344if certain cylinders on the pack, spots on the carriage of the drive
345or heads are indicated.
346.Pp
347.It hp%d: 9775 (direct).
348.It hp%d: 9730 (direct).
349.It hp%d: 9300.
350.It hp%d: 9762.
351.It hp%d: capricorn.
352.It hp%d: eagle.
353.It hp%d: 2361.
354.It hp%d: ntracks %d, nsectors %d: unknown device.
355During autoconfiguration one of the above messages may appear
356on the console indicating the appropriate drive type was recognized.
357The last message indicates the drive is of a unknown type.
358In this case, the correct geometry is set, and one partition is created
359that contains the entire drive.
360.Pp
361.El
362.Sh SEE ALSO
363.Xr physio 4 ,
364.Xr up 4 ,
365.Xr disklabel 5 ,
366.Xr MAKEDEV 8
367.Xr disklabel 8
368.Xr mknod 8
369.Sh HISTORY
370The
371.Nm
372driver appeared in
373.Bx 4.0 .
374.Sh BUGS
375.Tn DEC Ns -standard
376error logging should be supported.
377.Pp
378A program to analyze the logged error information (even in its
379present reduced form) is needed.
380