[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-lvm
Subject: [linux-lvm] Fwd: Re: Correct way to remove LVM Snapshot
From: Heinz Mauelshagen <heinzm () redhat ! com>
Date: 2018-09-26 16:00:28
Message-ID: 1bc84954-15e9-7e98-20c5-865d0381d639 () redhat ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On 9/26/18 6:50 AM, Jaco van Niekerk wrote:
>
> 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
Depends on your use case:
- if you need the data as of your snapshot and wnat to keep it in the
origin, you have to merge
- if you used the snapshot temorarily (e.g. for backup, fsck, ...), just
lvremove it.
>
> 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.
Can you provide any logs and "lvremove -vvvv ..." output (lvmdump
preferred)?
Heinz
> Regards
>
> --
>
> Jaco van Niekerk
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO athttp://tldp.org/HOWTO/LVM-HOWTO/
[Attachment #5 (text/html)]
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 9/26/18 6:50 AM, Jaco van Niekerk wrote:
<div class="moz-forward-container">
<blockquote type="cite"
cite="mid:83AC2A1B573A1341BD85C441C9109F5928EF35C7@desktoptdc.desktop.local">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<p>Hi</p>
<p>I will like to confirm the correct way to remove an LVM
snapshot?</p>
Create my Logical Volume and snapshot:<br>
lvcreate --addtag pacemaker --name lv_iscsi_lun1 --size 100G
vg_iscsi --config 'activation { volume_list = [ "@pacemaker" ]}'<br>
lvcreate --addtag pacemaker --name lv_iscsi_lun1_snap --snapshot
--size 10G /dev/vg_iscsi/lv_iscsi_lun1 --config 'activation {
volume_list = [ \"@pacemaker\" ]}'<br>
<br>
Do I have to Merge the Snapshot first before I can remove it?<br>
lvremove /dev/vg_iscsi/lv_iscsi_lun1_snap<br>
</blockquote>
<p><br>
</p>
<p>Depends on your use case:<br>
</p>
<p>- if you need the data as of your snapshot and wnat to keep it
in the origin, you have to merge</p>
<p>- if you used the snapshot temorarily (e.g. for backup, fsck,
...), just lvremove it.</p>
<blockquote type="cite"
cite="mid:83AC2A1B573A1341BD85C441C9109F5928EF35C7@desktoptdc.desktop.local"><br>
More Info:<br>
lv_iscsi_lun1 is a ISCSI target for a KVM virtual server.<br>
<br>
Trouble experienced:<br>
I lost my hole Volume Group after removing the Logical Volume
Snapshot. <br>
</blockquote>
<p>Can you provide any logs and "lvremove -vvvv ..." output
(lvmdump preferred)?<br>
</p>
<p>Heinz<br>
</p>
<blockquote type="cite"
cite="mid:83AC2A1B573A1341BD85C441C9109F5928EF35C7@desktoptdc.desktop.local">
<p>Regards<br>
</p>
<div class="moz-signature">-- <br>
<p style="font-family: Arial; background-color: rgb(255,

255,
 255); margin-bottom: 6pt; margin-top: 6pt;"> <span
style="font-size: 13.3333px;">Jaco van Niekerk</span></p>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" \
wrap="">_______________________________________________ linux-lvm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:linux-lvm@redhat.com" \
moz-do-not-send="true">linux-lvm@redhat.com</a> <a class="moz-txt-link-freetext" \
href="https://www.redhat.com/mailman/listinfo/linux-lvm" \
moz-do-not-send="true">https://www.redhat.com/mailman/listinfo/linux-lvm</a> read the \
LVM HOW-TO at <a class="moz-txt-link-freetext" \
href="http://tldp.org/HOWTO/LVM-HOWTO/" \
moz-do-not-send="true">http://tldp.org/HOWTO/LVM-HOWTO/</a></pre> </blockquote>
</div>
</body>
</html>
_______________________________________________
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/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic