Posts by Darth_Anyan

    I would like to propose some UI buttons for more or less frequent commands:
    1. Undelete files:

    snapraid fix -m [-f %FILENAME%]

    fix -m recovers all files, deleted since the last Sync, and -f allows to specify file or directory to recover. I see it as a dialog window prompting to enter filename. If the filename is empty - then -f parameter is omitted.

    2. Fix known silent errors.

    snapraid -e fix && snapraid scrub -p0

    No input parameters here. The first command fixes known silent errors, and the second checks if they are actually gone and marks the blocks as correct (-p 0 means zero percent of data scrubbed, but blocks with silent errors are checked anyway).

    Just came to report a bug with $DEL_THRESHOLD. The script runs for me, but delete threshold is ignored in a strange manner - in logs I can see "deleted files (2175) is below threshold (11)", where 11 is my delete threshold.


    and also, something strange happened to the Status page:
    nut graphs went missing, "Temperature monitor" tab appeared with sad smiles, and when I click "refresh", I get this:

    Ошибка #4000:
    exception 'OMVException' with message 'Failed to execute command 'omv-mkgraph 2>&1': ERROR: No DS called 'value' in '/var/lib/rrdcached/db//localhost/nut-ups/percent-charge.rrd'' in /usr/share/openmediavault/engined/rpc/
    Stack trace:
    #0 [internal function]: OMVRpcServiceRrd->generate(NULL, Array)
    #1 /usr/share/php/openmediavault/ call_user_func_array(Array, Array)
    #2 /usr/share/php/openmediavault/ OMVRpcServiceAbstract->callMethod('generate', NULL, Array)
    #3 /usr/sbin/omv-engined(500): OMVRpc::exec('Rrd', 'generate', NULL, Array, 1)
    #4 {main}

    That normally means there are no rrd files generated, try doing ls /var/lib/rrdcached/db/localhost/sensors-*/ and see if it shows any.

    Remember also that not all hardware will work, I had added the ones found so far but you might have something that has not been seen yet. Running the above command will also show if you have something that's not been added.

    I plan on adding the CPU Fan option on the next version, I will post when its ready.

    Sorry for the delay. The output for the command is:

    danila@openmediavault:~$ ls /var/lib/rrdcached/db/localhost/sensors-*/
    temperature-temp1.rrd temperature-temp2.rrd
    temperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd

    And sensors command from the console shows me my CPU temp:

    Speaking of the log which is e-mailed by the script. It mostly consists of lines like that:

    92%, 933496 MiB, 46 MiB/s, CPU 2%, 0:27 ETA

    which go from 0 to 100%, and if you also have scrub - there are way too many lines. I can't imagine any case when analyzing them might be of use, and the lines of real interest (total time + error summary) are in the end of the mail. Perhaps, there's a point in adding an option to exclude such lines from the e-mail report?


    I've installed Sensors plugin 1.0.5, and when I try to set "CPU Temperature" checkbox, I get this message:

    no, the button is ok :-) I was talking about omv-snapraid-diff script, sorry that I didn't make it clear...

    The script does

    $SNAPRAID_BIN scrub -p 100 -o 0 >> $TMP_OUTPUT

    the magic number 100 is what I want to set in WebUI

    Wouldn't it be better to put Scrub percentage setting in diff script to web interface? By now, it always performs full scrub ( snapraid -p 100), which is quite time-consuming and to my mind it doesn't fit well with default 7 days period. Default scrub percentage, btw, is 12.5. Adding "Scrub percentage" setting would allow different scrub strategies, like "often but little" or "rarely but full".

    If the plugin is not available, you can always setup it as a website using openmediavault-ngnix plugin. Extplorer is nice and simple but it has a known HTTPS issue. Pydio is more sophisticated but more stable as well.

    The question is: what do you need it for? maybe, FTP/SFTP would be a better option?


    thanks for showing the correct way. But it should be mentioned that using the PPA has one advantage: you can install Java security updates the same way as any other package updates, and OMV will check for them daily as well as any other updates.
    Pls fix me if there's another way of doing it.

    Glad that it helped :-)
    Also, for the big music collections I'd recommend two things.
    First, install Java 7 (for general performance). The manual cah be found here:…cle-java-7-in-debian.html
    Works for me flawlessly for a year, but use it wisely - Ubuntu PPAs are generally not the recommended way to do things.

    Second - increase Subsonic memory limit (try to add 2-3 thousand songs th the playlist and you'll see). Default is 150 Mb, but at least 768 Mb recommended if possible. The manual can be found here:

    If I remember well, Owncloud's music player is based on Ampache. But myself would personally recommend Subsonic ( It's Java based but quite fast, stable and neat (and also supports non-English characters in filenames, which Ampache does not).

    The install is really simple - just download the deb package and dpkg it.

    I've got it working flawlessly with 900Gb mp3 collection and 3-5 simultanious users.

    AFAIK in samba 3.5 (Squeeze) SMB2 is experimental. I tried enabling it via smb.conf, and it started working faster, but also started crashing occasionally. So I disabled it until Wheezy :-)

    I've edited Solo's script a little so it would Scrub the array every 10 runs of the script.
    My modifications are marked by "ADD DSpevak".

    See the code there:

    The idea is as follows: the Cronjob runs the script every night, so every 10-th night, if the Sync was OK, it also performs a Scrub operation.

    I have 2 questions:
    1) is it correct to run scrubs like that or there are some factors I miss?
    2) The counter uses a text file to store the number between sessions. Is it OK or there's a more elegant solution?