Conversation

Notices

  1. I've been trying to copy a single 4TiB ZFS dataset between 2 machines for > 1week now. 
    On dedicated 1Gb/s network with jumbo frames it takes ~ 20 hours over SSH ... however SSH keeps dying after ~ 12 hours with "Broken Pipe" :-(

    Sunday, 04-Feb-18 12:51:54 UTC from indy.im
    1. `zfs send tank/foo@then | ssh user@backup zfs recv tank/foo` fails
      `zfs send tank/foo@then > foo.zfs; scp zoo.zfs user@backup:/tank/` fails

      Sunday, 04-Feb-18 13:00:43 UTC from indy.im
      1. Anyway, I had enough space on the local box to dump the stream to file; and have copied it remote using netcat
        `zfs send tank/foo@then > foo.zfs` 
        `cat foo.zfs  | nc backup 9000`

        Sunday, 04-Feb-18 13:04:39 UTC from indy.im
        1. Now to see if the stream will import at the other end.

          Sunday, 04-Feb-18 13:05:12 UTC from indy.im
          1. I guess 4TiB will not seem like very much data to some people. But it's like 3,000,000 floppy disks, and it's a single file. - remember how much of a chore copying floppy disks was ?  In 20 years, it'll be like "OMFG remember when you thought copying 4TiB was hard,  lol"

            Sunday, 04-Feb-18 13:08:28 UTC from indy.im
            1. https://indy.im/attachment/1110 4TiB data copying

              Sunday, 04-Feb-18 13:13:06 UTC from indy.im
          2. It's imported!  woot... 
            now can send incremental snapshots; just the daily diffs.  Life gets easier! 

            Monday, 05-Feb-18 19:03:22 UTC from indy.im
        2. @boneidol I'd do "md3sum foo.zfs" on both sides, just to make sure. Sometimes systems with long uptimes get a bit weird.

          Sunday, 04-Feb-18 13:22:15 UTC from quitter.se
          1. @mcscx what is md3sum ? I can't find it in FreeBSD ?  I think I will do a md5 of the files though.  They sizes are the same, it's just everything takes *so* *long*!

            Sunday, 04-Feb-18 13:32:30 UTC from indy.im
            1. @boneidol s/md3sum/md5sum/ :-) I'd carry on with the import but keep the 2 file and do the md5sum over night. If possible.

              Sunday, 04-Feb-18 13:36:57 UTC from quitter.se
              1. @boneidol Unless the zfs import thing itself has some built-in integrity check.

                Sunday, 04-Feb-18 13:39:58 UTC from quitter.se
                1. @mcscx everything in ZFS is checksummed.  https://blogs.oracle.com/bonwick/zfs-end-to-end-data-integrity but if it fails to import, at least I might be able to work out where the failure happened.

                  Sunday, 04-Feb-18 13:51:32 UTC from indy.im