All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Linda A. Walsh" <lvm@tlinx.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Proper way to delete an active snapshot?
Date: Sat, 03 Sep 2011 00:48:29 -0700	[thread overview]
Message-ID: <4E61DBCD.9000504@tlinx.org> (raw)
In-Reply-To: <4E5CD154.6020308@redhat.com>



Zdenek Kabelac wrote:
> Dne 30.8.2011 13:47, Zdenek Kabelac napsal(a):
>   
>> Dne 30.8.2011 13:32, Linda A. Walsh napsal(a):
>>     
>>>
>>> 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.
>>>       
>> lvchange -an  vg/snapshot_lv
>>     
>
> Ooops sorry - ignore this one - as this will work with some not yet release target
>
>   
I'm confused.

First I tried:

# lvremove /dev/Home+Space/Home-2011.08.31-02.23.11
Do you really want to remove active logical volume 
Home-2011.08.31-02.23.11? [y/n]: ^C
  Logical volume Home-2011.08.31-02.23.11 not removed


Then, I tried what you had above:

# lvchange -an /dev/Home+Space/Home-2011.08.31-02.23.11     
# lvremove /dev/Home+Space/Home-2011.08.31-02.23.11    
  Logical volume "Home-2011.08.31-02.23.11" successfully removed

Was it not supposed to work?



>> Does it work for you ?
>>
>> If so - please post  -vvvv  trace.
>>     
>
>
> So just post only  lvremove -vvvv  trace please.
>
> It could be udev-related issue.
>
> Zdenek
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>   

  reply	other threads:[~2011-09-03  7:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-08-30 18:18 ` Stuart D. Gathman
2011-09-03  8:23   ` Linda A. Walsh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E61DBCD.9000504@tlinx.org \
    --to=lvm@tlinx.org \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.