Bug 385581

Summary: RHEL5 cmirror tracker: unable to resize active mirrors
Product: Red Hat Enterprise Linux 5 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: Milan Broz <mbroz>
Status: CLOSED DUPLICATE QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.0CC: agk, dwysocha, edamato, heinzm, jbrassow, junichi.nomura, kanderso, kueda, kueda, mbroz, m-ikeda, mikeda, prockai, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-24 10:25:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Corey Marthaler 2007-11-15 20:57:24 UTC
Description of problem:
This operation appears blocked behind bz 385541.

[root@taft-02 ~]# lvs -a -o +devices
  LV                 VG         Attr   LSize  Origin Snap%  Move Log         
Copy%  Devices
  LogVol00           VolGroup00 -wi-ao 66.19G                                  
     /dev/sda2(0)
  LogVol01           VolGroup00 -wi-ao  1.94G                                  
     /dev/sda2(2118)
  mirror1            taft       mwi-a-  5.00G                    mirror1_mlog 
32.66 mirror1_mimage_0(0),mirror1_mimage_1(0)
  [mirror1_mimage_0] taft       iwi-ao  5.00G                                  
     /dev/sdb1(0)
  [mirror1_mimage_1] taft       iwi-ao  5.00G                                  
     /dev/sdb2(0)
  [mirror1_mlog]     taft       lwi-ao  4.00M                                  
     /dev/sdb5(0)
  mirror2            taft       mwi-a-  5.00G                    mirror2_mlog
100.00 mirror2_mimage_0(0),mirror2_mimage_1(0)
  [mirror2_mimage_0] taft       iwi-ao  5.00G                                  
     /dev/sdb3(0)
  [mirror2_mimage_1] taft       iwi-ao  5.00G                                  
     /dev/sdb4(0)
  [mirror2_mlog]     taft       lwi-ao  4.00M                                  
     /dev/sdb2(1280)
[root@taft-02 ~]# lvextend -L 10G taft/mirror1
  Extending 2 mirror images.
  Mirrors cannot be resized while active yet.
[root@taft-02 ~]# lvchange -an taft/mirror2
[HANG]
                                                         

Version-Release number of selected component (if applicable):
2.6.18-53.el5
cmirror-1.1.0-7

Comment 2 Jonathan Earl Brassow 2008-01-14 22:57:06 UTC
... but you can resize non-active mirrors.  I'll have to check, but I think the
only thing blocking this is a check in the code... the actual limitation has
been removed.



Comment 5 Corey Marthaler 2008-02-05 21:51:00 UTC
Jon's comment is correct, you can currently resize inactive mirrors.

Comment 7 Corey Marthaler 2008-08-27 20:29:57 UTC
There's probably no reason to block cmirrors in 5.3 for this. Single machine mirrors can not be resized while active either. However, I believe both cluster and single machine mirrors can be in RHEL4.

Comment 11 Corey Marthaler 2008-09-25 16:32:32 UTC
Just an FYI, this functionality is still not turned on in the latest build:

[root@taft-04 ~]# lvextend -L 10G taft/mirror
  Extending 2 mirror images.
  Mirrors cannot be resized while active yet

2.6.18-116.el5

lvm2-2.02.40-2.el5    BUILT: Fri Sep 19 09:46:26 CDT 2008
lvm2-cluster-2.02.40-2.el5    BUILT: Fri Sep 19 09:49:59 CDT 2008
device-mapper-1.02.28-2.el5    BUILT: Fri Sep 19 02:50:32 CDT 2008
cmirror-1.1.25-1.el5    BUILT: Fri Sep 19 16:27:46 CDT 2008
kmod-cmirror-0.1.17-1.el5    BUILT: Fri Sep 19 16:27:33 CDT 2008

Comment 12 Jonathan Earl Brassow 2008-09-30 15:16:50 UTC
The check that rejects resizing active mirrors is in LVM2/tools/lvresize.c, so changing component.

Comment 13 Milan Broz 2008-10-24 10:25:24 UTC
lvextend just call lvrezize unternally, marking dup of bug 220567.

*** This bug has been marked as a duplicate of bug 220567 ***