Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - Alarm when local storage running out #12

Open
johnsinsheimer opened this issue Apr 17, 2018 · 2 comments
Open

Request - Alarm when local storage running out #12

johnsinsheimer opened this issue Apr 17, 2018 · 2 comments

Comments

@johnsinsheimer
Copy link

I was working with some users and we ran into the unfortunate problem of not using auto-remove of locally stored files, and then running out of local storage. Could some PVs alarm, maybe on the acquire PV or others that would be readily seen, when the local storage drops below some threshold? Perhaps minor alarm when less than 10 GB, major alarm when less than 1 GB, or similar.

We found when local storage runs out, the detector will still happily send images to the IOC, but files are no longer saved externally. We needed to clear local files, and then needed to reboot the DAQ and IOC in order for files to be saved externally again.

@brunoseivam
Copy link
Member

We can add something like:

field(LOLO, 5)
field(LLSV, "MAJOR")
field(LOW,  10)
field(LSV,  "MINOR")

To

# FileWriter free buffer space
record(ai, "$(P)$(R)FWFree_RBV")
{
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),$(ADDR),$(TIMEOUT))FW_FREE")
field(DESC, "Free disk space")
field(EGU, "GB")
field(PREC, "3")
field(ASLO, "9.5367431640625e-07")
field(SCAN, "I/O Intr")
}

Could you test it locally and then perhaps open a pull request?

Thanks

@johnsinsheimer
Copy link
Author

Thanks Bruno. We have a shutdown period in about 1 week - I should have time to test this 1-3 weeks from now.

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

No branches or pull requests

2 participants