From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BMADO18372 for ; Fri, 11 Feb 2005 17:10:13 -0500 Received: from zrtps0kp.nortelnetworks.com (zrtps0kp.nortelnetworks.com [47.140.192.56]) by mx3.redhat.com (8.12.11/8.12.11) with ESMTP id j1BMA7AX020297 for ; Fri, 11 Feb 2005 17:10:07 -0500 Received: from zrtpd0j7.us.nortel.com (zrtpd0j7.us.nortel.com [47.140.203.25]) by zrtps0kp.nortelnetworks.com (Switch-2.2.6/Switch-2.2.0) with ESMTP id j1BMA0O02566 for ; Fri, 11 Feb 2005 17:10:00 -0500 (EST) Message-ID: <420D2BC6.3040905@dogpad.net> From: Joe Harvell Date: Fri, 11 Feb 2005 17:03:50 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C51086.6BA8EB60" Subject: [linux-lvm] Feature Request (revert a logical volume back to its snapshot sta te) Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C51086.6BA8EB60 Content-Type: text/plain; charset="iso-8859-1" I really love the snapshot logical volume feature, and I use it for making consistent backups of my system while it is running. Recently, though I found myself wanting to use a snapshot logical volume to preserve the state of a filesystem while I experimented with changes. When I needed to revert, I had to copy the contents from the snashot logical volume, destroy the snapshot and snapshot source, and then replace the snapshot source with the copy I made of the snapshot. It seems like it would make sense for LVM to support a feature to revert the source logical volume to the state it was in when the snapshot was taken. I read through all the man pages but I didn't see anything like this. I realize it might not be possible to do this atomically while the source logical volume is active, but that's fine. I would still like to be able to do it when the source is inactive. --- Joe Harvell ------_=_NextPart_001_01C51086.6BA8EB60 Content-Type: text/html; charset="iso-8859-1" Feature Request (revert a logical volume back to its snapshot state)

I really love the snapshot logical volume feature, and I use it for
making consistent backups of my system while it is running.

Recently, though I found myself wanting to use a snapshot logical volume
to preserve the state of a filesystem while I experimented with
changes.  When I needed to revert, I had to copy the contents from the
snashot logical volume, destroy the snapshot and snapshot source, and
then replace the snapshot source with the copy I made of the snapshot.

It seems like it would make sense for LVM to support a feature to revert
the source logical volume to the state it was in when the snapshot was
taken.  I read through all the man pages but I didn't see anything like
this.  I realize it might not be possible to do this atomically while
the source logical volume is active, but that's fine.  I would still
like to be able to do it when the source is inactive.

---
Joe Harvell

------_=_NextPart_001_01C51086.6BA8EB60-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from agk.surrey.redhat.com (agk.surrey.redhat.com [172.16.10.74]) by pobox.surrey.redhat.com (8.12.8/8.12.8) with ESMTP id j1BMo9MR024254 for ; Fri, 11 Feb 2005 22:50:09 GMT Received: from agk by agk.surrey.redhat.com with local (Exim 4.34) id 1Czjc1-0005Lk-4i for linux-lvm@redhat.com; Fri, 11 Feb 2005 22:50:09 +0000 Date: Fri, 11 Feb 2005 22:50:09 +0000 From: Alasdair G Kergon Subject: Re: [linux-lvm] Feature Request (revert a logical volume back to its snapshot sta te) Message-ID: <20050211225008.GI14093@agk.surrey.redhat.com> References: <420D2BC6.3040905@dogpad.net> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <420D2BC6.3040905@dogpad.net> Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LVM general discussion and development On Fri, Feb 11, 2005 at 05:03:50PM -0500, Joe Harvell wrote: > Recently, though I found myself wanting to use a snapshot logical volume > to preserve the state of a filesystem while I experimented with > changes. When I needed to revert, I had to copy the contents from the > snashot logical volume, destroy the snapshot and snapshot source, and > then replace the snapshot source with the copy I made of the snapshot. How about performing your tests on the snapshot device instead of the original? Alasdair -- agk@redhat.com From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BN9KO07887 for ; Fri, 11 Feb 2005 18:09:20 -0500 Received: from email.careercast.com (email.careercast.com [216.39.101.233]) by mx3.redhat.com (8.12.11/8.12.11) with SMTP id j1BN9C6p029207 for ; Fri, 11 Feb 2005 18:09:14 -0500 Subject: Re: [linux-lvm] Feature Request (revert a logical volume back to its snapshot sta te) From: Clint Byrum In-Reply-To: <20050211225008.GI14093@agk.surrey.redhat.com> References: <420D2BC6.3040905@dogpad.net> <20050211225008.GI14093@agk.surrey.redhat.com> Date: Fri, 11 Feb 2005 15:09:10 -0800 Message-Id: <1108163350.20408.43.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: LVM general discussion and development On Fri, 2005-02-11 at 22:50 +0000, Alasdair G Kergon wrote: > How about performing your tests on the snapshot device instead of the > original? > Snapshots are writable?! -- Clint Byrum From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1BNuiO19818 for ; Fri, 11 Feb 2005 18:56:44 -0500 Received: from zippy.toger.us (zippy.toger.us [65.19.178.247]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1BNuhaX000704 for ; Fri, 11 Feb 2005 18:56:43 -0500 Date: Fri, 11 Feb 2005 15:56:40 -0800 Subject: Re: [linux-lvm] Feature Request (revert a logical volume back to its snapshot sta te) Message-ID: <20050211235640.GB24306@zippy.toger.us> References: <420D2BC6.3040905@dogpad.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Content-Disposition: inline In-Reply-To: <420D2BC6.3040905@dogpad.net> From: Jason Martin Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 11, 2005 at 05:03:50PM -0500, Joe Harvell wrote: > It seems like it would make sense for LVM to support a feature to revert= =20 > the source logical volume to the state it was in when the snapshot was=20 I think it would also be handy to be able to 'roll back' a filesystem. Writing to the snapshot isn't always feasible since the running application isn't in that place. =20 -JM --=20 Luxuriantly hand-crafted from only the finest ASCII. This message is PGP/MIME signed. --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: --no-verbose iD8DBQFCDUY4l2ODWuqVSBMRAkuQAJ0b8HiP85OiHIV3ZdbGXc4elk4BVwCeNbBf 6JusiFlZj8/7LWtdyTixMuo= =PEvl -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--