Skip to content

Commit

Permalink
Enable coredumps on hosts
Browse files Browse the repository at this point in the history
Coredumps are useful when debugging crashes. This PR installs
`systemd-coredump` when prepping a host.

By default, cores will be stored in `/var/lib/systemd/coredump/`. One
can list them by doing `coredumpctl list` and start debugging one using
`coredumpctl gdb [pid]`.
  • Loading branch information
pykello committed May 6, 2024
1 parent 4ac52f6 commit 1fe82c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rhizome/host/bin/prep_host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@
r "apt-get -y install qemu-utils mtools acl"

# We need nvme-cli to inspect installed NVMe cards in prod servers when
# looking into I/O performance issues.
r "apt-get -y install nvme-cli" if is_prod_env
# looking into I/O performance issues. systemd-coredump is useful when
# debugging crashes.
r "apt-get -y install nvme-cli systemd-coredump" if is_prod_env

SpdkSetup.prep

Expand Down

0 comments on commit 1fe82c4

Please sign in to comment.