Hi.

On Fri, Dec 11, 2009 at 15:35, Ross Walker <rswwal...@gmail.com> wrote:
> On Dec 11, 2009, at 4:17 AM, Alexander Skwar
> <alexanders.mailinglists+nos...@gmail.com> wrote:
>
>> Hello Jeff!
>>
>> Could you (or anyone else, of course *G*) please show me how?
[...]
>> Could you please be so kind and show what exactly
>> needs to be done?
>
> I think you might be confused

Actually, I rather think that I might not have been clear
enough, which then confused you… :)

> at what happens when you promote a cloned file
> system. When it is promoted the clone becomes the file system and the
> original becomes the clone.

Sure. But how does one then rollback to f...@snap-01?

> In this manner you are rolling back to the
> snapshot,

Yes.

Allright, and how do I actually do what I asked for? :)

Please do:

# chose one of the following - or even none, if done as
# root
root_exec=pfexec
root_exec=sudo

$root_exec zfs create rpool/rbtest
$root_exec zfs set mountpoint=/rbtest rpool/rbtest

echo 1 | $root_exec dd of=/rbtest/status
$root_exec zfs snapshot rpool/rbt...@01

echo 2 | $root_exec dd of=/rbtest/status
$root_exec zfs snapshot rpool/rbt...@02

$root_exec zfs clone rpool/rbt...@02 rpool/rbtest-02
$root_exec zfs promote rpool/rbtest-02

--($ ~)-- zfs list | grep rbt
rpool/rbtest
               0   170G  19.5K  /rbtest
rpool/rbtest-02
             52K   170G  19.5K  /rpool/rbtest-02
rpool/rbtest...@01
           16.5K      -  19.5K  -
rpool/rbtest...@02
             16K      -  19.5K  -

Now /rbtest/status contains 2 and so does /rpool/rbtest-02/status:

--($ ~)-- cat /rbtest/status /rpool/rbtest-02/status
2
2

What do I need to do, so /rbtest/status contains 1 (besides
doing something like "echo 1 | sudo dd of=/rbtest/status",
of course *G*) and /rpool/rbtest-02/status (or whatever)
is 2?

It is important that /rbtest/status has exactly that path.

Could you (or anyone… *g*) explain (or better yet: show the
commands)?

> but preserving the original as a clone and keeping the other
> snapshots as snapshots of the clone, you just might need to fix mountpoints
> and/or rename file systems to suit your taste.

How?

--($ ~)-- sudo zfs rename rpool/rbtest...@01 rpool/rbt...@01
cannot rename to 'rpool/rbt...@01': snapshots must be part of same dataset

I did that, thinking/hoping that this would then allow me to do
a "zfs rollback rpool/rb...@01".

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  ↯
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to