Project

General

Profile

The ungleich hardware maintenance guide » History » Version 11

Nico Schottelius, 09/05/2021 12:09 PM

1 2 Nico Schottelius
{{toc}}
2
3 1 Nico Schottelius
h1. The ungleich hardware maintenance guide
4
5
This guide describes common operations on hardware we use.
6
7
h2. APU Bios Update
8
9
* Download the correct bios from https://pcengines.github.io/
10
** Check whether it's apu1/2/3/4 before downloading
11
* Install flashrom
12
* "Flash bios using flashrom":https://github.com/pcengines/apu2-documentation/blob/master/docs/firmware_flashing.md
13
** @flashrom -w THEROMFILE -p internal@
14
15 4 Nico Schottelius
h2. APU Serial and bootloader configuration
16 3 Nico Schottelius
17
* Ensure that the bootloader has "console=ttyS0,115200" configured
18
* Ensure that there is a getty running on serial
19
* Use grub-bios as the bootloader
20
** Install using @grub-install /dev/sda@
21 1 Nico Schottelius
22 5 Nico Schottelius
h2. Updating the Perc H800 SAS controller
23
24 6 Nico Schottelius
* @wget 'https://dl.dell.com/FOLDER03292738M/3/SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN?uid=4b8a2506-f4d4-46a9-ab19-3c2a5008a782&fn=SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN' -O  SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN@
25 5 Nico Schottelius
* chmod u+x SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN
26
* ./SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN
27
28 8 Nico Schottelius
h2. HP servers disk management
29
30 9 Nico Schottelius
* See also http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm
31
32
Show all drives/controller overview:
33
34
<pre>
35
hpacucli ctrl slot=0 pd all show
36
</pre>
37
38 11 Nico Schottelius
Add a disk as raid0:
39
40
<pre>
41
hpacucli ctrl slot=0 create type=ld drives=1I:1:1 raid=0
42
</pre>
43
44 10 Nico Schottelius
h2. Dell servers disk management
45 9 Nico Schottelius
46 10 Nico Schottelius
Listing all disks:
47 1 Nico Schottelius
48 10 Nico Schottelius
<pre>
49
megacli -PDList -aALL
50
</pre>
51 8 Nico Schottelius
52
Adding disks:
53
54
<pre>
55
megacli -CfgLdAdd -r0 [Enclosure Device ID:slot] -aX (X : host is 0. md-array is 1)
56
57
# Sample call, if enclosure and slot are KNOWN (aka not N/A)
58
megacli -CfgLdAdd -r0 [32:0] -a0
59
60
# Sample call, if enclosure is N/A
61
megacli -CfgLdAdd -r0 [:0] -a0
62
</pre>
63
64
Remove cache of disks that are not in the server anymore:
65
66
<pre>
67
megacli -DiscardPreservedCache -Lall -aAll
68
</pre>
69
70
Remove foreign configurations on foreign disks
71
72
<pre>
73
megacli -CfgForeign -Clear -aAll
74
</pre>
75
76
Do both in many cases:
77
78
<pre>
79
megacli -DiscardPreservedCache -Lall -aAll
80
megacli -CfgForeign -Clear -aAll
81
</pre>
82
83 1 Nico Schottelius
h2. SEE ALSO
84
85
* [[Managing OpenWRT]]
86 7 Nico Schottelius
* [[The_ungleich_ceph_handbook]]