I followed the formula in zfs(1M) to replicate a zfs filesytem remotely.
The initial transfer works as I expected (and as documented).  The
filesystems were created on the remote side and the data transferred.
The man page is really difficult to interpret as to whether the data
will be in the filesystem or only in the snapshot, but anyway it did
what I wanted.

Then I added a file to one of the filesystems and took a second snapshot,
and sent it with 'zfs send -i'.  No errors from the 'zfs recv' but the data
does not appear.  There *is* a new snapshot on the remote side, but it's
not accessible.  Also, the first snapshot is now no longer accessible,
in fact all of .zfs is no longer accessible.

This is a zoned filesystem.

Here you can see they contain the same amount of data:

 [EMAIL PROTECTED]:~]# zfs list -r export/zone/smb/share/tmp
 NAME                   USED  AVAIL  REFER  MOUNTPOINT
 export/zone/smb/share/tmp    48K   225G  25.5K  /share/tmp
 export/zone/smb/share/[EMAIL PROTECTED]  22.5K      -  24.5K  -
 export/zone/smb/share/[EMAIL PROTECTED]      0      -  25.5K  -
 [EMAIL PROTECTED]:~]#

 [EMAIL PROTECTED]:~]# zfs list -r export/zone/smb/share/tmp
 NAME                   USED  AVAIL  REFER  MOUNTPOINT
 export/zone/smb/share/tmp    48K   225G  25.5K  /share/tmp
 export/zone/smb/share/[EMAIL PROTECTED]  22.5K      -  24.5K  -
 export/zone/smb/share/[EMAIL PROTECTED]      0      -  25.5K  -
 [EMAIL PROTECTED]:~]#

But when I login to zone smb and cd to /share/tmp/.zfs I get 'no such
file or directory'.  This does exist for other filesystems like
/zone/eng/.zfs.

hmm ok if I reboot the zone .zfs shows up and the filesystem itself
(not just the snapshot) contains the new data.  Curiously the 7.1
snapshot contains data now.

 NAME                   USED  AVAIL  REFER  MOUNTPOINT
 export/zone/smb/share/tmp  69.5K   225G  25.5K  /share/tmp
 export/zone/smb/share/[EMAIL PROTECTED]  22.5K      -  24.5K  -
 export/zone/smb/share/[EMAIL PROTECTED]  21.5K      -  25.5K  -
 [EMAIL PROTECTED]:~]#

So, questions:

1. Is the need to reboot a bug?  Certainly having the other snapshots
  go missing seems like a bug.
2. Why does the 7.1 snapshot have the extra space?

This is S10 06/06 on x86.

thanks
-frank
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to