Gopi Desaboyina Solaris Blogs

Just another WordPress.com weblog

Solaris boots to single user mode and reboots automatically

Symptoms :
==========

1) System comes to single user mode and reboots automatically.
2) hostname is unknown. /etc/nodename, /etc/hosts, /etc/hostname.<interface> files are proper.
3) no changes recently.

Boot logs :
=======

ok boot –svV


Boot device: /pci@1c,600000/scsi@2/disk@0,0:a  File and args: -svV
|/-\|/-\|/-\|/-\|/-|/-\|/-\|/-\|/-\|/-\|/module /platform/sun4u/kernel/sparcv9/unix: text at [0x1000000, 0x10ac96d] data at 0x1800000
module /platform/sun4u/kernel/sparcv9/genunix: text at [0x10ac970, 0x1291f67] data at 0x18569c0
module /platform/SUNW,Sun-Fire-V210/kernel/misc/sparcv9/platmod: text at [0x1291f68, 0x12929f7] data at 0x18ae000
module /platform/sun4u/kernel/cpu/sparcv9/SUNW,UltraSPARC-IIIi: text at [0x1292a00, 0x12a3d0f] data at 0x18ae880
SunOS Release 5.10 Version Generic_147440-09 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|Ethernet address = 0:14:4f:54:0:a5
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-mem = 1048576K (0x40000000)
avail mem = 1016119296
root nexus = Sun Fire V210
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
pcisch2 at root: SAFARI 0x1c 0x600000
pcisch2 is /pci@1c,600000
/pci@1c,600000/scsi@2 (glm0):
       glm0 supports power management.
/pci@1c,600000/scsi@2 (glm0):
       Rev. 0 Symbios 53c1010-33/66 found.
PCI-device: scsi@2, glm0
glm0 is /pci@1c,600000/scsi@2
sd4 at glm0: target 0 lun 0
sd4 is /pci@1c,600000/scsi@2/sd@0,0
root on /pci@1c,600000/scsi@2/disk@0,0:a fstype ufs
pcisch1 at root: SAFARI 0x1e 0x600000
pcisch1 is /pci@1e,600000
PCI-device: isa@7, ebus0
ebus0 is /pci@1e,600000/isa@7
mc-us3i0 at root: SAFARI 0x0 0x0 …
mc-us3i0 is /memory-controller@0,0
power0 at ebus0: offset 0,800
power0 is /pci@1e,600000/isa@7/power@0,800
rmc_comm0 at ebus0: offset 0,3e8
PCI-device: pmu@6, pmubus0
PCI-device: gpio@80000000, pmugpio0
pmugpio0 is /pci@1e,600000/pmu@6/gpio@80000000
pseudo-device: rmclomv0
rmclomv0 is /pseudo/rmclomv@0
Hardware watchdog enabled
pseudo-device: dld0
dld0 is /pseudo/dld@0
PCI-device: usb@a, ohci0
ohci0 is /pci@1e,600000/usb@a
su0 at ebus0: offset 0,3f8
su0 is /pci@1e,600000/isa@7/serial@0,3f8
cpu0: UltraSPARC-IIIi (portid 0 impl 0x16 ver 0x34 clock 1336 MHz)
iscsi0 at root
iscsi0 is /iscsi
Booting to milestone "milestone/single-user:default".
The / file system (/dev/rdsk/c1t0d0s0) is being checked.
Hostname: unknown                 <<<<<————- /etc/hosts, /etc/hostname.<interface>, /etc/nodename everything is correct. still hostname is unknown.
syncing file systems… done      <<<<<—– Automatic Reboot.
rebooting…
Probing system devices
Probing memory
Probing I/O buses

Sun Fire V210, No Keyboard
Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
OpenBoot 4.30.4.a, 1024 MB memory installed, Serial #72614053.
[..]

Errors seen in /var/adm/messages after booting from cdrom and mounting root slice.
===================================================

messages.0:Jan 13 22:36:23 gophostsendmail[1749]: [ID 801593 mail.crit] q0DDaNrC001749: SYSERR(root): fill_fd: disconnect: fd 0 not open: Bad file number
messages.0:Jan 13 22:36:23 gophostsendmail[1749]: [ID 801593 mail.alert] q0DDaNrC001749: SYSERR(root): fill_fd: disconnect: cannot open /dev/null: No such file or directory
messages.0:Jan 13 22:36:23 gophostsendmail[1750]: [ID 801593 mail.crit] q0DDaNNn001750: SYSERR(root): fill_fd: disconnect: fd 0 not open: Bad file number
messages.0:Jan 13 22:36:23 gophostsendmail[1750]: [ID 801593 mail.alert] q0DDaNNn001750: SYSERR(root): fill_fd: disconnect: cannot open /dev/null: No such file or directory

Solution :
============

Based on the erorr it’s obvious that /dev/null link is missing. So solution should be

1. boot cdrom -s
2. mount /dev/dsk/c0t0d0s0 /a # here c0t0d0s0 being your root slice.
3. devfsadm -Cv -r /a ; pkgchk -f -R /a should fix the issue. in my case problem was resolved by pkgchk -f -R /a

Advertisements

February 8, 2012 - Posted by | Solaris

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: