Thanks for you reply. I don't think its worth to put more effortin it . It' s better than I thought.
Posts by Jbloc
-
-
With iperf get 705 mBit/s either with router or switch. No difference.
Following steps 1-7. Settings and updates all made. What else can I do?
-
From my Windows 10 PC with ASROCK X370 Pro4 Mainboard I have average transferrates from 50 MB/s to the server using a CAT 5e cable to Fritzbox 7590 router
OMV Server(6.5.7-1 (Shaitan) has a ASRock J4125B ITX MB
The connection is with CAT6 cable from OMV to Fritzbox 7590 AX Router.
I bought a TP-Link TL-SG105 Gigabit switch and connected the Server(CAT 6), Windows Host PC(CAT 5e) and Router(CAT 6). But the speed is the same.
I thought a switch can handle the connection better than the router and improve speed. There must be a bottleneck.
-
Ok. I thought it still says something about errors referring to the last lines about dkpg error processing package.
I don't really understand the logs but I see when it says something about errors. Anyway not a big issue. Just trying to understand.
Thanks for your help.
-
I would remove (not purge, this keeps the database) the mergerfs plugin temporarily.
sudo dpkg -r openmediavault-mergerfs
then try to fix
sudo apt-get -f install
I removed it then tried to fix it. Still the same. Rebooting.
Tried again dpkg -r openmediavault-mergerfs
Codedpkg: warning: ignoring request to remove openmediavault-mergerfs, only the config files of which are on the system; use --purge to remove them too
then this again
Codeapt-get -f install Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: libarchive-zip-perl mergerfs Use 'apt autoremove' to remove them.
and apt autoremove
Code
Display MoreRemoving libarchive-zip-perl (1.68-1) ... Removing mergerfs (2.35.1~debian-bullseye) ... Setting up openmediavault (6.3.10-2) ... Generating public/private rsa key pair. Could not create directory '/root/.ssh' (No such file or directory). Saving key "/root/.ssh/id_rsa" failed: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1)
-
Code
Display MoreiF openmediavault 6.3.10-2 al l openmediavault - The open network attached storage solution ii openmediavault-backup 6.1 al l backup plugin for OpenMediaVault. ii openmediavault-flashmemory 6.2 al l folder2ram plugin for openmediavault ii openmediavault-kernel 6.4.7 al l kernel package ii openmediavault-keyring 1.0 al l GnuPG archive keys of the OpenMediaVault archive iU openmediavault-mergerfs 6.3.7 al l mergerfs plugin for openmediavault. ii openmediavault-minidlna 6.0.3 al l OpenMediaVault miniDLNA (DLNA server) plugin ii openmediavault-omvextrasorg 6.1.1 al l OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-resetperms 6.0.2 al l Reset Permissions ii openmediavault-sharerootfs 6.0.2-1 al l openmediavault share root filesystem plugin ii openmediavault-snapraid 6.1 al l snapraid plugin for OpenMediaVault. ii openmediavault-symlinks 6.0.4 al l OpenMediaVault symlinks plugin
and
Code
Display Moreroot@nasomv:/# apt-get -f install openmediavault Reading package lists... Done Building dependency tree... Done Reading state information... Done openmediavault is already the newest version (6.3.10-2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up openmediavault (6.3.10-2) ... Generating public/private rsa key pair. Could not create directory '/root/.ssh' (No such file or directory). Saving key "/root/.ssh/id_rsa" failed: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of openmediavault-mergerfs: openmediavault-mergerfs depends on openmediavault (>= 6); however: Package openmediavault is not configured yet. dpkg: error processing package openmediavault-mergerfs (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: openmediavault openmediavault-mergerfs E: Sub-process /usr/bin/dpkg returned an error code (1)
-
-
When trying to install updates today I got the following error(Line 130)
CodeFailed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-broken --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::="--force-confold" dist-upgrade 2>&1' with exit code '100': Reading package lists... dpkg: dependency problems prevent configuration of openmediavault-mergerfs: openmediavault-mergerfs depends on openmediavault (>= 6); however: Package openmediavault is not configured yet. dpkg: error processing package openmediavault-mergerfs (--configure): dependency problems - leaving unconfigured
-
System notifications are not sent if a task is run manually. If it is programmed if it is sent.
OK. Thanks.
-
Thanks. That explains it.
-
-
Thats the other issue. There are no logs. When I run the script in CLI nothing happens. Same in the GUI.
I don't want to waste your time. I just take another script. And see if it's running. For some reason this script is not working.
Thank you anyway.
-
email adress with quotation marks.
-
Code
Apr 13 21:14:39 nasomv postfix/smtp[257595]: connect to smtp.gmail.com[2a00:1450:4025:402::6c]:587: Network is unreachable Apr 13 21:14:39 nasomv postfix/smtp[257595]: 1ACD3101: replace: header Subject: Monitoring alert -- Resource limit matched filesyst: Subject: [NASOMV.local] Monitoring alert -- Resource limit matched filesystem_srv_dev-disk-by-uuid-3e26929a-83f9-473d-a449-90e0df45aac2 Apr 13 21:14:40 nasomv postfix/pipe[257593]: 28A0F102: to=<openmediavault-notification@localhost.localdomain>, relay=omvnotificationfilter, delay=1.1, delays=0.05/1/0/0.06, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service) Apr 13 21:14:40 nasomv postfix/smtp[257595]: 1ACD3101: to=<xxx@gmail.com>, relay=smtp.gmail.com[142.250.102.109]:587, delay=1.3, delays=0.07/0.06/0.61/0.57, dsn=2.0.0, status=sent (250 2.0.0 OK 1681413280 hs4-20020a1709073e8400b0094ed3abc937sm229997ejc.82 - gsmtp) Apr 13 21:14:40 nasomv postfix/qmgr[256660]: 1ACD3101: removed Apr 13 21:14:41 nasomv postfix/smtp[257595]: connect to smtp.gmail.com[2a00:1450:4025:402::6d]:587: Network is unreachable Apr 13 21:14:41 nasomv postfix/smtp[257595]: 28A0F102: replace: header Subject: Monitoring alert -- Resource limit matched filesyst: Subject: [NASOMV.local] Monitoring alert -- Resource limit matched filesystem_srv_dev-disk-by-uuid-0459f27c-cf0e-47b5-8f21-abdc0ed395f4 Apr 13 21:14:42 nasomv postfix/smtp[257595]: 28A0F102: to=<xxx@gmail.com>, relay=smtp.gmail.com[142.250.102.108]:587, delay=3.1, delays=0.05/2.2/0.38/0.5, dsn=2.0.0, status=sent (250 2.0.0 OK 1681413282 j25-20020a170906095900b0094a70a89bffsm1338302ejd.205 - gsmtp) Apr 13 21:14:42 nasomv postfix/qmgr[256660]: 28A0F102: removed
Network unreachable. But I get test messages and the notification about the filesystem.
-
The Snapraid AIO Script does not use the OMV Notification system or its settings to send mail.
What is the output of this command:
which mailx
Line 197 of the config file refers to that location.
-
I assume that you run that script from CLI. OMV doesn't see anything that is configured outside of the GUI. OMV controls the mail service with Postfix.
No. I have a scheduled task but it is not enabled. I run it manually.
-
I setup the mail notification service properly. It's enabled and I receive test email. I get emails from the original snapraid diff script. But I don't get a notification when I use Snapraid AIO Script.
In the notification setting of the config file I wrote the mail address. But it's not working. So far no other changes only email. The author of the script could not help me.
I also realize there are no log files created in /tmp and /var/log
Bash
Display More#!/bin/bash CONFIG_VERSION=3.2 ###################### # USER VARIABLES # ###################### ####################### USER CONFIGURATION START ####################### ### NOTIFICATION SETTINGS ### # Address where the output will be emailed to. # If you do not want to receive emails and rely on other notification # methods, leave these fields empty. EMAIL_ADDRESS="destination-email-goes-here" FROM_EMAIL_ADDRESS="sender-email-goes-here" # Use Healthchecks.io to report script errors. Set to 1 to enable. # Please note that every "WARNING" will be reported as failure. # When enabled, enter your Healthchecks UUID (not the full URL). # If using a self-hosted instance, change the URL to your endpoint # including the trailing slash. HEALTHCHECKS=0 HEALTHCHECKS_ID="your-uuid-here" HEALTHCHECKS_URL="https://hc-ping.com/" # Use Telegram to report script execution summary (not the whole report) # Set 1 to enable. Create a bot using @botfather, then copy the API token. # To get your chat ID, use @getidsbot TELEGRAM=0 TELEGRAM_TOKEN="your-token-here" TELEGRAM_CHAT_ID="your-chat-id-here" # Use Discord to report script execution summary (not the whole report) # Set 1 to enable. # To get your Webhook URL go to the channel settings -> Integrations and # create a web hook DISCORD=0 DISCORD_WEBHOOK_URL="your-webhook-url" # Custom notification service # Set this to a script/service to be used instead of the default email # notification. You may want to use a service not natively supported by this # script or a mail service with custom formatting. # If you don't want to use this option, don't make changes to this. # $CURRENT_DIR can be used to get the running directory of the script. # This script will pass the following parameters to HOOK_NOTIFICATION: # 1st parameter will be the subject # 2nd parameter will be the body HOOK_NOTIFICATION="" ### SCRIPT AND SNAPRAID SETTINGS ### # Set the threshold of deleted and updated files to stop the sync job from running. # Note that depending on how active your filesystem is being used, a low number # here may result in your parity info being out of sync often and/or you having # to do lots of manual syncing. DEL_THRESHOLD=500 UP_THRESHOLD=500 # Allow a sync that would otherwise violate the delete threshold, but only # if the ratio of added to deleted files is greater than the value set. # Set to 0 to disable this option. # Example: A senario with 5000 deleted files and 3800 added files would # result in an ADD_DEL_THRESHOLD of 0.76 (3800/5000) ADD_DEL_THRESHOLD=0 # Set number of warnings before we force a sync job. This option comes in handy # when you cannot be bothered to manually start a sync job when DEL_THRESHOLD # is breached due to false alarm. Set to 0 to ALWAYS force a sync (i.e. ignore # the delete threshold above) Set to -1 to NEVER force a sync (i.e. need to # manual sync if delete threshold is breached). SYNC_WARN_THRESHOLD=-1 # Set percentage and age, in days, of blocks in array to scrub if it is in sync. # i.e. 0 to disable and 100 to scrub the full array in one go. # WARNING - depending on size of your array, setting to 100 can take a long time! SCRUB_PERCENT=5 SCRUB_AGE=10 # Scrub new blocks after sync that have yet to be scrubbed. 1 to enable and any # other value to disable. SCRUB_NEW=0 # Set number of script runs before running a scrub. Use this option if you # don't want to scrub the array every time. # Set to 0 to disable this option and run scrub every time. SCRUB_DELAYED_RUN=0 # Prehash Data To avoid the risk of a latent hardware issue, you can enable the # "pre-hash" mode and have all the data read two times to ensure its integrity. # This option also verifies the files moved inside the array, to ensure that # the move operation went successfully, and in case to block the sync and to # allow to run a fix operation. 1 to enable, any other value to disable. PREHASH=1 # Forces the operation of syncing a file with zero size that before was not. # If SnapRAID detects a such condition, it stops proceeding unless you enable # this option. Useful when syncing system files which can genuinely get # changed to zero. # Disabled by default, 1 to enable. FORCE_ZERO=0 # Set if disk spindown should be performed. Depending on your system, this may # not work. 1 to enable, any other value to disable. # hd-idle is required and must be already configured. SPINDOWN=0 # Set the option to log SMART info collected by SnapRAID. 1 to enable and any # other value to disable. SMART_LOG=1 # Increase verbosity of the email output. NOT RECOMMENDED! # If set to 1, TOUCH and DIFF outputs will be kept in the email, producing # a mostly unreadable email. You can always check TOUCH and DIFF outputs # using the TMP file or use the feature KEEP_LOG. # 1 to enable, any other value to disable. VERBOSITY=0 # SnapRAID detailed output retention for each run. # Default behaviour is RETENTION_DAYS=0: every time your run SnapRAID, the # output is saved to "/tmp" and is overridden during every run. # To enable retention, set RETENTION_DAYS to the days of output you want to # keep in your home folder. Files will have timestamps. # SNAPRAID_LOG_DIR can be changed to any folder you like. RETENTION_DAYS=0 SNAPRAID_LOG_DIR="$HOME" # Run 'snapraid status' command to show array general information. # 1 to enable, any other value to disable. SNAP_STATUS=0 ### DOCKER CONTAINERS MANAGEMENT ### # Set to 1 to manage docker containers. They will be paused/stopped or # resumed/restarted accordingly. If set to 0, all other options related to Docker # will be ignored. MANAGE_SERVICES=0 # Choose how to manage your containers: 1 to pause/unpause, 2 to stop/restart # This option does not have any effect if MANAGE_SERVICES is set to 0 DOCKER_MODE=1 # Containers to manage (separated with spaces). Please ensure these containers # are always running before executing the script, otherwise an error will be logged. SERVICES='container1 container2 container3' # Manage docker containers running on a remote machine. To use this feature, # you must setup passwordless ssh access between snapRAID host and Docker host. # Set to 1 to enable, then enter Docker host SSH user and machine IP or hostname. # You can manage multiple remote Docker hosts. # Please note: for this configuration DO NOT separate containers with spaces. # Use a comma instead. # Reference: # ('HOSTIP1:container1,container2,container3' 'HOSTIP2:container1,container2,container3,container4') # Example: # ('192.168.0.125:code-server,portainer,plex' '192.168.0.126:nextcloud,handbrake,transmission') # Delay is the number of seconds to wait before sending the next docker # command to avoid errors. Change it if you're experiencing errors. DOCKER_REMOTE=0 DOCKER_USER="sshusernamegoeshere" DOCKER_HOST_SERVICES=('HOSTIP1:container1,container2,container3' 'HOSTIP2:container1,container2,container3,container4') DOCKER_DELAY=10 ### CUSTOM HOOKS ### # Hooks are shell commands that the scripts executes for you. # You can specify 'before_hook' to perform preparation steps before SnapRAID # actions and 'after_hook' to perform steps afterwards. # Set to 1 to enable custom hooks CUSTOM_HOOK=0 # Custom hook before SnapRAID activities # This custom hook executes when pre-processing is complete and before # SnapRAID operations. # This option does not have any effect if CUSTOM_HOOK is set to 0 # Use NAME for a friendly name, CMD for the command itself. BEFORE_HOOK_NAME="" BEFORE_HOOK_CMD="" # Custom hook after SnapRAID activities # This custom hook executes after SnapRAID operations and will be the # last command. # This option does not have any effect if CUSTOM_HOOK is set to 0 # Use NAME for a friendly name, CMD for the command itself. AFTER_HOOK_NAME="" AFTER_HOOK_CMD="" ####################### USER CONFIGURATION END ####################### ####################### SYSTEM CONFIGURATION ####################### # Please make changes only if you know what you're doing # location of the snapraid binary SNAPRAID_BIN="/usr/bin/snapraid" # location of the mail program binary MAIL_BIN="/usr/bin/mailx" # Init variables CHK_FAIL=0 DO_SYNC=0 EMAIL_SUBJECT_PREFIX="(SnapRAID on $(hostname))" SERVICES_STOPPED=0 SYNC_WARN_FILE="$CURRENT_DIR/snapRAID.warnCount" SCRUB_COUNT_FILE="$CURRENT_DIR/snapRAID.scrubCount" TMP_OUTPUT="/tmp/snapRAID.out" SNAPRAID_LOG="/var/log/snapraid.log" SECONDS=0 #Capture time SNAPRAID_CONF="/etc/snapraid.conf" # Expand PATH for smartctl PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # Extract info from SnapRAID config SNAPRAID_CONF_LINES=$(grep -E '^[^#;]' $SNAPRAID_CONF) IFS=$'\n' # Build an array of content files CONTENT_FILES=( $(echo "$SNAPRAID_CONF_LINES" | grep snapraid.content | cut -d ' ' -f2) ) # Build an array of parity all files... PARITY_FILES=( $(echo "$SNAPRAID_CONF_LINES" | grep -E '^([2-6z]-)*parity' | cut -d ' ' -f2- | tr ',' '\n') ) unset IFS Footer © 2023 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About
-
It s mail notification. I turned it off. Looking at the messages I see it is old messages. i had something wrong in scheduled tasks like every minute running a script. Turned it off too. Deleted the logs
-
-
i figured it out myself. Scheduled tasks was the origin.