SunServer: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Kategorie:Hardware]]
[[Category:Hardware]]
=X86 Systeme=
=X86 Systeme=
==ILOM==
==ILOM==
===Reset SP from OS===
<syntaxhighlight lang=bash>
# ipmitool -I bmc bmc reset cold
Sent cold reset command to MC
</syntaxhighlight>
===Access ILOM from OS===
<syntaxhighlight lang=bash>
# ipmitool sunoem cli
Connected. Use ^D to exit.
->
</syntaxhighlight>
or
<syntaxhighlight lang=bash>
# ipmitool -I bmc sunoem cli
Connected. Use ^D to exit.
->
</syntaxhighlight>
===Set SP IP address from OS via ipmitool===
===Set SP IP address from OS via ipmitool===
* Set:
* Set:
<source lang=bash>
<syntaxhighlight lang=bash>
# ipmitool lan set 1 ipaddr 172.30.42.149  
# ipmitool lan set 1 ipaddr 172.30.42.149  
Setting LAN IP Address to 172.30.42.149
Setting LAN IP Address to 172.30.42.149
Line 13: Line 33:
# ipmitool lan set 1 defgw ipaddr 172.30.42.1  
# ipmitool lan set 1 defgw ipaddr 172.30.42.1  
Setting LAN Default Gateway IP to 172.30.42.1
Setting LAN Default Gateway IP to 172.30.42.1
</source>
</syntaxhighlight>


* Check:
* Check:
<source lang=bash>
<syntaxhighlight lang=bash>
# ipmitool lan print                           
# ipmitool lan print                           
Set in Progress        : Commit Write
Set in Progress        : Commit Write
Line 42: Line 62:
                         :    a=ADMIN
                         :    a=ADMIN
                         :    O=OEM
                         :    O=OEM
</source>
</syntaxhighlight>
 
===Restore lost Serial/Product Information===
<syntaxhighlight lang=bash>
$ ssh root@x4100-sp
-> show /SYS/MB       
 
/SYS/MB
...
    Properties:
type = Motherboard
chassis_name = SUN FIRE X4100
chassis_part_number = 541-0250-04
chassis_serial_number = 0000000-0000000000
chassis_manufacturer = SUN MICROSYSTEMS
product_name = SUN FIRE X4100
product_part_number = 602-0000-00
product_serial_number = 0000000000
product_version = (none)
product_manufacturer = SUN MICROSYSTEMS
fru_name = ASSY,MOTHERBOARD,A64
fru_manufacturer = SUN MICROSYSTEMS
fru_part_number = 501-7644-01
fru_serial_number = 1762TH1-0627002296
...
-> exit
 
$ ssh sunservice@x4100-sp
Password: <the root password>
[(flash)root@X4100-SP:~]# servicetool --board_replaced=mainboard  --fru_product_serial_number --fru_chassis_serial_number  --fru_product_part_number
<Fill out the answers>
</syntaxhighlight>


=SPARC Systeme=
=SPARC Systeme=
==S7-2==
===ILOM===
<syntaxhighlight lang=bash>
-> set /HOST/bootmode/ script="setenv auto-boot? false"
Set 'script' to 'setenv auto-boot? false'
-> reset /SYS
Are you sure you want to reset /SYS (y/n)? y
Performing reset on /SYS
-> start /HOST/console
Are you sure you want to start /HOST/console (y/n)? y
Serial console started.  To stop, type #.
...
SPARC S7-2, No Keyboard
Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.43.9, 126.5000 GB memory installed, Serial #1154xxxxx.
Ethernet address 0:10:e0:xx:xx:xx, Host ID: 86e15f24.
auto-boot? =            false
{0} ok
{0} ok printenv boot-device
boot-device =          disk net
{0} ok devalias 
fallback-miniroot        /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0
rcdrom                  /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0
disk7                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p4
disk6                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p5
disk5                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p7
disk4                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p6
disk3                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p0
disk2                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p1
disk1                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p3
disk                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p2
disk0                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p2
sas0                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0
sas                      /pci@300/pci@2/pci@0/pci@14/LSI,sas@0
nvme3                    /pci@300/pci@2/pci@0/pci@7/nvme@0/disk@1
nvme2                    /pci@300/pci@2/pci@0/pci@6/nvme@0/disk@1
nvme1                    /pci@300/pci@2/pci@0/pci@5/nvme@0/disk@1
nvme0                    /pci@300/pci@2/pci@0/pci@4/nvme@0/disk@1
net3                    /pci@300/pci@1/pci@0/pci@1/network@0,3
net2                    /pci@300/pci@1/pci@0/pci@1/network@0,2
net1                    /pci@300/pci@1/pci@0/pci@1/network@0,1
net                      /pci@300/pci@1/pci@0/pci@1/network@0
net0                    /pci@300/pci@1/pci@0/pci@1/network@0
virtual-console               
                        /virtual-devices/console@1
name                    aliases
{0} ok boot nvme0
Boot device: /pci@300/pci@2/pci@0/pci@4/nvme@0/disk@1  File and args:
SunOS Release 5.11 Version 11.4.45.119.2 64-bit
Copyright (c) 1983, 2022, Oracle and/or its affiliates.
Booting to milestone "svc:/milestone/config:default".
/
</syntaxhighlight>
==T4-1==
===Get disk slot===
<b>get_disk_slot.sh</b>:
<syntaxhighlight lang=bash>
#!/bin/bash
/usr/sbin/prtconf -v | nawk -v disk="$1" '
function get_value() {
  getline line;
  split(line,values,"=");
  return values[2];
}
/inquiry-serial-no/ {
  inquiry_serial_no=get_value();
}
/inquiry-product-id/ {
  inquiry_product_id=get_value();
}
/inquiry-vendor-id/ {
  inquiry_vendor_id=get_value();
}
/obp-path/ {
  obp_path=get_value();
}
/phy-num/ {
  phy_num[obp_path]=get_value();
}
$0 ~ "/dev/rdsk/"disk"$" {
  split(obp_path,path_parts,"/");
  if(path_parts[3]=="pci@1"){
    controller[obp_path]=0;
  }
  if(path_parts[3]=="pci@2"){
    controller[obp_path]=1;
  }
  printf "%s\n\t%s\n\t%s\n\t%s\n\tcontroller %d, PhyNum %d => Slot %d\n",$1,inquiry_vendor_id,inquiry_serial_no,obp_path,controller[obp_path],phy_num[obp_path],4*controller[obp_path]+phy_num[obp_path]
}'
</syntaxhighlight>
Example:
<syntaxhighlight lang=bash>
# ./get_disk_slot.sh c0t5000C500230D43A3d0
dev_link=/dev/rdsk/c0t5000C500230D43A3d0
        'SEAGATE'
        '00101371ZVHM        3SE1ZVHM'
        '/pci@400/pci@2/pci@0/pci@4/scsi@0/disk@w5000c500230d43a1,0'
        controller 1, PhyNum 2 => Slot 6
</syntaxhighlight>
==XSCF==
==XSCF==
===Set XSCF IP address from OS via ssh through dscp===
===Set XSCF IP address from OS via ssh through dscp===
* Show:
* Show:
<source lang=bash>
<syntaxhighlight lang=bash>
# /usr/platform/`uname -i`/sbin/prtdscp  
# /usr/platform/`uname -i`/sbin/prtdscp  
Domain Address: 192.168.224.2
Domain Address: 192.168.224.2
Line 76: Line 242:
172.42.0.0      *              255.255.0.0    U    xscf#0-lan#0
172.42.0.0      *              255.255.0.0    U    xscf#0-lan#0
default        172.42.0.1      0.0.0.0        UG    xscf#0-lan#0
default        172.42.0.1      0.0.0.0        UG    xscf#0-lan#0
</source>
</syntaxhighlight>


* Delete default gateway:
* Delete default gateway:
<source lang=bash>
<syntaxhighlight lang=bash>
XSCF> setroute -c del -n 0.0.0.0 -m 0.0.0.0 -g 172.42.0.1  xscf#0-lan#0
XSCF> setroute -c del -n 0.0.0.0 -m 0.0.0.0 -g 172.42.0.1  xscf#0-lan#0
</source>
</syntaxhighlight>


* Set:
* Set:
<source lang=bash>
<syntaxhighlight lang=bash>
XSCF> setnetwork xscf#0-lan#0 172.32.40.52 -m 255.255.255.0
XSCF> setnetwork xscf#0-lan#0 172.32.40.52 -m 255.255.255.0
XSCF> setroute -c add -n 0.0.0.0 -m 0.0.0.0 -g 172.31.40.1 xscf#0-lan#0
XSCF> setroute -c add -n 0.0.0.0 -m 0.0.0.0 -g 172.32.40.1 xscf#0-lan#0
XSCF> applynetwork
XSCF> applynetwork
The following network settings will be applied:
The following network settings will be applied:
Line 107: Line 273:


Continue? [y|n] :y
Continue? [y|n] :y
</source>
Please reset the XSCF by rebootxscf to apply the network settings.
Please confirm that the settings have been applied by executing
showhostname, shownetwork, showroute and shownameserver after rebooting
the XSCF.
XSCF> rebootxscf
The XSCF will be reset. Continue? [y|n] :y
</syntaxhighlight>
 
===Enable sending of break signal===
Example on a M10 (Partition 0)... break_signal=off means turn supression of break signals off ;-) :
<syntaxhighlight lang=bash>
XSCF> showpparmode -p 0
Host-ID                  :90071f40
Diagnostic Level        :max
Message Level            :max
Alive Check              :on
Watchdog Reaction        :reset
Break Signal            :on
Autoboot(Guest Domain)  :on
Elastic Mode            :off
IOreconfigure            :false
CPU Mode                :auto
PPAR DR(Current)        :off
PPAR DR(Next)            :off
 
XSCF> setpparmode -p 0 -m break_signal=off
Diagnostic Level        :max      -> -
Message Level            :max      -> -
Alive Check              :on      -> -
Watchdog Reaction        :reset    -> -
Break Signal            :on      -> off
Autoboot(Guest Domain)  :on      -> -
Elastic Mode            :off      -> -
IOreconfigure            :false    -> -
CPU Mode                :auto      -> -
PPAR DR                  :off      -> -
The specified modes will be changed.
Continue? [y|n] :y
configured.
Diagnostic Level        :max
Message Level            :max
Alive Check              :on (alive check:available)
Watchdog Reaction        :reset (watchdog reaction:reset)
Break Signal            :off (break signal:send)
Autoboot(Guest Domain)  :on
Elastic Mode            :off
IOreconfigure            :false
CPU Mode                :auto
PPAR DR                  :off
 
XSCF> sendbreak -y -p0
Send break signal to PPAR-ID 0?[y|n] :y
XSCF> console -y -p0
 
Console contents may be logged.
Connect to PPAR-ID 0?[y|n] :y
 
c)ontinue, s)ync, r)eset? c
^@Notifying cluster that this node is panicking
 
panic[cpu10]/thread=2a100df1c80: Aborting node because pm_tick delay of 13644 ms exceeds 5050 ms
...
</syntaxhighlight>

Latest revision as of 14:45, 9 January 2023

X86 Systeme

ILOM

Reset SP from OS

# ipmitool -I bmc bmc reset cold
Sent cold reset command to MC


Access ILOM from OS

# ipmitool sunoem cli
Connected. Use ^D to exit.
->

or

# ipmitool -I bmc sunoem cli
Connected. Use ^D to exit.
->

Set SP IP address from OS via ipmitool

  • Set:
# ipmitool lan set 1 ipaddr 172.30.42.149 
Setting LAN IP Address to 172.30.42.149

# ipmitool lan set 1 netmask 255.255.255.0
Setting LAN Subnet Mask to 255.255.255.0

# ipmitool lan set 1 defgw ipaddr 172.30.42.1 
Setting LAN Default Gateway IP to 172.30.42.1
  • Check:
# ipmitool lan print                          
Set in Progress         : Commit Write
Auth Type Support       : NONE MD2 MD5 PASSWORD 
Auth Type Enable        : Callback : MD2 MD5 PASSWORD 
                        : User     : MD2 MD5 PASSWORD 
                        : Operator : MD2 MD5 PASSWORD 
                        : Admin    : MD2 MD5 PASSWORD 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 172.30.42.149
Subnet Mask             : 255.255.255.0
MAC Address             : 00:1c:24:f0:70:b0
SNMP Community String   : public
IP Header               : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
Default Gateway IP      : 172.30.42.1
Default Gateway MAC     : ff:ff:ff:ff:ff:ff
Backup Gateway IP       : 255.255.255.255
Backup Gateway MAC      : ff:ff:ff:ff:ff:ff
Cipher Suite Priv Max   : aaaaaaaaaaaaaaa
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM

Restore lost Serial/Product Information

$ ssh root@x4100-sp
-> show /SYS/MB        

 /SYS/MB
...
    Properties:
	type = Motherboard
	chassis_name = SUN FIRE X4100
	chassis_part_number = 541-0250-04
	chassis_serial_number = 0000000-0000000000
	chassis_manufacturer = SUN MICROSYSTEMS
	product_name = SUN FIRE X4100
	product_part_number = 602-0000-00
	product_serial_number = 0000000000
	product_version = (none)
	product_manufacturer = SUN MICROSYSTEMS
	fru_name = ASSY,MOTHERBOARD,A64
	fru_manufacturer = SUN MICROSYSTEMS
	fru_part_number = 501-7644-01
	fru_serial_number = 1762TH1-0627002296
...
-> exit

$ ssh sunservice@x4100-sp
Password: <the root password>
[(flash)root@X4100-SP:~]# servicetool --board_replaced=mainboard  --fru_product_serial_number --fru_chassis_serial_number  --fru_product_part_number
<Fill out the answers>

SPARC Systeme

S7-2

ILOM

-> set /HOST/bootmode/ script="setenv auto-boot? false" 
Set 'script' to 'setenv auto-boot? false'

-> reset /SYS
Are you sure you want to reset /SYS (y/n)? y
Performing reset on /SYS

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

Serial console started.  To stop, type #.

...

SPARC S7-2, No Keyboard
Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.43.9, 126.5000 GB memory installed, Serial #1154xxxxx.
Ethernet address 0:10:e0:xx:xx:xx, Host ID: 86e15f24.



auto-boot? =            false
{0} ok
{0} ok printenv boot-device
boot-device =           disk net

{0} ok devalias  
fallback-miniroot        /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0
rcdrom                   /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0
disk7                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p4
disk6                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p5
disk5                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p7
disk4                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p6
disk3                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p0
disk2                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p1
disk1                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p3
disk                     /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p2
disk0                    /pci@300/pci@2/pci@0/pci@14/LSI,sas@0/disk@p2
sas0                     /pci@300/pci@2/pci@0/pci@14/LSI,sas@0
sas                      /pci@300/pci@2/pci@0/pci@14/LSI,sas@0
nvme3                    /pci@300/pci@2/pci@0/pci@7/nvme@0/disk@1
nvme2                    /pci@300/pci@2/pci@0/pci@6/nvme@0/disk@1
nvme1                    /pci@300/pci@2/pci@0/pci@5/nvme@0/disk@1
nvme0                    /pci@300/pci@2/pci@0/pci@4/nvme@0/disk@1
net3                     /pci@300/pci@1/pci@0/pci@1/network@0,3
net2                     /pci@300/pci@1/pci@0/pci@1/network@0,2
net1                     /pci@300/pci@1/pci@0/pci@1/network@0,1
net                      /pci@300/pci@1/pci@0/pci@1/network@0
net0                     /pci@300/pci@1/pci@0/pci@1/network@0
virtual-console                
                         /virtual-devices/console@1
name                     aliases

{0} ok boot nvme0
Boot device: /pci@300/pci@2/pci@0/pci@4/nvme@0/disk@1  File and args: 
SunOS Release 5.11 Version 11.4.45.119.2 64-bit
Copyright (c) 1983, 2022, Oracle and/or its affiliates.
Booting to milestone "svc:/milestone/config:default".
/

T4-1

Get disk slot

get_disk_slot.sh:

#!/bin/bash

/usr/sbin/prtconf -v | nawk -v disk="$1" '
function get_value() {
  getline line;
  split(line,values,"=");
  return values[2];
}
/inquiry-serial-no/ {
  inquiry_serial_no=get_value();
}
/inquiry-product-id/ {
  inquiry_product_id=get_value();
}
/inquiry-vendor-id/ {
  inquiry_vendor_id=get_value();
}
/obp-path/ {
  obp_path=get_value();
}
/phy-num/ {
  phy_num[obp_path]=get_value();
}
$0 ~ "/dev/rdsk/"disk"$" {
  split(obp_path,path_parts,"/");
  if(path_parts[3]=="pci@1"){
    controller[obp_path]=0;
  }
  if(path_parts[3]=="pci@2"){
    controller[obp_path]=1;
  }
  printf "%s\n\t%s\n\t%s\n\t%s\n\tcontroller %d, PhyNum %d => Slot %d\n",$1,inquiry_vendor_id,inquiry_serial_no,obp_path,controller[obp_path],phy_num[obp_path],4*controller[obp_path]+phy_num[obp_path]
}'

Example:

# ./get_disk_slot.sh c0t5000C500230D43A3d0
dev_link=/dev/rdsk/c0t5000C500230D43A3d0
        'SEAGATE'
        '00101371ZVHM        3SE1ZVHM'
        '/pci@400/pci@2/pci@0/pci@4/scsi@0/disk@w5000c500230d43a1,0'
        controller 1, PhyNum 2 => Slot 6

XSCF

Set XSCF IP address from OS via ssh through dscp

  • Show:
# /usr/platform/`uname -i`/sbin/prtdscp 
Domain Address: 192.168.224.2
SP Address: 192.168.224.1
# ssh eis-installer@192.168.224.1
XSCF> shownetwork -a
xscf#0-lan#0
          Link encap:Ethernet  HWaddr 00:0B:5D:E3:D8:C4  
          inet addr:172.42.0.120  Bcast:172.42.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:885919090 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7150700 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1987024183 (1.8 GiB)  TX bytes:492148426 (469.3 MiB)
          Base address:0xe000 

xscf#0-lan#1
          Link encap:Ethernet  HWaddr 00:0B:5D:E3:D8:C5  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0xc000 
XSCF> showroute -a
Destination     Gateway         Netmask         Flags Interface
172.42.0.0      *               255.255.0.0     U     xscf#0-lan#0
default         172.42.0.1      0.0.0.0         UG    xscf#0-lan#0
  • Delete default gateway:
XSCF> setroute -c del -n 0.0.0.0 -m 0.0.0.0 -g 172.42.0.1  xscf#0-lan#0
  • Set:
XSCF> setnetwork xscf#0-lan#0 172.32.40.52 -m 255.255.255.0
XSCF> setroute -c add -n 0.0.0.0 -m 0.0.0.0 -g 172.32.40.1 xscf#0-lan#0
XSCF> applynetwork
The following network settings will be applied:
  xscf#0 hostname  :hfgsun07-xsfc
  DNS domain name  :intern.hfg-inkasso.de
  nameserver       :172.41.0.2

  interface        :xscf#0-lan#0
  status           :up
  IP address       :172.32.40.52
  netmask          :255.255.255.0
  route            :-n 172.32.40.1 -m 255.255.255.255 
  route            :-n 0.0.0.0 -m 0.0.0.0 -g 172.32.40.1 

  interface        :xscf#0-lan#1
  status           :down
  IP address       :
  netmask          :
  route            :

Continue? [y|n] :y
Please reset the XSCF by rebootxscf to apply the network settings.
Please confirm that the settings have been applied by executing 
showhostname, shownetwork, showroute and shownameserver after rebooting 
the XSCF.
XSCF> rebootxscf
The XSCF will be reset. Continue? [y|n] :y

Enable sending of break signal

Example on a M10 (Partition 0)... break_signal=off means turn supression of break signals off ;-) :

XSCF> showpparmode -p 0
Host-ID                  :90071f40
Diagnostic Level         :max
Message Level            :max
Alive Check              :on
Watchdog Reaction        :reset
Break Signal             :on
Autoboot(Guest Domain)   :on
Elastic Mode             :off
IOreconfigure            :false
CPU Mode                 :auto
PPAR DR(Current)         :off
PPAR DR(Next)            :off

XSCF> setpparmode -p 0 -m break_signal=off
Diagnostic Level         :max      -> -
Message Level            :max      -> -
Alive Check              :on       -> -
Watchdog Reaction        :reset    -> -
Break Signal             :on       -> off
Autoboot(Guest Domain)   :on       -> -
Elastic Mode             :off      -> -
IOreconfigure            :false    -> -
CPU Mode                 :auto       -> -
PPAR DR                  :off      -> -
The specified modes will be changed.
Continue? [y|n] :y
configured.
Diagnostic Level         :max
Message Level            :max
Alive Check              :on (alive check:available)
Watchdog Reaction        :reset (watchdog reaction:reset)
Break Signal             :off (break signal:send)
Autoboot(Guest Domain)   :on
Elastic Mode             :off
IOreconfigure            :false
CPU Mode                 :auto
PPAR DR                  :off

XSCF> sendbreak -y -p0
Send break signal to PPAR-ID 0?[y|n] :y
XSCF> console -y -p0

Console contents may be logged.
Connect to PPAR-ID 0?[y|n] :y

c)ontinue, s)ync, r)eset? c
^@Notifying cluster that this node is panicking

panic[cpu10]/thread=2a100df1c80: Aborting node because pm_tick delay of 13644 ms exceeds 5050 ms
...