[H-GEN] Solaris Patches

James McPherson - Solution Centre Engineer James.McPherson at aus.sun.com
Tue Nov 28 00:30:55 EST 2000


[ Humbug *General* list - semi-serious discussions about Humbug and  ]
[ Unix-related topics.  Please observe the list's charter.           ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]

> 
> I'm having a problem here with a set of patches for Solaris 7.  I'm
> doing a clean install on an Ultra 5 of Solaris 7 Server, and after
> installing the patch 106541-12 (kernel updates) and the prerequisite
> patches (109104-04 and 107544-03), the machine fails to boot with the
> following messages:
> 
> INIT: Cannot create /var/adm/utmp or /var/adm/utmpx
> 
> INIT: failed write of utmpx entry:"  "
> 
> INIT: failed write of utmpx entry:"  "
> 
> INIT: SINGLE USER MODE
> 
> ENTER RUN LEVEL (0-6, s or S):
> 
> and whenever I try to enter anything here, it gives me the same errors
> and prompt.
> 
> I have checked the utmp/utmpx files before and after I applied these
> patches, and they are fine.  I have also tried moving /var on to the
> root partition instead of it's own partition with identical results.
> Can anyone suggest anything here (short of not installing this patch)?


the fix for this problem is as follows:

----from sunsolve----
BEFORE rebooting the server:


Recreate the devlink by executing the following commands.

        # grep sysmsg /etc/name_to_major
        sysmsg 66
        # mknod /devices/pseudo/sysmsg at 0:sysmsg c <major_num> 0
        # mknod /devices/pseudo/sysmsg at 0:msglog c <major_num> 0
        
  * Where <major_num> is the number following sysmsg in the grep output.

Change the permissions and ownerships of the created devlinks.

        # chmod 0600 /devices/pseudo/sysmsg at 0:sysmsg 
        # chmod 0600 /devices/pseudo/sysmsg at 0:msglog
        # chown root:sys /devices/pseudo/sysmsg at 0:sysmsg
        # chown root:sys /devices/pseudo/sysmsg at 0:msglog
        
Create the links to the /dev entries.

        # cd /dev
        # rm -f sysmsg ; ln -s ../devices/pseudo/sysmsg at 0:sysmsg sysmsg
        # rm -f msglog ; ln -s ../devices/pseudo/sysmsg at 0:msglog msglog
        

If the preceding steps are NOT taken prior to rebooting the server, AND it 
fails to boot with utmpx errors, boot the server to single user from net or 
cdrom, mount the root filesystem to /a, and execute the following commands.

Recreate the devlink by executing the following commands.

        # grep sysmsg /a/etc/name_to_major
        sysmsg 66
        # mknod /a/devices/pseudo/sysmsg at 0:sysmsg c <major_num> 0
        # mknod /a/devices/pseudo/sysmsg at 0:msglog c <major_num> 0
        
  * Where <major_num> is the number following sysmsg in the grep output.
  
Change the permissions and ownerships of the created devlinks.

        # chmod 0600 /a/devices/pseudo/sysmsg at 0:sysmsg 
        # chmod 0600 /a/devices/pseudo/sysmsg at 0:msglog
        # chown root:sys /a/devices/pseudo/sysmsg at 0:sysmsg
        # chown root:sys /a/devices/pseudo/sysmsg at 0:msglog
        
Create the links to the /dev entries.

        # cd /a/dev
        # rm -f sysmsg ; ln -s ../devices/pseudo/sysmsg at 0:sysmsg sysmsg
        # rm -f msglog ; ln -s ../devices/pseudo/sysmsg at 0:msglog msglog

Unmount the root filesystem from /a and reboot from boot-device.
----end from sunsolve----


cheers,
James C. McPherson

--
Solution Centre Engineer              828 Pacific Highway 
Sun Microsystems Australia Pty Ltd    Gordon NSW 2072

Have a Sun Support Contract? - Log/View/Update Calls on the Web
Find out how @ http://www.sun.com.au/service/osc




--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list