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