Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: disklabel - how does it know?
Date: 2000/09/21	[thread overview]
Message-ID: <8qdev2$kac$1@mailint03.im.hou.compaq.com> (raw)
In-Reply-To: 8qdd1u$3vv$1@nnrp1.deja.com


In article <8qdd1u$3vv$1@nnrp1.deja.com>, awr@cpu.com writes:
>
>On a client's site, I've been installing new 8 GB disk drives into
>Alpha 255 workstations. When creating the disklabels, I am using the
>command
>
>  disklabel -rwt advfs rz3 RZ40-AS
>
>The command works just fine, even though there is no reference for RZ40
>in the /etc/disktab file. My question is, where is disklabel getting
>the correct information for the RZ40 drive? Is is stored on the drive
>itself? Is that why Compaq recommends this particular drive?

Once upon a time, the disklabel command would lookup the disk type
specified on the command line in /etc/disktab and use the geometry
information provided there.  The partition table would (I believe)
from the disk driver's default.  If a particular entry didn't
exist, the command would use a disk specific ioctl(2) code to
get the geometry claimed by the disk; well behaved SCSI devices
do this (*).

However, keeping /etc/disktab up to date was work.  And, it couldn't
ever describe size and geometry of devices presented through array
controllers.  Eventually, disklabel was changed to go to the disk
ioctl(2) first and then fall back on disktab if that didn't work.
(Actually, it might have done this from the very beginning, I've
never seen the sources).

Around the V4.0 timeframe, it was changed to not even bother
looking up the disk in /etc/disktab.  This caused some pain
for people not using well behaved SCSI disks (IOmega ZIP drives
for example), but most didn't notice.

If it weren't for the fact that the require arguments to
disklabel are positional and changing the number would
probably break scripts throughout the world, the disk-type
isn't needed anymore.

(*) MSCP disks do it as part of the MSCP specification, I'd guess
XCR disks have a similar feature.

>
>Thanks!
>
>Andrew Robinson
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
>

--
Alan Rollow				alan@nabeth.cxo.dec.com




  reply	other threads:[~2000-09-21  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-21  4:00 disklabel - how does it know? awr
2000-09-21  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
2000-09-22  4:00 ` Joerg-Uwe Tessmer
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox