-
Notifications
You must be signed in to change notification settings - Fork 40
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
ZXFER Failed to retrieve datasets from the destination #60
Comments
This most likely means that zxfer is failing to find the It should catch that and fail, but maybe it is not. |
Thank you Allan, I will double check that. I appreciate the response. |
Hi Allen, I just tested a few additional things based on what you suggested.
output: logged into the remote system at the command line: output: same command run on the local system to the remote via ssh output: same command run on the local system Basically, I made sure the zfs program was found in the correct place so zxfer would find it.
a. When running the command string from the shell command-line(interactively) as seen below, ZXFER is able to
At the end of the run it begins to pull the snapshots as it normally should. B. When running the same command string from a shell script and launched via cron(batch), the results Variable information NOT found:
Then the script continues and ends with the same message listed below:
Note: I thought about hard coding the value in the ZXFER script: LZFS=/usr/sbin/zfs However, there must be a better option as I’m concerned about breaking something else. Thanks again for your help! |
Hi Allan, Just a quick update. I went ahead and hard coded the path for "zfs" in the zxfer script, and it is now #LZFS=$( which zfs ) Additionally tried to use back tics but that failed as well. both failed. So looks like only hardcoding the path seems to work. Additional info: Local system: Ubuntu 20.04 Thanks |
Hello,
Looking for some suggestions or ideas on a problem I've encountered using zxfer.
I have an existing system with an existing zfs pool that I'm trying to copy over to another system.
For some reason, I am able to run the zxfer command interactively with no issues; however, when I attempt to run the same command from a bash script, it fails.
Below is the actual output and messages:
when running the following command from within a shell script, it returns the following error messages:
/usr/local/sbin/zxfer -F -k -P -R remotepool -O root@remotesystem localpool
/usr/local/sbin/zxfer: 681: list: not found
Failed to retrieve datasets from the destination
when starting the same command interactively a shell terminal window at the command line, it seems to work:
In fact, the command starts, it pulls the snapshots across from the remotesystem ; which I can see on the local system using "zfs list -t snap" command.
/usr/local/sbin/zxfer -F -k -P -R remotepool -O root@remotesystem localpool
Has anyone seen or experienced this issue before that can share how they fixed it and or anyone have any suggestions.
I would appreciate it.
Thanks!
The text was updated successfully, but these errors were encountered: