Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2020 18:18:49 +1030
From:      "Daniel O'Connor" <darius@dons.net.au>
To:        "O'Connor, Daniel via freebsd-hackers" <freebsd-hackers@freebsd.org>
Subject:   zfs send from an ancient system
Message-ID:  <308513D0-0CA6-462F-B3C6-03BF5A617081@dons.net.au>

index | next in thread | raw e-mail

Hi everyone,
I am trying to migrate an ancient (FreeBSD 8.2!) ZFS system to something newer (12.2). I was hoping to be able to zfs send | zfs recv, however I get this..
root@newsystem:~ # ssh root@oldsystem zfs send tank/www@20201201-0902 | zfs recv -d tank/Old
cannot receive new filesystem stream: invalid backup stream

I have also tried zfs send to a file, copying over and verifying they are identical, but I get the same result.

The new system's zstreamdump seems happy with the stream:
[midget 18:14] ~ >zcat /tmp/test.gz| zstreamdump
BEGIN record
        hdrtype = 1
        features = 0
        magic = 2f5bacbac
        creation_time = 5fc49191
        type = 2
        flags = 0x0
        toguid = 54852dc9f8234af4
        fromguid = 0
        toname = www@20201201-0902
END checksum = 100209f0a087fed/dd40d3fa795d846e/ae2049c273df5121/f012e76312cbb2a3
SUMMARY:
        Total DRR_BEGIN records = 1
        Total DRR_END records = 1
        Total DRR_OBJECT records = 12961
        Total DRR_FREEOBJECTS records = 2820
        Total DRR_WRITE records = 13565
        Total DRR_WRITE_BYREF records = 0
        Total DRR_WRITE_EMBEDDED records = 0
        Total DRR_FREE records = 28490
        Total DRR_SPILL records = 0
        Total records = 57838
        Total write size = 148137472 (0x8d46600)
        Total stream length = 169604120 (0xa1bf418)

Is there some debugging that can be enabled to get some idea about what's going wrong? 'dmesg' doesn't show anything on the sender or receiver side.

I am sure I have done this in the past from this machine, unfortunately I don't have the receiving machine any more as it got repurposed.

Thanks.

PS I am well aware of the warning in the man page about send format.

--
Daniel O'Connor
"The nice thing about standards is that there
are so many of them to choose from."
 -- Andrew Tanenbaum



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?308513D0-0CA6-462F-B3C6-03BF5A617081>