Wednesday, 30 March 2016

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