linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Alexander Meshcheryakov <alexander.s.m@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Cancelling snapshot merge
Date: Mon, 10 Feb 2014 17:14:21 +0400	[thread overview]
Message-ID: <CA+VDVVVtkYVDNJP4f=oUiDTzhht60t-nDM3u5g5wezzv=tvzYg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]

Hello,

I had created snapshot of my /var logical volume a while ago and recently
It occured to me that I don't need saved state anymore and I would like to
reclaim disk space. But I have issued wrong lvconvert --merge command by
mistake instead of proper lvremove.

$ sudo lvconvert --merge VolGroup00/var_snap0
  Can't merge over open origin volume
  Merging of snapshot var_snap0 will start next activation.

I have figured out at this point that I made mistake. Luckily merge is
postponed as volume is used (mounted) now. But how do I prevent merge from
running upon next reboot? Here is what I have tried:

$ sudo lvremove VolGroup00/var_snap0
  Can't remove merging snapshot logical volume "var_snap0"

$ sudo lvchange -an VolGroup00/var_snap0
Change of snapshot var_snap0 will also change its origin LogVol01. Proceed?
[y/n]: n
  Logical volume var_snap0 not changed.


I even could not create snapshot of current state to roll back to it after
merge


$ sudo lvcreate --size 2G --snapshot -n var_snap1
/dev/mapper/VolGroup00-LogVol01

  Snapshots of an origin that has a merging snapshot is not supported


Is there a way to cancel postponed snapshot merge?

[-- Attachment #2: Type: text/html, Size: 1324 bytes --]

             reply	other threads:[~2014-02-10 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-10 13:14 Alexander Meshcheryakov [this message]
2014-02-11 10:06 ` [linux-lvm] Cancelling snapshot merge Zdenek Kabelac

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='CA+VDVVVtkYVDNJP4f=oUiDTzhht60t-nDM3u5g5wezzv=tvzYg@mail.gmail.com' \
    --to=alexander.s.m@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).