All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Questions about monitoring, scrubbing & checking a LVM RAID5
@ 2021-07-28 21:50 Martin Dünkelmann
  2021-07-29 14:59 ` David Teigland
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Dünkelmann @ 2021-07-28 21:50 UTC (permalink / raw)
  To: linux-lvm


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

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.

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.

-- 
Mit freundlichen Grüßen

Martin Dünkelmann



[-- 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/

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

* Re: [linux-lvm] Questions about monitoring, scrubbing & checking a LVM RAID5
  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
  0 siblings, 1 reply; 3+ messages in thread
From: David Teigland @ 2021-07-29 14:59 UTC (permalink / raw)
  To: Martin Dünkelmann; +Cc: linux-lvm

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

_______________________________________________
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/


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

* Re: [linux-lvm] Questions about monitoring, scrubbing & checking a LVM RAID5
  2021-07-29 14:59 ` David Teigland
@ 2021-07-29 15:53   ` Martin Dünkelmann
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Dünkelmann @ 2021-07-29 15:53 UTC (permalink / raw)
  To: David Teigland; +Cc: linux-lvm


[-- 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/

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

end of thread, other threads:[~2021-07-30  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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.