Project

General

Profile

Bug #25290

Create RAM disk for RRD files so they don't fill up tmp partition

Added by John Smith about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Important
Assignee:
Vladimir Vinogradenko
Category:
GUI (new)
Target version:
Seen in:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

If the RRD files aren't set to be on the system dataset, /var will fill up at some point to 0 free space.
The WebGUI requires writing session files to /var/tmp.

Because of that, once /var is filled because of RRD, WebGUI is totally inaccessible in order to move the RRD files to the system dataset (which would have solved the problem).

The only solution I found was to manually delete the RRD files through SSH, although that's obviously a bad idea.

Associated revisions

Revision 6ec2eeb3 (diff)
Added by Vladimir Vinogradenko about 1 year ago

fix(ix-collectd): Create RAMdisk (if not already exists) for RRD files so they don't fill up root partition

Ticket: #25290

Revision f793eda5 (diff)
Added by Dru Lavigne 12 months ago

Mention RAM disk.
Ticket: #25290

History

#1 Updated by Dru Lavigne about 1 year ago

  • Status changed from Unscreened to Closed: User Config Issue

This is the reason why the UI allows you to move the system dataset and has a checkbox to include the Reporting Database (as well as Syslog) on the system dataset.

#2 Updated by John Smith about 1 year ago

Dru Lavigne wrote:

This is the reason why the UI allows you to move the system dataset and has a checkbox to include the Reporting Database (as well as Syslog) on the system dataset.

If you don't switch it on before /var is filled up, you're doomed because you cannot login to the WebGUI to do tick the checkbox. Once /var is filled, WebGUI is no longer accessible to 'fix' the issue.

#3 Updated by Dru Lavigne about 1 year ago

  • Category changed from GUI (new) to 2
  • Status changed from Closed: User Config Issue to Unscreened
  • Assignee changed from Release Council to William Grzybowski

Over to William to add a warning.

#4 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to Screened
  • Priority changed from No priority to Important
  • Target version set to 11.1

#5 Updated by William Grzybowski about 1 year ago

  • Status changed from Screened to Unscreened
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#6 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from Unscreened to 15
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

I suggest we move `/var/tmp` (or `/var/tmp/webui` and update `django` configuration) to ramdisk

#7 Updated by William Grzybowski about 1 year ago

  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

Not sure what I feel about that. Several others things rely on /tmp as well.

Perhaps its more prudent to do the other way around? Use another ramdisk just for RRD files?

#8 Updated by Vladimir Vinogradenko about 1 year ago

Then RRD data will be discarded on each reboot, is this acceptable?

Again, we can just set SESSION_FILE_PATH to our new ramdisk path, that way we won't break anything, but will solve this problem.

#9 Updated by William Grzybowski about 1 year ago

Vladimir Pustosmekhov wrote:

Then RRD data will be discarded on each reboot, is this acceptable?

Again, we can just set SESSION_FILE_PATH to our new ramdisk path, that way we won't break anything, but will solve this problem.

RRD data already works that way. Data is saved on shutdown on /data and restored on boot.

#10 Updated by Vladimir Vinogradenko about 1 year ago

  • Status changed from 15 to Needs Developer Review
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski
  • Hide from ChangeLog changed from No to Yes

#11 Updated by William Grzybowski 12 months ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#12 Updated by Vladimir Vinogradenko 12 months ago

  • Status changed from Reviewed by Developer to Ready For Release

#13 Updated by Dru Lavigne 12 months ago

  • Subject changed from RRD filling up /var causing WebGUI to be inaccessible to Create RAM disk for RRD files so they don't fill up root partition
  • Target version changed from 11.1 to 11.1-BETA1

#14 Updated by William Grzybowski 12 months ago

  • Subject changed from Create RAM disk for RRD files so they don't fill up root partition to Create RAM disk for RRD files so they don't fill up tmp partition

#15 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#16 Updated by Bonnie Follweiler 12 months ago

  • Needs QA changed from Yes to No
  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

Also available in: Atom PDF