All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Proper way to delete an active snapshot?
@ 2011-08-30 11:32 Linda A. Walsh
  2011-08-30 11:47 ` Zdenek Kabelac
  2011-08-30 18:18 ` Stuart D. Gathman
  0 siblings, 2 replies; 6+ messages in thread
From: Linda A. Walsh @ 2011-08-30 11:32 UTC (permalink / raw)
  To: LVM general discussion and development




If you have a snapshot of a volume running... how are you supposed to delete
it?

i.e. after you unmount it... if I just do a lvremove, I get a warning 
about it being
an active volume -- so I tried doing a dmsetup remove on it first -- and 
that
stops the warning -- but I just noticed, I had a bunch of inactive 'cow'
volume names under 'dmsetup ls', that referred to the old snapshot names.

so I'm guessing that using dmsetup to remove the dev first, then lvremove is
NOT the best way to be doing this...(as it results in stuff that needs 
to be cleaned
up...)... 

So how do I remove the volume w/o getting warnings about it being 'active'?

(Unless, of course it is still mounted or something lame like that -- I 
mean I want
a warning to actually mean something...otherwise I start ignoring them, 
which is bad
(at least for me..)).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-09-03  8:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 11:32 [linux-lvm] Proper way to delete an active snapshot? Linda A. Walsh
2011-08-30 11:47 ` Zdenek Kabelac
2011-08-30 12:02   ` Zdenek Kabelac
2011-09-03  7:48     ` Linda A. Walsh
2011-08-30 18:18 ` Stuart D. Gathman
2011-09-03  8:23   ` Linda A. Walsh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.