This post is to provide steps from changing iSCSI Static Discovery to SendTargets Discovery. If zones are configured, zones need to be halted before changing the iSCSI discovery method then boot afterward. If zpool is configured, zpool needs to be exported before changing the iSCSI discovery method then import afterward. Below are high level steps: […]
Solaris 11
Solaris 11.3 – Changing from iSCSI SendTargets Discovery to Static Discovery
Question: We have to set up a static configuration for an iSCSI device. It was added as dynamic but the specification calls for a static configuration. How to change iSCSI SendTargets Discovery to Static Discovery? 1. Halt the Solaris zones (if applicable). 2. Export the zfs pool: # zpool export {pool name} 3. Disable sendtargets […]
How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11
This post outlines steps to set up a cron job for automatic data collection from system activity reporter (aka SAR). Prior to Solaris 10 1. Become the superuser. 2. Edit the following file: # vi /etc/init.d/perf 3. Uncomment the following lines (remove the # sign from the beginning of each line): #if [ -z “$_INIT_RUN_LEVEL” […]
Solaris : Non-root user can’t run prtdiag command
The Problem Non-root user can’t run prtdiag command, but it works for root user # /usr/sbin/prtdiag picl_initialize failed: Daemon not responding The Solution The issue is caused by wrong permission of file /var/run/picld_door or directory /var/run. Set the permission of file /var/run/picld_door or directory /var/run as follow: # ls -l /var/run/picld_door dr–r–r– 1 root root […]
Howto Verify If a Bootblk is Installed on the Boot Disk (SPARC)
This can be useful in troubleshooting if the system fails to boot with a suspected bootblk issues, or if you suspect something in the OS keeps overwriting the bootblk. For Solaris 10 Below is the output from a Solaris 10u4 with UFS, Solaris 10u6 with UFS, and a Solaris 10u6 with ZFS bootblock. The bootblk […]
How to Set the TimeZone in Solaris 10,11
The Ask In Solaris Operating System (OS), where is the default timezone set, and how can it be changed? Solaris 11 OS and above 1. The default timezone is defined as a property of the “svc:/system/timezone:default” SMF service: # svcs timezone STATE STIME FMRI online Aug_22 svc:/system/timezone:default # svcprop timezone:default |grep localtime timezone/localtime astring US/Eastern […]
How to Check Solaris Release and Default Kernel Version
How to Determine the Installed Solaris OS Release The most reliable method for determining the release of the Solaris OS installed is through the contents of the /etc/release file. This file was first introduced in Solaris 2.5.1 HW 4/97 and is included in all subsequent versions. The various tables shown below can be used to […]
How to Configure TCP Keepalive option in Solaris
Typically, idle TCP connections are maintained indefinitely once established, even if no communication occurs between host systems. This is quite normal in TCP. In some cases, keeping the connection open may inappropriately consume host and/or application resources (normally TCP port ranges), if for example: the remote host crashes or otherwise undergoes some type of non-orderly […]
How to measure NIC Performance/Throughput in Solaris 11 using iftop
Monitoring network connections certainly can be frustrating, mainly because they can be established and then disappear within a matter of seconds. In this post, we will show you how to achieve a Zen-like approach to monitoring network connections on your servers using a command line–based tool called iftop. iftop is to networks what top is […]
Solaris : How to start syslogd in debug mode
The post outlines the steps to run the syslog daemon in debug mode. 1. Stop the syslogd daemon: # /etc/init.d/syslog stop ### Prior to Solaris 10 # svcadm disable svc:/system/system-log:default ### Solaris 10 and above 2. The environment variable SYSLOGD_DEBUG affects the amount of output from syslog in debug mode. The default value is 1, […]