From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10b612,5b7ef3328818e2a9 X-Google-Attributes: gid10b612,public X-Google-Thread: 1164f8,5b7ef3328818e2a9 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-07-16 11:19:46 PST Path: gmdzi!unido!uni-koeln!IKP.Uni-Koeln.DE!se From: se@IKP.Uni-Koeln.DE (Stefan Esser) Newsgroups: comp.sys.dec,comp.unix.ultrix Subject: Re: Help me understand disk partitioning! Message-ID: <1991Jul16.133006.157183@rrz.uni-koeln.de> Date: 16 Jul 91 13:30:06 GMT References: Sender: news@rrz.uni-koeln.de (Usenet News System) Organization: Institute of Nuclear Physics, University of Cologne, Germany Xref: gmdzi comp.sys.dec:24834 comp.unix.ultrix:46858 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]