Sunday 25 December 2016

zones configuration script for solaris servers(server-global-nongloba)


1)copy server zone script in centeral server
2)copy global zone script in globalzones
3)copy nonglobal zone script in nonglobal zones.

# cat zones_server.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########Zones INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
#echo "From:xx@xx.com" >"/tmp/output1"

echo "To:yy@yycom" >"/tmp/output1"

echo "Subject:SOLARIS B2B ZONES CONFIGURATION INFO ">>"/tmp/output1"
echo "Content-type: text/html">>/tmp/output1
echo "<html>">>"/tmp/output1"
echo "<body>">>"/tmp/output1"
echo "<table bgcolor="#e7f5fe" width=100% border='3'>">>"/tmp/output1"
echo "<tr bgcolor="#FFA500"> <td colspan="4"><center><H3> GLOBAL ZONE  INFORMATION </H3></center></td> <td colspan="4"><center><H3> LOCAL ZONE  INFORMATION </H3></center></td></tr>" >>"/tmp/output1"
echo "<tr bgcolor="#d1c4e9"> <td><center><H3>IP ADDRESS </H3></center></td><td><center><H3> HOSTNAME  </H3></center></td><td><center><H3> VCPU  </H3></center></td><td><center><H3> RAM  </H3></center></td> <td><center><H3>IP ADDRESS   </H3></center></td><td><center><H3> HOST NAME  </H3></center></td><td><center><H3> VCPU  </H3></center></td><td><center><H3> RAM  </H3></cent
er></td> </tr>" >>"/tmp/output1"
for i in `cat /opt/scripts/zones_server_list`
do
echo "<td> $i</td>"  >>"/tmp/output1"
ssh -q $i ' bash /opt/scripts/zones_client.sh'>>"/tmp/output1"
done
echo "</table>" >>"/tmp/output1"
echo "</body>">>"/tmp/output1"
echo "</html>">>"/tmp/output1"
cat "/tmp/output1"|/usr/sbin/sendmail -t
>"/tmp/output1"

For Global zone script:-

 # cat zones_client.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########Zones client INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
HOSTNAME=`uname -n`
PROC_NO=`/usr/sbin/psrinfo|wc -l`
RAM_SZ=`/usr/sbin/prtconf|grep -i "Memory size" |awk -F: '{print $2}'`
echo "<td >"$HOSTNAME"</td><td >"$PROC_NO"</td><td >"$RAM_SZ"</td>"

For Local zone script:-

 # cat zones_client.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########Zones client INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
HOSTNAME=`uname -n`
PROC_NO=`/usr/sbin/psrinfo|wc -l`
RAM_SZ=`/usr/sbin/prtconf|grep -i "Memory size" |awk -F: '{print $2}'`
echo "<td >"$HOSTNAME"</td><td >"$PROC_NO"</td><td >"$RAM_SZ"</td></tr>"

File system checking script for solaris servers(server-client)

1)server script will be placed in central server.
2)client script will be copied in all servers(clients)


# cat filesystems_check_server.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########FILE SYSTEMS CHECK##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
#echo "From:XXXXX@gmail.com" >"/tmp/FileSystem_output"
echo "To:YYYYYY@yahoo.com" >>"/tmp/FileSystem_output"
echo "Subject:DAILY SOLARIS SERVERS FILE SYSTEMS CHECK  ">>"/tmp/FileSystem_output"
echo "Content-type: text/html">>/tmp/FileSystem_output
echo "<html>">>"/tmp/FileSystem_output"
echo "<body>">>"/tmp/FileSystem_output"
for i in `cat /opt/scripts/solaris_list`
do
ssh -q $i '/opt/scripts/filesystems_check_client.sh'>>"/tmp/FileSystem_output"
done
echo "</body>">>"/tmp/FileSystem_output"
echo "</html>">>"/tmp/FileSystem_output"
cat "/tmp/FileSystem_output"|/usr/sbin/sendmail -t
>"/tmp/FileSystem_output"





#cat filesystems_check_client.sh
#!/usr/bin/bash
#########################################
######### Chittibabu Generated SCRIPT########
######### FILE SYSTEM CHECK CLIENT##############
##VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
Node=`uname -n`
echo "<table width=100%>">>"/tmp/output_filesystemcheck"
echo "<tr BGCOLOR="#33d7ff"><td colspan="6" align="center"> <h1> $Node</h1> </td></tr>">>"/tmp/output_filesystemcheck"
#echo "<tr> `cat /etc/hosts|grep `hostname`|grep -v "#"`">>"/tmp/output_filesystemcheck"
#echo "</tr>
FS=`df -h |grep -v Filesystem |awk '{print $6}'`
for i in `echo $FS`
do
##[[`df -h $i|grep -v Filesystem|awk '{print $5}'` -le 50]]&& echo "les 50" || echo "gre 50"
if [ `df -h $i|grep -v Filesystem|awk '{print $5}'|tr -d %` -le 80 ]
then
        echo "<TR BGCOLOR="#00FF00">">>"/tmp/output_filesystemcheck"
        f=`df -h $i|grep -v Filesystem`
        for y in `echo $f`
        do
        echo "<td> $y</td>">>"/tmp/output_filesystemcheck"
        done
        echo "</tr>">>"/tmp/output_filesystemcheck"
else
        echo "<TR BGCOLOR="#FF0000">">>"/tmp/output_filesystemcheck"
        f=`df -h $i|grep -v Filesystem`
        for y in `echo $f`
        do
        echo "<td> $y</td>">>"/tmp/output_filesystemcheck"
        done
        echo "</tr>">>"/tmp/output_filesystemcheck"
fi
done
echo "</table>">>"/tmp/output_filesystemcheck"
cat "/tmp/output_filesystemcheck"
>"/tmp/output_filesystemcheck"


Tuesday 20 December 2016

Solaris syslog monitoring script.

1)Configure all system logs to single file i.e /var/adm/messages

vi /etc/syslog.conf
##ident "@(#)syslog.conf        1.5     98/12/14 SMI"   /* SunOS 5.0 */
##
## Copyright (c) 1991-1998 by Sun Microsystems, Inc.
## All rights reserved.
##
## syslog configuration file.
##
## This file is processed by m4 so be careful to quote (`') names
## that match m4 reserved words.  Also, within ifdef's, arguments
## containing commas must be quoted.
##
#*.err;kern.notice;auth.notice                  /dev/sysmsg
#*.err;kern.debug;daemon.notice;mail.crit       /var/adm/messages
#
#*.alert;kern.err;daemon.err                    operator
#*.alert                                                root
#
#*.emerg                                                *
#
## if a non-loghost machine chooses to have authentication messages
## sent to the loghost machine, un-comment out the following line:
#auth.notice                    ifdef(`LOGHOST', /var/log/authlog, @loghost)
#
#mail.debug                     ifdef(`LOGHOST', /var/log/syslog, @loghost)
#
##
## non-loghost machines will use the following lines to cause "user"
## log messages to be logged locally.
##
#ifdef(`LOGHOST', ,
#user.err                                       /dev/sysmsg
#user.err                                       /var/adm/messages
#user.alert                                     `root, operator'
#user.emerg                                     *
#)
*.debug                                         /var/adm/messages
~
:wq!




#svcadm refresh system-log
#svcadm restart system-log


2)deploy server script on  centeral server.

server script:-

#!/bin/bash
#########################################
######### ################SCRIPT#######
##########SYS LOGS INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
echo "From:chitti.babu@gmail.com" >"/tmp/syslog_output"
echo "To:chitti.babu@yahoo.com" >"/tmp/syslog_output"
echo "Subject:SOLARIS SERVERS SYSLOG  ">>"/tmp/syslog_output"
echo "Content-type: text/html">>/tmp/syslog_output
echo "<html>">>"/tmp/syslog_output"
echo "<body>">>"/tmp/syslog_output"
echo "<table>">>"/tmp/syslog_output"
for i in `cat /opt/scripts/solaris_list`
do
echo "<tr bgcolor=#FFB6C1><td align=center> $i</td></tr>"  >>"/tmp/syslog_output"
echo "<tr><td><pre>" >> "/tmp/syslog_output"
ssh -q $i '/opt/scripts/syslogs_client.sh'>>"/tmp/syslog_output"
echo "</pre></td></tr>" >> "/tmp/syslog_output"
done
#/bin/dmesg|grep ^"`date \"+%b %e\"`"|egrep -v "xntp|keyboard|wrong magic number|mail|auth.info|ntpdate|repeated|Duplicate|bpcd|Plugin">>"/tmp/syslog_output"
echo "</table>" >>"/tmp/syslog_output"
echo "</body>">>"/tmp/syslog_output"
echo "</html>">>"/tmp/syslog_output"
cat "/tmp/syslog_output"|/usr/sbin/sendmail -t
>"/tmp/syslog_output"





3)deploy client script on all clients

client script:-

# cat syslogs_client.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########SYS LOGS INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
/bin/dmesg|grep ^"`date \"+%b %e\"`"|egrep -v "xntp|keyboard|wrong magic number|mail|auth.info|ntpdate|repeated|Duplicate|bpcd|Plugin"



Thursday 6 October 2016

script for single solaris zone from global zone only?

# cat zonesinfo.sh
#!/bin/bash
#########################################
######### ################SCRIPT#######
##########Zones INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
echo "From:chitti.babu@gmail.com" >"/tmp/output1"
echo "To:chitti.babu@yahoo.com" >"/tmp/output1"
echo "Subject:ZONES CONFIGURATION INFO:`uname -n` ">>"/tmp/output1"
echo "Content-type: text/html">>/tmp/output1
echo "<html>">>"/tmp/output1"
echo "<body>">>"/tmp/output1"
echo "<table bgcolor="#e7f5fe" width=100% border='3'>">>"/tmp/output1"
echo "<tr bgcolor="#FFA500"> <td colspan="4"><center><H3> GLOBAL ZONE  INFORMATION </H3></center></td> <td colspan="4"><center><H3> LOCAL ZONE  INFORMATION </H3></center></td></tr>" >>"/tmp/output1"
echo "<tr bgcolor="#d1c4e9"> <td><center><H3>HOST NAME   </H3></center></td><td><center><H3> IPADDRESS  </H3></center></td><td><center><H3> VCPU  </H3></center></td><td><center><H3> RAM  </H3></center></td> <td><center><H3>HOST NAME   </H3></center></td><td><center><H3> IPADDRESS  </H3></center></td><td><center><H3> VCPU  </H3></center></td><td><center><H3> RAM  </H3></cent
er></td> </tr>" >>"/tmp/output1"
HOSTNAME=`uname -n`
echo "<td >"$HOSTNAME"</td>" >>"/tmp/output1"
IPAD=`cat /etc/hosts|grep $HOSTNAME|awk '{print $1}'`
echo "<td >"$IPAD"</td>" >>"/tmp/output1"
echo "<td >"`psrinfo|wc -l`"</td>" >>"/tmp/output1"
echo "<td>"`prtconf|grep -i "Memory size" |awk -F: '{print $2}'`"</td>" >>"/tmp/output1"
ZoneName=`/usr/sbin/zoneadm list -cv|grep -v "NAME"|grep -v "global"|awk '{print $2}'`
zonecfg -z $ZoneName info >/tmp/zoneinfo.output
echo "<td>"`cat /tmp/zoneinfo.output|grep zonename|awk -F: '{ print $2 }'`"</td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep address|awk -F: '{ print $2 }'`"</td>" >>"/tmp/output1"
CPU=`ssh -q $ZoneName 'psrinfo|wc -l'`
#echo "<td>"`cat /tmp/zoneinfo.output|grep cpu-shares|grep -v 'name'|tr -d "[ ]"|awk -F: '{ print $2 }'`"</td>" >>"/tmp/output1"
echo "<td>"$CPU"</td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep physical|grep -v vnet|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "</table>" >>"/tmp/output1"
echo "<table bgcolor="#e7f5fe" width=100% border='3'>">>"/tmp/output1"
echo "<tr bgcolor="#FFA500"> <td colspan="2"><center><H3> GLOBAL ZONE  INFORMATION </H3></center></td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9"><b> ZONE NAME </b> </td>" >>"/tmp/output1"
echo "<td>"Global"</td></tr>" >>"/tmp/output1"
echo "<tr><td colspan='2' bgcolor="#d1c4e9"><b> RUNNING ZONES INFORMATION </b> </td></tr>" >>"/tmp/output1"
echo "<tr><pre><td colspan='2'>" >>"/tmp/output1"
/usr/sbin/zoneadm list -cv >>"/tmp/output1"
echo "</pre></td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9"><b> RAM SIZE</b> </td>" >>"/tmp/output1"
echo "<td>"`prtconf|grep -i "Memory size" |awk -F: '{print $2}'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9" colspan='2'><b> UPTIME , KERNEL VERSION  </b> </td>" >>"/tmp/output1"
echo "<tr><td colspan='2'>"`uptime`"</td></tr>" >>"/tmp/output1"
echo "<tr><td colspan='2'>"`uname -a`"</td></tr>" >>"/tmp/output1"
echo "<tr><td  bgcolor="#d1c4e9" colspan='2'><b> CPU INFORMATION  </b> </td></tr>" >>"/tmp/output1"
echo "<tr><pre><td colspan='2'>" >>"/tmp/output1"
psrinfo >>"/tmp/output1"
echo "</pre></td></tr>" >>"/tmp/output1"
echo "<tr><td  bgcolor="#d1c4e9" colspan='2'><b> FILE SYSTEM INFORMATION  </b> </td></tr>" >>"/tmp/output1"
echo "<tr><pre><td colspan='2'>" >>"/tmp/output1"
df -h >>"/tmp/output1"
echo "</pre></td></tr>" >>"/tmp/output1"
echo "</table>" >>"/tmp/output1"
echo "<table bgcolor="#e7f5fe" width=100% border='3'>">>"/tmp/output1"
echo "<tr bgcolor="#FFA500"> <td colspan="2"><center><H3> LOCAL ZONES  INFORMATION </H3></center></td></tr>" >>"/tmp/output1"
#ZoneName=`/usr/sbin/zoneadm list -cv|grep -v "NAME"|grep -v "global"|awk '{print $2}'`
#echo $ZoneName
#zonecfg -z $ZoneName info >/tmp/zoneinfo.output
echo "<tr><td bgcolor="#d1c4e9"><b> INSTALLED ZONE NAME </b> </td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep zonename|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9"><b> INSTALLED ZONE PATH </b> </td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep zonepath|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td  bgcolor="#d1c4e9" colspan='2'><b>ZONES UPTIME , KERNEL VERSION  </b> </td>" >>"/tmp/output1"
echo "<tr><td colspan='2'>"`ssh -q $ZoneName  'uptime'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td colspan='2'>"`ssh -q $ZoneName  'uname -a'`"</td></tr>" >>"/tmp/output1"
#echo "<tr><td bgcolor="#d1c4e9"><b> NUMBER OF CPUS </b> </td></tr>" >>"/tmp/output1"
#echo "<td>"`cat /tmp/zoneinfo.output|grep cpu-shares|grep -v 'name'|tr -d "[ ]"|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9"><b> SHARED RAM SIZE</b> </td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep physical|grep -v vnet|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9"><b> SHARED SWAP SIZE</b> </td>" >>"/tmp/output1"
echo "<td>"`cat /tmp/zoneinfo.output|grep swap|grep -v 'name'|tr -d "[ ]"|awk -F: '{ print $2 }'`"</td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9" colspan='2'><b> SHARED  FILE SYSTEM INFORMATION  </b> </td></tr>" >>"/tmp/output1"
echo "<tr><pre><td colspan='2'>" >>"/tmp/output1"
ssh -q $ZoneName  'df -h' >>"/tmp/output1"
echo "</pre></td></tr>" >>"/tmp/output1"
echo "<tr><td bgcolor="#d1c4e9" colspan='2'><b> SHARED RESOURCE  INFO  </b> </td></tr>" >>"/tmp/output1"
echo "<tr><pre><td colspan='2'>" >>"/tmp/output1"
/usr/sbin/zonecfg -z $ZoneName info >>"/tmp/output1"
echo "</pre></td></tr>" >>"/tmp/output1"
echo "</table>" >>"/tmp/output1"
echo "</body>">>"/tmp/output1"
echo "</html>">>"/tmp/output1"
cat "/tmp/output1"|/usr/sbin/sendmail -t
>"/tmp/output1"
#

how to upgrade QLOGIC Firmware in T4 series servers / Q-logic SAN SURFER?

How to install SANSURFER in solaris11

to download pkg:-
http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/DefaultNewSearch.aspx
select model & click Go
download both
1)Boot Code
2)Management Tools for Solaris

============To configure iso local repository in solaris 11=====

#mkdir /var/tmp/patch/QLOGIC

#pkgrepo create /var/tmp/patch/QLOGIC

#cd /var/tmp/patch/QLOGIC
                                                                                                                                        
#ls
pkg5.repository

#pkgrecv -s /var/tmp/patch/QConvergeConsoleCLI/QConvergeConsoleCLI-1.1.03-38-solaris-sparc.p5p -d QLOGIC qaucli
Processing packages for publisher qlogic ...
Retrieving and evaluating 1 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                         1/1     7.2/7.2   32.5/32.5

#pkg set-publisher -p file:///var/tmp/patch/QLOGIC  qlogic
pkg set-publisher:
  Added publisher(s): qlogic

#pkg install qaucli
           Packages to install:  1
            Services to change:  1
       Create boot environment: No
Create backup boot environment: No

DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                                1/1       297/297      7.2/7.2    0B/s

PHASE                                          ITEMS
Installing new actions                       515/515
Updating package state database                 Done
Updating package cache                           0/0
Updating image state                            Done
Creating fast lookup database                   Done
Updating package cache                           2/2





before patch

=====================to see info================

Enter a file name or Hit <RETURN> to abort: /var/tmp/patch/q8q20404.bin
Installed flash version      : 02.04.04.00
To be installed flash version: 02.04.04.00

root@ucuxcontrol6s:/root =#qaucli
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/qaucli.cfg
Installation directory: /opt/QLogic_Corporation/QConvergeConsoleCLI
Working dir: /root
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/netscli.cfg
Loading CNA Data ...
Loading:  1. CNA ...
Loading:  1. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  1. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  2. CNA ...
Loading:  2. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  2. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  3. CNA ...
Loading:  3. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  3. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  4. CNA ...
Loading:  4. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  4. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Refreshing interfaces ... Please wait ...




        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Main Menu

    1:  Adapter Information
    2:  Adapter Configuration
    3:  Adapter Updates
    4:  Adapter Diagnostics
    5:  Adapter Statistics
    6:  FabricCache CLI
    7:  Refresh
    8:  Help
    9:  Exit


        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Adapter Type Selection

    1:  Converged Network Adapter


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Converged Network Adapter Information

    1:  CNA Adapter Information
    2:  CNA Port Information
    3:  CNA VPD Information
    4:  CNA NIC Information
    5:  CNA FCoE Information
    6:  CNA Port Target/LUN Information


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    CNA Adapter Information

     1: CNA Model: QEM8152  SN: 0402L00-1132991806
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     2: CNA Model: QEM8152  SN: 0402L00-1142004006
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     3: CNA Model: QEM8152  SN: 0402L00-1142004196
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     4: CNA Model: QEM8152  SN: 463916H+1342041987
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    CNA Adapter Information

    1:  NIC
    2:  FCoE


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 2
--------------------------------------------------------------------------------
Host Name                      : ucuxcontrol6s
HBA Model                      : QEM8152
Device ISP ID                  : ISP8001
Chip Revision                  : 0x2(A1)
HBA Description                : QEM8152 SUN PCI Express to 10 GbE Dual Channel CNA (FCoE)
HBA Alias                      :
Serial Number                  : 0402L00-1132991806
Driver Version                 : qlc-160208-5.05
Running Firmware Version       : 8.03.00
Flash Image Version            : 020014
PCI Bus Number                 : 65
PCI Device Number              : 0
PCI Function Number            : 3
--------------------------------------------------------------------------------

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    CNA Adapter Information

    1:  NIC
    2:  FCoE


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1
--------------------------------------------------------------------------------
Hostname                    : ucuxcontrol6s
Adapter Model               : QEM8152
Device ISP ID               : ISP8000
Chip Revision               : A1
Adapter Alias               : None
Serial Number               : 0402L00-1132991806
MAC Address Function 1      : 00:c0:dd:1d:88:b4
MAC Address Function 1      : 00:c0:dd:1d:88:b6
Driver Version              : Unknown
MPI Firmware Version        : 1.40.04
Flash Package Version       : 2.0.14
PXE Boot Version            : 01.14
FCoE Driver Version         : qlc-160208-5.05
FCoE Firmware Version       : 8.03.00
FCoE SDMAPI Version         : 7.02 Build 3
--------------------------------------------------------------------------------




=============to upgrade================

 Main Menu

    1:  Adapter Information
    2:  Adapter Configuration
    3:  Adapter Updates
    4:  Adapter Diagnostics
    5:  Adapter Statistics
    6:  FabricCache CLI
    7:  Refresh
    8:  Help
    9:  Exit


        Please Enter Selection: 3

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Adapter Type Selection

    1:  Converged Network Adapter


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection:
Invalid selection!

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Adapter Type Selection

    1:  Converged Network Adapter


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    CNA Adapter Update

    1:  Flash Update
    2:  Parameters Update
    3:  MPI Config Table Update
    4:  FW Preload Table Update
    5:  FW Serdes Table Update
    6:  FW Mini Dump


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1

        QConvergeConsole

        CLI - Version 1.1.3 (Build 38)

    Flash Update

     1: CNA Model: QEM8152  SN: 0402L00-1132991806
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     2: CNA Model: QEM8152  SN: 0402L00-1142004006
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     3: CNA Model: QEM8152  SN: 0402L00-1142004196
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]
     4: CNA Model: QEM8152  SN: 463916H+1342041987
          Port   1 [Protocol(s): NIC FCoE]
          Port   2 [Protocol(s): NIC FCoE]


        (p or 0: Previous Menu; m or 98: Main Menu; ex or 99: Quit)
        Please Enter Selection: 1
Enter a file name or Hit <RETURN> to abort: /var/tmp/patch/q8q20404.bin
Installed flash version      : 02.00.14.00
To be installed flash version: 02.04.04.00
Load Flash (Boot & Firmware images)? (yes, no) [yes]: yes
NOTE: Boot From SAN mode is enabled, so card reset must not happen.
Loading file /var/tmp/patch/q8q20404.bin, please wait ...

Successfully updated flash (Boot & Firmware images).
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!                                                                  !!!
!!! Flash update was successful.                                     !!!
!!! Reboot of Operating system is required to activate flash update. !!!
!!!                                                                  !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Using config file: /opt/QLogic_Corporation/QConvergeConsoleCLI/netscli.cfg
Loading:  1. CNA ...
Loading:  1. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  1. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  2. CNA ...
Loading:  2. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  2. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  3. CNA ...
Loading:  3. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  3. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Loading:  4. CNA ...
Loading:  4. CNA Physical Port : 1 (Index :  1) Function ID :  0 ...
Loading:  4. CNA Physical Port : 2 (Index :  2) Function ID :  1 ...
Refreshing interfaces ... Please wait ...


================infor after upgrade==========

--------------------------------------------------------------------------------
Host Name                      : ucuxcontrol6s
HBA Model                      : QEM8152
Device ISP ID                  : ISP8001
Chip Revision                  : 0x2(A1)
HBA Description                : QEM8152 SUN PCI Express to 10 GbE Dual Channel CNA (FCoE)
HBA Alias                      :
Serial Number                  : 0402L00-1132991806
Driver Version                 : qlc-160208-5.05
Running Firmware Version       : 8.03.00
Flash Image Version            : 020404
PCI Bus Number                 : 65
PCI Device Number              : 0
PCI Function Number            : 3
--------------------------------------------------------------------------------

Solaris servers Check Availability script


1)in this script we have server-client technology
2)server(central server which can login in to other servers with out passwords) can collect information from clients & push to users
3)client script will be placed on all clients & generate information(Nodename,kernel release,uptime,last reboot,status)
4)keep maintain all servers need to collect information in solaris_list file


client script

# cat client.sh
#!/bin/bash
############################################################
###########################################################
###SOLARIS SERVERS AVAILABILITY CHECK##################################
###version 1.0##########################################
####designed: CHITTI BABU MIRIYALA################
###############################################
#!/bin/bash
NODE_NAME=`uname -n`
KERNEL_REL=`uname -v`
UP_TM=`uptime|awk -F"," '{print $1}'`
LST_BOT=`who -b|awk '{print $4, $5 ,$6}'`
echo "<td>$NODE_NAME</td><td>$KERNEL_REL</td><td>$UP_TM</td><td>$LST_BOT</td><td>Available</td></tr>"



server script

# cat server_live.sh
#!/bin/bash
############################################################
###########################################################
###SOLARIS SERVERS AVAILABILITY CHECK##################################
###version 1.0##########################################
####designed: CHITTI BABU MIRIYALA################
###############################################
>/tmp/server_health_output1
echo "From:chitti.babu@gmail.com" >"/tmp/server_health_output1"
echo "To:chitti.babu@yahoo.com">>"/tmp/server_health_output1"
>>"/tmp/server_health_output1"
echo "Subject:SOLARIS SERVERS AVAILABILITY CHECK">>"/tmp/server_health_output1"
echo "Content-type: text/html">>"/tmp/server_health_output1"
echo "<html>">>"/tmp/server_health_output1"
echo "<body>">>"/tmp/server_health_output1"
echo "<table width=100%>">>"/tmp/server_health_output1"
echo "<tr BGCOLOR="#33ffec"><td colspan=6><h4><center> SOLARIS SERVERS AVAILABILITY STATUS </h4></td></tr>">>"/tmp/server_health_output1"
echo "<tr BGCOLOR="#FFFF00"><td> <h5>NODE IP ADDRESS </h5> </td><td> <h5>NODE NAME</h5> </td><td> <h5>KERNEL VERSION</h5></td><td> <h5>UP TIME</h5> </td><td> <h5>LAST REBOOTED</h5></td><td><h5>SERVER STATUS</h5> </td></tr>">>"/tmp/server_health_output1"
for i in `cat /opt/scripts/solaris_list`
do
#ping -q -c 1 $i > /tmp/null
ping -p 22 $i > /tmp/null
if [ $? -eq 0 ]
then

echo "<tr BGCOLOR="#00FF00"><td> $i</td>">>"/tmp/server_health_output1"
        ssh -q $i  '/bin/bash /opt/scripts/client.sh' >>"/tmp/server_health_output1"
else

echo "<tr BGCOLOR="#FF0000"><td colspan=6> $i SERVER NOT REACHBLE NEED ADMIN HELP</td></tr>">>"/tmp/server_health_output1"
fi
done
echo "</table>" >>"/tmp/server_health_output1"
echo "</body>">>"/tmp/server_health_output1"
echo "</html>">>"/tmp/server_health_output1"
cat "/tmp/server_health_output1"|/usr/sbin/sendmail -t
#cat "/tmp/server_health_output1"|mail "chitti.babu@gmail.com"
>"/tmp/server_health_output1"

Wednesday 22 June 2016

HOW to configure VCS configuration information script ?

#!/bin/bash
#####SHELL SCRIPT#######
##########VERITAS  CLUSTER INFO##############
#####VERSION=1.0############################
##DESIGN&IMPLEMENTED:CHITTIBABU MIRIYALA#
#########################################
#echo "From:chitti.babu@gmail.com" >"/tmp/output1"
#echo "To:chitti.babu@yahoo.com" >"/tmp/output1"

HostNamee=`/opt/VRTSvcs/bin/hasys -list`
echo "Subject:VERITAS CLUSTER CONFIGURATION INFO: '`echo $HostNamee`'">>"/tmp/output1"
echo "Content-type: text/html">>/tmp/output1
echo "<html>">>"/tmp/output1"
echo "<body>">>"/tmp/output1"
echo "<table width=100%>">>"/tmp/output1"
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
echo "<center><H3> CLUSTER INFORMATION </H3></center>" >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
/opt/VRTSvcs/bin/hastatus -sum  >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
echo "<center><H3> SERVICE GROUP  INFORMATION </H3></center>" >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
SGName=`/opt/VRTSvcs/bin/hagrp -list|grep -v "#Group"|awk '{ print $1}'|uniq`
i=0
y=0
for i in $SGName
do
STATUS=`/opt/VRTSvcs/bin/hagrp -state $i |grep -v "#Group"|uniq|awk '{ print $4}'|tr -d "\|"`
Color=0
        for y in $STATUS
        do
        if [[ $y == "ONLINE" || $y == "OFFLINE" ]]
        then
                Color=0
        else
                Color=1
                break
        fi
          done
 if [[ $Color = 0 ]]
        then
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
/opt/VRTSvcs/bin/hagrp -state $i  >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
        else
echo "<tr bgcolor="#FF0000"><pre>" >>/tmp/output1
/opt/VRTSvcs/bin/hagrp -state $i >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
        fi
done
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
echo "<center><H3> RESOURCE  INFORMATION </H3></center>" >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
/opt/VRTSvcs/bin/hares -state  >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
echo "<center><H3> CLUSTER MOUNT POINT  INFORMATION </H3></center>" >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
cat /etc/VRTSvcs/conf/config/main.cf|egrep 'BlockDevice|MountPoint' >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
echo "<center><H3> SERVER FILE SYSTEM UTILIZATION </H3></center>" >>"/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "<tr bgcolor="#DAF7A6"><pre>" >>/tmp/output1
#Mountp=`cat /etc/VRTSvcs/conf/config/main.cf|egrep 'MountPoint'|awk '{ print $3}'|tr -d \"`
#for  i in $Mountp ;  do  /bin/df -k "$i"|grep -v Filesystem >> "/tmp/output1"; done
df -k  >> "/tmp/output1"
echo "</pre></tr>"  >>/tmp/output1
echo "</table>" >>"/tmp/output1"
echo "</body>">>"/tmp/output1"
echo "</html>">>"/tmp/output1"
cat "/tmp/output1"|/usr/sbin/sendmail -t
>"/tmp/output1"

Wednesday 30 March 2016

Crash dumps admin in solaris 10?

# savecore -L
savecore: dedicated dump device required
# dumpadm
      Dump content: kernel pages
       Dump device: /dev/md/dsk/d20 (swap)
Savecore directory: /var/crash/SAPTEST
  Savecore enabled: yes
   Save compressed: off

# metadetach d20 d22
d20: submirror d22 is detached
# dumpadm -d /dev/md/dsk/d22
      Dump content: kernel pages
       Dump device: /dev/md/dsk/d22 (dedicated)
Savecore directory: /var/crash/SAPTEST
  Savecore enabled: yes
   Save compressed: off

# savecore -L
dumping to /dev/md/dsk/d22, offset 65536, content: kernel
 0:14 100% done
100% done: 136808 pages dumped, dump succeeded
savecore: System dump time: Wed Sep 26 17:09:28 2012
savecore: saving system crash dump in /var/crash/SAPTEST/{unix,vmcore}.0
Constructing namelist /var/crash/SAPTEST/unix.0
Constructing corefile /var/crash/SAPTEST/vmcore.0
 1:00 100% done: 136808 of 136808 pages saved


# cd /var/crash/SAPTEST/

# ls
bounds    unix.0    vmcore.

# file *
bounds:         ascii text
unix.0:         ELF 64-bit MSB executable SPARCV9 Version 1, UltraSPARC1 Extensions Required, statically linked, not stripped, no debugging information available
vmcore.0:       SunOS 5.10 Generic_147440-15 64-bit SPARC live dump from 'SAPTEST'




there should be 2 file's for each crash dump how to see that

root@test:/var/crash# savecore -L

dumping to /dev/zvol/dsk/rpool/dump, offset 65536, content: kernel
 0:20 100% done
100% done: 244956 pages dumped, dump succeeded
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: Saving compressed system crash dump in /var/crash/vmdump.0
savecore: Decompress the crash dump with
'savecore -vf /var/crash/vmdump.0'
#cd /var/crash
 ls
bounds    vmdump.0

# savecore -vf vmdump.0
savecore: System dump time: Thu Aug 15 21:25:12 2013
savecore: saving system crash dump in /var/crash/{unix,vmcore}.0
Constructing namelist /var/crash/unix.0
Constructing corefile /var/crash/vmcore.0
 0:32 100% done: 244956 of 244956 pages saved
7876 (3%) zero pages were not written
0:32 dump decompress is done

# ls
bounds    unix.0    vmcore.0  vmdump.0


 # savecore -dv /var/crash/test (online generation)
System dump time: Wed Nov 14 14:43:25 2012
Constructing namelist /var/crash/test/unix.2
Constructing corefile /var/crash/test/vmcore.2
100% done: 131566 of 131566 pages saved
 # ls -lrth
total 6957282
-rw-r--r--   1 root     root        1.4M Jun 14  2011 unix.0
-rw-r--r--   1 root     root        1.1G Jun 14  2011 vmcore.0
-rw-r--r--   1 root     root        249K Jun 14  2011 act.0
-rw-------   1 root     root        1.4M Nov 14 17:48 unix.1
-rw-------   1 root     root        1.1G Nov 14 20:18 vmcore.1
-rw-------   1 root     root        153M Nov 14 20:39 vmcore.1.tar.gz
-rw-------   1 root     root        1.4M Nov 15 05:42 unix.2
-rw-------   1 root     root        1.0G Nov 15 05:43 vmcore.2
-rw-r--r--   1 root     root           2 Nov 15 05:43 bounds

how to import zpool import performance if you have 100's of disks in solaris 10?

# mkdir /power
#ln /dev/dsk/emcpower519a emcpower519a
# ln -s /dev/dsk/emcpower518a emcpower518a
# ln -s /dev/dsk/emcpower517a emcpower517a
# ln -s /dev/dsk/emcpower472a emcpower472a

# zpool export NewPool
# zpool import -d /power NewPool ==<in fraction of seconds>
# zpool list
NAME      SIZE  ALLOC   FREE    CAP  HEALTH  ALTROOT
NewPool   272G  6.14G   266G     2%  ONLINE  -

iscsi LUNS configuration in solaris11?

creating comstar server
# pkg install group/feature/storage-server
           Packages to install:  47
       Create boot environment:  No
Create backup boot environment: Yes
            Services to change:   3
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                              47/47     3990/3990    94.4/94.4  1.8M/s
PHASE                                          ITEMS
Installing new actions                     5971/5971
Updating package state database                 Done
Updating image state                            Done
Creating fast lookup database                   Done
# itadm
itadm usage:

# svcs stmf
STATE          STIME    FMRI
disabled       10:18:09 svc:/system/stmf:default
# svcadm enable svc:/system/stmf:default
# svcs svc:/system/stmf:default
STATE          STIME    FMRI
online         10:20:21 svc:/system/stmf:default
creating lun:-
# stmfadm create-lu /dev/zvol/dsk/lunpool/lun1
Logical unit created: 600144F000144F984A1851C034910001
# stmfadm list-lu
LU Name: 600144F000144F984A1851C034910001
# stmfadm add-view 600144F000144F984A1851C034910001
# stmfadm list-view -l 600144F000144F984A1851C034910001
View Entry: 0
    Host group   : All
    Target Group : All
    LUN          : Auto
creating target:-
# svcadm enable /network/iscsi/target
# itadm create-target
Target iqn.1986-03.com.sun:02:14d5bc6f-85e0-c9eb-8b5d-df4ebdf41ce1 successfully created
# itadm list-target -v
TARGET NAME                                                  STATE    SESSIONS
iqn.1986-03.com.sun:02:14d5bc6f-85e0-c9eb-8b5d-df4ebdf41ce1  online   0
        alias:                  -
        auth:                   none (defaults)
        targetchapuser:         -
        targetchapsecret:       unset

        tpg-tags:               default

client side:-

#iscsiadm modify discovery -i enable
#iscsiadm modify discovery -s enable
#iscsiadm add static-config iqn.1986-03.com.sun:02:14d5bc6f-85e0-c9eb-8b5d-df4ebdf41ce1,10.66.10.105:3260

how to see NIC card speed in solaris 10?


# dladm show-dev
e1000g0         link: up        speed: 1000  Mbps       duplex: full
e1000g1         link: unknown   speed: 0     Mbps       duplex: half
e1000g2         link: unknown   speed: 0     Mbps       duplex: half
e1000g3         link: unknown   speed: 0     Mbps       duplex: half

# dladm show-link
e1000g0         type: non-vlan  mtu: 1500       device: e1000g0
e1000g1         type: non-vlan  mtu: 1500       device: e1000g1
e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
e1000g3         type: non-vlan  mtu: 1500       device: e1000g3

 #  kstat -p e1000g:0::link*
e1000g:0:mac:link_asmpause      1
e1000g:0:mac:link_autoneg       1
e1000g:0:mac:link_duplex        2
e1000g:0:mac:link_pause 1
e1000g:0:mac:link_state 1
e1000g:0:mac:link_up    1
e1000g:0:statistics:link_speed  1000

# ndd /dev/e1000g0 link_speed
1000

 # ndd /dev/e1000g0 link_duplex
2
0=noduplex 1=halfduplex 2=fullduplex

how to set booting parameters from sc console in sun hardware ?

sc> bootmode reset_nvram

sc> bootmode bootscript="setenv auto-boot? false"

how to configure solaris11 GNOME for XMANAGER ?

#pkg install pkg://solaris/group/system/solaris-desktop  

#pkg install system/locale/extra

# cat /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
[security]
[xdmcp]
Port=177
DisplaysPerHost=1
Enable=true
HonorIndirect=true
[greeter]
[chooser]
[debug]
#Reboot server
#init 6

how to remove disk's failing state in veritas ?


# vxdisk -oalldgs list
emcpower8s2  auto:sliced     logdg01      testvol     online failing

# vxedit -g MXPARCH set failing=off logdg01


# vxdisk -oalldgs list | grep -i MXPARCH
emcpower8s2  auto:sliced     logdg01      testvol      online

Physical processor administration in solaris 10?

 # fmadm faulty
--------------- ------------------------------------  -------------- ---------
TIME            EVENT-ID                              MSG-ID         SEVERITY
--------------- ------------------------------------  -------------- ---------
Feb 20 14:41:13 350e799e-27c7-6621-d897-dbab2fbe0efb  SUN4U-8001-0J  Major
Host        : p10app04
Platform    : SUNW,Sun-Fire-V490        Chassis_id  :
Product_sn  :
Fault class : fault.cpu.ultraSPARC-IVplus.l3cachedata
Affects     : cpu:///cpuid=2/serial=80020228CE6C1347
              cpu:///cpuid=18/serial=80020228CE6C1347
                  faulted but still in service
FRU         : "Slot A" (hc://:product-id=SUNW,Sun-Fire-V490:server-id=p10app04/c
                  faulty
Description : The number of errors associated with this CPU has exceeded
              acceptable levels.  Refer to http://sun.com/msg/SUN4U-8001-0J for
              more information.
Response    : The fault manager will attempt to remove the affected CPU from
              service.
Impact      : System performance may be affected.
Action      : Schedule a repair procedure to replace the affected CPU, the
              identity of which can be determined using fmdump -v -u
              .


 # fmdump -v -u 350e799e-27c7-6621-d897-dbab2fbe0efb
TIME                 UUID                                 SUNW-MSG-ID
Feb 20 14:41:14.2577 350e799e-27c7-6621-d897-dbab2fbe0efb SUN4U-8001-0J
  100%  fault.cpu.ultraSPARC-IVplus.l3cachedata
        Problem in: -
           Affects: cpu:///cpuid=2/serial=80020228CE6C1347
               FRU: hc://:product-id=SUNW,Sun-Fire-V490:server-id=p10app04/component=Slot A
          Location: -
  100%  fault.cpu.ultraSPARC-IVplus.l3cachedata
        Problem in: -
           Affects: cpu:///cpuid=18/serial=80020228CE6C1347
               FRU: hc://:product-id=SUNW,Sun-Fire-V490:server-id=p10app04/component=Slot A
          Location: -

 # psrinfo
0       on-line   since 02/20/2013 14:40:34
1       on-line   since 02/20/2013 14:40:34
2       faulted   since 02/20/2013 14:41:14
3       on-line   since 02/20/2013 14:40:32
16      on-line   since 02/20/2013 14:40:34
17      on-line   since 02/20/2013 14:40:34
18      faulted   since 02/20/2013 14:41:14
19      on-line   since 02/20/2013 14:40:34

 # psrinfo -p
4

 # psrinfo |wc -l
       8


 # psradm -f 2
psradm: processor 2 in faulted state; add -F option to force change


 # psradm -f -F 2


 # psradm -f -F 18


# psrinfo
0       on-line   since 02/20/2013 14:40:34
1       on-line   since 02/20/2013 14:40:34
2       off-line  since 02/20/2013 19:54:54
3       on-line   since 02/20/2013 14:40:32
16      on-line   since 02/20/2013 14:40:34
17      on-line   since 02/20/2013 14:40:34
18      off-line  since 02/20/2013 19:55:18
19      on-line   since 02/20/2013 14:40:34


 # fmadm repaired 350e799e-27c7-6621-d897-dbab2fbe0efb
fmadm: failed to record repair to 350e799e-27c7-6621-d897-dbab2fbe0efb: specified resource is not known to be faulty


 # >errlog
 # >fltlog

# cd rsrc

# ls
479acae3-52ce-41be-92fb-ae8517bf4657  c784c664-1ea7-c332-814d-f76e939c2db3


 # file *
479acae3-52ce-41be-92fb-ae8517bf4657:  extended accounting file
c784c664-1ea7-c332-814d-f76e939c2db3:  extended accounting file

 # rm *

 # pwd
/var/fm/fmd/rsrc


# cd ..

 # ls
errlog  fltlog  rsrc    xprt

#psradm -n 2
#psradm -n 18

 # svcadm restart fmd

 # fmadm faulty

# psrinfo
0    on-line   since 02/20/2013 14:40:34
1    on-line   since 02/20/2013 14:40:34
2    on-line   since 02/20/2013 19:59:36
3    on-line   since 02/20/2013 14:40:32
16   on-line   since 02/20/2013 14:40:34
17   on-line   since 02/20/2013 14:40:34
18   on-line   since 02/20/2013 19:59:54
19   on-line   since 02/20/2013 14:40:34

solaris 10 installation / upgradation logs locations ?

Installation log location
        - /a/var/sadm/system/logs/upgrade_log (before reboot)
        - /var/sadm/system/logs/upgrade_log (after reboot)
Please examine the file:
        - /a/var/sadm/system/data/upgrade_cleanup
It contains a list of actions that may need to be performed to complete
the upgrade. After this system is rebooted, this file can be found at:
        - /var/sadm/system/data/upgrade_cleanup
Upgrade complete
Executing SolStart postinstall phase...
Executing finish script "patch_finish"...

Finish script patch_finish execution completed.
Executing JumpStart postinstall phase...
The begin script log 'begin.log'
is located in /var/sadm/system/logs after reboot.
The finish script log 'finish.log'
is located in /var/sadm/system/logs after reboot.

Launching installer. Please Wait...

how to change CSN chassis Serial Number in sparc hardware ?

root # sneep
0737AM0879
root # showplatform
0737AM0879
root # showplatform -p csn
     CSN:
     ====
     Chassis Serial Number: 0737AM0879
root # showplatform
0737AM0879
root# setcsn -c 0712AM0879
root # showplatform
0712AM0879
root # sneep
0712AM0879

how to see licence information about veritas / power path in solaris 10?

 # vxlicrep
---
License Key                         = IRZE-6P8S-7YGV-634U-FEGO-SFJP-CP
   Product Name                        = VERITAS Storage Foundation Enterprise
----
 License Key                         = BZZH-DDWC-IRVR-WLOP-WNN8-3FOP-PPPC-PP3
   Product Name                        = VERITAS Volume Manager
----
License Key                         = 3EZE-K2NP-8TFO-UTC4-OORP-6388-O
   Product Name                        = VERITAS File System
----

 # /etc/emcpreg -list

Key BTPN-GB4Q-UFN9-Q6BK-M69I-BPWX
  Product: PowerPath
  Capabilities: All

vxvm 6.x

License Key = AJZU-WW8Z-AM3Y-DDVC-WCPB-PKUP-PCPP-P6N3-P
Product Name = VERITAS Volume Manager

License Key = AJZU-4IE6-26VO-SXOZ-ETPP-PP63-4CPP-PPPC-P
Product Name = VERITAS File System


License Key = AJZG-JLVW-Y2HM-8D2P-PNOU-34O4-OZP6-N3PO-P
Product Name = VERITAS Storage Foundation Enterprise HA



License Key = AJZ9-PPTY-8L2C-TSI2-XOPP-PPPP-PPPP-P3PB-P
Product Name = VERITAS Cluster Server

how to download SANsuffer cli /Qlogic/Qla2300 for solaris 10?

SANsuffer

step1:
www.qlogic.com
step2:
click downloads
step3:
select OEM products
select EMC
select by Operating system
select adapters -- solaris -- solaris sparc
click GO
step4:
go to Management  list
slect appropriate and click to download



=== F-code for solaris 10====

step1:
www.qlogic.com
step2:
click downloads
step3:
select legacy products
step4:
select adapters
select fibre channel adapters
select [h/w device name] QLA2342L
select solaris sparc
click GO
step5:
go to Management  list
slect appropriate and click to download


==qla2300 pkg==
step1:
www.qlogic.com
step2:
click downloads
step3:
select legacy products
step4:
select adapters
select fibre channel adapters
select qla2300
select solaris sparc
click GO
step5:
go to drivers list
slect appropriate and click to download

firmware upgradation from OBP 4.22.19 to OBP 4.30.0 in sunfire servers ?

# unzip 142700-02.zip

Archive:  142700-02.zip
   creating: 142700-02/
  inflating: 142700-02/unix.flash-update.README
  inflating: 142700-02/copyright
  inflating: 142700-02/unix.flash-update.SunFire240.sh
  inflating: 142700-02/817-6957-10.pdf
  inflating: 142700-02/802-3233-25.ps
  inflating: 142700-02/flash-update-SunFire240
  inflating: 142700-02/Install.info
  inflating: 142700-02/README.142700-02
  inflating: 142700-02/LEGAL_LICENSE.TXT


# cd 142700-02

# ls

802-3233-25.ps                   copyright
817-6957-10.pdf                  flash-update-SunFire240
Install.info                     unix.flash-update.README
LEGAL_LICENSE.TXT                unix.flash-update.SunFire240.sh
README.142700-02

 # ./unix.flash-update.SunFire240.sh

Flash Update 2.4: Program and system initialization in progress...
Current System Flash PROM Revision:
-----------------------------------
OBP 4.22.19 2006/09/06 23:44 Sun Fire V210/V240,Netra 210/240
Available System Flash PROM Revision:
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.    Fri Jun 15 23:39:10 IST 2012
Changing to init state 6 - please wait
Broadcast Message from root (console) on RETAILSAPT21 Fri Jun 15 23:39:10...
THE SYSTEM RETAILSAPT21 IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged
root@RETAILSAPT21 # svc.startd: The system is coming down.  Please wait.
svc.startd: 83 system services are now being stopped.
Jun 15 23:40:17 RETAILSAPT21 rpcbind: rpcbind terminating on signal.
Jun 15 23:40:18 RETAILSAPT21 syslogd: going down on signal 15
Jun 15 23:40:18 rpc.metad: Terminated
svc.startd: The system is down.
syncing file systems... done
rebooting...

#prtconf -V

OBP 4.30.0 2010/01/06 14:48

what happens if u remove rootdev entry in /etc/system file and reboot in solaris 10?

# svcs -x
svc:/system/sysevent:default (system event notification)
State: maintenance since June 19, 2012  8:09:15 AM IST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: syseventd(1M)
See: /etc/svc/volatile/system-sysevent:default.log
Impact: 52 dependent services are not running.  (Use -v for list.)
svc:/network/rpc/gss:default (Generic Security Service)
State: uninitialized since June 19, 2012  8:07:00 AM IST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: gssd(1M)
Impact: 12 dependent services are not running.  (Use -v for list.)
svc:/network/rpc/meta:default (SVM remote metaset services)
State: uninitialized since June 19, 2012  8:07:01 AM IST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: rpc.metad(1M)
Impact: 9 dependent services are not running.  (Use -v for list.)
svc:/network/rpc/rstat:default (kernel statistics server)
State: uninitialized since June 19, 2012  8:07:03 AM IST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: rpc.rstatd(1M)
See: rstatd(1M)
Impact: 1 dependent service is not running.  (Use -v for list.)

 # df -kh
Filesystem             size   used  avail capacity  Mounted on
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/disk@0,0:a
30G    19G    10G    65%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    33G   1.5M    33G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
30G    19G    10G    65%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
30G    19G    10G    65%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                    33G     0K    33G     0%    /tmp
swap                    33G     8K    33G     1%    /var/run


solution:

1.boot in to singular usermode or fail safe(ok boot -F failsafe)
2.edit /etc/vfstab file
3.boot normally
4.execute metaroot
5.reboot
it reboots successfully

MY TESTING OBSERVATIONS in solaris 10/11, SCS, LDOMS & vcs,vxvm?

SCS:-
1.when gui?
2.how to set failover properties?
if i manully kill resource i.e sap instead of restarting same node
   how can we failover resource to anothernode ==>by default with in the node
   OR
   resource group automatically goes to offline does not move any where????
3.if i set affinities rg1 strong negative on rg2
so when rg1 going to online on another node it stop first rg2 and start rg1 ,instead
of that it start rg1 first and stop rg2 how to achieve it ????????
4.No NFS client configuration in solaris cluster ?????????????
5.NO ZFS file system as GLOBAL file system ????????????
6.
7)NO GUI
8)by default we got sap abap & java & oracle agents freely.
9)quarm device is mandetory.
10)in solaris cluster if i  create 2 guest domain & configure solaris cluster
  in this & configure common storage & assign it as quarm dev
  if i reboot guest2  guest1 node  panics
  if i reboot guest1 only guest1 reboots
  why ??????

LDOMS:-
1)i created control domain
2) i create SECIO service domain in t5120 only one PCI is there so
   i used one disk under primary service and create service domain
3) if i take reboot my service domain also down
4)i dedicat 1 nic & 1 HBA to my servicde domain
5) i created secondary services by using nic & HBA
6) by using control & service domain i create guest domain
7) make zfs mirroring
8) now reboot my service domain ---> guest not available to admin but pinging
9)now reboot my control domain --> service & gest domain not available
10)because of guest domain dependent & control domain dependecy my service domain does not started once control domain restarts
11)if i create slice in a disk and dedicate that slice to guest domain
   in installation time we need to select slice option then only installation got successfull.
   in installation time if we take entire disk installation fails.
12)i create slice and install os on it now i give same sile to another guest it throws error
13).how to set policy to if vcpus are added as core level?
SOLUTION:-
 BY USING POLICY
.hear cpu adding dynamically two ways
   -> vcpu-min=4 vcpu-max=18 i.e eventhough u create ldom 18 vcpu it show only 4 vcpu
      usage ,rest of all are un used if load is extend depending on limits it add cpus
   ->ldom initially contains 4 vcpus
 vcpu-min=4 vcpu-max=8 hear initail 4 are usage more than limit then the remaing 4
      cpus depending on load will asign from free available cpus i.e these vcpus are
      not assigned to any guest domain
   -> if u are creating ldom by using core level this dynamic cpu capping is disable ?why???
   ex:
    CONSTRAINT
    cpu=whole-core
    max-cores=unlimited
    threading=max-throughput
 # ldm set-policy enable=yes name=dbpolicy bwdb
Resource Management is disabled while whole-core constraint is enabled
14) WHY Resource Management is disabled WHILE ASSIGNING CORE LEVEL CPU ASSIGNMENT ???????

15) i don't know how to assign limited speed vnic to guest domain ?

16).How to assign shared storage for cluster?
FOR EMC POWERPATH it is not allowing to common storage, but for solaris MPixo it allows common storage 
17).How to assign shared storage target device?

18.why LDom  is locked against modification?
#ldm set-mem 12G Z10DB
LDom Z10DB is locked against modification
19)online disk removing not possible after vxvm installed,
this disk in not under control of vxvm?
c2d19s2      auto:SVM        -            -            SVM
ldm remove-vdisk mddb1 Z10DB
Guest LDom returned the following reason for failing the operation:
    Resource             Information
----------------  -------------------------
/dev/dsk/c2d19s2  Device being used by VxVM
VIO operation failed because device is being used in LDom Z10DB
Failed to remove vdisk instance
================================
solution:-
Resource Information
---------------- -------------------------
/dev/dsk/c2d17s2 Device being used by VxVM <-------- HERE
VIO operation failed because device is being used in LDom Z10DB
Failed to remove vdisk instance
---

# vxdisk list
c2d17s2 auto:none - - online invalid
#vxdisk rm c2d17
# vxdisk list
no disk info
==
from control domain
===
# ldm remove-vdisk -f lun17 Z10DB
Guest LDom returned the following reason for failing the operation:
Resource Information
---------------- -------------------------
/dev/dsk/c2d17s2 Device being used by VxVM
VIO operation failed because device is being used in LDom Z10DB
Failed to remove vdisk instance
The -f option has no effect because the device cannot be removed safely

# vxdmpadm listctlr all
CTLR_NAME       ENCLR_TYPE      STATE        ENCLR_NAME      PATH_COUNT
=========================================================================
c2              EMC_CLARiiON    ENABLED      emc_clariion0        19


# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTR                                                                             S
================================================================================
c2d0s2       ENABLED(A)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d10s2      ENABLED(A)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d11s2      ENABLED(A)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d12s2      ENABLED(A)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d13s2      ENABLED(A)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d14s2      ENABLED(A)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d15s2      ENABLED(A)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d16s2      ENABLED(A)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d17s2      ENABLED(A)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0                                                                                  -
c2d18        ENABLED(A)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0                                                                                  -
c2d1s2       ENABLED(A)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d2s2       ENABLED(A)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d3s2       ENABLED(A)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d4s2       ENABLED(A)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d5s2       ENABLED(A)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d6s2       ENABLED(A)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d7s2       ENABLED(A)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d8s2       ENABLED(A)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0                                                                                  -
c2d9s2       ENABLED(A)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0

# vxdmpadm -f disable  ctlr=c2

# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTRS
================================================================================
c2d0s2       DISABLED(M)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0     -
c2d10s2      DISABLED(M)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0     -
c2d11s2      DISABLED(M)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0     -
c2d12s2      DISABLED(M)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0     -
c2d13s2      DISABLED(M)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0     -
c2d14s2      DISABLED(M)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0     -
c2d15s2      DISABLED(M)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0     -
c2d16s2      DISABLED(M)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0     -
c2d17s2      DISABLED(M)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0     -
c2d18        DISABLED(M)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0     -
c2d1s2       DISABLED(M)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0     -
c2d2s2       DISABLED(M)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0     -
c2d3s2       DISABLED(M)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0     -
c2d4s2       DISABLED(M)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0     -
c2d5s2       DISABLED(M)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0     -
c2d6s2       DISABLED(M)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0     -
c2d7s2       DISABLED(M)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0     -
c2d8s2       DISABLED(M)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0     -
c2d9s2       DISABLED(M)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0     -
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto            -            -            error
c2d1s2       auto:cdsdisk    -            -            error
c2d2s2       auto:cdsdisk    -            -            error
c2d3s2       auto:cdsdisk    -            -            error
c2d4s2       auto:cdsdisk    -            -            error
c2d5s2       auto:cdsdisk    -            -            error
c2d6s2       auto:cdsdisk    -            -            error
c2d7s2       auto:cdsdisk    -            -            error
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared lfailed
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared lfailed
c2d10s2      auto:cdsdisk    -            -            error
c2d11s2      auto:cdsdisk    -            -            error
c2d12s2      auto:sliced     -            -            error
c2d13s2      auto:sliced     -            -            error
c2d14s2      auto:sliced     -            -            error
c2d15s2      auto:sliced     -            -            error
c2d16s2      auto:sliced     -            -            error
c2d17s2      auto            -            -            error
c2d18        auto            -            -            error

# vxdmpadm enable ctlr=c2
# vxdmpadm getsubpaths ctlr=c2
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTRS
================================================================================
c2d0s2       ENABLED(A)  PRIMARY      c2d0s2       EMC_CLARiiON  emc_clariion0     -
c2d10s2      ENABLED(A)  PRIMARY      c2d10s2      EMC_CLARiiON  emc_clariion0     -
c2d11s2      ENABLED(A)  SECONDARY    c2d11s2      EMC_CLARiiON  emc_clariion0     -
c2d12s2      ENABLED(A)  PRIMARY      c2d12s2      EMC_CLARiiON  emc_clariion0     -
c2d13s2      ENABLED(A)  PRIMARY      c2d13s2      EMC_CLARiiON  emc_clariion0     -
c2d14s2      ENABLED(A)  PRIMARY      c2d14s2      EMC_CLARiiON  emc_clariion0     -
c2d15s2      ENABLED(A)  PRIMARY      c2d15s2      EMC_CLARiiON  emc_clariion0     -
c2d16s2      ENABLED(A)  PRIMARY      c2d16s2      EMC_CLARiiON  emc_clariion0     -
c2d17s2      ENABLED(A)  PRIMARY      c2d17s2      EMC_CLARiiON  emc_clariion0     -
c2d18        ENABLED(A)  PRIMARY      c2d18        EMC_CLARiiON  emc_clariion0     -
c2d1s2       ENABLED(A)  SECONDARY    c2d1s2       EMC_CLARiiON  emc_clariion0     -
c2d2s2       ENABLED(A)  SECONDARY    c2d2s2       EMC_CLARiiON  emc_clariion0     -
c2d3s2       ENABLED(A)  SECONDARY    c2d3s2       EMC_CLARiiON  emc_clariion0     -
c2d4s2       ENABLED(A)  SECONDARY    c2d4s2       EMC_CLARiiON  emc_clariion0     -
c2d5s2       ENABLED(A)  SECONDARY    c2d5s2       EMC_CLARiiON  emc_clariion0     -
c2d6s2       ENABLED(A)  SECONDARY    c2d6s2       EMC_CLARiiON  emc_clariion0     -
c2d7s2       ENABLED(A)  SECONDARY    c2d7s2       EMC_CLARiiON  emc_clariion0     -
c2d8s2       ENABLED(A)  SECONDARY    c2d8s2       EMC_CLARiiON  emc_clariion0     -
c2d9s2       ENABLED(A)  SECONDARY    c2d9s2       EMC_CLARiiON  emc_clariion0     -
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto            -            -            error
c2d1s2       auto:cdsdisk    -            -            error
c2d2s2       auto:cdsdisk    -            -            error
c2d3s2       auto:cdsdisk    -            -            error
c2d4s2       auto:cdsdisk    -            -            error
c2d5s2       auto:cdsdisk    -            -            error
c2d6s2       auto:cdsdisk    -            -            error
c2d7s2       auto:cdsdisk    -            -            error
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared lfailed
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared lfailed
c2d10s2      auto:cdsdisk    -            -            error
c2d11s2      auto:cdsdisk    -            -            error
c2d12s2      auto:sliced     -            -            error
c2d13s2      auto:sliced     -            -            error
c2d14s2      auto:sliced     -            -            error
c2d15s2      auto:sliced     -            -            error
c2d16s2      auto:sliced     -            -            error
c2d17s2      auto            -            -            error
c2d18        auto            -            -            error
# vxdctl disable
# vxdctl enable
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c2d0s2       auto:ZFS        -            -            ZFS
c2d1s2       auto:cdsdisk    -            -            online
c2d2s2       auto:cdsdisk    -            -            online
c2d3s2       auto:cdsdisk    -            -            online
c2d4s2       auto:cdsdisk    -            -            online
c2d5s2       auto:cdsdisk    -            -            online
c2d6s2       auto:cdsdisk    -            -            online
c2d7s2       auto:cdsdisk    -            -            online
c2d8s2       auto:cdsdisk    ascs1        Z10ASCS      online shared
c2d9s2       auto:cdsdisk    ascs2        Z10ASCS      online shared
c2d10s2      auto:cdsdisk    -            -            online
c2d11s2      auto:cdsdisk    -            -            online
c2d12s2      auto:sliced     -            -            online
c2d13s2      auto:sliced     -            -            online
c2d14s2      auto:sliced     -            -            online
c2d15s2      auto:sliced     -            -            online
c2d16s2      auto:sliced     -            -            online
c2d17s2      auto:none       -            -            online invalid
c2d18        auto:ZFS        -            -            ZFS


# ldm remove-vdisk lun17 Z10DB

for single disk
# vxdmpadm exclude path=c2d17s2
# ldm remove-vdisk lun17 Z10DB
====================================

20) in control domain all storage luns are under control of powerpath
   after reboot the saved configuation clears?

   in dmesg it shows mpxio is enable at boot time
   but if u execute smboot -L it shows that it MPXIO is disable
   so we go to /kernel/drv dir
   check all files which have mpxio_disable option
   if is there just put mpxio_disable=yes in all files
   now after reboot also all saved configurations are exists.

21)how to install LDOMs after upgrade OS???
we manually remove ldmos & and try to install same it does not installed and shows followin msg
No updates necessary for this image.
sol:- there may be posibulity to currupt image.

22)after installing powerpath on guest domain FORMAT command takes long time to give result . WHY ????????
after remove installed powerpath it gives immediately why ????????
sol:- i asked Oracle team they told there is bug in EMCpower ? is it really ??

23)if i assign disk to guest domain why disk not visible in C#t#d#s# format?? why only in c#d#s# format ???

24)if i assign single disk to 2 different guest domains why it will allocate different disk numbers ??
ex: Guest1: c1d1
    Guest2: c1d2






    

CFS:-
1.in cfsservice group  there is no switch sg option only online/offline options
2.in cfs share can be from all nodes in the cluster.
3.it is not possible by using cfsnfs to mount all nodes share from single node (if u configure nfs sg with IP then it is possible not in fs)
4.cfs base metadata file system is not allowed to share.
5.if u want share create new volume,mkfs,share

6)while converting sun cluster devices to vcs devices?
->it does not allow to configure under contor of vxvm
-> cover to EFI--> SMI
-->now setup successfull
-->unsetup fail
-> remove old scsi3 reservations-->
1) Determine what DID device the lun is mapped to using /usr/cluster/bin/scdidadm -L
2) Disable failfast on the DID device using /usr/cluster/lib/sc/scsi -c disfailfast -d /dev/did/rdsk/DID
3) Release the DID device using  /usr/cluster/lib/sc/scsi -c release -d /dev/did/rdsk/DID
4) Scrub the reserve keys from the DID device using  /usr/cluster/lib/sc/scsi -c scrub -d /dev/did/rdsk/DID
5) Confirm reserve keys are removed using /usr/cluster/lib/sc/scsi -c inkeys -d /dev/did/rdsk/DID
6) Remove lun from zone on machine or whatever procedure you were trying to complete.
-->now setup & unsetup successfull
===
vcs&cfs&cvm
=====
install 6.0.1 dont configure
install 6.0.3 configure
==dont delete default service groups.
to post cofigre vcs please execute following scripts
/opt/VRTS/install/installsfcfsha601 -configure

2)SAP agents for VCS6.0.3 not released for solaris ??? we are expecting they r releasing on OCt??