Previously, the --force option was not turned on in the vgextend command if the physical volume was in use.
This meant that it was impossible to extend a storage domain if its associated physical volume was in use.
The --force option has now been turned on in the vgextend command, even when the physical volume is in use.
It is now possible to extend a storage domain when its associated physical volume is in use.
Created attachment 643564[details]
vdsm log
[Storage] Unable to extend storage domain if PV is in use.
When trying to extend storage domain,user gets the following warning (in UI) IF the PV is in use:
----
The following LUNs are already in use: - 3514f0c561000000e (Used by VG: qydKsX-BJ0t-OaiA-PmEa-kqDB-1Xln-pSeKPN)
Approve operation ?
----
After user approves the operation the extend fails because we don't use FORCE option in vgextend command if the PV is in use. Force option must be used in this case.
Thread-52749::DEBUG::2012-11-12 16:42:21,580::__init__::1164::Storage.Misc.excCmd::(_log) FAILED: <err> = ' Can\'t initialize physica
l volume "/dev/mapper/3514f0c561000000d" of volume group "61677e82-0f8d-4245-a6bd-a1254fb945b5" without -ff\n
full vdsm log attached.
Comment 7vvyazmin@redhat.com
2012-12-30 09:03:49 UTC
Failed on RHEVM 3.2 - SF02 environment
RHEVM: rhevm-3.2.0-2.el6ev.noarch
VDSM: vdsm-4.10.2-2.0.el6.x86_64
LIBVIRT: libvirt-0.10.2-13.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64
Impossible select disk in "Used" state in UI, follows from this, unable to extend storage domain if PV is in use.
Comment 8vvyazmin@redhat.com
2012-12-30 10:16:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
http://rhn.redhat.com/errata/RHSA-2013-0886.html
Created attachment 643564 [details] vdsm log [Storage] Unable to extend storage domain if PV is in use. When trying to extend storage domain,user gets the following warning (in UI) IF the PV is in use: ---- The following LUNs are already in use: - 3514f0c561000000e (Used by VG: qydKsX-BJ0t-OaiA-PmEa-kqDB-1Xln-pSeKPN) Approve operation ? ---- After user approves the operation the extend fails because we don't use FORCE option in vgextend command if the PV is in use. Force option must be used in this case. Thread-52749::DEBUG::2012-11-12 16:42:21,580::__init__::1164::Storage.Misc.excCmd::(_log) FAILED: <err> = ' Can\'t initialize physica l volume "/dev/mapper/3514f0c561000000d" of volume group "61677e82-0f8d-4245-a6bd-a1254fb945b5" without -ff\n full vdsm log attached.