Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/var on tmpfs

Featured Replies

Would this be a time to consider /var on tmpfs.

 

My idea would be to modify the unraid initramfs startup script. (rc.M???)

 

Possibly rename /var to /var.d before anything starts.

 

mkdir /var

mount a tmpfs on /var

mv or rsync --remove-sent-files from /var.d/ to /var

 

 

The benefit of having /var on tmpfs is you can control the memory.

If /var fills up, the kernel does not crash.

tmpfs "can" be swapped out for unused blocks.

 

or you could put a callout in rc.M.

I notice that you source /var/tmp/ident.cfg

Perhaps an INITEXEC= would be a script to execute before anything possibly starts.

I see all sorts of initialization and restores going on here in the rc.M

 

 

I'd like to only put /var/log onto a separate tmpfs because there are directories within /var that contain files critical to running, like /var/run and /var/local/...  I'm pretty sure it's only the log files that have potential of growing really large.

  • Author

I'd like to only put /var/log onto a separate tmpfs because there are directories within /var that contain files critical to running, like /var/run and /var/local/...  I'm pretty sure it's only the log files that have potential of growing really large.

 

If someone ever decides to do any kind of mailer it will use /var/spool.

I had this issue and had to mount a tmpfs there so exim would work. (it worked quite well too).

If you are adding one line in the fstab for /var/log, it would only take a second or two more to add a second tmpfs line for /var/spool.  The tmpfs will not use any (memory) space unless files are written to them.

 

Joe L.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.