• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Troubleshooting solaris 10 boot issues related to SMF and milestones

By admin

The post describes few troubleshooting tips for resolving the boot issues related to SMF(Service Management Facility). We can boot to early milestones and can go from one level to the next. this way we can identify the milestone causing the issues and eventually the service causing it.

General troubleshooting

Before going into more detailed troubleshooting, we can enable a more verbose debugging while booting the server. Look at results of below booting commands to check for any error messages (options ‘-vV’ and ‘-m verbose’ can be combined).

ok> boot -vV                 ## display verbose debugging information verbose info of OBP boot and kernel
ok> boot -m verbose          ## to show which service was last run and use that to check which service which should be run next. Provides verbose information on SMF.
ok> boot -m debug            ## this shows SMF services in very verbose level. Not recommended in normal cases.

SMF and milestones

1. Try to boot to the various levels from the ok prompt

ok> boot -m milestone=none       ## This  won't load any services so if one of them is causing problems you can fix it before loading it. 
ok> boot -m milestone=single-user
ok> boot -m milestone=multi-user
ok> boot -m milestone=multi-user-server

2. boot to early milestone and go from one level to the next

ok> boot -m milestone=none
# svcadm -v milestone svc:/milestone/single-user:default
# svcadm -v milestone svc:/milestone/multi-user:default
# svcadm -v milestone svc:/milestone/multi-user-server

3. Check the status of the services required for each run level

# svcs -d milestone/single-user:default
# svcs -d milestone/multi-user:default
# svcs -d milestone/multi-user-server:default

If a service is shown as disabled that should be enabled, try to re-enable it with:

#  svcadm -v enable -r [FMRI]

examples:

# svcadm -v enable -r svc:/system/device/local:default 
# svcadm -v enable -r svc:/system/filesystem/local:default

The -r option, for recursive, will start the dependencies

4. Check the status of all failing services

# svcs -xv

5. Refer log files
For problem services refer to the log files located in
A. /etc/svc/volatile/
B. /var/svc/log/
/etc/svc/volatile is an empty mountpoint that a tmpfs is mounted on during boot So it will only have files in the active boot environment

6. Rebuild the repository
We can also rebuild the SMF repository if required. Note that if you select boot, your system will reboot during the rebuild.

# /lib/svc/bin/restore_repository

or if booted failsafe

# /a/lib/svc/bin/restore_repository -r /a

7. Check status of milestones

# svcs | grep milestone
online         Jun_05   svc:/milestone/network:default
online         Jun_05   svc:/milestone/devices:default
online         Jun_05   svc:/milestone/single-user:default
online         Jun_05   svc:/milestone/sysconfig:default
online         Jun_05   svc:/milestone/name-services:default
online         Jun_05   svc:/milestone/multi-user:default
online         Jun_05   svc:/milestone/multi-user-server:default

The troubleshooting steps mentioned in the post are specifically related to SMF issues and may not be applicable in other hardware or software issues.

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to troubleshoot Solaris 10 SMF (Service Management Facility) related issues
  2. How to verify non-global solaris zone is installed
  3. How to Configure Link Aggregation in Solaris 11 (Trunk V/s Datalink multipathing (DLMP))
  4. Solaris 11 : How to verify whether I’m logged into a Kernel Zone?
  5. How to Create a Datalink in Non-Global Zone from the Global Zone in Solaris 11
  6. How To Change Timezone for Oracle Grid Infrastructure
  7. How to collect XSCF snapshot on M-series servers (M3000 / M4000 / M5000 / M8000 / M9000)
  8. Solaris : How to start syslogd in debug mode
  9. Oracle Solaris 11 Zones : New Features
  10. How to add swap file in Solaris

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary