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