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