Helsing

Fra Bitraf
Hopp til navigering Hopp til søk

Helsing er en HP ProLiant DL380 G5[1] server donert til Bitraf.

Operativsystem

FreeBSD er installert på denne serveren.

Spesifikasjoner

prosessor 
1 x Xeon 4-core (mulighet for 2 prosessorer)
minne 
20 GB (2 x 4GB + 3 x 2 x 2 GB) 8 slots av 8 i bruk (was: 1 GB (2 x 512MB), 2 slots av 8 i bruk (maximum minne er 32 GB - 8 x 4 GB), PC2-5300 (DDR2-667))
chipset 
Intel 5000P
nettverk 
dual NC373i Multifunction Gigabit adapters
storage controller 
Smart Array E200[2]
usb ports 
5 x usb 2.0 (2 front, 2 back, 1 inside)
hard drive slots 
8 SATA SFF
hard drives 
2 x 300 GB, 6 x 146 GB
remote management 
iLO 2[3]
power supply 
800 W (optional redundant power supply)

Firmware

BIOS

Nåværende versjon av BIOS er

</>hpiLO-> show /system1/firmware1
status=0
status_tag=COMMAND COMPLETED


/system1/firmware1
  Targets
  Properties
    version=P56
    date=05/02/2011
  Verbs
    cd version exit show set

iLO 2

iLO 2 (integrated Lights Out management) er HP (tidligere Compaq) sitt remote management verktøy for ProLiant servere.

2020-06-03 
oppgradert iLO 2 firmware til versjon 2.33. Tingo (diskusjon) 5. jun. 2020 kl. 16:55 (CEST)

Management

iLO 2 via nettleser funker, men remote console og virtual media krever java applets, dvs. at ingen moderne nettlesere støtter det. Alternativ: Javafox[4] som er et docker-image med gammel nettleser og Java-plugins.

iLO 2 via ssh funker, der funker også vm (virtual media), men images må legges på en server. Eksempel

</>hpiLO-> vm cdrom get
VM Applet = Disconnected
Boot Option = BOOT_ONCE
Write Protect = Yes
Image Inserted = Connected
Image URL = http://heim.bitraf.no/tingo/files/iso/FreeBSD-12.1-RELEASE-amd64-disc1.iso

</>hpiLO-> vm cdrom insert http://heim.bitraf.no/tingo/files/iso/FreeBSD-11.3-RELEASE-amd64-disc1.iso

</>hpiLO-> vm cdrom set boot_once


</>hpiLO-> vm cdrom get
VM Applet = Disconnected
Boot Option = BOOT_ONCE
Write Protect = Yes
Image Inserted = Connected
Image URL = http://heim.bitraf.no/tingo/files/iso/FreeBSD-11.3-RELEASE-amd64-disc1.iso

Utfordringen med iLO 2 via ssh er remote console. Det er støttet for text only konsoll (via kommandoen textcons), men så fort operativsystemet bytter til grafisk skjerm på konsollet, så mister du bildet.

ipmitool

Serveren støtter IPMI, så hvis kjernemodulen ipmi er lastet (automatisk, eller manuelt via kldload ipmi) så kan man gjøre ting som

root@helsing:~ # ipmitool -I open fru print
FRU Device Description : Builtin FRU Device (ID 0)
 Chassis Type          : Rack Mount Chassis
 Chassis Part Number   : 458568-421      
 Chassis Serial        : CZC84158PX      
 Board Mfg Date        : Mon Jan  1 01:00:00 1996
 Board Mfg             : HP
 Board Product         : ProLiant DL380 G5
 Board Serial          : CZC84158PX      
 Board Part Number     : 458568-421      
 Product Manufacturer  : HP
 Product Name          : ProLiant DL380 G5
 Product Part Number   : 458568-421      
 Product Serial        : CZC84158PX      
 Product Asset Tag     :                                 

root@helsing:~ # ipmitool -I open sdr type temperature
Temp 1           | 10h | ok  | 16.5 | 50 degrees C
Temp 2           | 11h | ok  | 39.9 | 35 degrees C
Temp 3           | 12h | ok  |  3.10 | 38 degrees C
Temp 4           | 13h | ok  |  3.11 | 38 degrees C
Temp 5           | 14h | ok  | 19.1 | 49 degrees C
Temp 6           | 15h | ns  |  3.12 | Disabled
Temp 7           | 16h | ns  |  3.13 | Disabled

root@helsing:~ # ipmitool -I open chassis status
System Power         : on
Power Overload       : false
Power Interlock      : inactive
Main Power Fault     : false
Power Control Fault  : false
Power Restore Policy : previous
Last Power Event     : 
Chassis Intrusion    : inactive
Front-Panel Lockout  : inactive
Drive Fault          : false
Cooling/Fan Fault    : false
Front Panel Control  : none

andre kommandoer

root@helsing:~ # ipmitool mc info
Device ID                 : 17
Device Revision           : 1
Firmware Revision         : 2.33
IPMI Version              : 2.0
Manufacturer ID           : 11
Manufacturer Name         : Hewlett-Packard
Product ID                : 8192 (0x2000)
Product Name              : Unknown (0x2000)
Device Available          : yes
Provides Device SDRs      : yes
Additional Device Support :
    Sensor Device
    SDR Repository Device
    SEL Device
    FRU Inventory Device

root@helsing:~ # ipmitool mc getsysinfo system_name
ProLiant DL380 G5

root@helsing:~ # ipmitool chassis restart_cause
System restart cause: unknown

root@helsing:~ # ipmitool sdr
UID Light        | 0x00              | ok
Int. Health LED  | 0x00              | ok
Ext. Health LED  | 0x00              | ok
Power Supply 1   | 0x00              | ok
Power Supply 2   | disabled          | ns
Power Supplies   | 0x00              | ok
VRM 1            | 0x00              | ok
VRM 2            | disabled          | ns
Fan 1            | 78.01 percent     | ok
Fan 2            | 78.01 percent     | ok
Fan 3            | 63.11 percent     | ok
Fan 4            | 79.97 percent     | ok
Fan 5            | 79.97 percent     | ok
Fan 6            | 79.97 percent     | ok
Fans             | 0x00              | ok
Temp 1           | 50 degrees C      | ok
Temp 2           | 35 degrees C      | ok
Temp 3           | 39 degrees C      | ok
Temp 4           | 39 degrees C      | ok
Temp 5           | 49 degrees C      | ok
Temp 6           | disabled          | ns
Temp 7           | disabled          | ns
Power Meter      | 300 Watts         | ok

root@helsing:~ # ipmitool sensor
UID Light        | 0x0        | discrete   | 0x0080| na        | na        | na        | na        | na        | na        
Int. Health LED  | 0x0        | discrete   | 0x0080| na        | na        | na        | na        | na        | na        
Ext. Health LED  | 0x0        | discrete   | 0x0080| na        | na        | na        | na        | na        | na        
Power Supply 1   | 0x0        | discrete   | 0x0180| na        | na        | na        | na        | na        | na        
Power Supply 2   | na         | discrete   | na    | na        | na        | na        | na        | na        | na        
Power Supplies   | 0x0        | discrete   | 0x0880| na        | na        | na        | na        | na        | na        
VRM 1            | 0x0        | discrete   | 0x0280| na        | na        | na        | na        | na        | na        
VRM 2            | na         | discrete   | na    | na        | na        | na        | na        | na        | na        
Fan 1            | 78.008     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fan 2            | 78.008     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fan 3            | 63.112     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fan 4            | 79.968     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fan 5            | 79.968     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fan 6            | 79.968     | percent    | ok    | na        | na        | na        | na        | na        | na        
Fans             | 0x0        | discrete   | 0x0180| na        | na        | na        | na        | na        | na        
Temp 1           | 50.000     | degrees C  | ok    | 0.000     | 0.000     | 0.000     | 67.000    | 70.000    | 75.000    
Temp 2           | 35.000     | degrees C  | ok    | 0.000     | 0.000     | 0.000     | 37.000    | 39.000    | 44.000    
Temp 3           | 39.000     | degrees C  | ok    | 0.000     | 0.000     | 0.000     | 68.000    | 127.000   | 127.000   
Temp 4           | 39.000     | degrees C  | ok    | 0.000     | 0.000     | 0.000     | 68.000    | 127.000   | 127.000   
Temp 5           | 49.000     | degrees C  | ok    | 0.000     | 0.000     | 0.000     | 74.000    | 77.000    | 82.000    
Temp 6           | na         |            | na    | 0.000     | 0.000     | 0.000     | 68.000    | 127.000   | 127.000   
Temp 7           | na         |            | na    | 0.000     | 0.000     | 0.000     | 68.000    | 127.000   | 127.000   
Power Meter      | 298        | Watts      | ok    | na        | na        | na        | na        | na        | na        

root@helsing:~ # ipmitool sel
SEL Information
Version          : 1.5 (v1.5, v2 compliant)
Entries          : 0
Free Space       : 1024 bytes 
Percent Used     : 0%
Last Add Time    : Not Available
Last Del Time    : 10/16/2008 14:38:35
Overflow         : false
Supported Cmds   : 'Reserve' 

root@helsing:~ # ipmitool user summary 2
Maximum IDs	    : 12
Enabled User Count  : 3
Fixed Name Count    : 0
root@helsing:~ # ipmitool user list 2
ID  Name	     Callin  Link Auth	IPMI Msg   Channel Priv Limit
1   Administrator    true    false      true       ADMINISTRATOR
2   itsos            true    false      true       ADMINISTRATOR
3   tingo            true    false      true       ADMINISTRATOR
4   (Empty User)     true    false      false      NO ACCESS
5   (Empty User)     true    false      false      NO ACCESS
6   (Empty User)     true    false      false      NO ACCESS
7   (Empty User)     true    false      false      NO ACCESS
8   (Empty User)     true    false      false      NO ACCESS
9   (Empty User)     true    false      false      NO ACCESS
10  (Empty User)     true    false      false      NO ACCESS
11  (Empty User)     true    false      false      NO ACCESS
12  (Empty User)     true    false      false      NO ACCESS

root@helsing:~ # ipmitool channel info 2
Channel 0x2 info:
  Channel Medium Type   : 802.3 LAN
  Channel Protocol Type : IPMB-1.0
  Session Support       : multi-session
  Active Session Count  : 0
  Protocol Vendor ID    : 7154
  Volatile(active) Settings
    Alerting            : disabled
    Per-message Auth    : disabled
    User Level Auth     : enabled
    Access Mode         : always available
  Non-Volatile Settings
    Alerting            : disabled
    Per-message Auth    : disabled
    User Level Auth     : enabled
    Access Mode         : always available

oot@helsing:~ # ipmitool dcmi discover
    Supported DCMI capabilities:

         Mandatory platform capabilties
        Identification support available
        SEL logging available
        Chassis power available
        Temperature monitor available

         Optional platform capabilties
        Power management available

         Managebility access capabilties
        In-band KCS channel available
        Out-of-band primary LAN channel available
        SOL enabled
        VLAN capable

    Mandatory platform attributes:

         SEL Attributes: 
               SEL automatic rollover is enabled
               512 SEL entries

         Identification Attributes: 
        GUID
        Asset tag

         Temperature Monitoring Attributes: 
        inlet
        cpu
        baseboard

    Optional Platform Attributes: 

         Power Management:
                Slave address of device: 20h (8bits)(Satellite/External controller)
                Channel number is 0h (Primary BMC)
                    Device revision is 1 

    Manageability Access Attributes: 
         Primary LAN channel number: 2 is available
         Secondary LAN channel is not available for OOB
         No serial channel is available

Historikk

Arbeid som er gjort.

2022-08-16 
the server was down due to a local power problem (the circuit breaker for the server room had tripped) and came back up autimatically when power was restored. Tingo (diskusjon) 16. aug. 2022 kl. 11:15 (CEST)
2022-08-12 
and iLO shows up like this in pciconf -lv output
none0@pci0:1:4:0:       class=0x088000 rev=0x03 hdr=0x00 vendor=0x0e11 device=0xb203 subvendor=0x103c subdevice=0x3305
    vendor     = 'Compaq Computer Corporation'
    device     = 'Integrated Lights Out Controller'
    class      = base peripheral
none1@pci0:1:4:2:       class=0x088000 rev=0x03 hdr=0x00 vendor=0x0e11 device=0xb204 subvendor=0x103c subdevice=0x3305
    vendor     = 'Compaq Computer Corporation'
    device     = 'Integrated Lights Out  Processor'
    class      = base peripheral
uhci4@pci0:1:4:4:       class=0x0c0300 rev=0x00 hdr=0x00 vendor=0x103c device=0x3300 subvendor=0x103c subdevice=0x3305
    vendor     = 'Hewlett-Packard Company'
    device     = 'Integrated Lights-Out Standard Virtual USB Controller'
    class      = serial bus
    subclass   = USB

not sure what driver is needed to support it. Tingo (diskusjon) 12. aug. 2022 kl. 15:46 (CEST)

2022-08-12 
ipmi shows upo like this in pciconf -lv output
ipmi0@pci0:1:4:6:       class=0x0c0701 rev=0x00 hdr=0x00 vendor=0x103c device=0x3302 subvendor=0x103c subdevice=0x3305
    vendor     = 'Hewlett-Packard Company'
    device     = 'Integrated Lights-Out Standard KCS Interface'
    class      = serial bus
    subclass   = IPMI

after loading the ipmi kernel module. Tingo (diskusjon) 12. aug. 2022 kl. 15:44 (CEST)

2022-08-09 
upgraded FreeBSD via freebsd-update -r 13.1-RELEASE upgrade, followed by
root@helsing:~ # freebsd-update install
src component not installed, skipped
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.

reboot, then

root@helsing:~ # freebsd-update install
src component not installed, skipped
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
Scanning //usr/local/share/certs for certificates...
 done.

and now the server runs

root@helsing:~ # freebsd-version -ku
13.1-RELEASE
13.1-RELEASE

Tingo (diskusjon) 9. aug. 2022 kl. 17:53 (CEST)

2022-08-09 
packages upgraded via sudo pkg upgrade. From /var/log/messages
Aug  9 16:52:25 helsing pkg[20615]: libunwind upgraded: 20211201 -> 20211201_1 
Aug  9 16:52:26 helsing pkg[20615]: ruby27-gems-3.3.10 deinstalled
Aug  9 16:52:56 helsing pkg[20615]: ruby upgraded: 2.7.5_1,1 -> 3.0.4_2,1 
Aug  9 16:52:56 helsing pkg[20615]: ca_root_nss upgraded: 3.76 -> 3.78 
Aug  9 16:52:57 helsing pkg[20615]: ruby30-gems-3.3.17 installed
Aug  9 16:52:57 helsing pkg[20615]: rubygem-trollop reinstalled: 2.9.10 -> 2.9.10 
Aug  9 16:52:57 helsing pkg[20615]: rubygem-mtrc reinstalled: 0.0.4 -> 0.0.4 
Aug  9 16:52:57 helsing pkg[20615]: rubygem-beefcake reinstalled: 1.2.0 -> 1.2.0 
Aug  9 16:52:57 helsing pkg[20615]: rubygem-riemann-client reinstalled: 0.2.6_1 -> 0.2.6_1 
Aug  9 16:52:57 helsing pkg[20615]: rubygem-json upgraded: 2.5.1 -> 2.6.2 
Aug  9 16:52:58 helsing pkg[20615]: rubygem-optimist reinstalled: 3.0.1 -> 3.0.1 
Aug  9 16:53:18 helsing pkg[20615]: python38 upgraded: 3.8.13 -> 3.8.13_2 
Aug  9 16:53:18 helsing pkg[20615]: rubygem-riemann-tools reinstalled: 0.2.14 -> 0.2.14 
Aug  9 16:53:19 helsing pkg[20615]: sudo upgraded: 1.9.10 -> 1.9.11p3 
Aug  9 16:53:19 helsing pkg[20615]: python3 reinstalled: 3_3 -> 3_3 

Tingo (diskusjon) 9. aug. 2022 kl. 16:56 (CEST)

2022-08-09 
configure /etc/nsswitch.conf for mdns - before
root@helsing:~ # grep ^hosts /etc/nsswitch.conf
hosts: files dns

after

root@helsing:~ # grep ^hosts /etc/nsswitch.conf
hosts: files mdns_minimal [NOTFOUND=return] dns mdns

and configure avahi-daemon to start up (also requires dbus) by

root@helsing:~ # sysrc dbus_enable=yes
dbus_enable:  -> yes
root@helsing:~ # sysrc avahi_daemon_enable=yes
avahi_daemon_enable:  -> yes

Tingo (diskusjon) 9. aug. 2022 kl. 16:12 (CEST)

Finally, start dbus and avahi-damon

root@helsing:~ # service dbus start
Starting dbus.
root@helsing:~ # service avahi-daemon start
Starting avahi-daemon.

Tingo (diskusjon) 9. aug. 2022 kl. 16:14 (CEST)

2022-08-09 
install mdns_nss and avahi via pkg install nss_mdns, /var/log/messages shows
Aug  9 15:48:06 helsing su[10822]: tingo to root on /dev/pts/1
Aug  9 15:50:05 helsing pkg[11100]: pkg upgraded: 1.17.5_1 -> 1.18.3 
Aug  9 15:50:38 helsing pkg[11157]: xorgproto-2022.1 installed
Aug  9 15:50:38 helsing pkg[11157]: libXau-1.0.9 installed
Aug  9 15:50:38 helsing pkg[11157]: libpthread-stubs-0.4 installed
Aug  9 15:50:38 helsing pkg[11157]: libXdmcp-1.1.3 installed
Aug  9 15:50:39 helsing pkg[11157]: libxcb-1.15 installed
Aug  9 15:50:40 helsing pkg[11157]: libICE-1.0.10,1 installed
Aug  9 15:50:40 helsing pkg[11157]: libffi upgraded: 3.3_1 -> 3.4.2 
Aug  9 15:50:41 helsing pkg[11157]: libxml2-2.9.13_2 installed
Aug  9 15:50:52 helsing pkg[11157]: python39-3.9.13 installed
Aug  9 15:50:53 helsing pkg[11157]: pcre-8.45_1 installed
Aug  9 15:50:53 helsing pkg[11157]: libSM-1.2.3,1 installed
Aug  9 15:50:54 helsing pkg[11157]: libX11-1.7.2,1 installed
Aug  9 15:50:55 helsing pkg[11157]: libiconv-1.16 installed
Aug  9 15:50:55 helsing pkg[11157]: expat-2.4.8 installed
Aug  9 15:50:56 helsing pkg[11157]: dbus-1.14.0,1 installed
Aug  9 15:50:59 helsing pkg[11157]: glib-2.72.2,2 installed
Aug  9 15:50:59 helsing pkg[11157]: dbus-glib-0.112 installed
Aug  9 15:50:59 helsing pkg[11157]: gnome_subr-1.0 installed
Aug  9 15:50:59 helsing pkg[11157]: libdaemon-0.14_1 installed
Aug  9 15:51:00 helsing pkg[11157]: libevent-2.1.12 installed
Aug  9 15:51:00 helsing pkg[11157]: gdbm-1.23 installed
Aug  9 15:51:01 helsing pkg[11157]: avahi-app-0.8 installed
Aug  9 15:51:01 helsing pkg[11157]: libffi33-3.3_2 installed
Aug  9 15:51:01 helsing pkg[11157]: nss_mdns-0.14.1.20200624 installed

Tingo (diskusjon) 9. aug. 2022 kl. 15:56 (CEST)

2022-04-15 
packages upgraded via sudo pkg upgrade. From /var/log/messages
Apr 15 20:08:29 helsing pkg[2348]: pkg upgraded: 1.16.3 -> 1.17.5_1 
Apr 15 20:09:17 helsing pkg[2431]: libunwind upgraded: 20201110 -> 20211201 
Apr 15 20:09:17 helsing pkg[2431]: libedit upgraded: 3.1.20210216,1 -> 3.1.20210910,1 
Apr 15 20:09:49 helsing pkg[2431]: ruby upgraded: 2.7.3_2,1 -> 2.7.5_1,1 
Apr 15 20:09:49 helsing pkg[2431]: ca_root_nss-3.76 installed
Apr 15 20:09:54 helsing pkg[2431]: ruby27-gems upgraded: 3.0.8 -> 3.3.10 
Apr 15 20:09:55 helsing pkg[2431]: readline upgraded: 8.1.1 -> 8.1.2 
Apr 15 20:09:56 helsing pkg[2431]: sudo upgraded: 1.9.8 -> 1.9.10 
Apr 15 20:09:56 helsing pkg[2431]: rubygem-json upgraded: 2.3.1 -> 2.5.1 
Apr 15 20:10:15 helsing pkg[2431]: python38 upgraded: 3.8.10 -> 3.8.13 

Tingo (diskusjon) 15. apr. 2022 kl. 20:14 (CEST)

FreeBSD upgraded via sudo freebsd-update fetch; sudo freebsd-update install. after a reboot, FreeBSD 11.0-release-p11 is in
tingo@helsing:~ $ freebsd-version -ku
13.0-RELEASE-p11
13.0-RELEASE-p11

kernel

tingo@helsing:~ $ uname -a
FreeBSD helsing.lan.bitraf.no 13.0-RELEASE-p11 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr  5 18:54:35 UTC 2022
     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

Tingo (diskusjon) 15. apr. 2022 kl. 20:05 (CEST)

2021-10-18 
FreeBSD 13.0-release er installert på serveren.
tingo@helsing:~ $ freebsd-version ; uname -a
13.0-RELEASE
FreeBSD helsing.lan.bitraf.no 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: Fri Apr  9 04:24:09 UTC 2021
     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

Tingo (diskusjon) 15. apr. 2022 kl. 19:44 (CEST)

2021-09-16 
tested Javafox for remote console and virtual media applet. With a small fix to the Dockerfile, both remote console and virtual media applets start. I've tested the remote console, it works. Tingo (diskusjon) 17. sep. 2021 kl. 15:18 (CEST)
2020-06-18 
need packages firmware-bnx2 for the network interfaces. Could probably use some HP related packacges too, like hpacucli, hpssacli. And probably something for temperature monitoring / fan control.
2020-06-18 
minne - Helsing har fått 20 GB minne, fordelt på 2 x 4GB, 3 x (2 x 2 GB). Alle 8 slots brukt.
2020-06-18 
minne i server, som rapport via iLo, ssh
</>hpiLO-> show /system1/memory1
status=0
status_tag=COMMAND COMPLETED


/system1/memory1
  Targets
  Properties
    size=512MB
    speed=667MHz
    location=DIMM 1A 
  Verbs
    cd version exit show set


</>hpiLO-> show /system1/memory2
status=0
status_tag=COMMAND COMPLETED


/system1/memory2
  Targets
  Properties
    size=not installed
    speed=not installed
    location=DIMM 2C 
  Verbs
    cd version exit show set
2020-06-10 
koblet nettverkskabel til nettverksport 1 på serveren. Tingo (diskusjon) 10. jun. 2020 kl. 16:01 (CEST)

Referanser