Posts by doscott

    You need to expand

    Code
    (...)

    to provide a clue as to what is causing the error.


    I follow the restic forum and I don't think you have posted there. There are a number of windows users there who use restic (I don't use windows but I do use restic). It really is a more appropriate place to ask this question.

    Look at the iperf3 package.


    ssh into your nas and execute

    apt install iperf3


    Install the same package on your computer.


    On your computer execute

    sudo iperf3 -s


    On your nas execute

    iperf3 -c computer_ip_address


    I have OMV on a Thecus N5550 nas. It is connected to my computer through gigabit ports and a gigabit switch.


    Output on my computer was:


    On my nas the output was:


    You don't say how you are testing the up/down speeds, but it looks like you are probably using a speedtest web site.


    For the computer - OMV test, are you performing the test by transferring data/files. If so and your NAS is equipped with hdd then the speed is a bit more than I would expect to see unless the amount of data is small and the cache is having an influence.

    I can't help you with this. It appears that this error is usually the result of faulty ram. This link:

    Tree checker — BTRFS documentation

    explains a bit, and in the "Reporting problems" section the address of the mailing list is given. I would suggest using this before doing any kind of repairs found with google.


    The perhaps good new is that there is probably nothing wrong with the drive.

    See post #12 in

    Initial btrfs setup from the command line should take you anywhere between 15 to 30 minutes. Once you have things set up you don't need to use the command line again unless you wish to add/remove drives or reconfigure settings (raid type, compression, ...).


    You might find some useful info in this thread:

    A couple of suggestions:

    1 - Do a crontab -e from a root login to make sure you didn't included it there by accident.

    2 - Make sure that it is not included in the OMV scheduled tasks from the gui.


    I'm pretty sure that these are not the cause, but it doesn't cost anything to check.


    Other than that it would seem to be a anacron issue. Perhaps you can create a script that doesn't do anything (maybe touch a file) and include it in the weekly folder and see if it gets executed as well as the balance (you should get an email).

    anacron will never miss a run, but it is possible the run didn't complete before you shut down.


    Try the following:

    Following is the mailout from a successful balance:

    I'm not an expert on anacron, but with a bit of googling I've found the following. The command (from a root login):

    Code
    ls -la /var/spool/anacron

    should give the cron timestamps, something like:

    Code
    -rw------- 1 root root    9 Dec  8 08:23 cron.daily
    -rw------- 1 root root    9 Dec  8 08:23 cron.monthly
    -rw------- 1 root root    9 Dec  7 08:17 cron.weekly

    which shows time timestamps of the jobs when last run. In the above, the weekly jobs should not run again until on/after Dec 15


    I went through this thread again and everything you have shown looks correct. If your timestamps are not current I would assume it to be a permissions problem, but using root as the user I don't see how that would be the case.

    I bought my first IBM compatible, a portable with dual 5.25" floppy drives, in 1986. With MS-DOS it was a very reliable setup. It's been downhill every since.


    Anyways, the sequence you listed should have worked, but maybe there was an error message you missed. Looks like it should work for you now.

    Code
    root@N5550:~# btrfs scrub status /dev/sdf
    
    scrub status for 3c116019-c3d4-46f4-856c-cd624761c77e
    
           scrub started at Mon Nov  8 07:54:50 2021 and finished after 06:48:19
           total bytes scrubbed: 2.38TiB with 0 errors

    The above is a complete listing, but the cron.monthly and cron.weekly are the applicable ones.

    Quote

    - 3) Then you would install it to another USB drive -> But I do not even reach the point where the installer lets me choose any target drive.

    I have personally experienced frustration with random errors trying to install an OS from a USB drive to the point where I tried it from a different USB drive and had success. The failed drive had successfully had the image written to it and reported no errors on the check, but failed randomly when trying to use it.


    If you have not already done so, it might be worthwhile putting the install image on a different drive.

    Code
    # >>> [openmediavault]
    
    /dev/disk/by-label/BTRFS1               /srv/dev-disk-by-label-BTRFS1   btrfs   defaults,nofail,comp
    ress=zstd       0 2

    This is from OMV5 /etc/stab


    What if you add a similar line before the

    # >>> [openmediavault]


    using your parameters. This will not solve your OMV6 issue, but should get you a working setup. With btrfs multidisk setups you only need to reference one drive of the set (and while I have always used the lowest letter it is supposed to work with any letter).

    Quote

    So background scub is enabled by default? But when initiated manually (or via cronjob) the -B option must be removed?

    The command line parameters can be found here:

    https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub


    When I run the command manually, which is only after I do something with the btrfs settings, I don't use the B option, and then I use the status command with watch.


    In any case, the referenced maintenance scripts insert the scrub into cron.monthly and the heart of it contains:

    Code
    run_task btrfs scrub start -Bd $ioprio $readonly "$MNT"

    -Bd keeps the task running in the cron job (matches what you have) and prints out the stats at the end, which is what you want. The $ioprio sets the -c and -n flags based on the configuration settings, and $readonly sets the readonly flag (which I don't see in the manual so have no idea if it does anything other than what its name implies). If you configure for "auto" the the command is run for each btrfs disk found (the $MNT parameter).


    The default configuration does a weekly balance and a monthly balance/scrub .


    I don't use defrag (and it's not enabled by default) or trim. You definitely don't need snapshotting.