Bug 875775 - 3.2.0 - [Storage] Unable to extend storage domain if PV is in use.
Summary: 3.2.0 - [Storage] Unable to extend storage domain if PV is in use.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.2.0
Assignee: Daniel Erez
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks: 888407 915537
TreeView+ depends on / blocked
 
Reported: 2012-11-12 14:58 UTC by Leonid Natapov
Modified: 2022-07-09 05:51 UTC (History)
10 users (show)

Fixed In Version: vdsm-4.10.2-2.0
Doc Type: Bug Fix
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2013-06-10 20:34:41 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm log (1.12 MB, application/octet-stream)
2012-11-12 14:58 UTC, Leonid Natapov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-47035 0 None None None 2022-07-09 05:51:48 UTC
Red Hat Product Errata RHSA-2013:0886 0 normal SHIPPED_LIVE Moderate: rhev 3.2 - vdsm security and bug fix update 2013-06-11 00:25:02 UTC

Description Leonid Natapov 2012-11-12 14:58:03 UTC
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 2 Daniel Erez 2012-11-17 10:27:06 UTC
http://gerrit.ovirt.org/#/c/9192/
Change-Id: I33ad4ee65d7303705d2cc8370502553125000ca0

Comment 3 Allon Mureinik 2012-12-12 10:31:03 UTC
both patches are merged upstream.

Comment 4 Daniel Erez 2012-12-17 19:11:53 UTC
Merged:
Change-Id: I33ad4ee65d7303705d2cc8370502553125000ca0

Comment 7 vvyazmin@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 8 vvyazmin@redhat.com 2012-12-30 10:16:48 UTC
Verified 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

Comment 12 errata-xmlrpc 2013-06-10 20:34:41 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


Note You need to log in before you can comment on or make changes to this bug.