From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2f024ca843df77f7 X-Google-Attributes: gidfa528,public 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 Message-ID: <8qdev2$kac$1@mailint03.im.hou.compaq.com>#1/1 X-Deja-AN: 672518612 Distribution: world References: <8qdd1u$3vv$1@nnrp1.deja.com> X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 969555746 20812 16.82.16.67 (21 Sep 2000 17:02:26 GMT) Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) NNTP-Posting-Date: 21 Sep 2000 17:02:26 GMT Newsgroups: comp.unix.tru64 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