Bug 1259348 - lvm: thin pool attribute does not change when the pool is not active
lvm: thin pool attribute does not change when the pool is not active
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2 (Show other bugs)
7.1
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: LVM and device-mapper development team
cluster-qe@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-02 08:34 EDT by Bruno Goncalves
Modified: 2015-09-02 08:35 EDT (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-02 08:35:38 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Bruno Goncalves 2015-09-02 08:34:08 EDT
Description of problem:
Changing LV thinp pool to not active its attribute does not change, it keeps showing twi-aotz--


# lvs tsvg/pool1
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool1 tsvg twi-aotz-- 100.00m             0.00   0.98   

Version-Release number of selected component (if applicable):
lvm2-2.02.115-3.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
# pvs
  PV         VG                Fmt  Attr PSize   PFree  
  /dev/loop0 tsvg              lvm2 a--  124.00m  16.00m
  /dev/loop1 tsvg              lvm2 a--  124.00m  72.00m
  /dev/loop2 tsvg              lvm2 a--  124.00m  72.00m
  /dev/loop3 tsvg              lvm2 a--  124.00m 120.00m

# vgs
  VG                #PV #LV #SN Attr   VSize   VFree  
  tsvg                4   4   0 wz--n- 496.00m 280.00m

# lvs
  LV    VG                Attr       LSize   Pool  Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv1   tsvg              Vwi-a-tz-- 100.00m pool1        0.00                                   
  lv2   tsvg              Vwi-a-tz-- 100.00m pool2        0.00                                   
  pool1 tsvg              twi-aotz-- 100.00m              0.00   0.98                            
  pool2 tsvg              twi-aotz-- 104.00m              0.00   0.98  

# lvdisplay tsvg/pool1
  --- Logical volume ---
  LV Name                pool1
  VG Name                tsvg
  LV UUID                JaJup9-taVe-QOvU-51CO-jExV-tCHf-WjfDnb
  LV Write Access        read/write
  LV Creation host, time storageqe-07.lab.bos.redhat.com, 2015-09-02 07:45:13 -0400
  LV Pool metadata       pool1_tmeta
  LV Pool data           pool1_tdata
  LV Status              available
  # open                 2
  LV Size                100.00 MiB
  Allocated pool data    0.00%
  Allocated metadata     0.98%
  Current LE             25
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     8192
  Block device           253:5

# lvs tsvg/pool1
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool1 tsvg twi-aotz-- 100.00m             0.00   0.98 

# lvchange -an tsvg/pool1
#

# lvdisplay tsvg/pool1
  --- Logical volume ---
  LV Name                pool1
  VG Name                tsvg
  LV UUID                JaJup9-taVe-QOvU-51CO-jExV-tCHf-WjfDnb
  LV Write Access        read/write
  LV Creation host, time storageqe-07.lab.bos.redhat.com, 2015-09-02 07:45:13 -0400
  LV Pool metadata       pool1_tmeta
  LV Pool data           pool1_tdata
  LV Status              NOT available
  LV Size                100.00 MiB
  Allocated pool data    0.00%
  Allocated metadata     0.98%
  Current LE             25
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto

# lvs tsvg/pool1
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool1 tsvg twi-aotz-- 100.00m             0.00   0.98  


Actual results:
Attr is twi-aotz--

Expected results:
Attr should be twi---tz--
Comment 1 Bruno Goncalves 2015-09-02 08:35:38 EDT
It is already fixed on lvm2-2.02.128-1.el7.x86_64

# lvs tsvg/pool1
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool1 tsvg twi-aotz-- 100.00m             0.00   0.98             

# lvchange -an tsvg/pool1
#

# lvs tsvg/pool1
  LV    VG   Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  pool1 tsvg twi---tz-- 100.00m             0.00   0.98

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