linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: "LVM general discussion and development" <linux-lvm@redhat.com>,
	"Tomas Dalebjörk" <tomas.dalebjork@gmail.com>
Subject: Re: [linux-lvm] what will happen with lvconvert merge after reboot?
Date: Mon, 10 Aug 2020 17:24:56 +0200	[thread overview]
Message-ID: <153631cb-0f0b-c20e-011c-0f3f2e183def@redhat.com> (raw)
In-Reply-To: <A71F734D-C071-4CC7-A381-6FC11171B94C@gmail.com>

Dne 10. 08. 20 v 1:19 Tomas Dalebj�rk napsal(a):
> hi
> 
> If a user starts a
> # lvconvert --merge -b snaplv
> 
> and reboots the server before the convert/merge has completed
> 
> will the merge/converting process continue after reboot?
> or will the volume be stale?
> 
> if the merge/convert is restarted, can it resume where it was?
> 

Hi

Merge 'starts' when origin&snap device are unused.
Once snapshot merge start - it cannot be reverted.

If there is any sort of 'failure' (i.e. poweroff) - merging continue
after reboot and should safely finish.

Note - once the merge starts - you can already use 'merged' LV since merging 
is running in the background (blocks are copied and you can 'monitor' its 
status with  'lvs' command).

If you would be using 'thin' snapshot - merge is an instant operation.

Regards

Zdenek

      parent reply	other threads:[~2020-08-10 15:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-09 23:19 Tomas Dalebjörk
2020-08-10  9:36 ` [linux-lvm] how often does lvm team update source code in ftp site heming.zhao
2020-08-10 10:22   ` Marian Csontos
     [not found]     ` <20200810115232.GB1049@redhat.com>
2020-08-10 15:26       ` heming.zhao
2020-08-10 15:44         ` Frank Ch. Eigler
2020-08-10 15:24 ` Zdenek Kabelac [this message]

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=153631cb-0f0b-c20e-011c-0f3f2e183def@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=linux-lvm@redhat.com \
    --cc=tomas.dalebjork@gmail.com \
    --subject='Re: [linux-lvm] what will happen with lvconvert merge after reboot?' \
    /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

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).