On Fri, 1 Jun 2007, Ben Bressler wrote:
> When I do the zfs send | ssh zfs recv part, the file system (folder) is
> getting created, but none of the data that I have in my snapshot is
> sent. I can browse on the source machine to view the snapshot data
> pool/.zfs/snapshot/snap-name and I see the data.
Could you provide some more details? What''s the command line
you''re using
to perform the send & receive? Are you waiting for the receive operation
to complete? Are any error messages being reported (either in your shell
or on the console)?
> Am I missing something to make it copy all of the data?
Hard to say without more information. Here''s an example I just did now
to
show how it''s done. The machine''s name is purple-211, and you
can see
that I''m actually ssh-ing to itself. This is functionally identical to
what you described above.
bash-3.00# zfs create tank/myfs
bash-3.00# echo ''this is a test file'' >
/tank/myfs/testfile.txt
bash-3.00# ls -l /tank/myfs
total 1
-rw-r--r-- 1 root root 20 Jun 4 07:44 testfile.txt
bash-3.00# cat /tank/myfs/testfile.txt
this is a test file
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 136K 206M 19K /tank
tank/myfs 19.5K 206M 19.5K /tank/myfs
bash-3.00# zfs snapshot tank/myfs at snap
bash-3.00# zfs send tank/myfs at snap | ssh root at purple-211 zfs recv
tank/altfs
Password:
bash-3.00# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 170K 206M 21K /tank
tank/altfs 19.5K 206M 19.5K /tank/altfs
tank/altfs at snap 0 - 19.5K -
tank/myfs 19.5K 206M 19.5K /tank/myfs
tank/myfs at snap 0 - 19.5K -
bash-3.00# ls -l /tank/altfs
total 2
-rw-r--r-- 1 root root 20 Jun 4 07:44 testfile.txt
bash-3.00# cat /tank/altfs/testfile.txt
this is a test file
bash-3.00#
Regards,
markm