From: Uusimäki <uusimaki@withouthis_exdecfinland.org>
Subject: Re: SCSI controller PCI slot change
Date: Tue, 12 Feb 2008 23:18:15 +0200 [thread overview]
Message-ID: <47b20d09$0$15003$9b536df3@news.fv.fi> (raw)
In-Reply-To: <1202806010.32278.0@proxy02.news.clara.net>
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
next prev parent reply other threads:[~2008-02-12 21:18 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 [this message]
2008-02-13 9:03 ` Artem Alimarine
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