Hi!

On Fri, Dec 11, 2009 at 15:55, Fajar A. Nugraha <fa...@fajar.net> wrote:
> On Fri, Dec 11, 2009 at 4:17 PM, Alexander Skwar
> <alexanders.mailinglists+nos...@gmail.com> wrote:
>> $ sudo zfs create rpool/rb-test
>>
>> $ zfs list rpool/rb-test
>> NAME            USED  AVAIL  REFER  MOUNTPOINT
>> rpool/rb-test    18K   170G    18K  /rpool/rb-test
>>
>> $ sudo zfs snapshot rpool/rb-t...@01
>> $ sudo zfs snapshot rpool/rb-t...@02
>> $ sudo zfs clone rpool/rb-t...@02 rpool/rb-test-02
>
> at this point it might be better to do some rename and clone
>
> $ sudo zfs rename rpool/rb-test rpool/rb-test-orig
> $ sudo zfs clone rpool/rb-test-o...@01 rpool/rb-test

AH!

Now I understand!

The crucial point here is the "zfs rename", which
"moves" the original stuff out of the way and then
whatever data is required (eg snap @01 or @02)
is "moved" to the correct spot by cloning the wanted
snapshot.

That's quite clever - thanks a lot! It's clear now.

But this has the "chance" of becoming rather confusing
if too many snapshots or "branches" are used. But
that's the way it is… :-)

Thanks again.

Cheers,

Alexander
-- 
↯ Keine Internetzensur in Deutschland! ↪ http://zensursula.net ↩ ↯
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.sk...@gmail.com , AIM: alexws77  ↯

Sent from Winterthur, ZH, Switzerland
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to