Skip to content

[sled-diagnostics] log collection should happen on u.2s #8197

@papertigers

Description

@papertigers

Currently we collect logs into a zip file that lives on m.2s we should instead use u.2s as temporary storage.

/// Return the directories that can be used for temporary sled-diagnostics
/// file storage.
pub fn all_sled_diagnostics_directories(&self) -> Vec<Utf8PathBuf> {
// These directories are currently used for tempfile storage when
// zipping up zone logs before shuffling them off to a nexus collecting
// a support bundle.
self.all_m2_mountpoints(M2_DEBUG_DATASET).into_iter().collect()
}

The logic in sled-diagnostics currently selects the first item in the vec, we could select one at random or we could look for which one has the most free space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions