Jump to content
  • 0

Prevent other apps from starting if drive missing


vegasit

Question

Is there any way to prevent other apps from staring if there is a missing drive in DP? I have a dedicated server that runs drive pool with 40 drives. The apps that run use and monitor them for content, however when a drive "falls out" then and the other app scans it just sees the content as missing and tries to re-acquire the content. But this creates a lot of "extra" data usage as they are not really missing, its just the disk that the content is on is missing (usually temporary)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

If a disk in the pool goes missing then the pool should automatically change to read-only until the disk returns; we can test for that with a simple batch file. For example if the app was "c:\bin\monitor.exe" and your pool's drive letter was "p" then you could create an empty file called "testreadable.txt" in the root folder of your pool and create a batch file (e.g. "launchapp.bat") containing one line:

COPY /Y p:\testreadable.txt p:\testwritable.txt && "c:\bin\monitor.exe"

Launching that batch file would only result in launching the app if the file p:\testreadable.txt could be copied over to p:\testwritable.txt - which would indicate the pool was writable (all disks are present).

Note that this doesn't help if a drive goes missing while the app is already running. You'd need something more for that.

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...