Comment 17 for bug 1023755

Revision history for this message
John Griffith (john-griffith) wrote : Re: Unable to delete the volume snapshot

A little more thought and detail on this. The issue only seems to be with LVM2 snapshots (ie we don't see this with regular LVM volumes obviously).

I've been trying to convert a snapshot to a standard linear volume using lvmodify, however based on how lvm snapshots work it doesn't seem that this is an option. One thing that came to mind though... is it necessary to perform the dd on a snapshot delete at all? AFAIK the snapshot volume only contains differing blocks anyway, in which case we're just talking inode tables which when the original volume is deleted and the dd is performed on it, all of the data is essentially wiped anyway?

Seems like the zeroing out of the lvm snapshot isn't necessary, so I propose it be removed. I'll submit a patch depending on response from this post.