Skip to contentSkip to conversation

Feature Request (revert a logical volume back to its snapshot sta te)

linux-lvm Joe Harvell 4 participants 4 messages Feb 11, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Joe Harvell

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

Signature · 1 line
[email protected]
#2 lore raw
Quoted 3 lines · Alasdair G Kergon

How about performing your tests on the snapshot device instead of the original?

Snapshots are writable?!

Signature · 1 line
Clint Byrum <[email protected]>
#3 lore raw
In reply to Joe Harvell
Quoted 2 lines · Joe Harvell

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

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.

-JM

Signature · 2 lines
Luxuriantly hand-crafted from only the finest ASCII.
This message is PGP/MIME signed.