This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech:openindiana:start [2015/05/23 15:13] rk4n3 |
tech:openindiana:start [2017/05/03 22:17] (current) rk4n3 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Technical Information: OpenIndiana Topics ====== | ====== Technical Information: OpenIndiana Topics ====== | ||
- | [[:tech:openindiana:illumos:start|IllumOS Topics]] | + | [[:tech:openindiana:illumos:start|IllumOS Topics]] \\ |
[[:tech:openindiana:userland:start|oi-userland]] | [[:tech:openindiana:userland:start|oi-userland]] | ||
+ | |||
+ | ===== Common Tasks ===== | ||
+ | |||
+ | ==== Basic Installation ==== | ||
+ | For VirtualBox guest installation, install the Solaris Guest Additions: ''pkgadd -d ./VBoxSolarisAdditions.pkg'' | ||
+ | |||
+ | Enable DNS: add "dns" to the ''hosts'' line in ''/etc/nsswitch.conf'' | ||
+ | |||
+ | |||
+ | ==== Common Admin Tasks ==== | ||
+ | === Services === | ||
+ | * Check the dependents of the service: ''svcs -D //servicename//'' | ||
+ | * Enable a service: ''svcadm enable //servicename//'' | ||
+ | * Enable dependencies of a service: ''svcadm enable -r //servicename//'' | ||
+ | * Verify a service has been enabled: ''svcs -x //servicename//'' | ||
+ | * Restart a service: ''svcadm restart //servicename//'' | ||
+ | * Enable a service temporarily (or in single-user mode): ''svcadm enable -rt //servicename//'' \\ // This will enable service with its dependencies for current session, not persisted across reboots // | ||
+ | * Disable a service: ''svcadm disable //servicename//'' | ||
+ | |||
+ | === Services in maintenance state === | ||
+ | Normally, when a service instance is in a maintenance state, all processes associated with that instance have stopped. However, you should make sure before you proceed. | ||
+ | |||
+ | Determine why the service is in maintenance: ''svcs -x //servicename//'' | ||
+ | * Consult the log file or man page mentioned to determine what the error is. | ||
+ | * Determine if any process that are dependent to the service have not stopped. | ||
+ | |||
+ | The following command lists all of the processes that are associated with a service instance as well as the PIDs for those processes: \\ ''svcs -p //servicename//'' | ||
+ | |||
+ | //(Optional)// Kill any remaining processes ...repeat this step for all processes that are displayed by the svcs command: \\ ''pkill -9 process-name'' | ||
+ | |||
+ | Restore the service: ''svcadm clear //servicename//'' | ||
===== Zones ===== | ===== Zones ===== | ||
Line 44: | Line 75: | ||
* Populate /etc/resolv.conf and chown it to netadm:netadm | * Populate /etc/resolv.conf and chown it to netadm:netadm | ||
* Change the hosts line in /etc/nsswitch.conf (add "dns" after "files") | * Change the hosts line in /etc/nsswitch.conf (add "dns" after "files") | ||
+ | |||
+ | ==== Other zone operations ==== | ||
+ | |||
+ | === Removing a zone === | ||
+ | * Shut down the zone my-zone using one of the following methods. \\ // The zoneadm shutdown method is preferred // | ||
+ | * Using zoneadm: \\ ''global# zoneadm -z my-zone shutdown'' \\ ''my-zone'' | ||
+ | * Using zlogin: \\ ''global# zlogin my-zone shutdown'' \\ ''my-zone'' | ||
+ | * Remove the root file system for my-zone. \\ ''global# zoneadm -z my-zone uninstall -F'' \\ // the -F option to force the action generally isn't required // | ||
+ | * Delete the configuration for my-zone: \\ ''global# zonecfg -z my-zone delete -F'' \\ // the -F option to force the action generally isn't required. // | ||
+ | * List the zones on the system, to verify that my-zone is no longer listed. \\ ''global# zoneadm list -iv'' | ||
+ | * You will see a display that is similar to the following:<code>ID NAME STATUS PATH BRAND IP | ||
+ | 0 global running / solaris shared</code> | ||
\\ | \\ | ||
// Links: [[:tech:start|Tech Info]] ... [[:mantis:start|Mantis Area]] // | // Links: [[:tech:start|Tech Info]] ... [[:mantis:start|Mantis Area]] // | ||