Bug 964188 - Resize of a Logical Volume deactivates it.
Summary: Resize of a Logical Volume deactivates it.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-blivet
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: mulhern
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-17 13:00 UTC by Jan Safranek
Modified: 2014-03-06 16:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-06 16:40:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1064898 1 None None None 2021-09-03 14:12:57 UTC

Internal Links: 1064898

Description Jan Safranek 2013-05-17 13:00:19 UTC
If I resize active logical volume using blivet, it leaves the volume deactivated.

I can see in blivet log:

    INFO:blivet: executing action: [0] Resize Device (Grow) lvmlv test-1 (id 7)
    DEBUG:blivet:             LVMLogicalVolumeDevice.resize: test-1 ; status: True ;
    DEBUG:blivet:                LVMLogicalVolumeDevice.teardown: test-1 ; status: True ; controllable: True ;
    INFO:program: Running... udevadm settle --timeout=300
    DEBUG:program: Return code: 0
    DEBUG:blivet:                 LVMLogicalVolumeDevice._teardown: test-1 ; status: True ; controllable: True ;
--> INFO:program: Running... lvm lvchange -a n test/1
    DEBUG:program: Return code: 0
    DEBUG:blivet:               LVMVolumeGroupDevice.setupParents: kids: 1 ; name: test ; orig: True ;
    DEBUG:blivet:                PartitionDevice.setup: sdb1 ; status: True ; controllable: True ; orig: True ;
    DEBUG:blivet:                LVMPhysicalVolume.setup: device: /dev/sdb1 ; status: False ; type: lvmpv ;
    DEBUG:blivet:              LVMVolumeGroupDevice.setupParents: kids: 1 ; name: test ; orig: True ;
    DEBUG:blivet:               PartitionDevice.setup: sdb1 ; status: True ; controllable: True ; orig: True ;
    DEBUG:blivet:               LVMPhysicalVolume.setup: device: /dev/sdb1 ; status: False ; type: lvmpv ;
    INFO:program: Running... udevadm settle --timeout=300
    DEBUG:program: Return code: 0
--> INFO:program: Running... lvm lvresize --force -L 60m test/1
    INFO:program: File descriptor 10 (/dev/mapper/control) leaked on lvm invocation. Parent PID 10520: /usr/bin/python
    INFO:program: File descriptor 13 (/dev/null) leaked on lvm invocation. Parent PID 10520: /usr/bin/python
    INFO:program:   Extending logical volume 1 to 60.00 MiB
    INFO:program:   Logical volume 1 successfully resized
    DEBUG:program: Return code: 0
    INFO:program: Running... udevadm settle --timeout=300
    DEBUG:program: Return code: 0

Version-Release number of selected component (if applicable):
python-blivet-0.13-1.fc20.noarch

How reproducible:
always

Steps to Reproduce:
Use this script ('b' is Blivet instance, 'blivet' is the blivet module):

lv = b.lvs[0]
action = blivet.deviceaction.ActionResizeDevice(lv, 60)
b.devicetree.registerAction(action)
b.devicetree.processActions(dryRun=False)

Comment 1 mulhern 2014-02-26 18:12:15 UTC
I can not reproduce.

Please verify that it still occurs in current version and if it does...please be as specific as possible about initial lvm setup.

Thanks!

- mulhern

Comment 2 mulhern 2014-03-06 16:40:40 UTC
Probably fixed by bz#1064898 fix.


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