ezra Posted May 5, 2020 Share Posted May 5, 2020 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. Quote Link to comment
steini84 Posted May 5, 2020 Author Share Posted May 5, 2020 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 Quote Link to comment
ezra Posted May 6, 2020 Share Posted May 6, 2020 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. Quote Link to comment
steini84 Posted May 6, 2020 Author Share Posted May 6, 2020 Have you ran the program and made it auto start on boot? See instruction in the first post of this thread. Sent from my iPhone using Tapatalk Quote Link to comment
ezra Posted May 6, 2020 Share Posted May 6, 2020 Oh my god, sorry for wasting your time... Totally overlooked that. 1 Quote Link to comment
Marshalleq Posted December 22, 2020 Share Posted December 22, 2020 I've got the auto boot on file 'touched' into the appropriate directory, but it's not auto booting. Could be an RC1 thing I guess? Anyone else got this issue? Quote Link to comment
steini84 Posted December 22, 2020 Author Share Posted December 22, 2020 Im still on 6.8.3 but will see whats going on on my build server tomorrow Sent from my iPhone using Tapatalk Quote Link to comment
faxour Posted December 25, 2020 Share Posted December 25, 2020 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 Quote Link to comment
Marshalleq Posted December 26, 2020 Share Posted December 26, 2020 (edited) @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 December 26, 2020 by Marshalleq Quote Link to comment
Marshalleq Posted December 27, 2020 Share Posted December 27, 2020 (edited) 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 December 27, 2020 by Marshalleq Quote Link to comment
Marshalleq Posted January 6, 2021 Share Posted January 6, 2021 (edited) 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 January 6, 2021 by Marshalleq Quote Link to comment
Marshalleq Posted January 7, 2021 Share Posted January 7, 2021 (edited) 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 January 7, 2021 by Marshalleq Quote Link to comment
Marshalleq Posted January 25, 2021 Share Posted January 25, 2021 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. Quote Link to comment
steini84 Posted January 25, 2021 Author Share Posted January 25, 2021 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 Quote Link to comment
ehcorn Posted December 30, 2021 Share Posted December 30, 2021 I'm posting a problem and solution, I found this exact error in a few other places but not here: /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib64/perl5/CORE/libperl.so) is what I get when I try running any znapzend command, to fix this I had to install the nerd pack then enable perl. Maybe obvious to others but it took me a bit to figure out. 2 Quote Link to comment
gyto6 Posted April 13, 2022 Share Posted April 13, 2022 Hi @steini84, I just took my hands on this plugin and it's amazing! Thanks again for getting it available in Unraid. 1 Quote Link to comment
steini84 Posted April 13, 2022 Author Share Posted April 13, 2022 Hi @steini84, I just took my hands on this plugin and it's amazing! Thanks again for getting it available in Unraid. [emoji6]Just to put it out there. I have personally moved to sanoid/syncoidSent from my iPhone using Tapatalk Quote Link to comment
gyto6 Posted April 13, 2022 Share Posted April 13, 2022 12 minutes ago, steini84 said: Just to put it out there. I have personally moved to sanoid/syncoid Sent from my iPhone using Tapatalk Good to know. 😆 For now, I'm having to much trouble with Sanoid, so I'm getting my hands with Znapzend to understand where I might have been wrong with Sanoid which seems indeed a bit more powerfull. Quote Link to comment
segator Posted July 2, 2022 Share Posted July 2, 2022 (edited) Seems not working on latest unraidOS 6.10.3 znapzend --debug --logto=/var/log/znapzend.log --daemonize /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/bin/perl) /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib64/perl5/CORE/libperl.so) Edited July 2, 2022 by segator Quote Link to comment
segator Posted July 2, 2022 Share Posted July 2, 2022 37 minutes ago, segator said: Seems not working on latest unraidOS 6.10.3 znapzend --debug --logto=/var/log/znapzend.log --daemonize /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/bin/perl) /usr/bin/perl: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/lib64/perl5/CORE/libperl.so) Fix is install perl and reboot!!, installing perl only was not enough for me Quote Link to comment
JJJonesJr33 Posted September 17, 2022 Share Posted September 17, 2022 (edited) To get znapzend to work on 6.10.3 this is the steps I had to take. I have confirmed this methods on 5 different Unraid installs of version 6.10.3 Have "Dev Pack", "Nerd Pack", "ZFS", "ZFS-companion", "ZFS Master", and "ZnapZend" installed through the apps. Next go to "Dev Pack" and install the following: gc-8.0.4-x86_64-1.txz gcc-9.2.0-x86_64-4.txz gcc-gplus-9.2.0-x86_64-4.txz glibc-2.30-x86_64-1.txz guile-2.2.3-x86_64-2.txz make-4.2.1-x86_64-3.txz Next go to "Nerd Pack" and install the following: perl-5.32.0-x86_64-1.txz ^ Note to everyone, it will say perl did not installed. Don't worry the script we run next fixes the issue and installs perl, having it set to be turned on in Nerd Pack is just an easy way to confirm it is downloaded and installed once finished. Now we are going to open up terminal and run the following commands: wget https://github.com/zfsonlinux/zfs-auto-snapshot/archive/upstream/1.2.4.tar.gz tar -xzf 1.2.4.tar.gz cd zfs-auto-snapshot-upstream-1.2.4 make install Reboot and once rebooted open terminal and check to see if install is working znapzendzetup list will do the trick. To create a auto snapshout a basic command that I use is znapzendzetup create --recursive SRC '7d=>1h,30d=>4h,90d=>1d' storage-array-1/Music just replace "storage-array-1/Music" with your dataset. Reboot once last time now that all your snapshots are setup, and your done! P.S for those who liked having the "Dynamix System Temp" this also fixes it's issue as now perl is installed and working. Edited September 17, 2022 by JJJonesJr33 Forgot a command at the end Quote Link to comment
Jclendineng Posted March 17, 2023 Share Posted March 17, 2023 Does this work for anyone on 6.12? I got it to run once after setup but it doesn’t run automatically, I set the service to start at boot and have a from for every hour. Quote Link to comment
Marshalleq Posted March 17, 2023 Share Posted March 17, 2023 4 hours ago, Jclendineng said: Does this work for anyone on 6.12? I got it to run once after setup but it doesn’t run automatically, I set the service to start at boot and have a from for every hour. Thanks for pointing this out, no mine isn't working either, timestamps stopped at time of upgrade. So you're saying if I go an start it, it will then just snap everything every hour? That's weird. Quote Link to comment
Jclendineng Posted March 17, 2023 Share Posted March 17, 2023 9 minutes ago, Marshalleq said: Thanks for pointing this out, no mine isn't working either, timestamps stopped at time of upgrade. So you're saying if I go an start it, it will then just snap everything every hour? That's weird. No it will run once but then not run again Quote Link to comment
JJJonesJr33 Posted March 17, 2023 Share Posted March 17, 2023 28 minutes ago, Marshalleq said: Thanks for pointing this out, no mine isn't working either, timestamps stopped at time of upgrade. So you're saying if I go an start it, it will then just snap everything every hour? That's weird. 18 minutes ago, Jclendineng said: No it will run once but then not run again You will need to run ``` znapzend --daemonize ``` ``` touch /boot/config/plugins/unRAID6-ZnapZend/auto_boot_on ``` Then reboot. That should fix it. To test run the ``` znapzend --daemonize ``` command again after reboot and it should tell you it’s already running. Quote Link to comment
Recommended Posts
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.