Re: [zfs-discuss] ZFS Send/Receive Question

2010-04-12 Thread Edward Ned Harvey
> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss-
> 
> I am trying to duplicate a filesystem from one zpool to another zpool.
> I don't care so much about snapshots on the destination side...I am
> more trying to duplicate how RSYNC would copy a filesystem, and then
> only copy incrementals from the source side to the destination side in
> subsequent runs until I can complete a switch-over.  What would be some
> examples of the syntax in zfs send/receive?


Sending from a pool called "tank" on "firsthost" to a pool called "tank" on
"somehost."  Ensure "somehost" has a pool called "tank" and a zfs filesystem
called "firsthost-tank" inside that pool.
Forgive the prolific occurrences of "set readonly=on" below.  I just made
that happen on every send, unconditionally.

zfs snapshot t...@forsync-2010-02-06-00-07-18
zfs send t...@forsync-2010-02-06-00-07-18 | ssh somehost 'zfs receive -F
tank/firsthost-t...@forsync-2010-02-06-00-07-18'
ssh somehost 'zfs set readonly=on tank/firsthost-tank'

zfs snapshot t...@forsync-2010-02-07-00-01-05
zfs send -i t...@forsync-2010-02-06-00-07-18
t...@forsync-2010-02-07-00-01-05 | ssh somehost 'zfs receive
tank/firsthost-t...@forsync-2010-02-07-00-01-05'
ssh somehost 'zfs set readonly=on tank/firsthost-tank'


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


Re: [zfs-discuss] zfs send/receive question

2007-05-06 Thread Matthew Ahrens

Krzys wrote:
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.


If the filesystem you are doing the incremental 'zfs recv' into is 
always unmounted, you should not see the "fs modified since last 
snapshot" error.  Can you send the specific commands / output that 
you're seeing?  Is a crash / power loss involved?


Also note, 'zfs set mountpoint=none' is the preferred method to not 
mount a filesystem + its descendents.


--matt

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


Re: [zfs-discuss] zfs send/receive question

2007-04-20 Thread Krzys
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 GonzalezSun 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


Re: [zfs-discuss] zfs send/receive question

2007-04-20 Thread Constantin Gonzalez
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 GonzalezSun 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


Re: [zfs-discuss] zfs send/receive question

2007-04-20 Thread Krzys
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?


Thank you.

Chris


On Tue, 17 Apr 2007, Nicholas Lee wrote:


On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:



and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent snapshot

is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be mounted? Is
there
any way to make it maybe read only parition and then when its needed maybe
make
it live or whaverer?



Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas


!DSPAM:122,4623f42c1444623226276!


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


Re: [zfs-discuss] zfs send/receive question

2007-04-17 Thread Cindy . Swearingen

Chris,

This option will be available in the upcoming Solaris 10 release, a
few months from now.

We'll send out a listing of the new ZFS features around that time.

Cindy

Krzys wrote:
Ah, ok, not a problem, do you know Cindy when next Solaris Update is 
going to be released by SUN? Yes, I am running U3 at this moment.


Regards,

Chris

On Mon, 16 Apr 2007, [EMAIL PROTECTED] wrote:


Chris,

Looks like you're not running a Solaris release that contains
the zfs receive -F option. This option is in current Solaris community
release, build 48.

http://docs.sun.com/app/docs/doc/817-2271/6mhupg6f1?a=view#gdsup

Otherwise, you'll have to wait until an upcoming Solaris 10 release.

Cindy

Krzys wrote:

[18:19:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED] 
mypool/[EMAIL PROTECTED] | zfs receive -F mypool2/[EMAIL PROTECTED]

invalid option 'F'
usage:
 receive [-vn] 
 receive [-vn] -d 

For the property list, run: zfs set|get

It does not seem to work unless I am doing it incorectly.

Chris

On Tue, 17 Apr 2007, Nicholas Lee wrote:


On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:




and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent 
snapshot


is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be 
mounted? Is

there
any way to make it maybe read only parition and then when its 
needed maybe

make
it live or whaverer?





Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas


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


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


!DSPAM:122,4623fa8a1809423226276!


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

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


Re: [zfs-discuss] zfs send/receive question

2007-04-16 Thread Shawn Walker

On 16/04/07, Krzys <[EMAIL PROTECTED]> wrote:

Ah, ok, not a problem, do you know Cindy when next Solaris Update is going to be
released by SUN? Yes, I am running U3 at this moment.


Summer is what I last read (July?).
--
"Less is only more where more is no good." --Frank Lloyd Wright

Shawn Walker, Software and Systems Analyst
[EMAIL PROTECTED] - http://binarycrusader.blogspot.com/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] zfs send/receive question

2007-04-16 Thread Krzys
Ah, ok, not a problem, do you know Cindy when next Solaris Update is going to be 
released by SUN? Yes, I am running U3 at this moment.


Regards,

Chris

On Mon, 16 Apr 2007, [EMAIL PROTECTED] wrote:


Chris,

Looks like you're not running a Solaris release that contains
the zfs receive -F option. This option is in current Solaris community
release, build 48.

http://docs.sun.com/app/docs/doc/817-2271/6mhupg6f1?a=view#gdsup

Otherwise, you'll have to wait until an upcoming Solaris 10 release.

Cindy

Krzys wrote:
[18:19:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED] 
mypool/[EMAIL PROTECTED] | zfs receive -F mypool2/[EMAIL PROTECTED]

invalid option 'F'
usage:
 receive [-vn] 
 receive [-vn] -d 

For the property list, run: zfs set|get

It does not seem to work unless I am doing it incorectly.

Chris

On Tue, 17 Apr 2007, Nicholas Lee wrote:


On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:




and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent snapshot

is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be mounted? 
Is

there
any way to make it maybe read only parition and then when its needed 
maybe

make
it live or whaverer?




Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas


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

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


!DSPAM:122,4623fa8a1809423226276!


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


Re: [zfs-discuss] zfs send/receive question

2007-04-16 Thread Cindy . Swearingen

Chris,

Looks like you're not running a Solaris release that contains
the zfs receive -F option. This option is in current Solaris community
release, build 48.

http://docs.sun.com/app/docs/doc/817-2271/6mhupg6f1?a=view#gdsup

Otherwise, you'll have to wait until an upcoming Solaris 10 release.

Cindy

Krzys wrote:
[18:19:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED] 
mypool/[EMAIL PROTECTED] | zfs receive -F mypool2/[EMAIL PROTECTED]

invalid option 'F'
usage:
 receive [-vn] 
 receive [-vn] -d 

For the property list, run: zfs set|get

It does not seem to work unless I am doing it incorectly.

Chris

On Tue, 17 Apr 2007, Nicholas Lee wrote:


On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:




and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent snapshot

is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be 
mounted? Is

there
any way to make it maybe read only parition and then when its needed 
maybe

make
it live or whaverer?




Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas


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

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


Re: [zfs-discuss] zfs send/receive question

2007-04-16 Thread Krzys
[18:19:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED] mypool/[EMAIL PROTECTED] | 
zfs receive -F mypool2/[EMAIL PROTECTED]

invalid option 'F'
usage:
receive [-vn] 
receive [-vn] -d 

For the property list, run: zfs set|get

It does not seem to work unless I am doing it incorectly.

Chris

On Tue, 17 Apr 2007, Nicholas Lee wrote:


On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:



and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent snapshot

is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be mounted? Is
there
any way to make it maybe read only parition and then when its needed maybe
make
it live or whaverer?



Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas


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


Re: [zfs-discuss] zfs send/receive question

2007-04-16 Thread Nicholas Lee

On 4/17/07, Krzys <[EMAIL PROTECTED]> wrote:



and when I did try to run that last command I got the following error:
[16:26:00] [EMAIL PROTECTED]: /root > zfs send -i mypool/[EMAIL PROTECTED]
mypool/[EMAIL PROTECTED] |
zfs receive mypool2/[EMAIL PROTECTED]
cannot receive: destination has been modified since most recent snapshot

is there any way to do such replication by zfs send/receive and avoind
such
error message? Is there any way to force file system not to be mounted? Is
there
any way to make it maybe read only parition and then when its needed maybe
make
it live or whaverer?



Check the -F option to zfs receive. This automatically rolls back the
target.
Nicholas
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss