Zfs send & receive problem

  • I can't make ZFS send/ receive work. I want to send a snapshot of an existing pool to a new pool on the same machine.


    I have an existing working install of OMV 5.5.17-2 with kernel 5.3 18.3-pve and the ZFS plugin. Everything is up to date. I have snapshot of my pool and want to send it to my new pool but the send/receive command says

    Code
    sudo zfs send -Rv tank2/media/music@201124 | zfs receive -Fv tank/media/music
    bash: zfs: command not found

    However 'sudo zfs get all tank' does work: 'zfs' is found and the command returns the properties of 'tank'. So why does send/ receive fail?

  • sudo only applies to the first zfs command before the pipe. You need to add sudo to the second zfs command.

    omv 5.5.23 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.4.5
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!