wiki/OpenBSD.md

84 lines
1.9 KiB
Markdown
Raw Normal View History

2016-12-29 11:25:39 +01:00
**Cette page a été importée automatiquement de notre ancien wiki mais n'a pas encore été révisée.**
*Soucis lié à l'ACPI sur Dell R220*
Pour désactiver l'ACPI au démarage :
~~~
boot> boot -c
...
UKC> disable acpi
UKC> quit/
~~~
Puis pour le désactiver définitivement :
~~~
# config -ef /bsd
Enter 'help' for information
ukc> disable acpi
ukc> quit
Saving modified kernel.
2017-11-30 10:16:47 +01:00
~~~
2017-11-30 10:16:32 +01:00
2023-06-28 11:30:43 +02:00
## ddb
Lors d'un crash d'OpenBSD, le serveur peut arriver dans un prompt `ddb>`. Dans ce cas, il faut suivre <https://www.openbsd.org/ddb.html> pour voir ce qui a causé le crash.
~~~
ddb> show panic
# À répéter pour chaque CPU du serveur
ddb> machine ddbcpu 0
ddb{0}> trace
ddb{0}> machine ddbcpu 1
ddb{1}> trace
~~~
2018-02-03 15:15:31 +01:00
## syspatch
2018-03-13 09:29:04 +01:00
[syspatch](https://man.openbsd.org/syspatch) permet de maintenir son noyau/système up-to-date (fonctionne uniquement pour les versions supportées, à savoir stable et stable-1) :
2018-02-03 15:15:31 +01:00
~~~
root:1# syspatch -c
004_libssl
005_ahopts
006_prevhdr
007_etherip
root:2# syspatch
Get/Verify syspatch62-004_libssl.tgz 100% |*************| 2515 KB 00:02
Installing patch 004_libssl
Get/Verify syspatch62-005_ahopts.tgz 100% |********************************************************| 703 KB 00:01
Installing patch 005_ahopts
Get/Verify syspatch62-006_prevhdr... 100% |********************************************************| 783 KB 00:01
Installing patch 006_prevhdr
Get/Verify syspatch62-007_etherip... 100% |********************************************************| 1030 KB 00:01
Installing patch 007_etherip
Relinking to create unique kernel... done.
root:4# syspatch -l
001_tcb_invalid
002_fktrace
003_mpls
004_libssl
005_ahopts
006_prevhdr
007_etherip
~~~
rollback :
~~~
# syspatch -r
~~~
2017-11-30 10:16:32 +01:00
## FAQ
### ksh: ignoring old style history file
~~~
$ mv .histfile .histfile.old
2016-12-29 11:25:39 +01:00
~~~