Kernel update42
Aus HS Syswiki
(Unterschied zwischen Versionen)
(Die Seite wurde neu angelegt: „<syntaxhighlight lang="bash" style="font-size:9pt;"> ssh tuxYY "mkdir -p /usr/local/src/rpm/kernel" scp ~/HJA/Projects/Kernel/kernel-4.2.0_hoststar-1.x86_64.…“) |
|||
(78 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | |||
+ | cd /root/HJA/Projects/Kernel | ||
+ | |||
+ | ./deploy.sh tuxYZ | ||
+ | |||
+ | ssh tuxYZ | ||
+ | |||
+ | sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf | ||
+ | |||
+ | rpm -ivh /usr/local/src/rpm/kernel/kernel-4.2.0_hoststar-3.x86_64.rpm | ||
+ | |||
+ | sed -i s'|default 1|default 0|'g /boot/grub/menu.lst | ||
+ | |||
+ | sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
+ | After the reboot, update the date/time and please check iptables rules and fail2ban: | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | ntpdate -u ntp.metas.ch | ||
+ | iptables -L -n | less | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | '''''In case of missing rules, restart iptables and fail2ban.''''' | ||
+ | |||
+ | '''Installed on:''' | ||
+ | :-tux25 (From this server: kernel-4.2.0_hoststar-1 ) | ||
+ | :-tux307 | ||
+ | :-tux163 | ||
+ | :-tux247 | ||
+ | :-tux219 | ||
+ | :-tux3.at | ||
+ | :-tux197 | ||
+ | :-tux157 | ||
+ | :-tux155 (From this server: kernel-4.2.0_hoststar-2 ) | ||
+ | :-tux159 | ||
+ | :-tux153 | ||
+ | :-tux193 | ||
+ | :-tux195 | ||
+ | :-tux199 | ||
+ | :-tux15 | ||
+ | :-tux281 | ||
+ | :-tux13 | ||
+ | :-tux81 | ||
+ | :-tux75 | ||
+ | :-tux121 | ||
+ | :-tux21.at | ||
+ | :-tux119 | ||
+ | :-tux147 | ||
+ | :-tux151 | ||
+ | :-tux123 | ||
+ | :-tux171 | ||
+ | :-tux167 | ||
+ | :-tux173 | ||
+ | :-tux185 | ||
+ | :-tux181 | ||
+ | :-tux187 | ||
+ | :-tux179 | ||
+ | :-tux203 | ||
+ | :-tux189 | ||
+ | :-tux191 | ||
+ | :-tux201 | ||
+ | :-tux211 | ||
+ | :-tux207 | ||
+ | :-tux205 | ||
+ | :-tux209 (From this server: kernel-4.2.0_hoststar-3 ) | ||
+ | :-tux231 | ||
+ | :-tux213 | ||
+ | :-tux233 | ||
+ | :-tux221 | ||
+ | :-tux217 | ||
+ | :-tux223 | ||
+ | :-tux241 | ||
+ | :-tux125 | ||
+ | :-tux243 | ||
+ | :-tux225 | ||
+ | :-tux245 | ||
+ | :-tux259 | ||
+ | :-tux279 | ||
+ | :-tux299 | ||
+ | :-tux319 | ||
+ | :-tux237 | ||
+ | :-tux99 | ||
+ | :-tux107 | ||
+ | :-tux251 | ||
+ | :-tux11 | ||
+ | :-tux131 | ||
+ | :-tux9 | ||
+ | :-tux51 | ||
+ | :-tux175 | ||
+ | :-tux229 | ||
+ | |||
+ | '''To Remove this kernel:''' | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | rpm -e kernel-4.2.0_hoststar-1 (Missing iptables Logs) | ||
+ | </syntaxhighlight> | ||
+ | ''or'' | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | rpm -e kernel-4.2.0_hoststar-2 (Missing RTC time after reboot) | ||
+ | </syntaxhighlight> | ||
+ | ''or'' | ||
+ | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
+ | rpm -e kernel-4.2.0_hoststar-3 | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | '''OLD:''' | ||
+ | |||
<syntaxhighlight lang="bash" style="font-size:9pt;"> | <syntaxhighlight lang="bash" style="font-size:9pt;"> | ||
ssh tuxYY "mkdir -p /usr/local/src/rpm/kernel" | ssh tuxYY "mkdir -p /usr/local/src/rpm/kernel" | ||
− | scp ~/HJA/Projects/Kernel/kernel-4.2.0_hoststar- | + | scp ~/HJA/Projects/Kernel/kernel-4.2.0_hoststar-2.x86_64.rpm tuxYY:/usr/local/src/rpm/kernel/. |
cp -arv /boot/grub/menu.lst /boot/grub/menu.lst_`date -I`-$$ | cp -arv /boot/grub/menu.lst /boot/grub/menu.lst_`date -I`-$$ | ||
cp -arv /etc/grub.conf /etc/grub.conf_`date -I`-$$ | cp -arv /etc/grub.conf /etc/grub.conf_`date -I`-$$ | ||
sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf | sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf | ||
− | |||
− | |||
+ | rpm -ivh /usr/local/src/rpm/kernel/kernel-4.2.0_hoststar-2.x86_64.rpm | ||
+ | |||
+ | sed -i s'|default 1|default 0|'g /boot/grub/menu.lst | ||
− | |||
− | |||
'perf', | 'perf', | ||
Zeile 21: | Zeile 133: | ||
'acpi_thermal_pm', | 'acpi_thermal_pm', | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | <syntaxhighlight lang="bash" style="font-size:9pt;"> | |
− | + | sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs | |
− | + | </syntaxhighlight> | |
− | + |
Aktuelle Version vom 23. September 2015, 10:17 Uhr
cd /root/HJA/Projects/Kernel ./deploy.sh tuxYZ ssh tuxYZ sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf rpm -ivh /usr/local/src/rpm/kernel/kernel-4.2.0_hoststar-3.x86_64.rpm sed -i s'|default 1|default 0|'g /boot/grub/menu.lst sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs
After the reboot, update the date/time and please check iptables rules and fail2ban:
ntpdate -u ntp.metas.ch iptables -L -n | less
In case of missing rules, restart iptables and fail2ban.
Installed on:
- -tux25 (From this server: kernel-4.2.0_hoststar-1 )
- -tux307
- -tux163
- -tux247
- -tux219
- -tux3.at
- -tux197
- -tux157
- -tux155 (From this server: kernel-4.2.0_hoststar-2 )
- -tux159
- -tux153
- -tux193
- -tux195
- -tux199
- -tux15
- -tux281
- -tux13
- -tux81
- -tux75
- -tux121
- -tux21.at
- -tux119
- -tux147
- -tux151
- -tux123
- -tux171
- -tux167
- -tux173
- -tux185
- -tux181
- -tux187
- -tux179
- -tux203
- -tux189
- -tux191
- -tux201
- -tux211
- -tux207
- -tux205
- -tux209 (From this server: kernel-4.2.0_hoststar-3 )
- -tux231
- -tux213
- -tux233
- -tux221
- -tux217
- -tux223
- -tux241
- -tux125
- -tux243
- -tux225
- -tux245
- -tux259
- -tux279
- -tux299
- -tux319
- -tux237
- -tux99
- -tux107
- -tux251
- -tux11
- -tux131
- -tux9
- -tux51
- -tux175
- -tux229
To Remove this kernel:
rpm -e kernel-4.2.0_hoststar-1 (Missing iptables Logs)
or
rpm -e kernel-4.2.0_hoststar-2 (Missing RTC time after reboot)
or
rpm -e kernel-4.2.0_hoststar-3
OLD:
ssh tuxYY "mkdir -p /usr/local/src/rpm/kernel" scp ~/HJA/Projects/Kernel/kernel-4.2.0_hoststar-2.x86_64.rpm tuxYY:/usr/local/src/rpm/kernel/. cp -arv /boot/grub/menu.lst /boot/grub/menu.lst_`date -I`-$$ cp -arv /etc/grub.conf /etc/grub.conf_`date -I`-$$ sed -i s'|(hd1,2)|(hd0,2)|'g /etc/grub.conf rpm -ivh /usr/local/src/rpm/kernel/kernel-4.2.0_hoststar-2.x86_64.rpm sed -i s'|default 1|default 0|'g /boot/grub/menu.lst 'perf', 'fm10k', 'ipv6_addrconf', 'scsi_tmf_[0-5]', 'raid5wq', 'acpi_thermal_pm',
sed -i "s|'/USR/SBIN/CRON',|'/USR/SBIN/CRON',\n'perf',\n'fm10k',\n'ipv6_addrconf',\n'scsi_tmf_[0-5]',\n'raid5wq',\n'acpi_thermal_pm',|g" /usr/local/nagios/libexec/check_bad_procs