Hi,

Krzys wrote:
> Ok, so -F option is not in U3, is there any way to replicate file system
> and not be able to mount it automatically? so when I do zfs send/receive
> it wont be mounted and changes would not be made so that further
> replications could be possible? What I did notice was that if I am doing
> zfs send/receive right one after another I am able to replicate all my
> snaps, but when I wait a day or even few hours I get notice that file
> system got changed, and that is because it was mounted and I guess
> because of that I am not able to perform any more snaps to be send...
> any idea what I could do meanwhile I am waiting for -F?

this should work:

  zfs unmount pool/filesystem
  zfs rollback (latest snapshot)
  zfs send ... | zfs receive
  zfs mount pool/filesystem

Better yet: Assuming you don't actually want to use the filesystem you
replicate to, but just use it as a sink for backup purposes, you can mark
it unmountable, then just send stuff to it.

  zfs set canmount=off pool/filesystem
  zfs rollback (latest snapshot, one last time)

Then, whenever you want to access the receiving filesystem, clone it.

Hope this helps,
   Constantin

-- 
Constantin Gonzalez                            Sun Microsystems GmbH, Germany
Platform Technology Group, Global Systems Engineering      http://www.sun.de/
Tel.: +49 89/4 60 08-25 91                   http://blogs.sun.com/constantin/

Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to