clustered lvm commands fail with "activation/monitoring=0 is incompatible with clustered Volume Group" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Invalid
|
Undecided
|
Louis Bouchard | ||
Precise |
Fix Released
|
High
|
Dimitri John Ledkov | ||
Quantal |
Invalid
|
Undecided
|
Louis Bouchard | ||
Raring |
Invalid
|
Undecided
|
Louis Bouchard | ||
resource-agents (Ubuntu) |
Invalid
|
Undecided
|
Ante Karamatić | ||
Precise |
Invalid
|
Undecided
|
Louis Bouchard | ||
Quantal |
Invalid
|
Undecided
|
Louis Bouchard | ||
Raring |
Invalid
|
Undecided
|
Ante Karamatić |
Bug Description
SRU justification
Impact : clustered lvm requires monitoring to be on which is hardcoded to off so
it is currently impossible to import clustered LVM volume group even when changing
the default in /etc/lvm/lvm.conf
Fix : Actually read monitoring config value in /etc/lvm/lvm.conf when dealing with clustered VGs.
Test Case :
- Create a one node cluster using CMAN and PACEMAKER.
- Install CLVM and enable it ( lvmconf --enable-cluster )
- Start CMAN, CLVM and PACEMAKER
- Add an LVM device, create a Volume group and enable it.
Without the fix, the user would see the following message :
# vgchange -a y data_vg
activation/
Regression : clustered VGs should now be activated automatically and correctly now, which maybe unexpected on some systems. No other defaults have changed.
Description of the problem :
When trying to configure a clustered lvm2 using cman and clvm, clvm start up and lvm commands fail with this error:
# vgchange -a y data_vg
activation/
if I use "--monitor y" then the command works as expected.
# vgchange -a y --monitor y data_vg
1 logical volume(s) in volume group "data_vg" now active
activation/
The biggest problem is that I can't do LVM manipulation via interfaces such as virt-manager.
Here is the lvm.conf dump:
# lvm dumpconfig
devices {
dir="/dev"
scan="/dev"
}
dmeventd {
}
activation {
udev_sync=1
}
global {
umask=63
test=0
units="h"
}
shell {
}
backup {
backup=1
archive=1
}
log {
verbose=0
syslog=1
overwrite=0
level=0
indent=1
prefix=" "
}
Related branches
description: | updated |
Changed in lvm2 (Ubuntu Precise): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in resource-agents (Ubuntu Precise): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in lvm2 (Ubuntu Quantal): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in lvm2 (Ubuntu Raring): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
Changed in resource-agents (Ubuntu Quantal): | |
assignee: | nobody → Louis Bouchard (louis-bouchard) |
description: | updated |
Changed in resource-agents (Ubuntu Precise): | |
status: | New → Invalid |
Changed in resource-agents (Ubuntu Quantal): | |
status: | New → Invalid |
Changed in resource-agents (Ubuntu Raring): | |
status: | In Progress → Invalid |
Changed in lvm2 (Ubuntu Precise): | |
status: | Confirmed → In Progress |
description: | updated |
Changed in lvm2 (Ubuntu Precise): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
tags: |
added: verification-done removed: verification-needed |
Status changed to 'Confirmed' because the bug affects multiple users.