ZnapZend plugin for unRAID


steini84

39 posts in this topic Last Reply

Recommended Posts

Hello!

 

I've installed the plugin for someone else, now on his unraid 6.3 we dont see any snapshots that are created by znapzend.

Reinstalling did not help.

 

*** backup plan: HDD ***
         enabled = on
         mbuffer = off
    mbuffer_size = 1G
   post_znap_cmd = off
    pre_znap_cmd = off
       recursive = on
             src = HDD
        src_plan = 24hours=>2hours,7days=>1day,30days=>7days,90days=>30days
        tsformat = %Y-%m-%d-%H%M%S
      zend_delay = 0

*** backup plan: NVME ***
           dst_0 = HDD/Backup/NVME
      dst_0_plan = 1day=>6hours
         enabled = on
         mbuffer = off
    mbuffer_size = 1G
   post_znap_cmd = off
    pre_znap_cmd = off
       recursive = on
             src = NVME
        src_plan = 24hours=>2hours,7days=>1day,30days=>7days,90days=>30days
        tsformat = %Y-%m-%d-%H%M%S
      zend_delay = 0

 

I've executed after creating:

pkill -HUP znapzend

Please advise.

Link to post
Hello!   I've installed the plugin for someone else, now on his unraid 6.3 we dont see any snapshots that are created by znapzend. Reinstalling did not help.  

 

 

 

 

*** backup plan: HDD ***        enabled = on        mbuffer = off   mbuffer_size = 1G  post_znap_cmd = off   pre_znap_cmd = off      recursive = on            src = HDD       src_plan = 24hours=>2hours,7days=>1day,30days=>7days,90days=>30days       tsformat = %Y-%m-%d-%H%M%S     zend_delay = 0*** backup plan: NVME ***          dst_0 = HDD/Backup/NVME     dst_0_plan = 1day=>6hours        enabled = on        mbuffer = off   mbuffer_size = 1G  post_znap_cmd = off   pre_znap_cmd = off      recursive = on            src = NVME       src_plan = 24hours=>2hours,7days=>1day,30days=>7days,90days=>30days       tsformat = %Y-%m-%d-%H%M%S     zend_delay = 0

 

I've executed after creating:

 

 

 

 

 

pkill -HUP znapzend

Please advise.

 

 

 

 

 

Znapzend runs on an interval, in your case every 2 hours for the 24 hour retention snapshots. You can make it run right away with the command    

 

 

znapzend --runonce=HDD  

 

See more @ https://github.com/oetiker/znapzend/blob/master/README.md

 

"If you don't want to wait for the scheduler to actually schedule work, you can also force immediate action by calling

 

znapzend --noaction --debug --runonce=src_dataset

 

"

 

 

Sent from my iPhone using Tapatalk

Link to post

Hello stein, well problem is i've setup those snapshot rules 3 days ago, nothing is added to: zfs list -r -t snapshot

I'll see if run once will trigger the automated backups to start.

 

Thank you.

Link to post
  • 7 months later...

Hi @all

i am new on unraid and want to setup ZFS autosnaps with znapzend

 

on my v6.8.3 i get after installed package always the issue:

 /usr/bin/perl: error while loading shared libraries: libnsl.so.2: cannot open shared object file: No such file or directory

 

what can i do to fix this ?

 

 

thanks alot

br faxour

Link to post

@steini84 Had a quick look by running it manually.  I'm getting an out of space error, but actually there's a ton of space on the device, 47G actually - see below.

 

I'll try a few things to see if I can start it.  Also, the log has no details since the last successful backup, which was 21 December.

 

znapzend --logto=/var/log/znapzend.log --daemonize

Warning: unable to close filehandle GEN0 properly: No space left on device at /opt/znapzend-0.20.0/lib/ZnapZend.pm line 827.

znapzend (5197) is running in the background now.

Edited by Marshalleq
Link to post

I may have found the problem, it appears the upgrade to RC2 or RC1 renamed the disks and left the USB boot drive with the name of a pre-existing raid array disk i.e. the usb disk drive is now named disk1.  Unfortunately unraid decided to put a backup share therefore, onto the usb drive and periodically an application would try to send data there filling up the USB drive.  Why it was empty when I looked I don't know, so there's some doubt in my mind, but this looks like the likely culprit.

Edit - Nope this is incorrect, I was confusing between two USB devices, one that is now a dummy array and another that is the boot device.  Geez, sometimes you just need more coffee.  But, for the first time now for some reason znapzend started working again so don't know why that is yet.

Edited by Marshalleq
Link to post
  • 2 weeks later...

So just checked in on it today and it's stopped again.  Comparing the last snapshot to the last reboot I can see that they are indeed correlated.  So this is frustrating.  @steini84 I have attached diagnostics which should include any startup errors and when it did eventually start manually (just now).  Will have a look through them again too and post back.  Perhaps the auto start 'touch' method outlined at the beginning of this post no longer works?

 

Of note, this is happening on both my unraid systems.

skywalker-diagnostics-20210106-1501.zip

Edited by Marshalleq
Link to post

Did some testing and znapzend is definitely starting at boot, so something is stopping it at some later point, or perhaps it's intermittently starting at boot on both my servers.  So looks like logs will be key.

 

Edited by Marshalleq
Link to post
  • 3 weeks later...

I actually forgot all about this - have been away for work.  My last post when it was working was January 7.  I see it's been working well until January 18, upon which it stopped again (that's 7 days ago).

 

@steini84 Is there some way to turn on extra logging to a file?

 

Thanks.

Link to post

Yeah this should do the trick: 

znapzend --debug --logto=/var/log/znapzend.log --daemonize

 

I also want to let you know that I was using znapsend and ran in to some problems, for example after changing datasets. I moved over to Sanoid/Syncoid and have not had a single problem since. 

 

Not saying that one solution is better than the other, but that was my experience and I would reccomend that you check it out :)

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.