threefoldtecharchive / jumpscale9_lib

Apache License 2.0
0 stars 0 forks source link

Add isstandby disk #271

Closed delandtj closed 5 years ago

delandtj commented 5 years ago

What this PR resolves:

basically we want to have a way to verify if a disk is in standby mode before we use some real disk access for monitoring purposes.

if a disk is disk.spindown with Core-0 we have to verify that the disk is effectively spun down and keep it that way if we run monitor checks on these diks/mountpoints.

That also means that all monitor templates that create/delet files for the sole purpose of verifying availability of a disk should first verify if it's in standby mode. If that is the case, skip the check, whatever that is.

That goes together with https://github.com/threefoldtech/0-core/pull/101