Summary: /dev/kstat is not present during install/upgrade

From: Alain Brossard EPFL-SIC/SII (brossard@sic.epfl.ch)
Date: Thu Jul 28 1994 - 03:02:18 CDT


>
> During the installation of the OS (via the net: Jumpstart), I'm
> trying to run vmstat and I only get:
>
> vmstat: kstat_open(): can't open /dev/kstat: No such device or address
>
> I've tried every combination of drvconfig and devlinks I could
> think of with no success. I've asked Sun, but got no reply even
> though I had found the bug id using SunSolve: 1147217

    Well thanks to Casper Dick (casper@fwi.uva.nl), the problem was
found. It stems from two problems:

        1- when rcS runs drvconfig, /usr is not mounted hence the
           driver for kstat which resides under /usr/kernel is not
           present
        2- /etc/system redefines the search path for modules so as to
           remove /usr/kernel. Hence no amount of drvconfig will ever
           find the kstat driver even after /usr is mounted.

    There are two working (tested) solutions, the one I've chosen:

root%siisunt2[283] pwd
/distribution/Solaris-2.3/export/exec/sparc.Solaris_2.3
    hence go underneath what will become /usr
root%siisunt2[280] tar cf - kernel/drv/audio kernel/drv/dbri kernel/drv/kstat* kernel/misc/diaudio | ( cd ../kvm/sparc.sun4c.Solaris_2.3/ ; tar xfBp - )
root%siisunt2[281] tar cf - kernel/drv/audio kernel/drv/dbri kernel/drv/kstat* kernel/misc/diaudio | ( cd ../kvm/sparc.sun4m.Solaris_2.3/ ; tar xfBp - )

    Copy the appropriate drivers under what will become /kernel where drvconfig
will find them.

    The other solution is to do the following once the system is booted:

ln -s /usr/kernel/* /tmp/kernel
/usr/sbin/drvconfig -r /tmp/devices -p /tmp/root/etc/path_to_inst
/usr/sbin/devlinks -r /tmp

    Note the required undocumented -p flag to drvconfig.

--

Alain Brossard, Ecole Polytechnique Federale de Lausanne, SIC/SII, MA-Ecublens, C.P. 121, CH-1015 Lausanne, Suisse, +41 21 693-2241 brossard@sic.epfl.ch



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:09:06 CDT