Creating zone with VNIC and link aggregation

May 15, 2018 2:42 PM

A Solaris Container is the combination of system resource controls and the boundary separation provided by zones. Zones act as completely isolated virtual servers within a single operating system instance. By consolidating multiple sets of application services onto one system and by placing each into isolated virtual server containers, system administrators can reduce cost and provide most of the same protections of separate machines on a single machine [Wikipedia]. 

Solaris zone is a powerfull virtual server with easy to create, easy to configure, and easy to maintain. In networking technology, we can construct the zone using virtual network intefaces and link aggregation.

How to add zfs dataset to non-global zone

11:28 AM

Solaris zone is powerfull virtualization for unix platform. There many many flexibilities in use hardware resource. For example, you want to assign a dedicated zfs dataset to a zone. 

Solaris zone configuration utility (zonecfg) has a zone property to accomodate this requirement. Enter to zone configuration and specify the dataset name so the dataset will be active in the zone when it running. 

Database Oracle11g Listener Can't Start Due to TNS Permission Denied

Feb 6, 2017 4:35 PM


There is a problem with Oracle database. The database is failed to start and the listner failed too. Bellow the step of diagnosis and troubleshooting I have already taken.
 
1 Symptom : 
TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
TNS-00516: Permission denied

Boot Environment (BE) Administration

Jan 6, 2017 5:41 PM

Logically, there were an environment that packs all component into one environment. These components I mean are software installed, patch level, kernel, etc. That environment is called a Boot Environment (BE). 

Boot Environment can be check with 'list' argument, here is default boot enviroment :

root@war49:~# beadm list
BE      Flags Mountpoint Space  Policy Created
--      ----- ---------- -----  ------ -------
solaris NR    /          11.18G static 2017-01-04 16:35


How to replace a broken disk on Solaris Volume Manager (SVM)

Sep 5, 2016 5:38 PM

We have Solaris box in hardware Fujitsu Sparc M3000 with 4 internal disks configured on SVM. Bellow the internal disks information : # echo | format AVAILABLE DISK SELECTIONS: 0. c0t0d0 <fujitsu-mbd2147rc-3701 14087="" 24="" 2="" 848="" alt="" cyl="" hd="" sec=""> /pci@0,600000/pci@0/pci@0/scsi@0/sd@0,0 1. c0t1d0 <fujitsu-mbd2147rc-3701 14087="" 24="" 2="" 848="" alt="" cyl="" hd="" sec=""> /pci@0,600000/pci@0/pci@0/scsi@0/sd@1,0 2. c3t2d31 <sun-universalxport-0735 2="" 64="" 8="" alt="" cyl="" hd="" sec=""> /pci@1,700000/pci@0/pci@9/SUNW,emlxs@0/fp@0,0/ssd@w202500a0b868b254,1f 3. c4t0d31 <sun-universalxport-0735 2="" 64="" 8="" alt="" cyl="" hd="" sec=""> /pci@1,700000/pci@0/pci@9/SUNW,emlxs@0,1/fp@0,0/ssd@w202400a0b868b254,1f
There were a problem with with disk c0t0d0 in "Maintenance" status at sub-mirror d11. This tutorial will give step by step how to replace disk c0t0d0 in SVM environment.

Add, resize and activate swap in solaris zfs

Aug 27, 2016 6:40 AM

Precheck swap info :
# zfs get volsize rpool/swap
NAME        PROPERTY  VALUE    SOURCE
rpool/swap  volsize   16G      local
Resize swap :
# swap -l
swapfile             dev    swaplo   blocks     free
/dev/zvol/dsk/rpool/swap 228,2        16  8388592  8388592

# zfs set volsize=4g rpool/swap
# zfs get volsize rpool/swap
NAME        PROPERTY  VALUE    SOURCE
rpool/swap  volsize   4G       local
>> To activated new size must reboot OS

svc:/system/filesystem/local:default goes to maintenance status, find root cause and how to solve

Aug 26, 2016 3:44 PM

svc:/system/filesystem/local handles filesystem mounting related. And it has many dependency services. When this service got a problem, many services will impacted with Offline status. For example network service, ssh service, etc. While service system/filesystem/local is not online status the other service status are offline. Issue: Many services are not started with Offline status (ssh, .. etc) Cause: svc:/system/filesystem/local:default service state is Maintenance Impact: 42 Dependencies service is not running

Mounting Storage LUN into Solaris ZFS Storage Pool and Dataset

1:14 AM

Hey, It's a simply way to mount your external disks (storage LUN) to your solaris box using ZFS. For example we have one LUN from storage box. The storage communicates to server over FC connection that sanswitch is at there. Bellow the simply diagram : |storage box|-------------|sanswitch|--------------|solaris box| In server, should be check wwn number. This number is used by sanswitch to construct zone configuration. In solarisbox we can use 'fcinfo' command to check wwn on FC card which state is online. In sanswitch check the port status, is it online or not?

Configure IPMP Interface Solaris 11 in easy steps

Aug 3, 2016 1:49 PM

To provide a redundancy network connection, solaris11 provide IPMP feature which combine more than one ethernet physical connection in to one logical interface as known as ip network multipathing. IPMP is layer 3 protocol which has feature as failure detection, transparent access failover, and packet load spreading. What is benefit when you use a ipmp interface?. There was an unexpected situation on network, like network interface is suddenly unconnected, disabled, failure, etc which impacted to your network connection becomes unavailable. When you face with the situations in one physical/logical interface only, it will drive you to be disconnected from network.

Simply way to create Multipath MPxIO/STMS for SAN connection on Solaris 11

Aug 2, 2016 11:24 AM

When we have more than one physical connection from a server to a storage for access a same LUN. We should define a MPxIO for the SAN connection. With this refference, we would like to introduce a simply way on how to configure MPxIO for SAN in Solaris 11. If you not configure MPxIO, the LUN will appears duplicated in format output. So, configure MPxIO is must for multipath connection.

Configure Oracle Solaris Cluster Resource Group

Jun 6, 2016 11:35 AM

Bellow these steps for how to configure the resource group. About the resource group concept, you can read at Oracle documentation at https://docs.oracle.com/cd/E23623_01/html/E24500/toc.html

1. Register agent
    - Register HA Storage Plus Agent

    # clresourcetype register SUNW.HAStoragePlus

    - Register GDS Agent
   
    # clresourcetype register SUNW.gds
   

Removing ISCSI Connection

May 24, 2016 11:17 AM

Bellow the simply way to remove iscsi connection.

Check availability disks :

bash-3.2# echo | format
Searching for disks...

AVAILABLE DISK SELECTIONS:
       0. c0d0 <▒x▒▒▒▒▒▒▒▒▒@▒▒▒ cyl 6524 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c3t6589CFC0000005D031823E839C658847d0
          /scsi_vhci/disk@g6589cfc0000005d031823e839c658847
Specify disk (enter its number): Specify disk (enter its number):


Connecting ISCSI bock device from Solaris

10:53 AM

.___ .________._______ .________.___
: __||    ___/:_.  ___\|    ___/: __|
| : ||___    \|  : |/\ |___    \| : |
|   ||       /|    /  \|       /|   |
|   ||__:___/ |. _____/|__:___/ |   |
|___|   :      :/         :     |___|
               :                    


I have shared a 8 GB LUN as ISCSI block with ISCSI target is iqn.2016-05.org.freenas.ctl, I am using freenas. I am configured a freenas address at 192.168.100.131 with default port 3260. For initiator, I am allow all initiator connection and all authorized network. There was no CHAP authentication for the ISCSI connection, so everyone can connect over network connection.

Setup Oracle Solaris Cluster (part2)

May 23, 2016 11:20 AM

_________ .____     ____ ___  _________________________________________ 
\_   ___ \|    |   |    |   \/   _____/\__    ___/\_   _____/\______   \
/    \  \/|    |   |    |   /\_____  \   |    |    |    __)_  |       _/
\     \___|    |___|    |  / /        \  |    |    |        \ |    |   \
 \______  /_______ \______/ /_______  /  |____|   /_______  / |____|_  /
        \/        \/                \/                    \/         \/ 





This document is only provide technically setup Oracle Solaris Cluster. The install planning, install preparation is not provided by this document. This tutorial was a continued part from previous setup (part1). This installation mode is interactively, there were a step by step configuring your cluster for all nodes. Typically, you must prepare the Cluster name, Cluster nodes, Cluster transport and adapter, quorum configuration and check.

How to install Oracle Solaris Cluster (part1)

May 22, 2016 9:44 AM

________                      .__          
\_____  \____________    ____ |  |   ____  
 /   |   \_  __ \__  \ _/ ___\|  | _/ __ \ 
/    |    \  | \// __ \\  \___|  |_\  ___/ 
\_______  /__|  (____  /\___  >____/\___>
        \/           \/     \/          \/ 








Install Oracle Solaris Cluster in simply way
Login to solaris box, then extract the source of the oracle solaris cluster. Installation beginning with execute installer file as bellow, and this is an interactive installation. I change color of my input selection with violet as bellow :

Working with Predictive Self Healing (PSH) Oracle & Fujitsu Sparc Enterprise Server

Apr 26, 2015 4:49 PM

.... .. ... +^""888h. ~"888h .x888888hx : .xHL 8X. ?8888X 8888f d88888888888hxx .-`8888hxxx~ '888x 8888X 8888~ 8" ... `"*8888%` .H8X `%888*" '88888 8888X "88x: ! " ` .xnxx. 888X ..x.. `8888 8888X X88x. X X .H8888888%: '8888k .x8888888x `*` 8888X '88888X X 'hn8888888*" ?8888X "88888X ~`...8888X "88888 X: `*88888%` ! ?8888X '88888 x8888888X. `%8" '8h.. `` ..x8 H8H %8888 `8888 '%"*8888888h. " `88888888888888f '888> 888" 8888 ~ 888888888!` '%8888888888*" "8` .8" .. 88* X888^""" ^"****""` ` x8888h. d*" `88f !""*888%~ 88 ! `" . "" '-....:~ # Working with Predictive Self Healing (PSH) on Oracle Sparc Enterprise Server # Suwardi - line.console49@gmail.com # @ 26/04/2015 16:49:00 # Copyright (C) Suwardi 2015 |-- 0x0 Background When we maintenance Sparc Enterprise Server for Oracle brand and Fujitsu brand with Solaris OS inside. We will face to a system problem and hardware problem. To indentify, analyzing and repair problems there was a Oracle facility in the devices. That facility is PSH, PSH is a command line facility which deal with system problems. It's very usefull and helpfull.

How To Mount Storage LUNs on Solaris and Linux

Apr 22, 2015 3:42 PM

#>
  _________      .__               .__       
 /   _____/ ____ |  | _____ _______|__| ______
 \_____  \ /  _ \|  | \__  \\_  __ \  |/  ___/
 /        (  <_> )  |__/ __ \|  | \/  |\___ \
/_______  /\____/|____(____  /__|  |__/____  \
        \/                 \/              \/

#!/bin/sh
# Simply Guide of LUN mounting on Solaris & Linux
# Suwardi -> line.console49@gmail.com
# @ 22/4/2015

0x00. Description

Nowdays storage devices are mandatory requirement for Enterprise environment. Using internal disks are limited depends on maximum of server configuration. Storage device with connected to a server, the server enable to add/use external disks. So, we can expand the storage utilization.


Get Unix Memory And CPU Statistic

Mar 21, 2012 3:46 PM

,_________________________________________________________________________,
,                 Get Memory And CPU Performance Statistic                ,
,                 ========================================                ,
,_________________________________________________________________________,

Every Unix system has amount of physical memory (RAM). With this physical memory, Unix doing addressing and break it up into chunks or "pages" of memory. 
Pages of memory is the fixed length contiguous block of virtual memory that is the smallest unit of data for memory allocation and transfer [wikipedia]. 
In linux system, we can get the number of bytes per page using function 'getpagesize()' from standar library, for the example as follow:

 #include <unistd.h>
 #include <stdio.h>
 int main(int argc, char *argv[]) {
  printf("Page size: %d\n", getpagesize());
 }

So, how about the tools to measure the performances?. I will show you one greath tool to measure the memory and CPU. The tool are:

Article list :