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>

next in thread | raw e-mail | index | archive | help
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 =3D 1
        features =3D 0
        magic =3D 2f5bacbac
        creation_time =3D 5fc49191
        type =3D 2
        flags =3D 0x0
        toguid =3D 54852dc9f8234af4
        fromguid =3D 0
        toname =3D www@20201201-0902
END checksum =3D =
100209f0a087fed/dd40d3fa795d846e/ae2049c273df5121/f012e76312cbb2a3
SUMMARY:
        Total DRR_BEGIN records =3D 1
        Total DRR_END records =3D 1
        Total DRR_OBJECT records =3D 12961
        Total DRR_FREEOBJECTS records =3D 2820
        Total DRR_WRITE records =3D 13565
        Total DRR_WRITE_BYREF records =3D 0
        Total DRR_WRITE_EMBEDDED records =3D 0
        Total DRR_FREE records =3D 28490
        Total DRR_SPILL records =3D 0
        Total records =3D 57838
        Total write size =3D 148137472 (0x8d46600)
        Total stream length =3D 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




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