Operating System - HP-UX
1833372 Members
3377 Online
110052 Solutions
New Discussion

Re: How to change SCSI adress

 
SOLVED
Go to solution
David_246
Trusted Contributor

How to change SCSI adress

Hi,

How can I change a SCSI-adress of our CDROM ?
It is currently target'ed at c0t6d0 (I know it's standard), but we need it to have target'ed as c0t1d0.

I know Sun does this using /etc/path_to_inst to change the SCSI adress. Any ideas ?

Regs David
@yourservice
9 REPLIES 9
Stefan Farrelly
Honored Contributor
Solution

Re: How to change SCSI adress

Its a jumper on the back of the physical cdrom unit. You need to remove/open it up and change it from scsi 6 to 1.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ross Zubritski
Trusted Contributor

Re: How to change SCSI adress

David,

Change the switch on the back of the DVD to a "1".

Regards,

RZ
Eugeny Brychkov
Honored Contributor

Re: How to change SCSI adress

As I remember disks are usually have highest priority SCSI Ids (6, 5, 4), but DAT and CDROM drives lower priority (2, 1, 0). So I do not agree with 'standard'. Maybe you wanted to say 'by default for this drive manufacturer'?
Agree with all others - you need to get CDROM drive out of the server and change jumper setting. Do it offline (with server down). During next boot new device files for CDROM at new 'location' will be automatically created
Eugeny
David_246
Trusted Contributor

Re: How to change SCSI adress

Allright your correct :)

How to make it c1 instead of c0 ??
Does HP have a file for this ??

What do I need to do to get rid of the old c0t6d0 and how do I get my new c0t1d0 shown in the OS.

To compare, Sun has : touch /reconfigure to reconfigure.
and drvconfig;disks;devlinks (or fsadm in Sol 8/9) to update/remove your devices.

Regs David
@yourservice
Robert-Jan Goossens
Honored Contributor

Re: How to change SCSI adress

Hi David,

Take a look at the insf and the rmsf commands.

Robert-Jan.
David_246
Trusted Contributor

Re: How to change SCSI adress

All great answers, espec the insf command. The last thing I am looking for is how to change c0t1d0 into c1t1d0.

Is there not a file as Sun has the /etc/path_to_inst.

After that I prefer to assign points as I don't want to give the bunny away yet.

Regs David
@yourservice
James Murtagh
Honored Contributor

Re: How to change SCSI adress

Hi David,

You need to rebuild your ioconfig. Normal procedure:

1) Create a new config template:

# ioscan -f | grep -e INTERFACE -e DEVICE | grep -v target | awk '{print $3, $1, $2}' > /infile

2) Edit this file and change the interface field corresponding to the bus the drive is on.

3) Bring the system down to run level 1:

# init 1

4) Apply the new config

# /sbin/ioinit -f /infile -r

The system should now reboot and the changes should be reflected in ioscan etc.

You didn't mention what OS you were using but make sure the latest recommended ioinit patch is installed.

Regards,

James.

James Murtagh
Honored Contributor

Re: How to change SCSI adress

Hi David,

Sorry, should have mentioned this but be careful of any conflicts if the new instance number you are changing to is already in use by other hardware. This should be obvious from an ioscan or from the new config file.

There are a few other ways to do this, one garauntees success but you need an unsupported tool from HP to do it, ioconfig2infile.

Just be careful and plan well and you should be ok! Might even be worth detailing it in this post first before you rebuild the ioconfig.

Regards,

James.
David_246
Trusted Contributor

Re: How to change SCSI adress

Thanks James !

I have done this multiple times before on Sun, just didn't know how to do it on HP, but many thanks for your help !!

Regs David
@yourservice