All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin Dünkelmann" <nc-duenkekl3@netcologne.de>
To: David Teigland <teigland@redhat.com>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Questions about monitoring, scrubbing & checking a LVM RAID5
Date: Thu, 29 Jul 2021 17:53:55 +0200	[thread overview]
Message-ID: <7951f525-1c90-5824-c249-ee09c83ae5e7@netcologne.de> (raw)
In-Reply-To: <20210729145946.GA22305@redhat.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1792 bytes --]

Dear Dave,

thank you for your response.

Here is my output:
$ sudo lvs -o segtype cryptdata_raid5/home
   Type
   linear
   linear
   linear

And if I execute:
"$ sudo lvconvert --type raid5 -i 3 cryptdata_raid5/home"
I get
   Using default stripesize 64,00 KiB.
   Replaced LV type raid5 (same as raid5_ls) with possible type raid1.
   Repeat this command to convert to raid5 after an interim conversion 
has finished.
   Are you sure you want to convert linear LV cryptdata_raid5/home to 
raid1 type? [y/n]: y
   Insufficient free space: 1 extents needed, but only 0 available

So probably I hit a bug with lvm2-2.03.12 on arch linux.

Thanks for your help.
Then it will be better to reformat my RAID5 with mdadm.

Am 29.07.21 um 16:59 schrieb David Teigland:
> On Wed, Jul 28, 2021 at 11:50:56PM +0200, Martin Dünkelmann wrote:
>> Dear LVM2-People,
>>
>> I made a native RAID5 via LVM on 3 SSDs without mdadm, since LVM2 can do it
>> natively.
>>
>> But I got confused about how to easily monitor it (send emails about errors,
>> since it's a remove server) and how to check, repair and scrub the RAID5.
>>
>> Using:
>> "sudo lvchange --syncaction check cryptdata_raid5/home" (same for repair)
>> results in
>>
>> Command on LV cryptdata_raid5/home does not accept LV type linear.
>> Command not permitted on LV cryptdata_raid5/home.
> It works for me, so it could be a fixed bug.  Check that the LV is really
> raid5: lvs -o segtype cryptdata_raid5/home
>
>> Does that mean LVM2 doesn't fully support native RAID5 and I should format
>> everything and set up a mdadm raid5?
>> Because mdadm has scrubbing and email reports according to the mdadm.conf.
> Right, mdadm does much more.
>
> Dave
>
-- 
Greetings

Martin



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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-07-30  6:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-28 21:50 [linux-lvm] Questions about monitoring, scrubbing & checking a LVM RAID5 Martin Dünkelmann
2021-07-29 14:59 ` David Teigland
2021-07-29 15:53   ` Martin Dünkelmann [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=7951f525-1c90-5824-c249-ee09c83ae5e7@netcologne.de \
    --to=nc-duenkekl3@netcologne.de \
    --cc=linux-lvm@redhat.com \
    --cc=teigland@redhat.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.