linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Péter Sárközi" <xmisterhu@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] RAID1 mirroring behavior when one disk is dead sometimes?
Date: Tue, 13 Apr 2021 21:44:42 +0200	[thread overview]
Message-ID: <CAP1D0fRH2Ngk-1pVdTcVRiGcXtyW=JJ2c9Tj3Bk0LGG7neZWkg@mail.gmail.com> (raw)
In-Reply-To: <34286f13-5b4c-cceb-09f2-09d8703765f3@gmx.de>

Marc Weber <marco-oweber@gmx.de> ezt írta (időpont: 2021. ápr. 13., K, 17:58):
>
> I created a test with 2 disks then booted without disk2 then without disk1 (each time adding a file.
>
> Then I booted with both. The result was in kernel logs I found 'mirroring or such' and I only got contents of disk 1.
>
>
> Is there any option to say if both mirrors get changed don't mount but cause an error because that might be better than
>
> getting newly written data reset randomly ?
>
>
> Did I miss an option? Would mdadm be better ?
>
>
> I tried looking at archives were CPU bottleneck for raids was mentioned often and 'work being done' on it.
>
> What's status of that or are the advices given there still valid ?
>
>
> Marc Weber
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://listman.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

As far as I know mdadm works the same way. (At least it was working
like this when this thread happened:
https://www.spinics.net/lists/raid/msg36962.html)

You can use a similar tactic that was recommended there: Don't
assemble a degraded RAID1 array without user interaction. You can do
this by changing the activation mode to complete in lvm.conf.


_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2021-04-13 19:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-13 15:52 Marc Weber
2021-04-13 19:44 ` Péter Sárközi [this message]
2021-04-15  4:19   ` [linux-lvm] RAID1 mirroring behavior when one disk is dead sometimes - why not just use random numbers ?? Marc Weber

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='CAP1D0fRH2Ngk-1pVdTcVRiGcXtyW=JJ2c9Tj3Bk0LGG7neZWkg@mail.gmail.com' \
    --to=xmisterhu@gmail.com \
    --cc=linux-lvm@redhat.com \
    --subject='Re: [linux-lvm] RAID1 mirroring behavior when one disk is dead sometimes?' \
    /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).