Grow zpool in Solaris

How to Grow zpool with different disk size and should be mirrored . In the Given example we have to increase the size of datapool with two disk emcpower0c(724 GB)  and  emcpower4c (730 GB) .First the add the disk with lower size in the pool and after that just attach both the disk emcpower0c  and emcpower4c .

 # zpool list

# zpool list
datapool 1.97T 1.60T 374G  81% ONLINE -
rpool    113G  15.5G 97.5G 13% ONLINE -

# zpool add datapool emcpower0c

3 zpool add datapool emcpower0c

4 # zpool attach datapool emcpower0c emcpower4c

5.root@unixlab # zpool list


datapool   2.67T  1.60T  1.07T    59%  ONLINE  –

rpool        68G  34.0G  34.0G    49%  ONLINE  –


Lucreate Hung

In Solaris10 when we are creating new lu and its getting hunged during creation , then follow the below process. First find the process id of the lucreate and then find child process , then check where it get stucked

  1. ps -ef |grep -i lucreate

28197 /bin/sh /usr/lib/lu/lucreate -n sol10-20171208 -a rpool -b rpool

  1. Find the tree of the process id to know root cause.

root@unix # ptree 28197
1355 boks_init -f /etc/opt/boksm/boksinit.client
1367 /opt/boksm/lib/boks_sshd -D -g120 -4
23389 /opt/boksm/lib/boks_sshd -D -g120 -4 -R
23437 -ksh
23760 kslog -I-1 -Inoecho -Iecho -O0 -O-match -T0 -S0 -g0 -u0 -U root -l user1 -s su
23765 -sh
28192 lucreate -n sol10-20171208
28197 /bin/sh /usr/lib/lu/lucreate -n sol10-20171208 -a rpool -b rpool
387 /usr/bin/df -kh
root@unix #

  1. just un-mounted stale NFS

Solaris server not reachable via ssh

Whenever solaris server is not reachable then please perform the below steps to bring the servers reachable via ssh.

  1. Check svcs -vx
  2. Check all service which are not running .
  3. May be nfs file system , ufs f.s and dg not available due to which there is issue .
  4. hash the fs in vfstab and reboot the server

Ldom Panic the guest Domain

Solaris Ldom Panic – Unable to Login to guest , it may be hung .How to reboot it ?

This articale will guide if you are unable to login to guest domain if its get hung then how to
Panic the server in order to reboot it .

unixserver01-ctl:# ldm list
primary active -n-cv- UART 16 16G 3.7% 3.6% 217d 15h
unixa active -n—- 5002 16 100G 1.4% 1.4% 71d 22h 25m
unixb active -n—- 5004 16 55G 1.3% 1.3% 75d 16h 52m
unixc active -n—- 5003 8 46G 4.8% 4.8% 22d 19h 52m
unixd active -n—- 5001 32 160G 0.1% 0.1% 64d 23h 57m
service active -n–v- 5000 16 16G 0.7% 0.7% 140d 20h
unixserver01-ctl:# ldm panic unixc
unixserver01-ctl:# telnet localhost 5003
Trying ::1…
telnet: connect to address ::1: Connection refused
Connected to localhost.
Escape character is ‘^]’.
Connecting to console “unixc” in group “unixc” ….
Press ~? for control options ..
3:35 98% done (kernel)
3:41 100% done (zfs)
100% done: 1179733 (kernel) + 17228 (zfs) pages dumped, dump succeeded
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.
SPARC T5-4, No Keyboard
Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.37.2, 46.0000 GB memory available, Serial #83484087.
Ethernet address 0:14:4f:f9:dd:b7, Host ID: 84f9ddb7.
Boot device: /virtual-devices@100/channel-devices@200/disk@0:a File and args:
SunOS Release 5.11 Version 11.3 64-bit

Sun Cluster Cheat sheet

Sun cluster Cheat sheet

clrg online -n nodename RG-name

clresourcegroup switch -n nodename RG

clrs show -v resouce_name| grep -i dep
  Resource_dependencies:                          resource

clrg restart -n rg

zpool faulted state

I have faced issue for zpool faulted where pool zone is faulted and  due to which not able to access zone.The faulted pool is  zone and i have listed the process to make  online via export and import.

Recover faulted pool in Solaris

1.List the faulted zones .

#zpool list
ZONES     -      -      -    -  FAULTED  -

2.Make sure that no file Systems are  mounted .

  • zpool export zones
  • zpool import zones

Now check the status of zpool is online.

4 # zpool  list
ZONES     -      -      -    -   ONLINE  -
rpool   93G  27.4G  65.6G  29%   ONLINE  -

Firmware upgrade on SunFire v440 / Netra 440

Firmware upgrade procedure on SunFire v440 / Netra 440

Steps to upgrade the firmware version

1.Check the current version of firmware

server:/var/tmp/patching/118319-02 # prtconf -V
OBP 4.22.33 2007/06/18 12:42

2.Download the firmware patch from oracle website

server:/var/tmp/patching # unzip
   creating: 142707-01/
  inflating: 142707-01/README.142707-01
  inflating: 142707-01/
  inflating: 142707-01/
  inflating: 142707-01/
  inflating: 142707-01/817-6957-10.pdf
  inflating: 142707-01/flash-update-SunFire440
  inflating: 142707-01/unix.flash-update.README
  inflating: 142707-01/copyright
  inflating: 142707-01/LEGAL_LICENSE.TXT
  inflating: 142707-01/142707-01.html
server:/var/tmp/patching # cd 142707-01

server:/var/tmp/patching/142707-01 # ls -l
total 15334
-rw-r--r--   1 root     root       51204 Mar 28  2012 142707-01.html
-rwxr-xr-x   1 root     root     3159237 Feb  2  2010
-rwxr-xr-x   1 root     root      132830 Feb  2  2010 817-6957-10.pdf
-rwxr-xr-x   1 root     root          59 Feb  2  2010 copyright
-rwxr-xr-x   1 root     root     2534580 Feb  1  2010 flash-update-SunFire440
-rwxr-xr-x   1 root     root       14621 Feb  2  2010
-r--r--r--   1 root     root       18775 Sep 17  2010 LEGAL_LICENSE.TXT
-rw-r--r--   1 root     root       49239 Mar 28  2012 README.142707-01
-rwxr-xr-x   1 root     root        3622 Feb  2  2010 unix.flash-update.README
-rwxr-xr-x   1 root     root     1829586 Feb  1  2010

3. Run the Script to upgrade the firmware .

server:/var/tmp/patching/142707-01 # ./

Flash Update 2.4: Program and system initialization in progress...

Current System Flash PROM Revision:
OBP 4.22.33 2007/06/18 12:42 Sun Fire V440,Netra 440

Available System Flash PROM Revision:
OBP 4.30.0 2010/01/06 14:45

NOTE: The system will be rebooted (reset) after the firmware has been updated.
However, if an error occurs then the system will NOT be rebooted.

Do you wish to update the firmware in the system Flash PROM? yes/no : yes

Erasing the top half of the Flash PROM.
Programming OBP into the top half of the Flash PROM.
Verifying OBP in the top half of the Flash PROM.

Erasing the bottom half of the Flash PROM.
Programming OBP into the bottom half of Flash PROM.
Verifying OBP in the bottom half of the Flash PROM.

Erasing the top half of the Flash PROM.
Programming POST into the top half of Flash PROM.
Verifying POST in the top half of the Flash PROM.

The system's Flash PROM firmware has been updated.

Please wait while the system is rebooted...

Shutdown started.    Sunday, September 24, 2017 11:37:40 PM EDT

Changing to init state 6 - please wait
Broadcast Message from root (syscon) on server Sun Sep 24 23:37:40...
Log off now or risk your files being damaged

updating /platform/sun4u/boot_archive

server:/root # bash

4. Once Server rebooted check the updated firmware version on the server.

server:/root # prtconf -V
OBP 4.30.4.a 2010/01/06 14:45
server:/root #