From: se@IKP.Uni-Koeln.DE (Stefan Esser)
Subject: Re: Help me understand disk partitioning!
Date: 16 Jul 91 13:30:06 GMT [thread overview]
Message-ID: <1991Jul16.133006.157183@rrz.uni-koeln.de> (raw)
In-Reply-To: k2.679665137@woodstock
The logical structure of SCSI disks doesn't closely represent the physical
sector layout. There are typically 1 to 3 alternate sectors per cylinder and
1 or 2 reserved cylinders, in case there are more than 3 bad sectors in any
cylinder.
[Ultrix lets you display these parameters with the command:
'rzdisk -g current /dev/rrz0c'
^-- insert appropriate device, use partition 'c'!]
This is the reason for some other problems, not only does Ultrix loose blocks
by trying to align partitions to cylinder boundaries, but in fact the resulting
file systems are (nearly) guaranteed not to begin or end on a cylinder
boundary. Ultrix calculates sectors per cylinder by multiplying sectors by the
number of heads, but without subtracting the alternate sectors...
That makes it look like you can't access the inner 20 tracks of the drive.
There are some more bad things that happen because of the wrong idea the
kernel has about the disk layout. These confuse the optimisation heuristics
of the Berkeley Fast File System. The result is a lot of head movement
between adjacent cylinders. The file system tries to put adjacent file blocks
into one cylinder as long as possible. But because of the alternate blocks,
the cylinder boundary is at another place than the kernel expects it to be.
So, the kernel put the blocks in the upper half of one and the lower of the
other cylinder.
It would be nice if DEC did something about this...
Stefan
--
Stefan Esser, Institute of Nuclear Physics, University of Cologne, Germany
se@IKP.Uni-Koeln.DE [134.95.192.50]
prev parent reply other threads:[~1991-07-16 13:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-07-16 9:07 Help me understand disk partitioning! Tom Ivar Helbekkmo
1991-07-16 11:52 ` Klaus Steinberger
1991-07-16 13:30 ` Stefan Esser [this message]
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