The ungleich hardware maintenance guide » History » Version 8
Nico Schottelius, 09/05/2021 09:47 AM
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 | h2. Dell servers disk management |
||
31 | |||
32 | Adding disks: |
||
33 | |||
34 | <pre> |
||
35 | megacli -CfgLdAdd -r0 [Enclosure Device ID:slot] -aX (X : host is 0. md-array is 1) |
||
36 | |||
37 | # Sample call, if enclosure and slot are KNOWN (aka not N/A) |
||
38 | megacli -CfgLdAdd -r0 [32:0] -a0 |
||
39 | |||
40 | # Sample call, if enclosure is N/A |
||
41 | megacli -CfgLdAdd -r0 [:0] -a0 |
||
42 | </pre> |
||
43 | |||
44 | Remove cache of disks that are not in the server anymore: |
||
45 | |||
46 | <pre> |
||
47 | megacli -DiscardPreservedCache -Lall -aAll |
||
48 | </pre> |
||
49 | |||
50 | Remove foreign configurations on foreign disks |
||
51 | |||
52 | <pre> |
||
53 | megacli -CfgForeign -Clear -aAll |
||
54 | </pre> |
||
55 | |||
56 | Do both in many cases: |
||
57 | |||
58 | <pre> |
||
59 | megacli -DiscardPreservedCache -Lall -aAll |
||
60 | megacli -CfgForeign -Clear -aAll |
||
61 | </pre> |
||
62 | |||
63 | 1 | Nico Schottelius | h2. SEE ALSO |
64 | |||
65 | * [[Managing OpenWRT]] |
||
66 | 7 | Nico Schottelius | * [[The_ungleich_ceph_handbook]] |