this post was submitted on 03 May 2024
28 points (96.7% liked)

Selfhosted

40296 readers
322 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I have a TrueNAS install with SMB turned on and nothing else. Even when it’s idle and nothing is accessing it, there’s constant disk activity. Very low bandwidth, but it’s like some log is in verbose mode.

TrueNAS is installed in a NVMe disk with plenty of room, and there’s only one pool. I’ve checked my snapshot configuration, nothing enabled faster than daily.

What could be causing it? How do I stop it or redirect it to the NVMe drive? I’m willing to create a partition on the NVMe drive if that’s what will do it.

Edit: thanks everyone for all the feedback, I’ll try these out and report back.

top 9 comments
sorted by: hot top controversial new old
[–] JASN_DE@lemmy.world 15 points 6 months ago (1 children)

That's most likely the syslog. Check the settings, you can choose the volume to use for it.

[–] catloaf@lemm.ee -1 points 6 months ago

Or set up a ramdisk, or turn off log to disk entirely somehow. But if you do that, you'll lose logs between reboots or crashes, making troubleshooting harder.

[–] friend_of_satan@lemmy.world 5 points 6 months ago
[–] tinsuke@lemmy.world 5 points 6 months ago

Every 4-5 seconds? Yeah, logging.

You can either move the system dataset to your boot drive/pool or syslog to /var/log:

https://www.truenas.com/docs/core/coretutorials/systemconfiguration/settingthesystemdataset/

I've seem many users recommend a reboot after changing those settings.

[–] Darkassassin07@lemmy.ca 4 points 6 months ago

Dirty secrets about you.

[–] CondorWonder@lemmy.ca 4 points 6 months ago (1 children)

If it’s logs, there’s a package called log2ram - it’s designed for small form factor systems to reduce writes to SD cards but does apply anywhere you want to log but not hit disk immediately. It syncs logs to disk on a regular basis so you don’t lose much if the system crashes.

[–] acockworkorange@mander.xyz 2 points 6 months ago

Ooh that sounds promising, thank you!

[–] pyrosis@lemmy.world 3 points 6 months ago

Probably these directories...

/tmp /var/tmp /var/log

Two are easy to migrate to tmpfs if you are trying to reduce disk writes. Logs can be a little tricky because of the permissions. It is worth getting it right if you are concerned about all those little writes on an SSD. Especially if you have plenty of memory.

This is filesystem agnostic btw so the procedure can apply to other filesystems on Linux operating systems.

[–] tagginator@utter.online -4 points 6 months ago

New Lemmy Post: What is TrueNAS writing all the time to disk? (https://lemmyverse.link/lemmy.world/post/14978112)
Tagging: #SelfHosted

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md