It does not work, I did try to remove every snap and I ended destroying that pool all together and had to resend it all.. My goal is to use zfs send/receive for backup purposes to big storage system that I have, and keep snaps, I dont care if file system is mounted or not but I want to have ability every month to be able to send changes to it and update with current incremental snaps... but because of the main disk is beeing mounted, even that I dont go there it changes something on it like access times or something and that prevents me from sending incremental zfs snaps... :( So that -F option will work but its few months away from what I understand... and I would like to just do zfs send/receive now and keep updating it monthly or even daily.

Regards,

Chris


On Fri, 20 Apr 2007, Constantin Gonzalez wrote:

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


!DSPAM:122,4628d32121915021468!

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

Reply via email to