You are working on a system that appears to be hanging during the boot process. Which would be
the course of action for determining which step in the boot process is causing the issue?
A.
Bootthe system into single user mode, run ps -ef to determine processes thatare notrunning.
B.
Boot the system into the “none” milestone, enable all services, then run svcs-ato determine
thestate of your services, as well as check forerror messages in /var/svc/log.
C.
Boot the system, disable all services using the “svcs disable all” command, reboot and bring up
eachserviceindividually.
D.
Interrupt the boot processbefore services are started with Stop-A or<CTRL><ALT><DELETE>.
E.
Perform an Interactive boot, and disable services as they request startup.
Explanation:
*Booting a system using the none milestone can be very useful for debugging
startup problems. There is no equivalent run level to the none milestone.
*If problems with starting services occur, sometimes a system will hang during the boot. This
procedure shows how to troubleshoot this problem.
2.Boot without starting any services.
This command instructs the svc.startd daemon to temporarily disable all services and start sulogin
on the console.
ok boot -m milestone=none
2.Log in to the system as root.
3.Enable all services.
# svcadm milestone all
4.Determine where the boot process is hanging.
When the boot process hangs, determine which services are not running by running svcs -a. Look
for error messages in the log files in /var/svc/log.
Verify that all needed services are online.
# svcs -x
Verify that the console-login service dependencies are satisfied.
This command verifies that the login process on the console will run.# svcs -l system/console-login:default
6.Continue the normal booting process.
Reference:How to Boot Without Starting Any Services
B
The default milestone is all which starts all enabled services. Another useful milestone is none which starts only init, svc.startd and svc.configd. This milestone provides a very useful debugging environment where services can be started manually.