From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,469add128271ee95 X-Google-Attributes: gidfee84,public From: John Hill Subject: Re: [Q] configuring identical disks differently Date: 1998/10/06 Message-ID: <361A22B5.A3CC57A5@hep.phy.cam.ac.uk>#1/1 X-Deja-AN: 398268746 Content-Transfer-Encoding: 7bit References: <6vbd6d$i3j$1@husk.cso.niu.edu> Content-Type: text/plain; charset=us-ascii Organization: University of Cambridge Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 system@niuhep.physics.niu.edu wrote: > Hello, > I am pretty much a rank amatuer on Unix so please have patience > and mercy and hold my hand... > > I have a DU machine (3.2a soon to be upgraded to 4.0something) with > two rz28m disks. > > I have the first partitioned a/b/g/h using UFS. > I want to partition the second with a c partition using AdvFS. > My understanding is that I do this using disklabel and then > AdvFS commands such as mmkfdm... > > But it is also my understanding that if you have two identical > that you want to configure differently you need to have two different > entries in /etc/disktab > > In /etc/disktab I find three entries, each with identical values > once you get past the names: > > rz28l|RZ28L|DEC RZ28L Winchester:\ > > rz28m|RZ28M|DEC RZ28M Winchester:\ > > rz28d|RZ28D|rz28j|RZ28J|rz28|RZ28|DEC RZ28 Winchester:\ > > As I am highly unlikely to put another rz28 on this machine is > it reasonable to simply fake it and use "rz28d" for the "disktype" > in the disklabel? > > If these extras were not there presumably I would just copy the > info below the rz28m names and put it under a line that looks > like: > > rz28f|RZ28F|DEC RZ28 Fake Winchester:\ > > Thanks for any help you can give, > Robert Morphis > the novice unix admin. > Morphis@physics.niu.edu > Real Women change tires abuse@uu.net postmaster@uu.net > Real Men change diapers security@uu.net The entries in /etc/disktab are templates - you can have lots of disks of the same type on a system, but only need one disktab entry per disk type. At some version of DIGITAL UNIX, the disktab file became superfluous anyway (I think it was 3.2x, but can't remember exactly when). You can then do: disklabel -rw rz0 pqr (where pqr is an arbitrary string, hopefully not a disk type in /etc/disktab). and the disk will be interrogated for appropriate parameters and a label will be setup, which you can then edit as you wish. using the -e option with disklabel. As long as you then don't use the -w option again, the partitions on the disks can bear no relation to the entries in /etc/disktab. Regards, John Hill -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Dr. John C. Hill University of Cambridge, + + E-mail: hill@hep.phy.cam.ac.uk Cavendish Laboratory, + + Phone: +44-1223-337243 Madingley Road, + + Fax: +44-1223-353920 Cambridge, CB3 0HE, U.K. + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++