Skip to content
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

add check-for-remote parameter #184

Open
crispyduck00 opened this issue Mar 17, 2022 · 1 comment
Open

add check-for-remote parameter #184

crispyduck00 opened this issue Mar 17, 2022 · 1 comment
Assignees

Comments

@crispyduck00
Copy link

As mentioned in another ticket, it would be a useful feature (at least for me) to do nothing and exit instead of doing local snapshots when remotehost not available or remotemaster.
I think to not break things for others this needs to be added via a parameter or a own value in the config file.

Maybe a good place to add it is after the local master check:

		check=`$ZFSGETLVAL ${ZREPTAG}:master $srcfs`
		if [[ "$check" != "yes" ]] ; then
			zrep_errquit $srcfs not master. Cannot sync
		fi

I am doing it for me actually only in zrep_sync, to not create infinite snapshots when remote host is not available or split brain is detected.

@ppbrown ppbrown self-assigned this Mar 17, 2022
@ppbrown
Copy link
Member

ppbrown commented Mar 17, 2022

Note to self: flag on
ZREP_REQUIRE_REMOTE
?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants