Jump to content
  • 0

API Access ?


AlexL

Question

Hi,

Is there any way of getting API access to at least the balancer API ?

I am thinking of 2 examples I'd like to code;

 

1. Snapraid trigger

As soon as a Balancing activity has ended, start snapraid check

 

 

2. File placement "list"

As soon as a Balancing activity has ended, create a folder á la https://blogs.dropbox.com/business/2016/04/announcing-project-infinite/ symlinking to the "real" folder.

Coincidently, this removes the need to rebuild the driver as you stated in another thread.

 

This can also mean that a tiered storage can be achieved by moving less-acessed files to slow storage, and often-accessed files to SSDs.

 

 

Thanks for checking in :)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Yes and no.

 

there is no API to do this, but there is an option to create a file while tasks are running.  You could check that, and then run the snapRAID stuff, as needed.

 

http://wiki.covecube.com/StableBit_DrivePool_2.x_Advanced_Settings

Specifically, the "DrivePool_RunningFile" setting.  Set that to a file path, and restart the service. 

 

 

Have a script/program/whatever look for this file, and then run whatever task is needed. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...