Snapraid 11 was released: http://www.snapraid.it/download
Are there any plans on upgrading it in OMV?
Snapraid 11 was released: http://www.snapraid.it/download
Are there any plans on upgrading it in OMV?
I would like to propose some UI buttons for more or less frequent commands:
1. Undelete files:
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.
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.
+ set -e
+ . /etc/default/openmediavault
+ OMV_CONFIG_FILE=/etc/openmediavault/config.xml
+ OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml
+ OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml
+ OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts
+ OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale
+ OMV_MOUNT_DIR=/media
+ OMV_NFSD_EXPORT_DIR=/export
+ OMV_CACHE_DIR=/var/cache/openmediavault
+ OMV_LOG_DIR=/var/log/openmediavault
+ OMV_CERTIFICATE_DIR=/etc/ssl
+ OMV_CERTIFICATE_PREFIX=openmediavault-
+ OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives
+ OMV_DOCUMENTROOT_DIR=/var/www/openmediavault
+ OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d
+ OMV_RSYNC_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d
+ OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport
+ OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf
+ OMV_ENGINED_DIR=/usr/share/openmediavault/engined
+ OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock
+ OMV_ENGINED_SO_SNDTIMEO=10
+ OMV_ENGINED_SO_RCVTIMEO=180
+ OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json
+ OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem
+ OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req
+ OMV_FSTAB_MNTOPS_EXT3=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
+ OMV_FSTAB_MNTOPS_EXT4=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
+ OMV_FSTAB_MNTOPS_JFS=defaults,nofail,noexec,usrquota,grpquota
+ OMV_FSTAB_MNTOPS_XFS=defaults,nofail,noexec,usrquota,grpquota
+ OMV_FSTAB_MNTOPS_VFAT=defaults,nofail
+ OMV_FSTAB_MNTOPS_NTFS=defaults,nofail
+ OMV_FSTAB_MNTOPS_HFSPLUS=defaults,nofail,force
+ OMV_USERMGMT_DEFAULT_GROUP=users
+ OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd
+ OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png
+ OMV_APACHE2_SUEXECUSERGROUP=openmediavault
+ OMV_DEBUG_SCRIPT=NO
+ OMV_DEBUG_PHP=NO
+ OMV_DEBUG_EXTJS=NO
+ OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d
+ OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot
+ OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault
+ OMV_FSTAB_MNTOPS_EXT2=defaults,nofail,acl,user_xattr,noexec
+ . /usr/share/openmediavault/scripts/helper-functions
+ . /etc/default/openmediavault
+ OMV_CONFIG_FILE=/etc/openmediavault/config.xml
+ OMV_CONFIG_TEMPLATE_FILE=/usr/share/openmediavault/templates/config.xml
+ OMV_PRODUCTINFO_FILE=/usr/share/openmediavault/productinfo.xml
+ OMV_SCRIPTS_DIR=/usr/share/openmediavault/scripts
+ OMV_I18N_LOCALE_DIR=/usr/share/openmediavault/locale
+ OMV_MOUNT_DIR=/media
+ OMV_NFSD_EXPORT_DIR=/export
+ OMV_CACHE_DIR=/var/cache/openmediavault
+ OMV_LOG_DIR=/var/log/openmediavault
+ OMV_CERTIFICATE_DIR=/etc/ssl
+ OMV_CERTIFICATE_PREFIX=openmediavault-
+ OMV_DPKGARCHIVE_DIR=/var/cache/openmediavault/archives
+ OMV_DOCUMENTROOT_DIR=/var/www/openmediavault
+ OMV_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d
+ OMV_RSYNC_CRONSCRIPTS_DIR=/var/lib/openmediavault/cron.d
+ OMV_CONFIGIMPORT_SCRIPTS_DIR=/usr/share/openmediavault/configimport
+ OMV_MKCONF_SCRIPTS_DIR=/usr/share/openmediavault/mkconf
+ OMV_ENGINED_DIR=/usr/share/openmediavault/engined
+ OMV_ENGINED_SO_ADDRESS=/var/lib/openmediavault/engined.sock
+ OMV_ENGINED_SO_SNDTIMEO=10
+ OMV_ENGINED_SO_RCVTIMEO=180
+ OMV_ENGINED_DIRTY_MODULES_FILE=/var/lib/openmediavault/dirtymodules.json
+ OMV_INITSYSTEM_SCRIPTS_DIR=/usr/share/openmediavault/initsystem
+ OMV_INITSYSTEM_FILE=/var/lib/openmediavault/initsystem.req
+ OMV_FSTAB_MNTOPS_EXT3=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
+ OMV_FSTAB_MNTOPS_EXT4=defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0
+ OMV_FSTAB_MNTOPS_JFS=defaults,nofail,noexec,usrquota,grpquota
+ OMV_FSTAB_MNTOPS_XFS=defaults,nofail,noexec,usrquota,grpquota
+ OMV_FSTAB_MNTOPS_VFAT=defaults,nofail
+ OMV_FSTAB_MNTOPS_NTFS=defaults,nofail
+ OMV_FSTAB_MNTOPS_HFSPLUS=defaults,nofail,force
+ OMV_USERMGMT_DEFAULT_GROUP=users
+ OMV_RRDGRAPH_DIR=/var/lib/openmediavault/rrd
+ OMV_RRDGRAPH_ERROR_IMAGE=/usr/share/openmediavault/icons/rrd_graph_error_64.png
+ OMV_APACHE2_SUEXECUSERGROUP=openmediavault
+ OMV_DEBUG_SCRIPT=NO
+ OMV_DEBUG_PHP=NO
+ OMV_DEBUG_EXTJS=NO
+ OMV_RSNAPSHOT_CONFS_DIR=/var/lib/openmediavault/rsnapshot.d
+ OMV_RSNAPSHOT_CRONSCRIPT=/var/lib/openmediavault/cron.d/rsnapshot
+ OMV_WEBGUI_FILE_OWNERGROUP_NAME=openmediavault
+ OMV_FSTAB_MNTOPS_EXT2=defaults,nofail,acl,user_xattr,noexec
+ OMV_XMLSTARLET_GET_SHAREDFOLDER_PATH=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'/',reldirpath) -b
+ OMV_XMLSTARLET_GET_SHAREDFOLDER_NAME=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v name -b
+ OMV_XMLSTARLET_GET_SHAREDFOLDER_MOUNT_DIR=-m //system/shares/sharedfolder[uuid=current()/sharedfolderref] -v concat(//system/fstab/mntent[uuid=current()/mntentref]/dir,'/',reldirpath) -b
+ y=0
+ outfile=/usr/share/openmediavault/mkconf/collectd.d/sensors
+ end=\
+ starteof2=cat <<EOF >> ${OMV_COLLECTD_RRDTOOL_MKGRAPH}
+ starteof1=cat <<EOF >> ${OMV_COLLECTD_CONFIG}
+ statment1=if ! grep -q "LoadPlugin sensors" "$OMV_COLLECTD_CONFIG"; then
+ endeof=EOF
+ graph=OMV_COLLECTD_RRDTOOL_MKGRAPH=${OMV_COLLECTD_RRDTOOL_MKGRAPH:-"/usr/sbin/omv-mkgraph"}
+ collected=OMV_COLLECTD_CONFIG=${OMV_COLLECTD_CONFIG:-"/etc/collectd/collectd.conf"}
+ omv_config_get //services/sensors/cpuenable
+ local _queryresult _result
+ omv_debug omv_config_get: xpath=<//services/sensors/cpuenable>
+ xmlstarlet sel -t -v+ //services/sensors/cpuenable /etc/openmediavault/config.xml
xmlstarlet unesc
+ _queryresult=1
+ _result=0
+ echo 1
+ omv_debug omv_config_get: results: query=<1> cmd=<0>
+ return 0
+ [ 1 = 0 ]
+ [ ! -f /usr/share/openmediavault/mkconf/collectd.d/sensors ]
+ [ ! -f /var/www/openmediavault/js/omv/module/admin/diagnostic/system/plugin/Sensors.js ]
+ omv_config_get //services/sensors/cpuenable
+ local _queryresult _result
+ omv_debug omv_config_get: xpath=<//services/sensors/cpuenable>
+ xmlstarlet sel -t -v //services/sensors/cpuenable /etc/openmediavault/config.xml
+ xmlstarlet unesc
+ _queryresult=1
+ _result=0
+ echo 1
+ omv_debug omv_config_get: results: query=<1> cmd=<0>
+ return 0
+ [ 1 = 1 ]
+ sed -i /#\ <<<\ \[openmediavault\]\ sensors-script/,/#\ >>>\ \[openmediavault\]\ sensors-script/d /usr/sbin/omv-mkgraph
+ egrep ^LoadPlugin sensors /etc/collectd/collectd.conf
+ echo -e LoadPlugin sensors\n
+ chmod +x /usr/share/openmediavault/mkconf/collectd.d/sensors
+ /usr/share/openmediavault/mkconf/collectd.d/sensors
+ /etc/init.d/collectd restart
+ /usr/sbin/omv-mkgraph
Alles anzeigen
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/rrd.inc:65
Stack trace:
#0 [internal function]: OMVRpcServiceRrd->generate(NULL, Array)
#1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('generate', NULL, Array)
#3 /usr/sbin/omv-engined(500): OMVRpc::exec('Rrd', 'generate', NULL, Array, 1)
#4 {main}
there are similar lines for sync also, and when syncing a lot of data, the log also looks flooded
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-*/
/var/lib/rrdcached/db/localhost/sensors-acpitz-virtual-0/:
temperature-temp1.rrd temperature-temp2.rrd
/var/lib/rrdcached/db/localhost/sensors-coretemp-isa-0000/:
temperature-temp1.rrd temperature-temp2.rrd temperature-temp3.rrd
And sensors command from the console shows me my CPU temp:
danila@openmediavault:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +106.0°C)
temp2: +29.8°C (crit = +106.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +44.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +44.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +42.0°C (high = +85.0°C, crit = +105.0°C)
Alles anzeigen
Hello!
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?
Hello!
I've installed Sensors plugin 1.0.5, and when I try to set "CPU Temperature" checkbox, I get this message:
Error #4000:
exception 'OMVException' with message 'Failed to execute command 'omv-mkconf sensors balls 2>&1': /usr/share/openmediavault/mkconf/sensors: 113: [: !=: unexpected operator
/usr/share/openmediavault/mkconf/sensors: 141: [: !=: unexpected operator
LoadPlugin sensors' in /usr/share/openmediavault/engined/module/sensors.inc:55
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleSensors->applyConfig()
#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#9 {main}
Alles anzeigen
Once a week is quite an interval... why not sync every night? If something bad happens, you only can restore your data up to the synced state.
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
Hello!
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?
davidh2k,
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: http://www.webupd8.org/2012/06…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: http://forum.subsonic.org/forum/viewtopic.php?t=3939
If I remember well, Owncloud's music player is based on Ampache. But myself would personally recommend Subsonic (http://subsonic.org). 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
As you have mentioned pdf, I'd recommend a website plugin and Pydio, which has lots of sharing options as well as built-in viewers
OMV uses NUT, so it's compactibility list might be useful: http://www.networkupstools.org/stable-hcl.html
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: http://pastebin.com/x2aK67TZ
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?