Skip to content

Trim discard guide#3205

Merged
sspencerwire merged 17 commits intorocky-linux:mainfrom
metalllinux:trim-discard-guide
Mar 10, 2026
Merged

Trim discard guide#3205
sspencerwire merged 17 commits intorocky-linux:mainfrom
metalllinux:trim-discard-guide

Conversation

@metalllinux
Copy link
Contributor

@metalllinux metalllinux commented Mar 10, 2026

Researched and tested all commands and solutions here on Rocky Linux 8, 9, and 10. Hopefully this guide helps folks regarding TRIM usage with their SSDs on Rocky Linux.

Please let me know if anything needs to be updated and thank you for taking a look at my contribution.

Author checklist (Completed by original Author)

  • Good fit for the Rocky Linux project? Title and Author Metatags inserted ?
  • If applicable, steps and instructions have been tested to work
  • Initial self-review to fix basic typos and grammar completed

Rocky Documentation checklist (Completed by Rocky team)

  • 1st Pass (Document is good fit for project and author checklist completed)
  • 2nd Pass (Technical Review - check for technical correctness)
  • 3rd Pass (Detailed Editorial Review and Peer Review)
  • Final approval (Final Review)

metalllinux and others added 17 commits March 5, 2026 14:48
Add a new "Linking to other guides" section under Formatting guidelines
explaining to use relative file paths instead of full URLs for internal
links within the Rocky Linux documentation.

Assisted-by: Claude claude-sonnet-4-6
Co-Authored-By: Howard Van Der Wal <hvanderwal@ciq.com>
Expert Contributing Guide - added a section on linking to other guides properly
New guide covering TRIM/discard configuration on Rocky Linux with LVM
and XFS. Addresses common misconceptions about discard mount option vs
issue_discards in lvm.conf, recommends fstrim.timer with I/O scheduling
overrides, and covers SSD TRIM vs SAN UNMAP. All procedures tested on
Rocky Linux 9.7 across three Vultr deployment cycles.

Relates to: CUSP-2083

Assisted-by: Claude (claude-opus-4-6)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Renamed to configuring_trim.md with title "Configuring TRIM"
- Moved from docs/guides/storage/ to docs/guides/filesystems/
- Tested all commands on Rocky Linux 8.10, 9.7, and 10.1
- Added version-specific notes:
  - Rocky 10 enables fstrim.timer by default (preset: enabled)
  - RandomizedDelaySec differs: 6000s on RL8/9, 100min on RL10
  - issue_discards line number varies by version
- Updated tested_with to 8.10, 9.7, 10.1

Assisted-by: Claude (claude-opus-4-6)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…nces

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

Test results for 4df3e47:

Number of broken URLs: 14

URL,RESULT,FILENAME
 http://$(hostname):8080,failed,guides/repositories/pulp_fetch_upload.md
 http://your_ip,failed,guides/cms/mediawiki.md
 https://dl.rockylinux.org/pub/rocky/9.6/live/x86_64/,failed,guides/desktop/kde_installation.md
 https://wiki.rockylinux.org/team/release_engineering/debranding/,failed,guides/package_management/package_debranding.md
 https://ftp.gnu.org/gnu/tar/,failed,guides/backup/tar.md
 https://support.torproject.org/glossary/pluggable-transports/,failed,guides/proxies/tor_relay.md
 https://geti2p.net/en/,failed,guides/proxies/i2pd.md
 https://andyscott.me,failed,guides/contribute/README.md
 https://docs.rockylinux.org/guides/contribute/ai-contribution-policy.md,failed,guides/contribute/README.md
 https://git.launchpad.net/cloud-init,failed,guides/virtualization/cloud-init/07_contributing.md
 https://www.packer.io/docs/builders/vsphere/vsphere-iso,failed,guides/automation/templates-automation-packer-vsphere.md
 https://ftp.gnu.org/gnu/hello/hello-2.12.tar.gz,failed,labs/systems_administration_I/lab7-software_management.md
 https://repocompare.rockylinux.org,failed,release_notes/8_5.md
 https://mirrors.fedoraproject.org/metalink?repo=epel-8&arch=$basearch&infra=$infra&content=$contentdir,failed,books/admin_guide/13-softwares.md

@sspencerwire sspencerwire merged commit 7d0f1dc into rocky-linux:main Mar 10, 2026
3 checks passed
@metalllinux metalllinux deleted the trim-discard-guide branch March 11, 2026 02:19
@metalllinux
Copy link
Contributor Author

Thank you for the merge Steven.

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.

2 participants