Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put process core dumps onto the U.2 debug zvol #3677

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

lifning
Copy link
Contributor

@lifning lifning commented Jul 17, 2023

(Part of #2478, continued in #3713)

This configures coreadm to put all core dumps onto the M.2 'crash'
dataset, and creates a thread that moves them all onto a U.2 'debug'
dataset every 5 minutes.

This also refactors the dumpadm/savecore code to be less redundant and
more flexible, and adds an amount of arbitrary logic for e.g. picking
the U.2 onto which to save cores.

@lifning lifning force-pushed the coreadm branch 4 times, most recently from 1d3eb63 to d5f1d02 Compare July 19, 2023 06:28
@lifning lifning changed the title (WIP) Put process core dumps onto the U.2 debug zvol Put process core dumps onto the U.2 debug zvol Jul 19, 2023
@lifning lifning force-pushed the coreadm branch 2 times, most recently from 6db61f3 to 5ac362b Compare July 19, 2023 08:53
(Part of oxidecomputer#2478)

This configures coreadm to put all core dumps onto the M.2 'crash'
dataset, and creates a thread that rotates them all onto a U.2 'debug'
dataset every 5 minutes.

This also refactors the dumpadm/savecore code to be less redundant and
more flexible, and adds an amount of arbitrary logic for e.g. deciding
the U.2 onto which to save cores.
@lifning lifning merged commit cbf7274 into oxidecomputer:main Jul 24, 2023
@lifning lifning deleted the coreadm branch July 24, 2023 18:47
lifning added a commit that referenced this pull request Jul 24, 2023
…ebug dataset (#3713)

This periodically moves logs rotated by logadm in cron
(oxidecomputer/helios#107) into the crypt/debug
zfs dataset on the U.2 chosen by the logic in #3677. It replaces the
rotated number (*.log.0, *.log.1) with the unix epoch timestamp of the
rotated log's modification time such that they don't collide when
collected repeatedly (logadm will reset numbering when the previous ones
are moved away).

(for #2478)
leftwo pushed a commit that referenced this pull request Jul 24, 2023
(Part of #2478, continued in #3713)

This configures coreadm to put all core dumps onto the M.2 'crash'
dataset, and creates a thread that moves them all onto a U.2 'debug'
dataset every 5 minutes.

This also refactors the dumpadm/savecore code to be less redundant and
more flexible, and adds an amount of arbitrary logic for e.g. picking
the U.2 onto which to save cores.
leftwo pushed a commit that referenced this pull request Jul 24, 2023
…ebug dataset (#3713)

This periodically moves logs rotated by logadm in cron
(oxidecomputer/helios#107) into the crypt/debug
zfs dataset on the U.2 chosen by the logic in #3677. It replaces the
rotated number (*.log.0, *.log.1) with the unix epoch timestamp of the
rotated log's modification time such that they don't collide when
collected repeatedly (logadm will reset numbering when the previous ones
are moved away).

(for #2478)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants