linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] re --corelog: does synchronization re-copy all data?
@ 2009-02-22  0:54 Daniel B.
  2009-02-23  7:11 ` malahal
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel B. @ 2009-02-22  0:54 UTC (permalink / raw)
  To: linux-lvm

In the LVM Administrator's Guide, at least the one at
http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LV_create.html ,
it says:"

   LVM maintains a small log which it uses to keep track of which regions
   are in sync with the mirror or mirrors. By default, this log is kept
   on disk, which keeps it persistent across reboots. You can specify
   instead that this log be kept in memory with the --corelog argument;
   this eliminates the need for an extra log device, but it requires that
   the entire mirror be resynchronized at every reboot.

Does that last sentence mean that _all_ the data is recopied, or just
that all _regions_ are checked and not all the data necessarily has
to be copied (perhaps only change regions have to be copied, but
unchanged regions don't)?



More generally, can LVM perform RAID1-style mirroring with only
two disks (without having to re-copy everything each boot)
(and, of course, being recoverable in case either disk fails)?



Thanks,
Daniel
-- 
Daniel B.
dsb@smart.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] re --corelog: does synchronization re-copy all data?
  2009-02-22  0:54 [linux-lvm] re --corelog: does synchronization re-copy all data? Daniel B.
@ 2009-02-23  7:11 ` malahal
  2009-02-25  4:50   ` Daniel B.
  0 siblings, 1 reply; 3+ messages in thread
From: malahal @ 2009-02-23  7:11 UTC (permalink / raw)
  To: linux-lvm

Daniel B. [dsb@smart.net] wrote:
> In the LVM Administrator's Guide, at least the one at
> http://www.centos.org/docs/5/html/Cluster_Logical_Volume_Manager/LV_create.html ,
> it says:"
>
>   LVM maintains a small log which it uses to keep track of which regions
>   are in sync with the mirror or mirrors. By default, this log is kept
>   on disk, which keeps it persistent across reboots. You can specify
>   instead that this log be kept in memory with the --corelog argument;
>   this eliminates the need for an extra log device, but it requires that
>   the entire mirror be resynchronized at every reboot.
>
> Does that last sentence mean that _all_ the data is recopied, or just
> that all _regions_ are checked and not all the data necessarily has
> to be copied (perhaps only change regions have to be copied, but
> unchanged regions don't)?

Everything has to be re-copied because it doesn't know what is changed
as the "log" is kept in memory which is lost after a reboot.

> More generally, can LVM perform RAID1-style mirroring with only
> two disks (without having to re-copy everything each boot)
> (and, of course, being recoverable in case either disk fails)?

You should be able to force LVM to create a log device on one of your
two devices (--alloc anywhere)

Thanks, Malahal.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] re --corelog: does synchronization re-copy all data?
  2009-02-23  7:11 ` malahal
@ 2009-02-25  4:50   ` Daniel B.
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel B. @ 2009-02-25  4:50 UTC (permalink / raw)
  To: linux-lvm

malahal@us.ibm.com wrote:
> Daniel B. [dsb@smart.net] wrote:

>> More generally, can LVM perform RAID1-style mirroring with only
>> two disks (without having to re-copy everything each boot)
>> (and, of course, being recoverable in case either disk fails)?
> 
> You should be able to force LVM to create a log device on one of your
> two devices (--alloc anywhere)

So what happens if the disk containing the log dies?  Does LVM
keep running (presenting the logical volume implemented on the
physical volumes on the still-working disk)?

(And what happens at reboot time (with the failed disk still in
place)?)

Thanks,
Daniel
-- 
Daniel B.
dsb@smart.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-25  5:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-22  0:54 [linux-lvm] re --corelog: does synchronization re-copy all data? Daniel B.
2009-02-23  7:11 ` malahal
2009-02-25  4:50   ` Daniel B.

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