The ungleich hardware maintenance guide » History » Version 12
Nico Schottelius, 02/07/2022 10:16 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 | 12 | Nico Schottelius | h2. Using the ungleich-hardware container in kubernetes |
8 | |||
9 | To manage hardware on server1, you can use: |
||
10 | |||
11 | <pre> |
||
12 | apiVersion: v1 |
||
13 | kind: Pod |
||
14 | metadata: |
||
15 | name: ungleich-hardware |
||
16 | spec: |
||
17 | containers: |
||
18 | - name: ungleich-hardware |
||
19 | image: harbor.ungleich.svc.p10.k8s.ooo/ungleich-public/ungleich-hardware:0.0.3 |
||
20 | args: |
||
21 | - sleep |
||
22 | - "1000000" |
||
23 | volumeMounts: |
||
24 | - mountPath: /dev |
||
25 | name: dev |
||
26 | securityContext: |
||
27 | privileged: true |
||
28 | nodeSelector: |
||
29 | kubernetes.io/hostname: "server1" |
||
30 | |||
31 | volumes: |
||
32 | - name: dev |
||
33 | hostPath: |
||
34 | path: /dev |
||
35 | |||
36 | </pre> |
||
37 | |||
38 | 1 | Nico Schottelius | h2. APU Bios Update |
39 | |||
40 | * Download the correct bios from https://pcengines.github.io/ |
||
41 | ** Check whether it's apu1/2/3/4 before downloading |
||
42 | * Install flashrom |
||
43 | * "Flash bios using flashrom":https://github.com/pcengines/apu2-documentation/blob/master/docs/firmware_flashing.md |
||
44 | ** @flashrom -w THEROMFILE -p internal@ |
||
45 | |||
46 | 4 | Nico Schottelius | h2. APU Serial and bootloader configuration |
47 | 3 | Nico Schottelius | |
48 | * Ensure that the bootloader has "console=ttyS0,115200" configured |
||
49 | * Ensure that there is a getty running on serial |
||
50 | * Use grub-bios as the bootloader |
||
51 | ** Install using @grub-install /dev/sda@ |
||
52 | 1 | Nico Schottelius | |
53 | 5 | Nico Schottelius | h2. Updating the Perc H800 SAS controller |
54 | |||
55 | 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@ |
56 | 5 | Nico Schottelius | * chmod u+x SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN |
57 | * ./SAS-RAID_Firmware_XKF5X_LN_12.10.7-0001_A13.BIN |
||
58 | |||
59 | 8 | Nico Schottelius | h2. HP servers disk management |
60 | |||
61 | 9 | Nico Schottelius | * See also http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm |
62 | |||
63 | Show all drives/controller overview: |
||
64 | |||
65 | <pre> |
||
66 | hpacucli ctrl slot=0 pd all show |
||
67 | </pre> |
||
68 | |||
69 | 11 | Nico Schottelius | Add a disk as raid0: |
70 | |||
71 | <pre> |
||
72 | hpacucli ctrl slot=0 create type=ld drives=1I:1:1 raid=0 |
||
73 | </pre> |
||
74 | |||
75 | 10 | Nico Schottelius | h2. Dell servers disk management |
76 | 9 | Nico Schottelius | |
77 | 10 | Nico Schottelius | Listing all disks: |
78 | 1 | Nico Schottelius | |
79 | 10 | Nico Schottelius | <pre> |
80 | megacli -PDList -aALL |
||
81 | </pre> |
||
82 | 8 | Nico Schottelius | |
83 | Adding disks: |
||
84 | |||
85 | <pre> |
||
86 | megacli -CfgLdAdd -r0 [Enclosure Device ID:slot] -aX (X : host is 0. md-array is 1) |
||
87 | |||
88 | # Sample call, if enclosure and slot are KNOWN (aka not N/A) |
||
89 | megacli -CfgLdAdd -r0 [32:0] -a0 |
||
90 | |||
91 | # Sample call, if enclosure is N/A |
||
92 | megacli -CfgLdAdd -r0 [:0] -a0 |
||
93 | </pre> |
||
94 | |||
95 | Remove cache of disks that are not in the server anymore: |
||
96 | |||
97 | <pre> |
||
98 | megacli -DiscardPreservedCache -Lall -aAll |
||
99 | </pre> |
||
100 | |||
101 | Remove foreign configurations on foreign disks |
||
102 | |||
103 | <pre> |
||
104 | megacli -CfgForeign -Clear -aAll |
||
105 | </pre> |
||
106 | |||
107 | Do both in many cases: |
||
108 | |||
109 | <pre> |
||
110 | megacli -DiscardPreservedCache -Lall -aAll |
||
111 | megacli -CfgForeign -Clear -aAll |
||
112 | </pre> |
||
113 | |||
114 | 1 | Nico Schottelius | h2. SEE ALSO |
115 | |||
116 | * [[Managing OpenWRT]] |
||
117 | 7 | Nico Schottelius | * [[The_ungleich_ceph_handbook]] |