Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* disklabel - how does it know?
@ 2000-09-21  4:00 awr
  2000-09-21  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  2000-09-22  4:00 ` Joerg-Uwe Tessmer
  0 siblings, 2 replies; 3+ messages in thread
From: awr @ 2000-09-21  4:00 UTC (permalink / raw)


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?

Thanks!

Andrew Robinson


Sent via Deja.com http://www.deja.com/
Before you buy.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: disklabel - how does it know?
  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.
  2000-09-22  4:00 ` Joerg-Uwe Tessmer
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 2000-09-21  4:00 UTC (permalink / raw)



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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: disklabel - how does it know?
  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.
@ 2000-09-22  4:00 ` Joerg-Uwe Tessmer
  1 sibling, 0 replies; 3+ messages in thread
From: Joerg-Uwe Tessmer @ 2000-09-22  4:00 UTC (permalink / raw)


awr@cpu.com wrote:
> 
> 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?
> 
> Thanks!
> 
> Andrew Robinson
> 

Very easy:

disklabel -wr rz3 rzxx

"rzxx" is a keyword an craete a default partition layout.
To change the layoyt use the command "diskconfig".

Joerg-Uwe 

-- 
Joerg-Uwe Tessmer              Universitaet Potsdam
Tel.: +49+331-9771613          Institut fuer Physik        
Fax.: +49+331-9771142      Lehrstuhl Nichtlineare Dynamik
http://www.agnld.uni-potsdam.de/~joerg



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-09-22  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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.
2000-09-22  4:00 ` Joerg-Uwe Tessmer

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