linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm2 raid volumes
@ 2016-08-02 22:49 Steve Dainard
  2016-08-03 13:10 ` Heinz Mauelshagen
  0 siblings, 1 reply; 5+ messages in thread
From: Steve Dainard @ 2016-08-02 22:49 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]

Hello,

What are the methods for checking/monitoring a RAID LV?

The Cpy%Sync field seems promising here:

# lvs
  LV    VG           Attr       LSize   Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
  raid1 test         rwi-aor--- 100.00m
 100.00
  raid6 test         rwi-aor--- 108.00m
 100.00

# pvs
  PV         VG           Fmt  Attr PSize    PFree
  /dev/vdb   test         lvm2 a--  1020.00m 876.00m
  /dev/vdc   test         lvm2 a--  1020.00m 876.00m
  /dev/vdd   test         lvm2 a--  1020.00m 980.00m
  /dev/vde   test         lvm2 a--  1020.00m 980.00m
  /dev/vdf   test         lvm2 a--  1020.00m 980.00m

But testing in a VM by removing a disk does not change the output of lvs:

# pvs
  WARNING: Device for PV S5xFZ7-mLaH-GNQP-ujWh-Zbkt-Ww3u-J0aKUJ not found
or rejected by a filter.
  PV             VG           Fmt  Attr PSize    PFree
  /dev/vdb       test         lvm2 a--  1020.00m 876.00m
  /dev/vdc       test         lvm2 a--  1020.00m 876.00m
  /dev/vdd       test         lvm2 a--  1020.00m 980.00m
  /dev/vde       test         lvm2 a--  1020.00m 980.00m
  unknown device test         lvm2 a-m  1020.00m 980.00m

# lvs
  WARNING: Device for PV S5xFZ7-mLaH-GNQP-ujWh-Zbkt-Ww3u-J0aKUJ not found
or rejected by a filter.
  LV    VG           Attr       LSize   Pool Origin Data%  Meta%  Move Log
Cpy%Sync Convert
  raid1 test         rwi-aor--- 100.00m
 100.00
  raid6 test         rwi-aor-p- 108.00m
 100.00


My end goal is to write a nagios check to monitor for disk failures.

Thanks,
Steve

[-- Attachment #2: Type: text/html, Size: 2472 bytes --]

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

end of thread, other threads:[~2016-09-16 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 22:49 [linux-lvm] lvm2 raid volumes Steve Dainard
2016-08-03 13:10 ` Heinz Mauelshagen
2016-08-15 13:38   ` Xen
2016-09-16 14:13     ` Heinz Mauelshagen
2016-09-16 15:03       ` Xen

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