From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,209edd32c44df6b3 X-Google-Attributes: gidfee84,public X-Google-Thread: 115614,99c4f3142d922b89 X-Google-Attributes: gid115614,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: Seagate scsi-2 disk from RS6000 to DECAlpha? Date: 1997/06/11 Message-ID: <5nkq2j$1dq@nntpd2.cxo.dec.com>#1/1 X-Deja-AN: 247563315 Distribution: world References: <5n8kni$8bq$1@power42t.hkbu.edu.hk> <5n943o$8r9$2@surz03fi.HRZ.Uni-Marburg.DE> <5niel4$8vm$1@power42t.hkbu.edu.hk> Organization: Digital Equipment Corporation Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Newsgroups: comp.unix.osf.osf1,comp.unix.aix In article <5niel4$8vm$1@power42t.hkbu.edu.hk>, s11976@net2.hkbu.edu.hk (Pui Ming WONG) writes: > > [ The context is mostly irrelevant to the question as put... ] > >Several questions: >1. How does the system know what X (in rrzXa) is, since the disk is just newly >added before the OS was installed ? Two answers; you told it and it doesn't, but sometimes doesn't need to. The disklabel command knows that device to use because it is the argument to the command. Before V4.0 you had to create the special files yourself using the MAKEDEV script in /dev: # cd /dev # ./MAKEDEV rzX You find 'X' from: (bus * 8) + ID. You need to know the ID and the bus number. For SCSI connected disks you can verify the disk is seen on the bus using the command: # scu scan edt bus # scu show edt bus You need to know the ID, if for no other reason than to verify that it isn't already in use. If the disk was added before the system was installed, then the installation process will create special files for all the devices it finds during the installation. The "system" can't tell the difference between a disk you added after you unpacked the system and one that was there before... >2. The disk was previously used under the AIX OS. Now i'm using it >under Digital Unix, do i have to low-level format it since it >already carried AIX disk format info ? In other words, do i have >to create a brand new disk table for it to be usable under Digital Unix ? >If so, how? If the AIX format was to use 512 byte sectors, you don't need to reformat. If it used a different sector size, then you will need to reformat. The disklabel is independent of the format. It is unlikely (though possible) that whatever IBM uses for a disklabel is is the same as what we use. Odds are whatever labeling their Operating System put on the disks is just random bytes to us. There is a difference between the format imposed by the SCSI adapter and the disklabel/VTOC/whatever managed by the operating system. -- Alan Rollow alan@nabeth.cxo.dec.com