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?

    omv 7.0.4-2 sandworm | 64 bit | Linux Linux 6.5.13-3-pve proxmox kernel | AMD Athlon II X2 245e Processor

    OMV-omvextrasorg 7.0 | OMV-compose 7.1.2 | OMV-fail2ban 7.0.1 | OMV-kernel 7.0.3 | OMV-zfs 7.0.5

  • Maybe a syntax problem?

    OMV 3.0.100 (Gray style)

    ASRock Rack C2550D4I C0-stepping - 16GB ECC - 6x WD RED 3TB (ZFS 2x3 Striped RaidZ1) - Fractal Design Node 304 -

    3x WD80EMAZ Snapraid / MergerFS-pool via eSATA - 4-Bay ICYCube MB561U3S-4S with fan-mod

    • Offizieller Beitrag

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

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • @ryecoaaron. Thanks. I thought that I had tried adding sudo after the pipe and that it didn't help but I just tried again and of course it worked… Thanks again.

    omv 7.0.4-2 sandworm | 64 bit | Linux Linux 6.5.13-3-pve proxmox kernel | AMD Athlon II X2 245e Processor

    OMV-omvextrasorg 7.0 | OMV-compose 7.1.2 | OMV-fail2ban 7.0.1 | OMV-kernel 7.0.3 | OMV-zfs 7.0.5

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!