SUMMARY: Changing SCSI address

From: Bin Zhao (zhao@adx.adelphi.edu)
Date: Thu Jul 09 1992 - 21:36:47 CDT


A few day ago, I posted:
>
> I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
>this is the forth disk in the chain (two internal and two external now).
>Is it possible to change the SCSI addresses so that this one will be
>sd0? Just change the kernel conf file and remake the kernel? Anything
>I should look out? Any pointers and advise will be appreciated. Thanks
>in advance.
>

As usual, I got a lot of good advice from the replies. Basically, there
are two ways to do it:

1) Just open up the disks and change the SCSI IDs on the disks.
2) Reconfigure the kernel.

Most people suggested I go with the first method. Thanks for the
following replies:

ohnielse@ltf.dth.dk
canuck@rice.edu
poffen@sj.ate.slb.com
sysadmin@toshiba
Eckhard.Rueggeberg@ts.go.dlr.de
VINCE@UCONNVM.UCONN.EDU
trinkle@cs.purdue.edu
geertj@ica.philips.nl
trdlnk!mike@uunet.UU.NET
sdi@sun-valley.Stanford.EDU
ctm@sleepy.boeing.com
Perry_Hutchison.Portland@xerox.com
era@niwot.scd.ucar.EDU
miker@sbcoc.com

Here are the replies:
--------------------------------------------

>From <@dkuug.dk:ohnielse@ltf.dth.dk> Sun Jul 5 04:22:37 1992
Received: from ltf.dth.dk by dkuug.dk via EUnet with SMTP (5.64+/8+bit/IDA-1.2.8)
        id AA17707; Sun, 5 Jul 92 10:21:24 +0200
Received: by ltf.dth.dk (4.1/SMI-4.1)
        id AA26249; Sun, 5 Jul 92 10:21:33 +0200
Date: Sun, 5 Jul 92 10:21:33 +0200
From: ohnielse@ltf.dth.dk (Ole Holm Nielsen)
Message-Id: <9207050821.AA26249@ltf.dth.dk>
Reply-To: Ole Holm Nielsen <Ole.Holm.Nielsen@ltf.dth.dk>
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
X-Charset: ASCII
X-Char-Esc: 29
Status: ORr

I believe that you should just change the SCSI ID jumpers on the
internal and external disks. Note that SS's have a funny mapping
of devices sdX to SCSI-ID Y. The actual mapping is seen in
/sys/sun4c/conf/GENERIC (look for lines defining sd0,1,2,3).
 
Ole Holm Nielsen
Laboratory of Applied Physics, Building 307
Technical University of Denmark, DK-2800 Lyngby, Denmark
E-mail: Ole.Holm.Nielsen@ltf.dth.dk
Telephone: (+45) 42 88 24 88 ext. 3187
Telefax: (+45) 45 93 23 99
Permanent address:
UNI-C, Building 305
Technical University of Denmark, DK-2800 Lyngby, Denmark
E-mail: Ole.H.Nielsen@uni-c.dk
Telephone: (+45) 42 88 39 99 (dial-tone) 2404 or 2244

>From canuck@rice.edu Sun Jul 5 12:53:48 1992
Received: from masc38.rice.edu by rice.edu (AA05106); Sun, 5 Jul 92 11:53:03 CDT
Received: by masc38.rice.edu (AA17086); Sun, 5 Jul 92 11:53:09 CDT
Date: Sun, 5 Jul 92 11:53:09 CDT
From: canuck@rice.edu (Mike Pearlman)
Message-Id: <9207051653.AA17086@masc38.rice.edu>
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
Status: ORr

your options are
        1) open the drives up and change the hardware SCSI settings
        2) build a new kernel changing the
                disk sd? at scsibus0 target ? lun0
           lines as appropriate where ? is a digit.
           Then you need to set the boot-device field of the eeprom to
           the correct device.

I really would recommend option 1 since it will keep the sd number in line
with the standard Sun SCSI addresses.

michael pearlman <canuck@rice.edu>

>From poffen@sj.ate.slb.com Sun Jul 5 19:47:56 1992
Received: from rushmore.sj.ate.slb.com by eris.sj.ate.slb.com (5.59SLBATE/SLB-SERVER-1.16)
        id AA06971; Sun, 5 Jul 92 16:46:04 PDT
Date: Sun, 5 Jul 92 16:46:04 PDT
From: poffen@sj.ate.slb.com (Russ Poffenberger)
Message-Id: <9207052346.AA06971@eris.sj.ate.slb.com>
Received: by rushmore.SJ.ATE.SLB.COM (4.1/DUMB-1.0)
        id AA05403; Sun, 5 Jul 92 16:47:31 PDT
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
Status: ORr

Changing the config and re-making the kernel is about it, although you might
want to consider changing the drives, in case you need to boot the GENERIC
kernel, in which case, your drive mappings will be wrong.

Russ

>From sysadmin@toshiba.tic.oz.AU Sun Jul 5 21:55:33 1992
Received: by metro.ucc.su.OZ.AU (5.61/1.34)
        id AA00774; Mon, 6 Jul 1992 11:55:09 +1000
Received: from csdc_9.YP.tic by toshiba (4.1)
        id AA08489; Mon, 6 Jul 92 09:12:44 EST
Date: Mon, 6 Jul 92 09:12:44 EST
From: sysadmin@toshiba (System Administrator)
Message-Id: <9207052312.AA08489@toshiba>
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
Status: ORr

> From sun-managers-relay%ra.mcs.anl.gov@metro.ucc.su.oz.au Sun Jul 5 23:46:12 1992
> Sender: sun-managers-relay%ra.mcs.anl.gov@metro.ucc.su.OZ.AU
> From: zhao%adx.adelphi.edu@metro.ucc.su.OZ.AU (Bin Zhao)
> Reply-To: zhao%adx.adelphi.edu@metro.ucc.su.OZ.AU (Bin Zhao)
> Followup-To: zhao@adx.adelphi.edu (Bin Zhao)
> X-Mailer: Mail User's Shell (7.2.3 5/22/91)
> To: sun-managers@eecs.nwu.edu
> Subject: Changing SCSI address
>
> Hi everyone:
>
> I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
> this is the forth disk in the chain (two internal and two external now).
> Is it possible to change the SCSI addresses so that this one will be
> sd0? Just change the kernel conf file and remake the kernel? Anything
> I should look out? Any pointers and advise will be appreciated. Thanks
> in advance.

Hi Bin,
       Your question has me wondering. If all you wish to do is change the SCSI address for your drives, then you can simply change the address jumpers on the back of the drives. SCSI is not a daisy chained system, it works on a bus (i.e. any drive can have any address, regardless of it's physical position.) Recofiguring the kernel to achieve this might work, but doesn't seem to be the right way of doing it.

A hint: you will also need to change /etc/fstab. If you are going to change the address of the boot drive, then don't forget to change it BEFORE you shutdown the machine, otherwise it will try to boot by using the old version and will fail (even before it gets you to single user) I had this trouble and the only way I could fix it was to put the drive addresses back to the original positions, reboot, make the changes and start again.

Good luck,
                John
==============================================================================
= John Baird ACSnet: john@toshiba.tic.OZ.AU =
= Toshiba International Corporation Pty Ltd Phone: +61-2-428-2077 =
= Sydney, Australia Fax: +61-2-427-7405 =
==============================================================================

>From eckhard@ikarus.ts.go.dlr.de Mon Jul 6 02:49:01 1992
Received: from ikarus.ts.go.dlr.de by nimbus.ts.go.dlr.de (4.1/SMI-4.1)
        id AA06105; Mon, 6 Jul 92 08:48:03 +0200
Received: by ikarus.ts.go.dlr.de (4.1/SMI-4.1)
        id AA09816; Mon, 6 Jul 92 08:48:43 +0200
Date: Mon, 6 Jul 92 08:48:43 +0200
From: Eckhard.Rueggeberg@ts.go.dlr.de
Message-Id: <9207060648.AA09816@ikarus.ts.go.dlr.de>
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
Status: ORr

In the kernal configuration file so define the mapping from SCSI Ids to
sdX. So in order to change the sd0 disk, you could either change the mapping
in the kernel or change the SCSI Ids of the disks. This should be very easy
for the external disks : If you bought good boxes, they have a numerical
switch on the backplane, if not, there are DIP switches either on the back
of the box or the back of the disk itself. The internal disks have jumpers.
Normally, the first three DIP/jumpers give the SCSI Id as binary value,
consult the manuals coming with the disks.

Eckhard R"uggeberg
eckhard@ts.go.dlr.de

>From VINCE@UCONNVM.UCONN.EDU Mon Jul 6 08:42:32 1992
Received: from UCONNVM.UCONN.EDU by UCONNVM.UCONN.EDU (IBM VM SMTP R1.2.2MX) with BSMTP id 8692; Mon, 06 Jul 92 08:41:37 EST
Received: from UCONNVM (VINCE) by UCONNVM.UCONN.EDU (Mailer R2.08 R208004) with
 BSMTP id 8892; Mon, 06 Jul 92 08:41:37 EST
Date: Mon, 06 Jul 92 08:38:43 EST
From: VINCE@UCONNVM.UCONN.EDU
Subject: Re: Changing SCSI address
To: Bin Zhao <zhao@adx.adelphi.edu>
In-Reply-To: Your message of Sat, 4 Jul 1992 23:10:55 -0400
Status: ORr

On Sat, 4 Jul 1992 23:10:55 -0400 you said:
>Hi everyone:
>
> I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
>this is the forth disk in the chain (two internal and two external now).
>Is it possible to change the SCSI addresses so that this one will be
>sd0? Just change the kernel conf file and remake the kernel? Anything
>I should look out? Any pointers and advise will be appreciated. Thanks
>in advance.
It seems like this can't possibly be enough if you want to bood from
sd0. Maybe you need an EEPROM change too?
 I look forward to your summary.
               Vince

>From trinkle@cs.purdue.edu Mon Jul 6 10:33:37 1992
Received: from bors.cs.purdue.edu by arthur.cs.purdue.edu (5.65c/PURDUE_CS-1.2)
        id <AA03162@arthur.cs.purdue.edu>; Mon, 6 Jul 1992 09:34:29 -0500
Received: from localhost by bors.cs.purdue.edu (5.65c/PURDUE_CS-1.2)
        id <AA19666@bors.cs.purdue.edu>; Mon, 6 Jul 1992 09:34:27 -0500
Message-Id: <199207061434.AA19666@bors.cs.purdue.edu>
To: zhao@adx.adelphi.edu (Bin Zhao)
Subject: Re: Changing SCSI address
In-Reply-To: Your message of "Sat, 04 Jul 92 23:10:55 -0400."
             <9207050310.AA09413@adx.adelphi.edu>
Date: Mon, 06 Jul 92 09:34:26 EST
From: trinkle@cs.purdue.edu
Status: ORr

     There are basic considerations like having the necessary boot
block and root filesystem on the new disk, but assuming you have all
that there is really no problem with changing sd0 to the external
drive. You can do it one of two ways. You can change the kernel
config file as you suggested to make SCSI target 0 == sd0 and SCSI
target 3 == sd3, or you can just swap the SCSI target address on the
two drives -- the current sd0 and the new drive. To do the first, you
may have to change the default boot device in the EEPROM. To do the
later you must change the switch settings on the internal drive which
requires taking the case apart. To me it is not a big deal either
way.

Daniel Trinkle trinkle@cs.purdue.edu
Dept. of Computer Sciences {backbone}!purdue!trinkle
Purdue University 317-494-7844
West Lafayette, IN 47907

>From geertj@ica.philips.nl Mon Jul 6 12:13:26 1992
Return-Path: <geertj@ica.philips.nl>
Received: from philica.ica.philips.nl ([130.144.131.1]) by relay.philips.nl with SMTP (5.65c/smail2.5/05-10-87);
        id AA04529; Mon, 6 Jul 1992 18:12:35 +0200
Received: by philica.ica.philips.nl;
        id AA14154; Mon, 6 Jul 92 18:12:17 +0200
Date: Mon, 6 Jul 92 18:12:17 +0200
From: geertj@ica.philips.nl (Geert Jan de Groot)
Message-Id: <9207061612.AA14154@philica.ica.philips.nl>
To: zhao@adx.adelphi.edu
Subject: Re: SCSI addresses
Status: ORr

You are far better off changing the _hardware_ SCSI address on the disk
itself. No surprises during upgrades, etc. No need to contribute to the list :-)
Otherwise, read the man pages about config, sd, and sdio.

Good luck

Geert Jan

>From tellab5!vpnet!trdlnk!mike@uunet.UU.NET Mon Jul 6 14:25:59 1992
Received: from uunet.uu.net (via LOCALHOST.UU.NET) by relay1.UU.NET with SMTP
        (5.61/UUNET-internet-primary) id AA29786; Mon, 6 Jul 92 14:24:53 -0400
Received: from tellab5.UUCP by uunet.uu.net with UUCP/RMAIL
        (queueing-rmail) id 142225.14910; Mon, 6 Jul 1992 14:22:25 EDT
Received: by tellab5.tellabs.com (smail2.5)
        id AA05777; 6 Jul 92 11:17:48 CDT (Mon)
Received: by vpnet.chi.il.us (/\=-/\ Smail3.1.18.1 #18.27)
        id <m0m4vSX-00008qC@vpnet.chi.il.us>; Mon, 6 Jul 92 10:58 CDT
Received: by trdlnk.uucp (/\==/\ Smail3.1.22.1 #22.3)
        id <m0m4ugZ-0004kAC@trdlnk.uucp>; Mon, 6 Jul 92 10:09 CDT
Message-Id: <m0m4ugZ-0004kAC@trdlnk.uucp>
Date: Mon, 6 Jul 92 10:09 CDT
From: trdlnk!mike@uunet.UU.NET (Michael Sullivan)
To: uunet!adx.adelphi.edu!zhao@uunet.UU.NET
Subject: Re: Changing SCSI address
Status: ORr

You will also want to change the EEPROM sd-targets field in order to
revise the monitor's notion of which disk is sd0. See eeprom(8) for details.

>From sdi@sun-valley.Stanford.EDU Mon Jul 6 17:11:24 1992
Received: from tremblanc.Stanford.EDU by sun-valley.Stanford.EDU (4.1/inc-1.0)
        id AA06783; Mon, 6 Jul 92 14:11:03 PDT
Received: by tremblanc.Stanford.EDU (4.1/SMI-4.1_GNCclient-1.0)
        id AA06122; Mon, 6 Jul 92 14:11:02 PDT
From: sdi@sun-valley.Stanford.EDU (Steven Dale Ims)
Message-Id: <9207062111.AA06122@tremblanc.Stanford.EDU>
To: zhao@adx.adelphi.edu (Bin Zhao)
Subject: Re: Changing SCSI address
In-Reply-To: Your message of "Sat, 04 Jul 92 23:10:55 EDT."
             <9207050310.AA09413@adx.adelphi.edu>
Date: Mon, 06 Jul 92 14:11:01 MDT
Status: O

>
>
>Hi everyone:
>
> I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
>this is the forth disk in the chain (two internal and two external now).
>Is it possible to change the SCSI addresses so that this one will be
>sd0? Just change the kernel conf file and remake the kernel? Anything
>I should look out? Any pointers and advise will be appreciated. Thanks
>in advance.
>
>--Bin
>
>--
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
> Bin Zhao, UNIX SysAdmin, <zhao@adelphi.edu> (516) 877-3343
> Computer Center, Adelphi University, Garden City, NY 11530
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Hi,

   We have a similar problem -- could you mail me a copy of the
responses? Thanks.

-- Steve Ims Aerospace Robotics Lab
   sdi@sun-valley.stanford.edu Stanford University

>From ctm@sleepy.boeing.com Mon Jul 6 18:06:47 1992
Received: by atc.boeing.com (5.57)
        id AA11656; Mon, 6 Jul 92 15:08:25 PDT
Received: from augie.nis.boeing.com by sleepy.ns.cs.boeing.com (4.1/SMI-4.1)
        id AA06799; Mon, 6 Jul 92 15:06:45 PDT
Received: by augie.nis.boeing.com (4.1/SMI-4.1)
        id AA01659; Mon, 6 Jul 92 15:06:47 PDT
Date: Mon, 6 Jul 92 15:06:47 PDT
From: ctm@sleepy.boeing.com (chuck malmsten)
Message-Id: <9207062206.AA01659@augie.nis.boeing.com>
To: zhao@adx.adelphi.edu
Subject: Re: Changing SCSI address
Status: O

the GENERIC kernel already supports sd0 thru sd3 (on the 1st SCSI controller).
So, you should not have to do anything with the kernel (unless you have
a kernel other than GENERIC).

Yes, you can change the setting on the disk so that it is sd0 (it should
be scsi target 3) but you must also change the setting of the drive
that is currently sd0 to some other setting (probably sd3 at target 4).

--------------------------------------------------------------------
Chuck Malmsten office: (206) 865-4566
Unix System Administrator Fax: (206) 865-2974
Boeing Computer Services
     Internet: ctm@sleepy.boeing.com
         UUCP: ...!uunet!bcstec!sleepy!ctm
UPS,FedEX,etc: 3326 160th Ave. SE, Bellevue, Wa 98008
      US Mail: P.O Box 24346, M/S 7N-02, Seattle, WA 98124
--------------------------------------------------------------------

        From sun-managers-relay@ra.mcs.anl.gov Sun Jul 5 21:08:11 1992
        Sender: sun-managers-relay@ra.mcs.anl.gov
        From: zhao@adx.adelphi.edu (Bin Zhao)
        Date: Sat, 4 Jul 1992 23:10:55 -0400
        Reply-To: zhao@adx.adelphi.edu (Bin Zhao)
        Followup-To: zhao@adx.adelphi.edu (Bin Zhao)
        X-Mailer: Mail User's Shell (7.2.3 5/22/91)
        To: sun-managers@eecs.nwu.edu
        Subject: Changing SCSI address
        Content-Length: 690
        
        Hi everyone:
                
                I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
        this is the forth disk in the chain (two internal and two external now).
        Is it possible to change the SCSI addresses so that this one will be
        sd0? Just change the kernel conf file and remake the kernel? Anything
        I should look out? Any pointers and advise will be appreciated. Thanks
        in advance.
        
        --Bin
        
        --
               =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
                 Bin Zhao, UNIX SysAdmin, <zhao@adelphi.edu> (516) 877-3343
                  Computer Center, Adelphi University, Garden City, NY 11530
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        

>From Perry_Hutchison.Portland@xerox.com Mon Jul 6 22:15:27 1992
Received: from Mail_Service.CAWEST.XEROX.xns by alpha.xerox.com via XNS id <11786>; Mon, 6 Jul 1992 19:13:46 PDT
X-Ns-Transport-Id: 0000AA00534D5C772DFB
Date: Mon, 6 Jul 1992 19:13:33 PDT
From: Perry_Hutchison.Portland@xerox.com
Subject: Re: Changing SCSI address
To: zhao@adx.adelphi.edu
Reply-To: Perry_Hutchison.Portland@xerox.com
Message-Id: <" 6-Jul-92 19:13:33 PDT".*.Perry_Hutchison.Portland@Xerox.com>
Status: OR

> Is it possible to change the SCSI addresses so that this one will be
> sd0? Just change the kernel conf file and remake the kernel?

No need to hack the kernel, just change the SCSI target settings on the
drives.

Target disk

   3 sd0
   1 sd1
   2 sd2
   0 sd3

Another possibility is to change the "sd-targets" entry in the eeprom.
I have not tried this, however when changing "ttya-ignore-cd" I had to
power-cycle, not just reboot, before the change would take effect. The
same may apply to sd-targets.

>From era@niwot.scd.ucar.EDU Tue Jul 7 11:43:29 1992
Received: from niwot.scd.ucar.edu by ncar.ucar.EDU (5.65/ NCAR Central Post Office 04/10/90)
        id AA27974; Tue, 7 Jul 92 09:43:28 MDT
From: era@niwot.scd.ucar.EDU (Ed Arnold)
Message-Id: <9207071543.AA00649@niwot.scd.ucar.EDU>
Received: by niwot.scd.ucar.EDU (5.65/ NCAR Mail Server 04/10/90)
        id AA00649; Tue, 7 Jul 92 09:43:26 MDT
Subject: Re: Changing SCSI address
To: zhao@adx.adelphi.edu
Date: Tue, 7 Jul 92 9:43:26 MDT
In-Reply-To: <9207050310.AA09413@adx.adelphi.edu>; from "Bin Zhao" at Jul 4, 92 11:10 pm
X-Mailer: ELM [version 2.3 PL11]
Status: ORr

> I just added a 1.2G external SCSI disk to a SS1/SunOS4.1.1 and
> this is the forth disk in the chain (two internal and two external now).
> Is it possible to change the SCSI addresses so that this one will be
> sd0? Just change the kernel conf file and remake the kernel? Anything
> I should look out? Any pointers and advise will be appreciated. Thanks
> in advance.

Why do you want to make the new disk sd0? You'll undoubtedly have to
fool around with changing the machine's prom to boot from whatever target
you change your root disk to. It's easier just to go with the flow,
and keep sd0-sd1-sd2-sd3 as target 3-1-2-0.

BTW be careful of your cable lengths. We had to radically shorten the
cables when we went from 4 to 5 disks on scsibus0, on a SS2.

-- 
Ed Arnold * NCAR * POB 3000, Boulder, CO 80307-3000 * 303-497-1253(voice)
303-497-{1298,1137}(fax) * era@ncar.ucar.edu [128.117.64.4] * era@ncario.BITNET

>From miker@sbcoc.com Tue Jul 7 18:27:54 1992 Received: by uu.psi.com (5.65b/4.1.031792-PSI/PSINet) id AA23044; Tue, 7 Jul 92 17:58:23 -0400 Received: from trinity.sbcoc.com by sbcoc.com (4.1/SMI-4.1) id AA03263; Sun, 5 Jul 92 17:43:10 CDT Received: by trinity.sbcoc.com (4.1/SMI-4.1) id AA02012; Sun, 5 Jul 92 17:43:08 CDT Date: Sun, 5 Jul 92 17:43:08 CDT From: Mike Raffety <miker@sbcoc.com> X-Organization: SBC/OC Services, L.P. Message-Id: <9207052243.AA02012@trinity.sbcoc.com> To: zhao@adx.adelphi.edu Subject: Re: Changing SCSI address Status: ORr

Your best bet is to physically change the SCSI address of this one to be sd0, and change your existing sd0 to be sd3. Remember, on the SPARCstations, sd0 is SCSI address 3, and sd3 is SCSI address 0. No need to remake the kernel.

Please be sure to summarize your results back to the list; thanks.

-- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Bin Zhao, UNIX SysAdmin, <zhao@adelphi.edu> (516) 877-3343 Computer Center, Adelphi University, Garden City, NY 11530 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:44 CDT