Search This Blog

Thursday 30 November 2017

In solaris 11, its not recomented to edit resolv.conf file directory. Below is the proceedure to configure it.

Ensure, DNS client service is online.
[code]
root@eecsaruh2hoc007 # svcs -a | grep dns
disabled       Jun_25   svc:/network/dns/multicast:default
disabled       Jun_25   svc:/network/dns/server:default
online         Jun_25   svc:/network/dns/client:default
[/code]
Configure DNS client configuration with required values
[code]
root@eecsaruh2hoc007 # svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (10.14.10.13 10.14.10.14 10.64.10.13)
svc:/network/dns/client> setprop config/domain = prod.mobily.lan
svc:/network/dns/client> setprop config/search = prod.mobily.lan
svc:/network/dns/client> exit
[/code]
Restart the service
[code]
root@eecsaruh2hoc007 # svcadm refresh dns/client # svcadm restart dns/client
[/code]
Verify the change:
[code]
root@eecsaruh2hoc007 # cat /etc/resolv.conf

#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
#   DO NOT EDIT THIS FILE.  EDITS WILL BE LOST.
# See resolv.conf(4) for details.

domain  prod.mobily.lan
search  prod.mobily.lan
nameserver      10.14.10.13
nameserver      10.14.10.14
nameserver      10.64.10.13

[/code]


[b]Setting up nsswitch conf.[/b]
Ensure, name-service service is online
Change the properties based on your requirements
[code]
root@eecsaruh2hoc007 #  svccfg -s name-service/switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> setprop config/ipnode = astring: "files dns"
svc:/system/name-service/switch> refresh
svc:/system/name-service/switch> exit
[/code]
Restart name-service service
[code]
root@eecsaruh2hoc007 # svcadm refresh name-service/switch
root@eecsaruh2hoc007 # svcadm restart  name-service/switch
[/code]

Verify the change:
[code]
root@eecsaruh2hoc007 # grep dns /etc/nsswitch.conf
hosts:  files dns
ipnodes:        files dns
[/code]

Wednesday 1 November 2017

Creating SSL self signed key and certificate for apache webserver.

Use below single command to create SSL self signed certificate and key.


openssl req  -nodes -new -x509  -keyout yum.prod.example.lan.key -out yum.prod.example.lan.cert


Once created, this certificates can be used in ssl.conf like below.


NameVirtualHost *:443


ServerAdmin unixadmin@example.com.sa
ServerName yum.prod.example.lan
SSLEngine on
SSLCertificateFile /etc/httpd/certificate/yum.prod.example.lan.cert
SSLCertificateKeyFile /etc/httpd/certificate/yum.prod.example.lan.key
CustomLog  /var/log/httpd/yum_access_ssl.log combined
ServerAlias yum
DocumentRoot /apps/yum
"
        Options Indexes FollowSymLinks MultiViews




Restart httpd
Now you can access the link using https://yum.prod.example.lan

LDOM Virtual Function to HBA controller path mapping

Script.


domain=`virtinfo -c current get -H -o value domain-name`
for device in `ldm list-io|grep IOVFC.PF|egrep $domain|awk {'print $1'}`;
 do
        #echo "ldm list-io -l -p $device|grep type=PF|awk -F\| {'print $2'}|sed 's/dev=//g'"
        dev=`ldm list-io -l -p $device|grep type=PF|awk -F\| {'print $2'}|sed 's/dev=//g'`
        CFG=`ls -ltr /dev/cfg/*|grep $dev|awk {'print $9'}|head -1`
        echo  "$dev \t $device \t $CFG"
done




pci@300/pci@1/pci@0/pci@4/SUNW,qlc@0     /SYS/IOU0/PCIE4/IOVFC.PF0       /dev/cfg/c1
pci@300/pci@1/pci@0/pci@4/SUNW,qlc@0,1   /SYS/IOU0/PCIE4/IOVFC.PF1       /dev/cfg/c2
pci@340/pci@1/pci@0/pci@2/SUNW,qlc@0     /SYS/IOU0/PCIE2/IOVFC.PF0       /dev/cfg/c8
pci@340/pci@1/pci@0/pci@2/SUNW,qlc@0,1   /SYS/IOU0/PCIE2/IOVFC.PF1       /dev/cfg/c9
pci@380/pci@1/pci@0/pci@8/SUNW,qlc@0     /SYS/IOU0/PCIE5/IOVFC.PF0       /dev/cfg/c20
pci@380/pci@1/pci@0/pci@8/SUNW,qlc@0,1   /SYS/IOU0/PCIE5/IOVFC.PF1       /dev/cfg/c21
pci@3c0/pci@1/pci@0/pci@4/SUNW,qlc@0     /SYS/IOU0/PCIE8/IOVFC.PF0       /dev/cfg/c22
pci@3c0/pci@1/pci@0/pci@4/SUNW,qlc@0,1   /SYS/IOU0/PCIE8/IOVFC.PF1       /dev/cfg/c23
pci@600/pci@1/pci@0/pci@8/SUNW,qlc@0     /SYS/IOU0/PCIE13/IOVFC.PF0      /dev/cfg/c29
pci@600/pci@1/pci@0/pci@8/SUNW,qlc@0,1   /SYS/IOU0/PCIE13/IOVFC.PF1      /dev/cfg/c30
pci@640/pci@1/pci@0/pci@4/SUNW,qlc@0     /SYS/IOU0/PCIE16/IOVFC.PF0      /dev/cfg/c31
pci@640/pci@1/pci@0/pci@4/SUNW,qlc@0,1   /SYS/IOU0/PCIE16/IOVFC.PF1      /dev/cfg/c32
pci@680/pci@1/pci@0/pci@4/SUNW,qlc@0     /SYS/IOU0/PCIE12/IOVFC.PF0      /dev/cfg/c33
pci@680/pci@1/pci@0/pci@4/SUNW,qlc@0,1   /SYS/IOU0/PCIE12/IOVFC.PF1      /dev/cfg/c34
pci@6c0/pci@1/pci@0/pci@8/SUNW,qlc@0     /SYS/IOU0/PCIE9/IOVFC.PF0       /dev/cfg/c40
pci@6c0/pci@1/pci@0/pci@8/SUNW,qlc@0,1   /SYS/IOU0/PCIE9/IOVFC.PF1       /dev/cfg/c41

Oracle Oracle_QLE8362 Firmware upgrade (SRIOV)

How to find the model.

Get the PCIO slot of HBA adaptor

root@eecsaruh6hoc007 # ldm list-io|grep IOVFC|more
/SYS/IOU0/PCIE4/IOVFC.PF0                  PF     pci_0    primary
/SYS/IOU0/PCIE4/IOVFC.PF1                  PF     pci_0    primary
/SYS/IOU0/PCIE2/IOVFC.PF0                  PF     pci_1    primary
/SYS/IOU0/PCIE2/IOVFC.PF1                  PF     pci_1    primary
/SYS/IOU0/PCIE5/IOVFC.PF0                  PF     pci_2    primary
/SYS/IOU0/PCIE5/IOVFC.PF1                  PF     pci_2    primary
/SYS/IOU0/PCIE8/IOVFC.PF0                  PF     pci_3    primary
/SYS/IOU0/PCIE8/IOVFC.PF1                  PF     pci_3    primary
/SYS/IOU0/PCIE13/IOVFC.PF0                 PF     pci_12   primary
/SYS/IOU0/PCIE13/IOVFC.PF1                 PF     pci_12   primary
/SYS/IOU0/PCIE16/IOVFC.PF0                 PF     pci_13   primary
/SYS/IOU0/PCIE16/IOVFC.PF1                 PF     pci_13   primary
/SYS/IOU0/PCIE12/IOVFC.PF0                 PF     pci_14   primary
/SYS/IOU0/PCIE12/IOVFC.PF1                 PF     pci_14   primary
/SYS/IOU0/PCIE9/IOVFC.PF0                  PF     pci_15   primary
/SYS/IOU0/PCIE9/IOVFC.PF1                  PF     pci_15   primary
/SYS/IOU1/PCIE4/IOVFC.PF0                  PF     pci_16   secondary
/SYS/IOU1/PCIE4/IOVFC.PF1                  PF     pci_16   secondary
/SYS/IOU1/PCIE5/IOVFC.PF0                  PF     pci_18   secondary
/SYS/IOU1/PCIE5/IOVFC.PF1                  PF     pci_18   secondary
/SYS/IOU1/PCIE8/IOVFC.PF0                  PF     pci_19   secondary
/SYS/IOU1/PCIE8/IOVFC.PF1                  PF     pci_19   secondary
/SYS/IOU1/PCIE13/IOVFC.PF0                 PF     pci_28   secondary
/SYS/IOU1/PCIE13/IOVFC.PF1                 PF     pci_28   secondary
/SYS/IOU1/PCIE16/IOVFC.PF0                 PF     pci_29   secondary
/SYS/IOU1/PCIE16/IOVFC.PF1                 PF     pci_29   secondary
/SYS/IOU1/PCIE12/IOVFC.PF0                 PF     pci_30   secondary
/SYS/IOU1/PCIE12/IOVFC.PF1                 PF     pci_30   secondary
/SYS/IOU1/PCIE9/IOVFC.PF0                  PF     pci_31   secondary
/SYS/IOU1/PCIE9/IOVFC.PF1                  PF     pci_31   secondary



Get the Model from prtdiag output by grepping the location of the card(eg. IOU0/PCIE4 from above o/p). here the model is QLE8362.



root@eecsaruh6hoc007 # partdiag -vvv|grep IOU0/PCIE4
/SYS/IOU0/PCIE4   PCIE  SUNW,qlc-pciex1077,2031           QLE8362    8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  SUNW,qlc-pciex1077,2031           QLE8362    8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
/SYS/IOU0/PCIE4   PCIE  fibre-channel-pciex1077,2431                 8.0GT/x8   8.0GT/x4
SYS/IOU0/PCIE4                     CAR       enabled
SYS/IOU0/PCIE4/CAR                 CARD      enabled




Download the required firemware from Vendor website. http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/Oracle_Search.aspx

Here we download Oracle_QLE8362_SRIOV_Flash_Kit_07.zip

Version before upgrade


root@eecsaruh6hoc007 # fcinfo hba-port|grep FCode
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;
FCode/BIOS Version:  BIOS: 3.24; fcode: 4.06; EFI: 5.50;






Download required patch from

Create new directory and move the file and unzip it.

root@eecsaruh6hoc007 # unzip Oracle_QLE8362_SRIOV_Flash_Kit_07.zip
Archive:  Oracle_QLE8362_SRIOV_Flash_Kit_07.zip
  inflating: agent.properties
  inflating: ChangeHistory.txt
  inflating: DOS4GW.EXE
  inflating: EPC83xx.DAT
  inflating: FBC83xx.DAT
  inflating: FCAFC02.dat
  inflating: FD83xx.dat
  inflating: FJT83xx.DAT
  inflating: FLT83xx.DAT
  inflating: FWA83xxB.DAT
  inflating: hld36025.bin
  inflating: IP83xx.DAT
  inflating: minidump.bin
  inflating: OL862AC.DAT
  inflating: OL862BCb.dat
  inflating: OL862CNA.VPD
  inflating: OL862DC.DAT
  inflating: OL862FC.VPD
  inflating: OL862FCN.DAT
  inflating: OL862FEN.DAT
  inflating: qmfgoem.exe
  inflating: QMFGoem.txt
  inflating: Read1st.txt
  inflating: resetseq.bin
  inflating: UI83xx.DAT
  inflating: UPDATE.BAT
  inflating: update_lnx.sh
  inflating: update_sol.sh
  inflating: update_win.bat
  inflating: UPGRADE.BAT
 

Change permission of installer and run by mentioning the current directory as Flashkit path.
 
root@eecsaruh6hoc007 # chmod a+x update_sol.sh
root@eecsaruh6hoc007 # ./update_sol.sh  .
Flashing Board Config Data...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating Board Config parameters of HBA instance 10 - QLE8362...
Success
Updating Board Config parameters of HBA instance 14 - QLE8362...
Success
Updating Board Config parameters of HBA instance 8 - QLE8362...
Success
Updating Board Config parameters of HBA instance 2 - QLE8362...
Success
Updating Board Config parameters of HBA instance 4 - QLE8362...
Success
Updating Board Config parameters of HBA instance 12 - QLE8362...
Success
Updating Board Config parameters of HBA instance 0 - QLE8362...
Success
Updating Board Config parameters of HBA instance 6 - QLE8362...
Success
Flashing FC NVRAM Data....
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating FC NVRAM Data on HBA instance 10 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 11 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 14 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 15 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 8 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 9 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 2 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 3 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 4 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 5 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 12 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 13 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 0 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 1 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 6 (QLE8362)...
Success
Updating FC NVRAM Data on HBA instance 7 (QLE8362)...
Success
Flashing FCOE NVRAM Data...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating FCoE NVRAM Data on HBA instance 10 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 11 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 14 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 15 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 8 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 9 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 2 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 3 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 4 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 5 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 12 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 13 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 0 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 1 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 6 (QLE8362)...
Success
Updating FCoE NVRAM Data on HBA instance 7 (QLE8362)...
Success
Flashing FW Preload Table...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating firmware preload table of HBA instance 10 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 14 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 8 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 2 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 4 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 12 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 0 - QLE8362...
Successful, please reboot for the change to take effect.
Updating firmware preload table of HBA instance 6 - QLE8362...
Successful, please reboot for the change to take effect.
Flashing FW Jump Table...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating FC Preload Table Jump Area of HBA instance 10 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 14 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 8 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 2 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 4 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 12 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 0 - QLE8362...
Success
Updating FC Preload Table Jump Area of HBA instance 6 - QLE8362...
Success
Flashing Feature Config Data...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating feature config area of HBA instance 10 - QLE8362...
Success
Updating feature config area of HBA instance 14 - QLE8362...
Success
Updating feature config area of HBA instance 8 - QLE8362...
Success
Updating feature config area of HBA instance 2 - QLE8362...
Success
Updating feature config area of HBA instance 4 - QLE8362...
Success
Updating feature config area of HBA instance 12 - QLE8362...
Success
Updating feature config area of HBA instance 0 - QLE8362...
Success
Updating feature config area of HBA instance 6 - QLE8362...
Success
Flashing FC Board Config Data...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating FC board config of HBA instance 10 (QLE8362 )...
Success
Updating FC board config of HBA instance 14 (QLE8362 )...
Success
Updating FC board config of HBA instance 8 (QLE8362 )...
Success
Updating FC board config of HBA instance 2 (QLE8362 )...
Success
Updating FC board config of HBA instance 4 (QLE8362 )...
Success
Updating FC board config of HBA instance 12 (QLE8362 )...
Success
Updating FC board config of HBA instance 0 (QLE8362 )...
Success
Updating FC board config of HBA instance 6 (QLE8362 )...
Success
Flashing Flash Layout Table...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating flash layout table of HBA instance 10 (QLE8362)...
Success
Updating flash layout table of HBA instance 14 (QLE8362)...
Success
Updating flash layout table of HBA instance 8 (QLE8362)...
Success
Updating flash layout table of HBA instance 2 (QLE8362)...
Success
Updating flash layout table of HBA instance 4 (QLE8362)...
Success
Updating flash layout table of HBA instance 12 (QLE8362)...
Success
Updating flash layout table of HBA instance 0 (QLE8362)...
Success
Updating flash layout table of HBA instance 6 (QLE8362)...
Success
Flashing Eport Parameters...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating Eport Parameters of HBA instance 10 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 14 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 8 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 2 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 4 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 12 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 0 - QLE8362 ...
Success
Updating Eport Parameters of HBA instance 6 - QLE8362 ...
Success
Flashing Default Configuration ...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating default config of HBA instance 10 - QLE8362...
Success
Updating default config of HBA instance 14 - QLE8362...
Success
Updating default config of HBA instance 8 - QLE8362...
Success
Updating default config of HBA instance 2 - QLE8362...
Success
Updating default config of HBA instance 4 - QLE8362...
Success
Updating default config of HBA instance 12 - QLE8362...
Success
Updating default config of HBA instance 0 - QLE8362...
Success
Updating default config of HBA instance 6 - QLE8362...
Success
Flashing Active Configuration ...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating active config of HBA instance 10 - QLE8362...
Success
Updating active config of HBA instance 14 - QLE8362...
Success
Updating active config of HBA instance 8 - QLE8362...
Success
Updating active config of HBA instance 2 - QLE8362...
Success
Updating active config of HBA instance 4 - QLE8362...
Success
Updating active config of HBA instance 12 - QLE8362...
Success
Updating active config of HBA instance 0 - QLE8362...
Success
Updating active config of HBA instance 6 - QLE8362...
Success
Flashing Reset Sequence...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating reset sequence of HBA instance 10 (QLE8362 )...
Success
Updating reset sequence of HBA instance 14 (QLE8362 )...
Success
Updating reset sequence of HBA instance 8 (QLE8362 )...
Success
Updating reset sequence of HBA instance 2 (QLE8362 )...
Success
Updating reset sequence of HBA instance 4 (QLE8362 )...
Success
Updating reset sequence of HBA instance 12 (QLE8362 )...
Success
Updating reset sequence of HBA instance 0 (QLE8362 )...
Success
Updating reset sequence of HBA instance 6 (QLE8362 )...
Success
Flashing User Info...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating User Info region of HBA instance 10 - QLE8362...
Success
Updating User Info region of HBA instance 14 - QLE8362...
Success
Updating User Info region of HBA instance 8 - QLE8362...
Success
Updating User Info region of HBA instance 2 - QLE8362...
Success
Updating User Info region of HBA instance 4 - QLE8362...
Success
Updating User Info region of HBA instance 12 - QLE8362...
Success
Updating User Info region of HBA instance 0 - QLE8362...
Success
Updating User Info region of HBA instance 6 - QLE8362...
Success
Flashing Mini Dump Template...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Updating mini-dump templates of HBA instance 10 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 14 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 8 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 2 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 4 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 12 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 0 (QLE8362 )...
Success
Updating mini-dump templates of HBA instance 6 (QLE8362 )...
Success
Flashing Flash image ./hld36025.bin...
Installation directory: /usr/lib/ssm/fwupdate/qlogic
Working dir: /tmp/hba
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.
Validating Flash Image File... Success
Updating Flash on HBA port(s) - QLE8362. Please wait...
Updating Adapter FC Boot Code... Success
Updating Adapter NIC Boot Code... Success
Updating Adapter FCoE Boot Code... Success
Updating Adapter CRBInit... Success
Updating Adapter BootLoader... Success
Updating Adapter PEGTune ... Success
Updating Adapter FCoE FW... Success
Updating Adapter FC FW... Success
Updating Adapter NIC/CNA FW... Success
Updating Adapter NIC/CNA VPD... Success
Updating Adapter FC VPD... Success
Updating Adapter FC VPD... Success
Flash update complete. Changes have been saved to all ports of this HBA.
You must reboot in order for the changes to become effective.


Reboot the host and check the version after reboot.


root@eecsaruh6hoc007 # fcinfo hba-port|grep FCode
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;
FCode/BIOS Version:  BIOS: 3.40; fcode: 4.10; EFI: 6.19;

Accessing Oracle M6 Console

First list out the number of Hosts.


-> show HOST

 /HOST0
    Targets:
        VPS
        VPS_CPUS
        VPS_FANS
        VPS_MEMORY
        bootmode
        console
        diag
        domain
        status_history
        tpm
        verified_boot

    Properties:
        autorestart = reset
        autorunonerror = powercycle
        bootfailrecovery = poweroff
        bootrestart = none
        boottimeout = 0
        dcus_assignable =  /SYS/DCU0 /SYS/DCU1 /SYS/DCU2 /SYS/DCU3
        dcus_assigned =  /SYS/DCU0 /SYS/DCU1 /SYS/DCU2 /SYS/DCU3
        dcus_available = (none)
        expandable = true
        gm_version = GM 1.6.6 2016/08/17 13:44
        hostconfig_version = Hostconfig 1.6.6 2016/08/17 13:23
        hypervisor_version = Hypervisor 1.15.6 2016/08/17 13:02
        ioreconfigure = false
        keyswitch_state = Normal
        macaddress = 00:10:e0:25:76:e0
        maxbootfail = 3
        obp_version = OpenBoot 4.38.6 2016/08/17 12:41
        operation_in_progress = none
        post_version = POST 5.3.6 2016/08/17 13:04
        power_state = On
        send_break_action = (Cannot show property)
        sp_name = /SYS/SPP1
        state_capture_mode = default
        state_capture_on_error = enabled
        state_capture_status = enabled
        status = Solaris running
        status_detail = 20170321 07:37:34: Start Host completed successfully
        sysfw_version = Sun System Firmware 9.6.6.a 2016/09/09 19:36

    Commands:
        cd
        reset
        set
        show
        start
        stop



To connect a spesific host, say, HOST0, use below command.

-> start /HOST0/console
Are you sure you want to start /HOST0/console (y/n)? y

Serial console started.  To stop, type #.
Password:
Jun  6 15:50:19 eecsaruh2hoc007 login: Login failure on /dev/console
Login incorrect
eecsaruh2hoc007 console login:
eecsaruh2hoc007 console login:

Solaris 11 rpool/dump resize (filesystem full)

zfs set refreservation=40G rpool/dump
zfs set quota=40G rpool/dump
zfs set volsize=40G rpool/dump

Solaris 11 DNS Cient and nsswitch.conf configuration.

In solaris 11, its not recomented to edit resolv.conf file directory. Below is the proceedure to configure it.

Ensure, DNS client service is online.

root@eecsaruh2hoc007 # svcs -a | grep dns
disabled       Jun_25   svc:/network/dns/multicast:default
disabled       Jun_25   svc:/network/dns/server:default
online         Jun_25   svc:/network/dns/client:default

Configure DNS client configuration with required values

root@eecsaruh2hoc007 # svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (10.14.10.13 10.14.10.14 10.64.10.13)
svc:/network/dns/client> setprop config/domain = prod.example.lan
svc:/network/dns/client> setprop config/search = prod.example.lan
svc:/network/dns/client> exit

Restart the service

root@eecsaruh2hoc007 # svcadm refresh dns/client # svcadm restart dns/client

Verify the change:

root@eecsaruh2hoc007 # cat /etc/resolv.conf

#
# _AUTOGENERATED_FROM_SMF_V1_
#
# WARNING: THIS FILE GENERATED FROM SMF DATA.
#   DO NOT EDIT THIS FILE.  EDITS WILL BE LOST.
# See resolv.conf(4) for details.

domain  prod.example.lan
search  prod.example.lan
nameserver      10.14.10.13
nameserver      10.14.10.14
nameserver      10.64.10.13




Setting up nsswitch conf
Ensure, name-service service is online
Change the properties based on your requirements



root@eecsaruh2hoc007 #  svccfg -s name-service/switch
svc:/system/name-service/switch> setprop config/host = "files dns"
svc:/system/name-service/switch> setprop config/ipnode = astring: "files dns"
svc:/system/name-service/switch> refresh
svc:/system/name-service/switch> exit

Restart name-service service

root@eecsaruh2hoc007 # svcadm refresh name-service/switch
root@eecsaruh2hoc007 # svcadm restart  name-service/switch


Verify the change:

root@eecsaruh2hoc007 # grep dns /etc/nsswitch.conf
hosts:  files dns
ipnodes:        files dns