Beiträge von ftriscari

    Hi there,


    I just set up timeshift in my two openmediavault machines. I just wanted to describe my process (almost a mini-guide) in case somebody finds it useful. Any comments are welcome!!


    Timeshift is a well known software to run a back-up of a running system, with the ability to create snapshots.

    On normal desktop machines the program has a very nice and functional GUI for both set-up and restore process.

    For an headless system the configuration needs to be performed via CLI, but this is really easy. Similarly, it is possible to revert to a previous snapshot via CLI or using a live distro (e.g. Systemrescue) in case the main system is no longer functional.


    1) First thing we need to install timeshift. From terminal run

    Code
    sudo apt-get install timeshift

    next we need to write the configuration file


    Code
    sudo nano /etc/timeshift/timeshift.json

    copy and edit the following text in the configuration file:



    the content of the file is self explanatory and it closely mimics the GUI parameters that are filled in during the set-up process on a desktop machine.


    pay attention to the following

    • enter the UUID of the disk that will save the backup files (not the main disk). Saving the files in a disk that is not the main system is highly recommended
    • in the exclude section add the home directory for each user in the system
    • the include/exclude syntax requires you to add first the directories to include and then the directories to exclude, in this order, see my example with the /srv directory . The other way round fails on my system
    • look up the difference between *, ** and ***


    Once all this is taken care of, run the following command to make the first snapshot


    Code
    sudo timeshift --check

    the command will create the first snapshot and it will create a new cron job /etc/cron.d/timeshift-hourly


    every hour the system will run the check command and create snapshots based on the json file


    that's it!


    to restore the system to a previous snapshot run


    Code
    sudo timeshift --restore

    and the system will interactively guide you during the task. Alternatively fire up Systemrescue, timeshift is included in the base packages.


    as usual:

    Code
    sudo timeshift man

    is your best friend.


    Enjoy!


    FT

    Essentially that's my backup strategy.

    I set up the usb backup plugin with a number of shares as source and 3 external hard drives as target.

    At regular intervals I plug them in and wait for the backup to complete.

    Hi chente,


    yes, the shares were created with the method you just described.


    I think I just found a workaround which may help identifying the root cause.


    I enabled the recycle bin for the shares in the pool. Now it works perfectly again and if I delete the content of the bin form OMV GUI no error messages (so I set it up with an automatic deletion after 24h)


    I can only guess that the delete command passed by the android client is somehow different from the delete command from a linux computer.

    I have no idea how these could be different but it could be a peculiar configuration of the android client (BTW I tried other 3 apps with the same results but in general the APIs could be the same so....go figure!)


    I hope this thread can help other people if they have the same issues (@ Birdybird)

    ok, some more interesting results.

    I created two files, both using a SMB client. The first one from an ANDROID phone and the second from my Laptop running Linux accessing the SMB share via Dolphin (I called them Android and Laptop, very original, I know :P ).


    accessing the NAS via CLI I run a STAT command:


    Hence both files are created with the same permissions and ownership


    Now, if the files are deleted from the laptop SMB client, or via CLI, no issues. If the files are deleted from the phone we have the panic message.



    Next I created a new shared folder outside the mergerfs pool on the system drive.

    Same exercise, the two files are created with the same permissions however the problem here is not replicated and everything works as expected.


    To me this means that the problem exists on SMB shares created in the mergerfs pool and something between the SMB client, the share and mergerfs is not working right.....


    any ideas?


    FT

    I need to investigate this a little bit more. The solutions proposed so far do not work so I want to check if there's something wrong with my configuration. During the weekend I should have some time to try.


    Just to emphasize that in my case the problem happened as I deployed mergerfs.

    Before this, Samba was working just fine from windows/linux/android.


    As I said something may be wrong with my file permissions and ownership.. I need to dig a little deeper.

    unfortunately it didn't work

    in the extra options I used the "force user =" option from the SAMBA manual but the behaviour is still the same.


    I also tried the options to inherit permissions and ACLs, also that didn't work

    I tried forcing the protocol to SMB3 just in case but no success either

    ...just an update....


    it looks like a permission issues. I update/checked the permissions of my user and the problem seems to have been resolved if I access the SAMBA share from my desktop (KDE/Dolphin)


    if I access the same share from my phone - same account-, upon deleting a file I get the same error. so it looks like I managed to fix it from a desktop access but not from a phone access...

    ?(

    Hi All,


    Today I used mergerfs to create a pool with two drives, and I created new shares pointing to folders which were already existing.

    Everything works quite well except that I receive a constant stream of emails like the one below

    Code
    The Samba 'panic action' script, /usr/share/samba/panic-action,
    was called for PID 48241 ().
    
    This means there was a problem with the program, such as a segfault.
    However, the executable could not be found for process 48241.
    It may have died unexpectedly, or you may not have permission to debug
    the process.


    This only happens is a file is deleted via SAMBA.


    I used the reset permissions plugin to ensure that the share are 2775 and all existing ACLs are deleted.

    unfortunately no success, I'm still receiving the same email.


    To me it sounds like a SAMBA vs mergerfs permissions fight but I can't identify the cause.

    Any help would be much appreciated. :)


    Regards,

    FT

    Hi All,


    I'm looking into a number of options for data archival and long term backup.


    I already have a reasonably good backup system which uses multiple drives (internal and external) for the really important stuff (documents and family photos).


    I'm considering a long term archival solution which will keep about 3TB of data safe for the next decade or two, somewhere off-site.


    I looked into MDisks and Blu Rays but I'm not sure if this is the right solution for me

    .

    Used external SAS tape drives are becoming really cheap (LTO4 approx 100€/$/£, LTO5 approx 200€/$/£)


    Any thoughts or recommendation? I know that many of you are IT professionals, any suggestion would be appreciated. :)


    thank you!


    FT

    Ah!!


    it worked thank you. I'm using pihole and this was the issue.


    it's strange as I didn't need to specify the DNS address before the system upgrade to OMV7....I believe that my router is diverting all DNS requests to the pihole IP address.


    anyway...problem solved thank you again


    FT

    thank you for the quick reply!



    and


    Dear All,


    I successfully update from OMV 6 to 7 (thank you for all the hard work to make it so easy!)


    After the update I'm unable to run updates or to add new plugins.


    Running the apt-get update from terminal, I see a lot of errors which indicate that the system is unable to resolve or fetch files from the repositories.


    I tried OMV-firstaid but it shows the same errors.


    thank you in advance for your help!


    FT

    Hi

    I’d like to mount a samba share – located in my NAS box – on
    my laptop running linux mint.


    I tried editing FSTAB a couple of times but I can only
    access the share in read mode.


    What’s the correct syntax to use to gain R/W access?



    Thanks


    FT