linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Jaco van Niekerk <jaco@desktop.co.za>
To: "linux-lvm@redhat.com" <linux-lvm@redhat.com>
Subject: [linux-lvm] Correct way to remove LVM Snapshot
Date: Wed, 26 Sep 2018 04:50:16 +0000	[thread overview]
Message-ID: <83AC2A1B573A1341BD85C441C9109F5928EF35C7@desktoptdc.desktop.local> (raw)

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

Hi

I will like to confirm the correct way to remove an LVM snapshot?

Create my Logical Volume and snapshot:
lvcreate --addtag pacemaker --name lv_iscsi_lun1 --size 100G vg_iscsi --config 'activation { volume_list = [ "@pacemaker" ]}'
lvcreate --addtag pacemaker --name lv_iscsi_lun1_snap --snapshot --size 10G /dev/vg_iscsi/lv_iscsi_lun1 --config 'activation { volume_list = [ \"@pacemaker\" ]}'

Do I have to Merge the Snapshot first before I can remove it?
lvremove /dev/vg_iscsi/lv_iscsi_lun1_snap

More Info:
lv_iscsi_lun1 is a ISCSI target for a KVM virtual server.

Trouble experienced:
I lost my hole Volume Group after removing the Logical Volume Snapshot.

Regards

--

Jaco van Niekerk


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

                 reply	other threads:[~2018-09-26  4:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=83AC2A1B573A1341BD85C441C9109F5928EF35C7@desktoptdc.desktop.local \
    --to=jaco@desktop.co.za \
    --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).