Jump to content

Toolserver:Admin:Solaris

From mediawiki.org

This page was moved from the Toolserver wiki.
Toolserver has been replaced by Toolforge. As such, the instructions here may no longer work, but may still be of historical interest.
Please help by updating examples, links, template links, etc. If a page is still relevant, move it to a normal title and leave a redirect.

Solaris is the operating system we use on most servers, except nightshade.

Sun's Solaris documentation is available here and covers most aspects of the system.

Cheat sheet

[edit]
ps
use ps -eaf (System V syntax) instead of ps aux (BSD syntax).

Installing/upgrading software

[edit]

First, create a package for the new software with pkgbuild. Then use Puppet to deploy it to all hosts.

Services (SMF)

[edit]

Services in Solaris are managed by SMF. See here for a quick introduction to SMF.

  • List running services:
% svcs
  • List information about a service:
% svcs -vx mysql-51
svc:/application/ts/mysql-51:default (MySQL)
 State: online since Sat Mar 06 07:02:07 2010
   See: /var/svc/log/application-ts-mysql-51:default.log
Impact: None.
  • Restart a service in the "maintenance" state:
% svcadm clear mysql-51
  • Reload a service's configuration:
% svcadm restart ssh

Do not call the method scripts under /lib/svc/method directly. This will confuse SMF and cause things to break.

Category:Admin:Software