LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-31-2020, 02:41 AM   #1
shachter
Member
 
Registered: Jul 2007
Posts: 101

Rep: Reputation: 2
Solaris 11.4 is suddenly hanging forever when I boot -- how do I diagnose and fix this?


Esteemed Colleagues:

Solaris 11.4 is giving me grief. It used to work. Now it hangs forever when I try to boot it. I am able to boot single-user, by modifying the GRUB menu either by adding "-s" to the multiboot line, or by adding "-m milestone=single-user". I booted single-user and permanently modified the GRUB menu, adding "-v -m verbose", hoping that this would produce useful information, but it did not. I reboot (with or without "-p" makes no difference) and after a while I type ESC to see the startup messages. The last thing I see is:

Reading ZFS config: done.
Mounting ZFS filesystems: (55/55)

There is no error message, and I suspect that the problem is not with /lib/svc/method/fs-local, but with the thing that happens next. I cannot determine what the thing is, that is making it hang. The only way out is to power-cycle, which of course one tries to avoid doing, but it is the only way out. I power-cycle and then reboot once again single-user, and once there I type "svcadm milestone -s -T 200 all", hoping that this will show me the point at which it hangs. It does not. It says "svcadm: Unexpected libscf error on line 2380: entity not found." and I remain in single-user mode. If I type "exit", then at this point the behavior seems to depend on how I got into single-user mode, but if I got there by way of "-s" and not by way of "-m milestone=single-user", I see:

logout
svc.startd: Returning to milestone all.
This Solaris instance has UUID 216ca207-d4e1-47b8-85a8-ae7027494944
dump device is /dev/zvol/dsk/rpool/dump size 7 GB (8130 MB)
Reading ZFS config: done.
Mounting ZFS filesystems: (55/55)

and then it hangs, and there is nothing to do but to power-cycle. At this point I must have done a cold restart at least 20 times, which can't be good. I actually have to lean on the power button. If I just touch it gently, it says:

WARNING: Power off requested from power button or SC, powering down the system!

and then, a few minutes later:

WARNING: Failed to shut down the system!

I should just give up on Solaris once and for all -- I have been tempted for years to do that -- but I have been using Solaris since 1983, and it is like giving up on a bad marriage that has already lasted many years. You keep on thinking that if you just invest a little more time, the thing that needed to be fixed will be finally fixed, and you will be happy again. So we beat on, boats against the current, borne back ceaselessly into the past. How do I diagnose and fix this problem? Thank you in advance for any and all replies.

jay at m5 dot chicago dot il dot us
 
Old 01-01-2021, 06:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
One possibility is a disk error. Can you read the whole disk with dd?

If the disk is good what does zpool status say?
 
Old 01-01-2021, 06:41 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Hmmm … the views are piling up, and nobody's answering, so let me try, although my knowledge of Solaris is pretty near zero.

By booting into single user mode, you're getting in, and it's mounting /, so that's a start. But init hasn't run. You apparently haven't any worthwhile backup, so it's repair or reinstall. Have you done the basics?
  • set a basic PATH variable
  • Do an fsck of the root drive. You can do it if you add a 'read-only' option. Things go badly wrong if you don't. You just need to know that / is not your problem
  • You then have to run down the init scripts. I'm presuming you have some clue where they are. In BSD it's /etc/rc.d; In linux generally, it's /etc/rc.d/init.d/ with symlinks to them from the various runlevels.

If / is the problem, you might be able to check it as follows. On the kernel boot line, add
init=/sbin/fsck -options <your root drive>.

The options would be: check it anyhow, even if it looks clean; repair any errors you meet; yes to any prompts. You are giving it complete authority to attack your disk, but do you have a better idea? It will sit there at the end, and you can reboot.

We need a laugh, or a success story. Report back either way!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import my times from POL TrackMania Nations Forever to Snap TrackMania Nations Forever? linustalman Linux - Games 1 09-03-2018 06:47 AM
How to diagnose a hanging or looping process? leetwanker Linux - Software 4 01-24-2014 04:38 AM
valid_lft forever preferred_lft forever sulekha Linux - Networking 1 01-10-2013 09:13 AM
Certain page in FF suddenly takes forever to load mrclisdue Slackware 5 12-08-2008 12:27 PM
ftp connections hanging forever in CLOSE, CLOSE_WAIT state mxyzplk Linux - Software 0 11-26-2003 09:54 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration