4 Replies Latest reply on May 3, 2012 1:07 PM by user12240672

    can not get output from ilom start /SP/console hangs

    user12240672
      Dear All,

      I have 5.10 Generic_137112-08 i86pc i386 i86pc
      once I connect to ilom and start /SP/console it hangs.

      I connect gui via ilom ip and redirect. I saw;

      /boot/solaris/bootenv.rc: syntax error on line 23

      I checked bootenv.rc;

      root@impagcugam2 # cat /boot/solaris/bootenv.rc
      #
      # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
      # Use is subject to license terms.
      #

      #ident "@(#)bootenv.rc 1.33 07/03/03 SMI"
      #
      # bootenv.rc -- boot "environment variables"
      #
      setprop ata-dma-enabled 1
      setprop atapi-cd-dma-enabled 0
      setprop ttyb-rts-dtr-off false
      setprop ttyb-ignore-cd true
      setprop ttya-rts-dtr-off false
      setprop ttya-ignore-cd true
      setprop ttyb-mode 9600,8,n,1,-
      setprop ttya-mode 9600,8,n,1,-
      setprop lba-access-ok 1
      setprop keyboard-layout US-English
      setprop prealloc-chunk-size 0x2000
      setprop bootpath /pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@0,0:a
      setprop console 'ttya'
      setprop boot-args

      ------------------------

      found 2 grub menu

      root@impagcugam2 # find / -name 'menu.lst'
      /var/sadm/pkg/SUNWgrub/save/pspool/SUNWgrub/reloc/boot/grub/menu.lst
      /boot/grub/menu.lst

      ------------------

      I uncommented "splashimage /boot/grub/splash.xpm.gz" and added " -B console=ttyb" into kernel /platform/i86pc/multiboot kmdb line below

      still I can not get any output from ilom :(

      root@impagcugam2 # cat /boot/grub/menu.lst
      #pragma ident "@(#)menu.lst 1.1 05/09/01 SMI"
      #
      # default menu entry to boot
      default 0
      #
      # menu timeout in second before default OS is booted
      # set to -1 to wait for user input
      timeout 10
      #
      # To enable grub serial console to ttya uncomment the following lines
      # and comment out the splashimage line below
      # WARNING: don't enable grub serial console when BIOS console serial
      # redirection is active!!!
      # serial unit=0 speed=9600
      # terminal serial
      #
      # Uncomment the following line to enable GRUB splashimage on console
      splashimage /boot/grub/splash.xpm.gz_
      #
      # To chainload another OS
      #
      # title Another OS
      # root (hd<disk no>,<partition no>)
      # chainloader +1
      #
      # To chainload a Solaris release not based on grub
      #
      # title Solaris 9
      # root (hd<disk no>,<partition no>)
      # chainloader +1
      # makeactive
      #
      # To load a Solaris instance based on grub
      #
      # title Solaris <version>
      # root (hd<disk no>,<partition no>,x) --x = Solaris root slice
      # kernel /platform/i86pc/multiboot kmdb
      # module /platform/i86pc/boot_archive
      #
      # To override Solaris boot args (see kernel(1M)), console device and
      # properties set via eeprom(1M) edit the "kernel" line to:
      #
      # kernel /platform/i86pc/multiboot kmdb <boot-args> -B prop1=val1,prop2=val2,...
      #
      #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
      title Solaris 10 11/06 s10x_u3wos_10 X86
      root (hd0,0,a)
      kernel /platform/i86pc/multiboot -B console=ttyb kmdb_
      module /platform/i86pc/boot_archive
      #---------------------END BOOTADM--------------------
      #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
      title Solaris failsafe
      root (hd0,0,a)
      kernel /boot/multiboot kernel/unix -s -B console=ttya
      module /boot/x86.miniroot-safe
      #---------------------END BOOTADM--------------------
      title Solaris 10 11/06 s10x_u3wos_10 X86 Single-User NoCluster
      root (hd0,0,a)
      kernel /platform/i86pc/multiboot -s -x
      module /platform/i86pc/boot_archive
      root@impagcugam2 #

      any idea please?

      thanks,
      Halit
        • 1. Re: can not get output from ilom start /SP/console hangs
          Nik
          Hi.

          You have error:
          /boot/solaris/bootenv.rc: syntax error on line 23

          It's correspond line:
          setprop console 'ttya'


          At text mode ( serial console) You can't see any images, so you need comment line
          splashimage /boot/grub/splash.xpm.gz


          Ilom correspond ttya, so why you say console to ttyb at line :
          kernel /platform/i86pc/multiboot -B console=ttyb kmdb ?

          For Solaris 10 01/06 and latter:
          Use
          eeprom console=ttya

          For bellow Solaris 10 01/06:

          eeprom input-device=ttya
          eeprom output-device=ttya


          Try use procedure for Solaris:
          https://support.oracle.com/CSP/main/article?cmd=show&id=1006549.1&type=NOT


          For Linux:
          https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=1003963.1

          Regards.
          1 person found this helpful
          • 2. Re: can not get output from ilom start /SP/console hangs
            user12240672
            actually line 23 was for boot-args because finally I was able to have boot log via ilom console and had this;
            now it is automatically boots with fail safe mode

            boot log

            Loading kmdb...
            SunOS Release 5.10 Version Generic_137112-08 64-bit
            Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
            Use is subject to license terms.

            WARNING: The following files in / differ from the boot archive:

            changed /boot/solaris/bootenv.rc

            The recommended action is to reboot and select the "Solaris failsafe"
            option from the boot menu. Then follow the prompts to update the
            boot archive. To continue booting at your own risk, you may clear the
            service by running: "svcadm clear system/boot-archive"

            May 3 14:18:16 svc.startd[7]: svc:/system/boot-archive:default: Method "/lib/svc/method/boot-archive" failed with exit status 95.
            May 3 14:18:16 svc.startd[7]: system/boot-archive:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
            Requesting System Maintenance Mode
            (See /lib/svc/share/README for more information.)
            Console login service(s) cannot run

            Root password for system maintenance (control-d to bypass): Hostname: impagcugam2

            what might be root cause?

            here
            root@impagcugam2 # svcs -xv
            svc:/system/boot-archive:default (check boot archive content)
            State: maintenance since Thu May 03 14:18:16 2012
            Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
            See: http://sun.com/msg/SMF-8000-KS
            See: /etc/svc/volatile/system-boot-archive:default.log


            root@impagcugam2 # cat /etc/svc/volatile/system-boot-archive:default.log
            [ May  3 14:18:14 Enabled. ]
            [ May  3 14:18:15 Executing start method ("/lib/svc/method/boot-archive") ]
            cannot find: /etc/cluster/nodeid: No such file or directory
            cannot find: /etc/devices/mdi_ib_cache: No such file or directory
            cannot find: /platform/i86pc/ucode/AuthenticAMD: No such file or directory
            cannot find: /platform/i86hvm: No such file or directory
            /boot/solaris/bootenv.rc

            WARNING: The following files in / differ from the boot archive:


            The recommended action is to reboot and select the "Solaris failsafe"
            option from the boot menu. Then follow the prompts to update the
            boot archive. To continue booting at your own risk, you may clear the
            service by running: "svcadm clear system/boot-archive"

            [ May  3 14:18:16 Method "start" exited with status 95 ]
            • 3. Re: can not get output from ilom start /SP/console hangs
              user12240672
              root@impagcugam2 # svcadm clear system/boot-archive
              root@impagcugam2 # The / file system (/dev/rdsk/c0t0d0s0) is being checked.
              /dev/rdsk/c0t0d0s5 is clean

              root@impagcugam2 # bootadm update-archive
              root@impagcugam2 # svcs boot-archive
              STATE STIME FMRI
              online 14:30:37 svc:/system/boot-archive:default

              and rebooted
              • 4. Re: can not get output from ilom start /SP/console hangs
                user12240672
                and success

                Loading kmdb...
                SunOS Release 5.10 Version Generic_137112-08 64-bit
                Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
                Use is subject to license terms.
                Hostname: impagcugam2
                /dev/rdsk/c0t0d0s5 is clean


                WARNING: Do not use computer if you are not authorized.
                WARNING: You have been warned.


                thanks a lot for your help_

                I believe eeprom consol=ttya fixed it

                and other point I did wrong was the line
                kernel /platform/i86pc/multiboot -B console=ttyb kmdb

                it should be

                kernel /platform/i86pc/multiboot kmdb -B console=ttya

                Edited by: user12240672 on May 3, 2012 5:47 AM

                Edited by: user12240672 on May 3, 2012 5:47 AM

                Edited by: user12240672 on May 3, 2012 6:07 AM