Re: Restore UFS snapshot

2007-05-28 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: > On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote: >> I share Roland's concern about the reliability of any new code designed >> to accomplish the 'full rollback' desired, but of course anything would >> have to undergo in

Re: Restore UFS snapshot

2007-05-28 Thread Roland Smith
On Mon, May 28, 2007 at 05:15:19PM +1000, Ian Smith wrote: > > I share Roland's concern about the reliability of any new code designed > to accomplish the 'full rollback' desired, but of course anything would > have to undergo incredibly rigorous testing before it would be allowed > anywhere near

Re: Restore UFS snapshot

2007-05-28 Thread Ian Smith
On Sun, 27 May 2007 11:01:53 -0400 Maxim Khitrov <[EMAIL PROTECTED]> wrote: > On 5/27/07, Roland Smith <[EMAIL PROTECTED]> wrote: > > On Sat, May 26, 2007 at 07:08:31PM -0400, Maxim Khitrov wrote: > > > I don't think he is talking about that. From what I understand about > > > the snapshot sy

Re: Restore UFS snapshot

2007-05-27 Thread Roland Smith
On Sun, May 27, 2007 at 11:01:53AM -0400, Maxim Khitrov wrote: > > The process of undoing the snapshot can't be O(1). Because the time > > needed to create the shapshot isn't either. > > Wait a sec, when you mount a snapshot as a memory disk, does that > memory disk contain the snapshot as well?

Re: Restore UFS snapshot

2007-05-27 Thread Maxim Khitrov
On 5/27/07, Roland Smith <[EMAIL PROTECTED]> wrote: On Sat, May 26, 2007 at 07:08:31PM -0400, Maxim Khitrov wrote: > I don't think he is talking about that. From what I understand about > the snapshot system (correct me if I'm wrong) is that a snapshot > creates it's own file system by remembe

Re: Restore UFS snapshot

2007-05-27 Thread Roland Smith
On Sat, May 26, 2007 at 07:08:31PM -0400, Maxim Khitrov wrote: > I don't think he is talking about that. From what I understand about > the snapshot system (correct me if I'm wrong) is that a snapshot > creates it's own file system by remembering, for example, what the > superblock was at the t

Re: Restore UFS snapshot

2007-05-26 Thread Lars Kristiansen
# umount # snap_rollback *wait 10 seconds* # mount .. and I'm set. I believe it should be possible. And if nothing like that exists, it should be made. I could look into it, but I would have to learn a lot more about the inner workings of the file system first. related: afaik, zfs rollback is

Re: Restore UFS snapshot

2007-05-26 Thread Maxim Khitrov
On 5/26/07, Roland Smith <[EMAIL PROTECTED]> wrote: On Sat, May 26, 2007 at 11:59:13PM +0200, Svein Halvor Halvorsen wrote: > Roland Smith wrote: > > You could use rsync instead of tar. That would save time. > > I'm not talking about saving time. But saving CPU time and HDD > stress. However, the

Re: Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: > You can't restore a previous situation _unless you saved it in some > form_. So if you want a possibility to restore stuff, you'll have to > keep a copy of it somewhere. Maybe in compressed form, and maybe you can > clump changes

Re: Restore UFS snapshot

2007-05-26 Thread Roland Smith
On Sat, May 26, 2007 at 11:59:13PM +0200, Svein Halvor Halvorsen wrote: > Roland Smith wrote: > > You could use rsync instead of tar. That would save time. > > I'm not talking about saving time. But saving CPU time and HDD > stress. However, the disk space issue is a bigger one: rsync would do mu

Re: Restore UFS snapshot

2007-05-26 Thread pete wright
On 5/26/07, Svein Halvor Halvorsen <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pete wright wrote: > hmm...i'm still a little confused as to where you are going. there > are three main way's i've used snapshot's in large (~1PB) > environments, two of which are applic

Re: Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 pete wright wrote: > hmm...i'm still a little confused as to where you are going. there > are three main way's i've used snapshot's in large (~1PB) > environments, two of which are applicable to you i believe: *snip dump/restore plug* Yes, I unders

Re: Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: > You could use rsync instead of tar. That would save time. I'm not talking about saving time. But saving CPU time and HDD stress. However, the disk space issue is a bigger one: >> (b) Undo all the bit flipping I have done, since

Re: Restore UFS snapshot

2007-05-26 Thread pete wright
On 5/26/07, Svein Halvor Halvorsen <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: >>> You can mount the snapshot, and then copy the files back to the original fs. >>> Note that cp can preserve flags, but not ACLs AFAIK. >> Yes, I know that this is po

Re: Restore UFS snapshot

2007-05-26 Thread Roland Smith
On Sat, May 26, 2007 at 10:30:13PM +0200, Svein Halvor Halvorsen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Roland Smith wrote: > >>> You can mount the snapshot, and then copy the files back to the original > >>> fs. > >>> Note that cp can preserve flags, but not ACLs AFAIK. > >

Re: Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: >>> You can mount the snapshot, and then copy the files back to the original fs. >>> Note that cp can preserve flags, but not ACLs AFAIK. >> Yes, I know that this is possible. However, it's a lot of work. > > Huh? > > Suppose you

Re: Restore UFS snapshot

2007-05-26 Thread pete wright
On 5/26/07, Svein Halvor Halvorsen <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: >> Is it possible to rollback a file system snapshot, i.e. restore the >> file system to the state it was in at the time a mksnap_ffs command >> was issued? > > You can

Re: Restore UFS snapshot

2007-05-26 Thread Roland Smith
On Sat, May 26, 2007 at 09:05:07PM +0200, Svein Halvor Halvorsen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Roland Smith wrote: > >> Is it possible to rollback a file system snapshot, i.e. restore the > >> file system to the state it was in at the time a mksnap_ffs command > >> w

Re: Restore UFS snapshot

2007-05-26 Thread Lowell Gilbert
Svein Halvor Halvorsen <[EMAIL PROTECTED]> writes: > This is also beyond the point, although I appreciate that you > suggest alternative ways to meet my objectives. dump/restore would > also require additional disk space. Not as elegant as your idea, but you can always dump from the snapshot and

Re: Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Roland Smith wrote: >> Is it possible to rollback a file system snapshot, i.e. restore the >> file system to the state it was in at the time a mksnap_ffs command >> was issued? > > You can mount the snapshot, and then copy the files back to the origin

Re: Restore UFS snapshot

2007-05-26 Thread Roland Smith
On Sat, May 26, 2007 at 06:48:52PM +0200, Svein Halvor Halvorsen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hello list! > > Is it possible to rollback a file system snapshot, i.e. restore the > file system to the state it was in at the time a mksnap_ffs command > was issued? Yo

Restore UFS snapshot

2007-05-26 Thread Svein Halvor Halvorsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello list! Is it possible to rollback a file system snapshot, i.e. restore the file system to the state it was in at the time a mksnap_ffs command was issued? I know that I can delete an old snapshot, but could I delete the "current" one (i.e the li