1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

raid: Don't monitor raid0 or raid0_meta LVs.

This commit is contained in:
Alasdair G Kergon 2016-08-20 02:14:33 +01:00
parent 896912b14d
commit 7646741ec6
2 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Version 2.02.165 - Version 2.02.165 -
=================================== ===================================
Don't allow lvconvert --repair on raid0 devices. Don't allow lvconvert --repair on raid0 devices or attempt to monitor them.
No longer adjust incorrect number of raid stripes supplied to lvcreate. No longer adjust incorrect number of raid stripes supplied to lvcreate.
Move lcm and gcd to lib/misc. Move lcm and gcd to lib/misc.
Suppress some unnecessary --stripesize parameter warnings. Suppress some unnecessary --stripesize parameter warnings.

View File

@ -499,7 +499,12 @@ static struct segment_type *_init_raid_segtype(struct cmd_context *cmd,
segtype->ops = &_raid_ops; segtype->ops = &_raid_ops;
segtype->name = rt->name; segtype->name = rt->name;
segtype->flags = SEG_RAID | SEG_ONLY_EXCLUSIVE | rt->extra_flags | monitored; segtype->flags = SEG_RAID | SEG_ONLY_EXCLUSIVE | rt->extra_flags;
/* Never monitor raid0 or raid0_meta LVs */
if (!segtype_is_any_raid0(segtype))
segtype->flags |= monitored;
segtype->parity_devs = rt->parity; segtype->parity_devs = rt->parity;
log_very_verbose("Initialised segtype: %s", segtype->name); log_very_verbose("Initialised segtype: %s", segtype->name);