Repository navigation
Conversation
…usage du on /data/web and /data/mysql can run for minutes without printing anything when piped through sort, which reads as a hung server and generates support tickets. Set the expectation, show how to verify the scan is still working from a second SSH session, and document ncdu (scanning progress, key bindings, read-only mode) as the interactive alternative.
Fold the silence explanation into the du paragraph, drop the separate scan-time estimate and the second-session ps check (the ncdu live progress display covers that), and replace the ncdu key table with a pointer to ncdu --help and the in-interface ? help.
Contributor
|
Acceptance server is available at https://docs-eph6uxpnp.hypernode.io. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The page recommends
du -h /data/web /data/mysql | sort -h | tail -10, and customers regularly read the long silent wait that follows as a hung server:dureads the metadata of every file, so on shops with hundreds of thousands of files the scan runs for minutes, and the pipe throughsortmeans nothing appears on screen until the whole scan has finished. Support has handled a ticket from a customer who followed this page, saw minutes of silence, and concluded the Hypernode was stuck.Changes
du -hx --max-depth=1variant that prints one line per top-level directory as soon as it is done, for anyone who wants visible progress.ncdu /dataline: it described ncdu as "the disk usage report sorted in descending order", but ncdu is an interactive explorer with a live progress display while scanning, which is the better answer to "is it still working?".-qbandwidth tip, pointer toncdu --helpand the in-interface?key list, plus two safety notes: deleting from ncdu is permanent (read-only mode via-r), and nothing under/data/mysqlshould ever be deleted by hand (the ibdata1 section on this page covers the only safe procedure).-xto both example commands so scans stay on the/datafilesystem instead of wandering into anything mounted underneath it (a remote storage mount, for example).Verification
-rread-only mode,-q,-x,?help.dubehavior per GNU coreutils: no output until traversal completes when piped throughsort; un-pipedduprints each directory as its subtree finishes;-xskips other filesystems;--max-depthavailable on Ubuntu 22.04.