New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble with syncoid error on line 787 #143
Comments
Appears on issue 2 above it is not just over SSH. Here is another error but local : could not find any snapshots to destroy; check snapshot names. |
First things first: if you're getting an error 256, I believe you're using an older version of Syncoid. Update that first, and then let's try again, please. Also, when pasting in errors, please paste the actual command being run as well as the error message. |
For the error 256, I cloned maybe about a week ago, a tad longer. According to VERSION on both boxes, both are 1.4.16? I'll check to see if there is a recent update. On the other, the command I am using is one of these two : /opt/apps/sanoid/syncoid --recursive rpool0 rpool1/backup/vserver2 This is run from vserver2, first line intending to sync to a second pool locally, second intending to backup same datasets to a secondary pool on the opposite box. Thanks, UPDATE : I just updated both, same version yet but sanoid.spec file and README.md file both updated on both boxes. FWIW. |
I have single script initially takes snapshots with sanoid --cron after that send taken snapshots to a remote host with syncoid --no-sync-snap but I'm getting this error message CRIT: --no-sync-snap is set, and getnewestsnapshot() could not find any snapshots on source! #!/bin/bash DATE= echo "$DATE - Creating Snapshots on rdsski01 > $LOG_FILE echo "*** Replicating ski dataset ***" >> $LOG_FILE 2>&1 cat $LOG_FILE | mail -s "Replication:INFO messages at rdsski01" root |
@yilmazn please post the output of "sanoid -r --cron --debug" |
@phreaker0 phreaker0 @jimsalterjrs [root@rdsski01 ~]# sanoid -r --cron --debug Filesystem pool/ski has: INFO: taking snapshots... Warning! NEWEST SNAPSHOT: syncoid_rdsski01.cwru.edu_2018-09-03:13:27:30 |
Interesting, so apparently the snapshot taking is not working. Can you manually run "zfs snapshot pool/ski@autosnap_2018-09-03_17:17:04_daily" and verify it was taken with "zfs list -t snapshot pool/ski"? |
@phreaker0 [root@rdsski01 zfs_scripts]# zfs list -t snapshot pool/ski [root@rdsski01 zfs_scripts]# zfs list -t snapshot pool/ski@autosnap_2018-09-03_17:17:04_daily |
sry, the last command missed the "-r" flag, but you figured it out. This is weird, sanoid doesn't report any error on taking the snapshots but they aren't there? Which sanoid version are you using? |
@phreaker0 I'm using the latest version |
:-D just noticed you used "-r" option for sanoid, which probably translates to "--readonly" which explains the behaviour. Remove the flag and it will take snapshots :-) |
I guess this is resolved? If not feel free to reopen. |
I have 2 servers in this little lab. I run KVM on both servers, have raid-z (3 x SSD) and mirror (2 x 4TB) on each. I have each configured with sanoid to create snapshots as well.
My intended use case is to syncoid all of rpool0 on vserver1 to rpool1/backup/vserver1 on both boxes, and likewise all of rpool0 on vserver2 to rpool1/backup/vserver2 on both boxes.
Two issues with my little plan thus far.
**_could not find any snapshots to destroy; check snapshot names.
CRITICAL ERROR: Target rpool1/backup/vserver1/pool0 exists but has no snapshots matching with rpool0/pool0!
Replication to target would require destroying existing
target. Cowardly refusing to destroy your existing target._**
I figured out that this is because rpool0/pool0 are not included in sanoid, but subfolders are. This is where I create folders for the virtual machines and store the qcow2 files. This behaviour also happens on /var/tmp, which I am not including in sanoid either. For now, I just wrote a little bash script to syncoid just the folders that have snapshots. The error went away, but optimally I would like to just use recursive?
WARNING: /usr/bin/ssh -c chacha20-poly1305@openssh.com,arcfour -p 11022 -S /tmp/syncoid-root-root@10.4.8.12-1504656237 root@10.4.8.12 " /sbin/zfs destroy rpool1/backup/vserver1/var@syncoid_vserver1_2017-09-05:19:03:42; /sbin/zfs destroy rpool1/backup/vserver1/var@syncoid_vserver1_2017-09-05:18:57:44" failed: 256 at /opt/apps/sanoid/syncoid line 787.
I probably get 6 of them every time I run the script. I have no idea what is causing that.
Any help would be most appreciated.
Thanks,
The text was updated successfully, but these errors were encountered: