Feeds:
Posts
Comments

Archive for the ‘Solaris Comm’ Category

The Inquiry utility (INQ) is a command-line troubleshooting utility that displays
information on storage devices, typically Symmetrix. By default, INQ
returns the device name, Symmetrix ID, Symmetrix LUN, and capacity. This
utility will operate independently of any other EMC software. Use the INQ
Utility to collect system information to provide to EMC Global Services
for problem troubleshooting.

Download INQ utility from EMC support site below

ftp://ftp.emc.com/pub/symm3000/inquiry/ 

 

Running EMC inq utility on Solaris

 

# ./inq.sol64
Inquiry utility, Version V7.3-891 (Rev 2.0)      (SIL Version V6.5.2.0 (Edit Level 891)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

 

——————————————————————————————–
DEVICE                                               :VEND      :PROD            :REV   :SER NUM        :CAP(kb)
——————————————————————————————–
/dev/rdsk/c1t0d0s2                           :FUJITSU :MAW3073NCSUN72G :1703  :070029a0N7 :    71687369
/dev/rdsk/c1t1d0s2                           :FUJITSU :MAW3073NCSUN72G :1703  :070032a0NF :    71687369
/dev/rdsk/c3t50060E800544C808d0s2 :HITACHI :OPEN-V          :6003  :50 044D8   :    14227200
/dev/rdsk/c3t50060E800544C808d1s2 :HITACHI :OPEN-V*7        :6003  :50 044D8   :    99590400
/dev/rdsk/c3t50060E800544C848d0s2 :HITACHI :OPEN-V          :6003  :50 044D8   :    14227200
/dev/rdsk/c3t50060E800544C848d1s2 :HITACHI :OPEN-V*7        :6003  :50 044D8   :    99590400
/dev/rdsk/c4t50060E800544C810d0s2 :HITACHI :OPEN-V          :6003  :50 044D8   :    14227200
/dev/rdsk/c4t50060E800544C810d1s2 :HITACHI :OPEN-V*7        :6003  :50 044D8   :    99590400
/dev/rdsk/c4t50060E800544C850d0s2 :HITACHI :OPEN-V          :6003  :50 044D8   :    14227200
/dev/rdsk/c4t50060E800544C850d1s2 :HITACHI :OPEN-V*7        :6003  :50 044D8   :    99590400
/dev/vx/rdmp/Disk_0s2                     :FUJITSU :MAW3073NCSUN72G :1703  :080029c0N8 :    71687369
/dev/vx/rdmp/Disk_1s2                     :FUJITSU :MAW3073NCSUN72G :1703  :080032c0NG :    71687369
/dev/vx/rdmp/Disk_2s2                     :HITACHI :OPEN-V          :6003  :50 044C8   :    14227200
/dev/vx/rdmp/Disk_3s2                     :HITACHI :OPEN-V*7        :6003  :50 044C8   :    99590400

 

# ./inq.sol64 -hba
Inquiry utility, Version V7.3-891 (Rev 2.0)      (SIL Version V6.5.2.0 (Edit Level 891)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

—————————————————
HBA name:           QLogic Corp.-QLA2462-0
host WWN:           0000000000000000
vendor name:        QLogic Corp.
model:              QLA2462
firmware version:   4.0.27
driver version:     20070212-2.19
serial number:      0402G00-0722265734
vendor code:        0x0
HBA type:           Fibre Channel
port count:         2

port number:                 1
    port WWN:                     2100001B32183B60
    Port OS name:                 /dev/cfg/c3
    port type:                    NPORT
    port speed:                   2GBIT
    supported speed:              4GBIT
    port state:                   ONLINE
    port FCID:                    0x627513
    port supported COS:           0x10000000
    port supported FC4 types:     0x0000000000000000000000000000000000000000000000000000000000000000
    port active FC4 types:        0x0000010000000000000000000000000000000000000000000000000000000000
    max frame size:               2048

port number:                 2
    port WWN:                     2101001B32383B60
    Port OS name:                 /dev/cfg/c4
    port type:                    NPORT
    port speed:                   2GBIT
    supported speed:              4GBIT
    port state:                   ONLINE
    port FCID:                    0x617513
    port supported COS:           0x10000000
    port supported FC4 types:     0x0000000000000000000000000000000000000000000000000000000000000000
    port active FC4 types:        0x0000010000000000000000000000000000000000000000000000000000000000
    max frame size:               2048

Here are other options you can try with inq utility

# ./inq.sol64 -h
Inquiry utility, Version V7.3-891 (Rev 2.0)      (SIL Version V6.5.2.0 (Edit Level 891)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.

Usage: inquiry <options>

    display types:
       -h               : display this help screen
       -et              : display emulation and type info   (Symmetrix only)
       -ckd             : display CKD device info           (Symmetrix only)
       -page0           : display detailed page0 (only valid with -dev option)
       -pagec0          : display detailed pagec0 (only valid with -dev option
                          and on CLARiiON devices)
       -parent          : display both PowerPath and OS device relationships
       -celerra         : display Celerra lable devices
       -sid             : display Symmetrix Serial Number
       -sym_wwn         : display Symmetrix device wwn and Serial Number
       -clariion        : display CLARiiON device information
       -clar_wwn        : display CLARiiON WWN and Serial Number
       -showvol         : display Symmetrix Volume Number.
       -compat          : display old format
       -btl             : display Bus Target and Lun
       -sw_wwn          : display StorageWorks WWN and Serial Id
       -hds_wwn         : display HDS WWN and Serial Id
       -s80_wwn         : display S80 WWN and Serial Id
       -invista_wwn     : display Invista WWN and Serial Id
       -shark_wwn       : display IBM Shark WWN and Serial Id
       -compaq_wwn      : display Compaq WWN and Serial Id
       -netapp_wwn      : display Netapp WWN and Serial Id
       -hba             : display HBA info only. See options below
       -identifier <device_name | nice_name | hp_id | vms_id>
                        : display device identifier info (EMC devices only)
       -mapinfo         : display target mapping information

    filter options:
       -no_filters      : show every device even if no data available
       -f_powerpath     : filter –  only powerpath devices
       -f_pseudo        : filter –  only pseudo devices
       -f_real          : filter –  only real devices
       -f_emc           : filter –  only EMC devices
       -f_ckd           : filter –  only ckd devices
       -f_celerra       : filter –  only Celerra devices
       -f_4k            : filter –  only Symmetrix volumes < 4096
       -f_clariion      : filter –  only CLARiiON devices
       -f_storwrks      : filter –  only Compaq StorageWorks devices
       -f_hds           : filter –  only Hitachi HDS devices
       -f_s80           : filter –  only Fujitsu Siemens S80 devices
       -f_invista       : filter –  only EMC Invista devices
       -f_shark         : filter –  only IBM SHARK devices
       -f_size <size>   : filter –  only show devices with <= size in kbytes

    query options:
       -skipread        : do not request Read Capacity
       -skipinq         : do not request Inquiry data
       -skipboth        : do not request Read Capacity or Inquiry data

    device options:
       -dev  <device>   : do inquiry on specified device
       -symmvol <vol#>  : show devices with Symm HEX volume #= <vol#>
       -clar_file <file-name>: show clariion devices in file

    other options:
       -no_dots         : do not display status dots
       -sortoff         : do not perform ANY sorting
       -sortsymm        : sort by Symmetrix serial number   (Symmetrix only)

    sym_wwn options:
       -sid_wwn <sid>   : the 12 digit SID of the symm for which you want wwn’s
       -symdev  <dev>   : the device for which you want the wwn

    HBA specific options:
       -hba               : display HBA info only
       -fibre             : display FC HBA info only
       -iscsi             : display ISCSI HBA info only
       -scsi              : display SCSI HBA info only
       -hba_file <file>   : external HBA file to use. -fibre only
       -create            : create external HBA file specified by -hba_file
      Usage :
       inquiry -hba [-fibre [-hba_file <file>] [-create]] [-scsi] [-iscsi]

Release notes:
     Only options listed above are supported, although other options
     may continue to work, they are subject to change or removal.

     the following parameter changes have occurred
       -nodots              ->  -no_dots
       -c                   ->  -ckd
       -v                   ->  -page0
       -r <devicename>      ->  -dev <devicename>
       -s SymmVolumeNumber  ->  -symmvol SymmVolumeNumber
       -xr                  ->  -f_pseudo
       -xps                 ->  -f_real
       -system              ->  no longer exists

Read Full Post »

fcinfo command appeared only from Solaris 10 u1  ( Solaris 10 1/06).

If you have it missing, that chances are you have the old Solaris 10 version.

bash-3.00# cat /etc/release
                         Solaris 10 3/05 s10_74L2a SPARC
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 22 January 2005

fcinfo command is provided by SUNWfcprt package.

bash-3.00# pkgchk -l -p /usr/sbin/fcinfo
Pathname: /usr/sbin/fcinfo
Type: regular file
Expected mode: 0555
Expected owner: root
Expected group: bin
Expected file size (bytes): 44424
Expected sum(1) of contents: 55871
Expected last modification: Aug 10 20:34:53 2005
Referenced by the following packages:
        SUNWfcprt
Current status: installed

Ether you can patch the server and bring it to the existing level or just install SUNWfcprt package from current Solaris 10 image.

Read Full Post »

Solaris 10 comes with Solaris Fault management Facility which defines error messages in a well-defined and explicit format.

Below is a sample of such error message


Use fmdump to find error memory module

bash-3.00# fmdump -v -u cle6c844-8789-ed25-b8b2-cc507318a20f
TIME                 UUID                                 SUNW-MSG-ID
Aug 04 13:41:20.6073 bde3afe6-3bb8-c6a2-fbb2-822b0b879b50 SUN4U-8000-35
95%  fault.memory.bank

Problem in: mem:///unum=Slot,A:J8100,J8101,J8201,J8200
Affects: mem:///unum=Slot,A:J8100,J8101,J8201,J8200
FRU: mem:///unum=Slot,A:J8100,J8101,J8201,J8200

The FRU line declares the part which needs to be replaced to return the system to a fully operational state.

fmdump from man page:

The fmdump utility ca be used to display the contents fo any of the log files associated with the Solaris Fault manager, fmd. The Fault Manager runs in the background on each Solaris system. It receives telemetry information relating to problems detected by the system software, diagnoses these problems, and initiates proactive self-healing activities such as disabling faulty components.

Sometimes Fault Management throws the wrong error messages, for an example the following error message from /var/adm/messages and will require to clear the faults detected within the FMA.

Aug  4 13:57:56 Sunv880 fmd: [ID 441519 daemon.error] SUNW-MSG-ID: PCI-8000-42, TYPE: Fault, VER: 1, SEVERITY: Critical
Aug  4 13:57:56 Sunv880 EVENT-TIME: Mon Aug  4 13:57:56 EDT 2008
Aug  4 13:57:56 Sunv880 PLATFORM: SUNW,Sun-Fire-880, CSN: -, HOSTNAME: Sunv880
Aug  4 13:57:56 Sunv880 SOURCE: eft, REV: 1.16
Aug  4 13:57:56 Sunv880 EVENT-ID: 8b31de79-a6a3-49bd-a24e-8f9bd4533190
Aug  4 13:57:56 Sunv880 DESC: A problem was detected in the SUNOS subsystem or controlling software.  Refer to http://sun.com/msg/PCI-8000-42 for more information.
Aug  4 13:57:56 Sunv880 AUTO-RESPONSE: One or more device instances may be disabled
Aug  4 13:57:56 Sunv880 IMPACT: Loss of services provided by the device instances associated with this fault
Aug  4 13:57:56 Sunv880 REC-ACTION: Ensure that the latest drivers and patches are installed, schedule a repair procedure to replace the affected device if necessary, or contact Sun for support.

# fmdump -v -u 8b31de79-a6a3-49bd-a24e-8f9bd4533190
TIME                 UUID                                 SUNW-MSG-ID
Aug 04 13:25:03.4539 8b31de79-a6a3-49bd-a24e-8f9bd4533190 PCI-8000-42
25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: –
FRU: –

25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: mod:///mod-name=qlc/mod-id=26
FRU: pkg:///SUNWqlc

25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB

25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB

Aug 04 13:41:20.2781 8b31de79-a6a3-49bd-a24e-8f9bd4533190 PCI-8000-42
25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB

25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB

25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: mod:///mod-name=qlc/mod-id=26
FRU: pkg:///SUNWqlc

25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: –
FRU: –

Aug 04 13:57:56.1241 8b31de79-a6a3-49bd-a24e-8f9bd4533190 PCI-8000-42
25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB

25%  fault.io.pci.device

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB

25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: mod:///mod-name=qlc/mod-id=26
FRU: pkg:///SUNWqlc

25%  defect.io.pci.driver

Problem in: hc:///motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: –
FRU: –

To clear error logs within FMA use the following steps:

1) # fmadm faulty
STATE RESOURCE / UUID
——– ———————————————————————-
faulted cpu:///cpuid=1/serial=14D269010CD
03351534-e325-cf5d-81ae-e3fc8be83e5b
——– ———————————————————————-
degraded dev:////pci@8,600000/SUNW,qlc@2
8b31de79-a6a3-49bd-a24e-8f9bd4533190
——– ———————————————————————-
degraded mod:///mod-name=qlc/mod-id=26
8b31de79-a6a3-49bd-a24e-8f9bd4533190
——– ———————————————————————-

2) #fmadm repair <UUID>

# fmadm repair 03351534-e325-cf5d-81ae-e3fc8be83e5b

# fmadm repair 8b31de79-a6a3-49bd-a24e-8f9bd453319

# fmadm repair 8b31de79-a6a3-49bd-a24e-8f9bd4533190

3) # cd /var/fm/fmd

# rm  e* f* c*/eft/* r*/*   (rm errlog fltlog ckpt/eft/* rsrc/*)

4) # fmadm reset cpumem-diagnosis

5) # fmadm reset cpumem-retire

6) # fmadm reset eft

7) # fmadm reset io-retire

8) # init 6

After these steps check to see if problem still exit.

# fmadm faulty
STATE RESOURCE / UUID
——– ———————————————————————-

fmadm man page:

The fmadm utility can be used by administrators and  service
personnel to view and modify system configuration parameters
maintained  by  the  Solaris  Fault  Manager,  fmd(1M).  fmd
receives telemetry information relating to problems detected
by the system software, diagnoses these problems,  and  ini-
tiates  proactive  self-healing activities such as disabling
faulty components.

Ref:

Solaris 10 Predictive Self-Healing and Solaris Diagnostics

Read Full Post »

Sneep provides a persistent, software-accessible Chassis Serial Number (CSN) for virtually all Sun Solaris hardware platforms. Sneep uses the system EEPROM for storage of the Chassis Serial Number and any other important user-defined data such as asset, contract, or location information. The presence of the software-accessible serial number and other service-related information can significantly simplify activities related to system service and asset management.

Download SUNWsneep from

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=SNEEP-2.5R1.92-G-F@CDS-CDS_SMI

SNEEP FAQ

http://wikis.sun.com/display/sneep/SNEEP+FAQ

# /opt/SUNWsneep/bin/sneep -s <serial number>

And then later on, you can check the chassis serial number (CSN) with:

# /opt/SUNWsneep/bin/showplatform -p csn

This data is stored in NVRAM on SPARC and in a NVRAM-like file on x86.

bash-2.03# /opt/SUNWsneep/bin/sneep -a
ChassisSerialNumber from eeprom :
XXXXXXXXXXX
ChassisSerialNumber from backup : /etc/default/SUNWsneep :
XXXXXXXXXXX
ChassisSerialNumber from explorer :
XXXXXXXXXXX

bash-2.03# /opt/SUNWsneep/bin/sneep -T
“ChassisSerialNumber”   “XXXXXXXXXX”
“ASSET_ID”      “unknown”
“BUS_AREA”      “unknown”
“BUS_CONTACT”   “Somebody”
“CABINET”       “Somecabinet”
“CC”    “unknown”
“CLUSTER_INFO”  “unknown”
“ENVIRONMENT”   “unknown”
“FUNCTION”      “Technology Management”
“LOCATION”      “Out of Space”
“PDBA”  “unknown”
“PROJECT”       “Consolidation”
“PSA”   “unknown”
“SDBA”  “unknown”
“SSA”   “unknown”

Read Full Post »

The following tricks shows you how to label multiple disks with the same disk geometry using prtvtoc and fmthard commands.

# for i in 3 4 5

> do

> prtvtoc /dev/dsk/c1t0d0s0 | fmthard -s – /dev/rdsk/c3t${i}d0s2

> done

fmthard: New volume table of contents now in place.
fmthard: New volume table of contents now in place.
fmthard: New volume table of contents now in place.
fmthard: New volume table of contents now in place.

prtvtoc – report information about a disk geometry and partitioning.

fmthard – populate label on hard disks.

-s datafile – This option is used to populate the VTOC according to a datafile created by the user. If the datafile is “-” fmthard reads from standard input.

Read Full Post »

Use format command to find out number of internal hard drive

bash-3.00# echo | format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 136>
          /pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/sd@0,0
       1. c1t1d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 136>
          /pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/sd@1,0
       2. c3t50060160106018CEd0 <DGC-RAID5-0207 cyl 42516 alt 2 hd 256 sec 103>
          /pci@1e,600000/pci@0/pci@9/fibre-channel@0,1/fp@0,0/ssd@w50060160106018ce,0
       3. c3t50060169106018CEd0 <drive type unknown>
          /pci@1e,600000/pci@0/pci@9/fibre-channel@0,1/fp@0,0/ssd@w50060169106018ce,0
       4. c5t50060161106018CEd0 <DGC-RAID5-0207 cyl 42516 alt 2 hd 256 sec 103>
          /pci@1f,700000/pci@0/pci@9/fibre-channel@0,1/fp@0,0/ssd@w50060161106018ce,0
       5. c5t50060168106018CEd0 <drive type unknown>
          /pci@1f,700000/pci@0/pci@9/fibre-channel@0,1/fp@0,0/ssd@w50060168106018ce,0

In my case c1t0d0 and c1t1d0 are internal drives. Format command also gives you the full path to your device.

But you can use ls command to find out full path for your device

bash-3.00# ls -l /dev/dsk/c[01]t[01]d0s2
lrwxrwxrwx   1 root     root          61 Dec 20  2006 /dev/dsk/c0t0d0s2 -> ../../devices/pci@1f,700000/pci@0/pci@1/pci@0/ide@1f/sd@0,0:c
lrwxrwxrwx   1 root     root          75 Dec 20  2006 /dev/dsk/c1t0d0s2 -> ../../devices/pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/sd@0,0:c
lrwxrwxrwx   1 root     root          75 Aug 28  2007 /dev/dsk/c1t1d0s2 -> ../../devices/pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/sd@1,0:c

Now use vi editor and do the following,

Replace “sd” with “disk”

bash-3.00# vi /var/tmp/nv

devalias disk0 /pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/disk@0,0:a
devalias disk1 /pci@1f,700000/pci@0/pci@2/pci@0/pci@8/LSILogic,sas@1/disk@1,0:a

Use nvramrc command to edit OBP from command line window

bash-3.00# eeprom “boot-device=disk0 disk1”

bash-3.00# eeprom “use-nvramrc?=true”

bash-3.00# eeprom “nvramrc=`cat /var/tmp/nv`”

Test reboot.

Read Full Post »

Hostid is the identifier of the current host in hexadecimal. This numeric value is unique across all sun hosts.

Use any of the following commands

bash-3.00# hostid

bash-3.00# sysdef -h

Read Full Post »

Older Posts »