From: Uusimäki <uusimaki@withouthis_exdecfinland.org>
Subject: Re: SCSI controller PCI slot change
Date: Wed, 13 Feb 2008 19:15:56 +0200 [thread overview]
Message-ID: <47b32209$0$21892$9b536df3@news.fv.fi> (raw)
In-Reply-To: <47B2B25F.8050700@emulatorsinternational.com>
Hi Artem,
Good to hear that you got the V4.0 part done.
But with V5.1* it should be even easier and you don't have to hack the
kernel configuration, because the device mapping is dynamic there. When
you boot the kernel it walks through the hardware and maps all found
(supported) hardware to appropriate device files. There is a clever
feature in V5.*, which helps a lot when you are making changes in your
disk configuration. It keeps record about all SCSI-devices (and
FC-devices) by their WWID, which is created at the factory for newer
devices. For older devices Tru64 creates an unique "WWID" which consists
of some scsi information from the device. The WWID and the device file
is then mapped together in the device database.
Therefore, if you have had a disk in your Tru64 V5.* machine at least
once, it keeps that recorded until you delete it (manually) and whenever
you bring that disk back into the machine and place it somewhere ( on
any SCSI bus) the OS will bring it up with the original device file mapping.
So in this case you shouldn't need to do anything else than to make the
OS find the disk and then it is ready to use like it was before. Thanks
to this feature you don't have to keep updating the kernel
configuration, the /etc/fstab or the /etc/fdmns records and not fiddle
with the device files.
One mapping which you must always update - if the disk is the boot disk
- is the boot device (bootdef_dev) in SRM console. E.g. if the disk was
originally DKA100 and after moving it it is DKB300, you have to update
that information.
Regards,
Kari
Artem Alimarine wrote:
> 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
prev parent reply other threads:[~2008-02-13 17:15 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
2008-02-13 17:15 ` Uusimäki [this message]
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