* [linux-lvm] Cancelling snapshot merge
@ 2014-02-10 13:14 Alexander Meshcheryakov
2014-02-11 10:06 ` Zdenek Kabelac
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Meshcheryakov @ 2014-02-10 13:14 UTC (permalink / raw)
To: linux-lvm
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] Cancelling snapshot merge
2014-02-10 13:14 [linux-lvm] Cancelling snapshot merge Alexander Meshcheryakov
@ 2014-02-11 10:06 ` Zdenek Kabelac
0 siblings, 0 replies; 2+ messages in thread
From: Zdenek Kabelac @ 2014-02-11 10:06 UTC (permalink / raw)
To: LVM general discussion and development
Dne 10.2.2014 14:14, Alexander Meshcheryakov napsal(a):
> 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?
vgcfgrestore - you could go via archive to the previous state of metadata.
There is no support for merge aborting - since it might have other 'side'
effects on metadata.
If you know what you are doing - vgcfgrestore is your rescue tool.
Zdenek
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-11 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10 13:14 [linux-lvm] Cancelling snapshot merge Alexander Meshcheryakov
2014-02-11 10:06 ` Zdenek Kabelac
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).