From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,c0d361a99759aac7 X-Google-Attributes: gidfa528,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news.glorb.com!peer1.news.newnet.co.uk!newsfeed.esat.net!news.clara.net!mephistopheles.news.clara.net!proxy02.news.clara.net Message-ID: <47B2B25F.8050700@emulatorsinternational.com> Date: Wed, 13 Feb 2008 10:03:27 +0100 From: Artem Alimarine User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 To: =?ISO-8859-1?Q?Uusim=E4ki?= Subject: Re: SCSI controller PCI slot change References: <1202806010.32278.0@proxy02.news.clara.net> <47b20d09$0$15003$9b536df3@news.fv.fi> In-Reply-To: <47b20d09$0$15003$9b536df3@news.fv.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@clara.net (please include full headers) X-Trace: 8031230041533504d46ae0313023384bc93225824270d4e02e37084b47b2b262 NNTP-Posting-Date: Wed, 13 Feb 2008 09:03:30 +0000 Xref: g2news1.google.com comp.unix.tru64:1204 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