Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Artem Alimarine <artem@emulatorsinternational.com>
To: Uusimäki <uusimaki@withouthis_exdecfinland.org>
Subject: Re: SCSI controller PCI slot change
Date: Wed, 13 Feb 2008 10:03:27 +0100	[thread overview]
Message-ID: <47B2B25F.8050700@emulatorsinternational.com> (raw)
In-Reply-To: <47b20d09$0$15003$9b536df3@news.fv.fi>

Hi Uusim�ki,

Thank you for the information.

In 4.0g I solved the problem as follows.
The 4.0g system was able to boot with the generic kernel to the 
multui-user mode, which I found wierd because the /usr should not have 
been found. Then I edited the kernel config file to mention to correct 
PCI slots for all PCI devices (Like "controller isp0 at pci0 slot 2")
And than it was solved.

However, 5.1 has no PCI controller mappings in the kernel config files. 
Therefore the trick does not work there. The problem is that the system 
rememers that there was a SCSI controller isp0 in slot 2 and now once it 
is in in slot 3 it calls in isp1. So if I could just delete that 
controller entry for the former isp0, I believe everything would work 
fine without renaming the entries in fstab and other places. The problem 
is that I do not want to edit fstab and other things, because I do not 
know what the application software does with the disk names.

It would be cleaner to remap the isp0 to a different slot than remapping 
everything else from isp0 to isp1. We have to do that at several 
customers, so it needs to be a minimal change.

In 5.1. I was able to reach some result by hwmgr and dsfmgr to remove 
old dsk0 and rename dsk1 to dsk0.


Regards,
Artem

Uusim�ki wrote:
> Artem Alimarine wrote:
> 
>> Hi,
>>
>> I have a problem booting 5.1 after when the controller is replugged to 
>> another PCI slot. It is obviously because the old disk device mapping 
>> is incorrect in the new configuration. How can I fix that? The same 
>> problem in 4.0g. I cannot even boot to level 3 with the GENERIC 
>> kernel. The error is
>>
>>
>> # init 3
>>
>> INIT: New run level: 3
>> Checking device naming:
>>     Passed.
>> Checking local filesystems
>> /sbin/ufs_fsck -p
>> Error: /dev/rdisk/dsk0a is an invalid device or cannot be opened.
>> Can't open /dev/rdisk/dsk0a: No such device or address
>> /dev/rdisk/dsk0a: CAN'T CHECK FILE SYSTEM.
>> Error: /dev/rdisk/dsk0g is an invalid device or cannot be opened.
>> Can't open /dev/rdisk/dsk0g: No such device or address
>> /dev/rdisk/dsk0g: CAN'T CHECK FILE SYSTEM.
>> THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
>>         /dev/rdisk/dsk0g (/usr)
>> Unknown error in reboot
>>
>> INIT: SINGLE-USER MODE
>>
>> Thanks,
>> Artem
> 
> 
> Hi Artem,
> 
> I try to remember the needed tasks, because I cannot test it right now.
> 
> On V4.0* the problem needs some more work, before you get it corrected.
> 
> First you have to boot the generic kernel from the OS CD and mount the 
> system disk root partition and the /usr partition to temporary mount 
> points. Then you have to run sizer (-n TEMP) then compare the /tmp/TEMP 
> file and the /sys/conf/YOURSYSTEM to find the new scsi controller entry 
> in the /tmp/TEMP file. Then you have to add that line into the 
> /sys/conf/YOURSYSTEM file and rebuild the kernel and copy it to the root 
> partition and then boot to single user from the system disk. Now you can 
> try to run the bcheckrc script. If the disk was found and the needed 
> device files were generated the other filesystems will be mounted. If 
> not, you have to cd to the /dev directory and run the MAKEDEV rz* <--- 
> whichever the disks (new) scsi address is. You have to edit the 
> /etc/fstab to correct the new disk name for the mounts. But if you are 
> using Advfs, you have to correct the links in the /etc/fdmns/*_domain 
> directories to the new disk device name.
> Then you should be able to run the bcheckrc and then boot up to run 
> level 3.
> 
> 
> On 5.1* many tasks are easier and don't need so much work.
> This problem should be solved by booting the generic kernel to single 
> user, run hwmgr -scan scsi (which should find all the needed devices and 
> their possibly new addresses. After that you should be able to run the 
> bcheckrc to get the other filesystems mounted and boot up to run level 3.
> 
> Hope I didn't forget something critical.
> 
> Good Luck!
> 
> Regards,
> 
> Kari


  reply	other threads:[~2008-02-13  9:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  8:46 SCSI controller PCI slot change Artem Alimarine
2008-02-12 21:18 ` Uusimäki
2008-02-13  9:03   ` Artem Alimarine [this message]
2008-02-13 17:15     ` Uusimäki
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox