RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1696442 - drastic increase in pool size causes issues with pool metadata: "device-mapper: space map metadata: unable to allocate new metadata block"
Summary: drastic increase in pool size causes issues with pool metadata: "device-mappe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 8.1
Assignee: Zdenek Kabelac
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 20:43 UTC by Corey Marthaler
Modified: 2021-09-07 11:50 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.03.11-0.2.20201103git8801a86.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:01:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
verbose lvextend attempt (163.60 KB, text/plain)
2019-04-04 20:55 UTC, Corey Marthaler
no flags Details

Description Corey Marthaler 2019-04-04 20:43:18 UTC
Description of problem:

[root@hayes-02 ~]# pvcreate  /dev/sdl1 /dev/sdn1 /dev/sdm1 /dev/sdo1 /dev/sdp1 /dev/sdj1 /dev/sde1 /dev/sdf1
  Physical volume "/dev/sdl1" successfully created.
  Physical volume "/dev/sdn1" successfully created.
  Physical volume "/dev/sdm1" successfully created.
  Physical volume "/dev/sdo1" successfully created.
  Physical volume "/dev/sdp1" successfully created.
  Physical volume "/dev/sdj1" successfully created.
  Physical volume "/dev/sde1" successfully created.
  Physical volume "/dev/sdf1" successfully created.
[root@hayes-02 ~]# vgcreate   thinpool_4_5830 /dev/sdl1 /dev/sdn1 /dev/sdm1 /dev/sdo1 /dev/sdp1 /dev/sdj1 /dev/sde1 /dev/sdf1
  Volume group "thinpool_4_5830" successfully created

[root@hayes-02 ~]# lvcreate --activate y --thinpool thinpool_4_58300 -L 1G thinpool_4_5830
  Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data.
  Logical volume "thinpool_4_58300" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt1
  Logical volume "virt1" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt2
  Logical volume "virt2" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt3
  WARNING: Sum of all thin volume sizes (1.46 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt3" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt4
  WARNING: Sum of all thin volume sizes (1.95 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt4" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt5
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt5" created.
[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool              Data%  Meta%  Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                 /dev/sdl1(0)
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   1.00g                   0.00   11.43  thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   1.00g                                 /dev/sdl1(1)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                 /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00

# Drastic increase (like 2T)
[root@hayes-02 ~]# lvextend -l 528154 /dev/thinpool_4_5830/thinpool_4_58300
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 1.00 GiB (256 extents) to 2.01 TiB (528154 extents).
  device-mapper: resume ioctl on  (253:2) failed: No space left on device
  Unable to resume thinpool_4_5830-thinpool_4_58300-tpool (253:2).
  Problem reactivating logical volume thinpool_4_5830/thinpool_4_58300.
  Releasing activation in critical section.
  libdevmapper exiting with 2 device(s) still suspended.

Apr  4 14:08:01 hayes-02 kernel: device-mapper: thin: Data device (dm-1) discard unsupported: Disabling discard passdown.
Apr  4 14:08:01 hayes-02 systemd[1]: Started Device-mapper event daemon.
Apr  4 14:08:01 hayes-02 dmeventd[2547]: dmeventd ready for processing.
Apr  4 14:08:01 hayes-02 lvm[2547]: Monitoring thin pool thinpool_4_5830-thinpool_4_58300.
Apr  4 14:08:05 hayes-02 dmeventd[2547]: No longer monitoring thin pool thinpool_4_5830-thinpool_4_58300.
Apr  4 14:08:05 hayes-02 kernel: device-mapper: thin: Data device (dm-1) discard unsupported: Disabling discard passdown.
Apr  4 14:08:05 hayes-02 lvm[2547]: Monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.
Apr  4 14:09:21 hayes-02 dmeventd[2547]: No longer monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: Data device (dm-1) discard unsupported: Disabling discard passdown.
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: 253:2: growing the data device from 16384 to 33801856 blocks
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: 253:2: reached low water mark for metadata device: sending event.
Apr  4 14:09:21 hayes-02 kernel: device-mapper: space map metadata: unable to allocate new metadata block
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: 253:2: metadata operation 'dm_pool_resize_data_dev' failed: error = -28
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: 253:2: aborting current metadata transaction
Apr  4 14:09:21 hayes-02 kernel: device-mapper: thin: 253:2: switching pool to read-only mode
Apr  4 14:09:21 hayes-02 kernel: device-mapper: table: 253:2: thin-pool: preresume failed, error = -28

[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool              Data%  Meta%  Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                 /dev/sdl1(0)
  thinpool_4_58300         thinpool_4_5830 twi-CotzM-   2.01t                   0.00   11.43  thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   2.01t                                 /dev/sdl1(1)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   2.01t                                 /dev/sdj1(0)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                 /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300  0.00



Version-Release number of selected component (if applicable):
kernel-4.18.0-80.el8    BUILT: Wed Mar 13 07:47:44 CDT 2019
lvm2-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
lvm2-libs-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
lvm2-dbusd-2.03.02-6.el8    BUILT: Fri Feb 22 04:50:28 CST 2019
device-mapper-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-libs-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-event-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-event-libs-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-persistent-data-0.7.6-1.el8    BUILT: Sun Aug 12 04:21:55 CDT 2018


How reproducible:
Everytime

Comment 1 Corey Marthaler 2019-04-04 20:44:16 UTC
Same scenario restarted but with "small" increases works fine.

[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool             Origin Data%  Meta%  Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                       /dev/sdl1(0)
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   1.00g                         0.00   11.43  thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   1.00g                                       /dev/sdl1(1)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                       /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
[root@hayes-02 ~]# lvextend -L +1G /dev/thinpool_4_5830/thinpool_4_58300
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pools (2.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 1.00 GiB (256 extents) to 2.00 GiB (512 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.
[root@hayes-02 ~]# lvextend -L +1G /dev/thinpool_4_5830/thinpool_4_58300
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 2.00 GiB (512 extents) to 3.00 GiB (768 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.
[root@hayes-02 ~]# lvextend -L +1G /dev/thinpool_4_5830/thinpool_4_58300
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 3.00 GiB (768 extents) to 4.00 GiB (1024 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.
[root@hayes-02 ~]# lvextend -L +1G /dev/thinpool_4_5830/thinpool_4_58300
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 4.00 GiB (1024 extents) to 5.00 GiB (1280 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.
[root@hayes-02 ~]# lvextend -L +1G /dev/thinpool_4_5830/thinpool_4_58300
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 5.00 GiB (1280 extents) to 6.00 GiB (1536 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.

Comment 2 Corey Marthaler 2019-04-04 20:55:02 UTC
Created attachment 1552099 [details]
verbose lvextend attempt

Comment 3 Corey Marthaler 2019-04-04 21:00:09 UTC
FWIW - this happens whether or not thin_pool_autoextend_threshold/thin_pool_autoextend_percent are turned on.

Comment 4 Mike Snitzer 2019-04-04 21:07:33 UTC
patient: "doctor it hurts when I slam my head in a car door" ;)

doctor: "maybe you should extend the thin-pool's metadata (from its undersized 4mb) before extending its data (from 1gb to 2tb)?"

Comment 5 Zdenek Kabelac 2019-04-05 07:53:31 UTC
Note - upstream recently welcomed this commit:

https://www.redhat.com/archives/lvm-devel/2019-April/msg00003.html

Which essentially up-sizes metadata first to match data - though the patch will still need some tunning as it can be made better.

Comment 6 Zdenek Kabelac 2020-09-14 12:42:39 UTC
Considering this solved for RH 8.3 as we upsize thin-pool metadata (_tmeta) to match thin-pool data (_tdata) and we do resize metadata first.

Comment 8 Corey Marthaler 2020-11-13 00:01:49 UTC
Fix verified in the latest .d rpms.

kernel-4.18.0-246.el8.dt2    BUILT: Mon Nov  9 07:22:41 CST 2020
lvm2-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
lvm2-libs-2.03.11-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020

device-mapper-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-libs-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-event-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020
device-mapper-event-libs-1.02.175-0.2.20201103git8801a86.el8    BUILT: Wed Nov  4 07:04:46 CST 2020



[root@hayes-02 ~]# lvcreate --activate y --thinpool thinpool_4_58300 -L 1G thinpool_4_5830
  Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data.
  Logical volume "thinpool_4_58300" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt1
  Logical volume "virt1" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt2
  Logical volume "virt2" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt3
  WARNING: Sum of all thin volume sizes (1.46 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt3" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt4
  WARNING: Sum of all thin volume sizes (1.95 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt4" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt5
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt5" created.

[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool             Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices                  
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                                                 /dev/sdl1(0)             
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   1.00g                         0.00   11.43                            thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   1.00g                                                                 /dev/sdl1(1)             
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                                                 /dev/sdp1(0)             
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00                                                             
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00                                                             
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00                                                             
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00                                                             
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00                                                             

[root@hayes-02 ~]# lvextend -l 528154 /dev/thinpool_4_5830/thinpool_4_58300
  Rounding size to boundary between physical extents: <2.02 GiB.
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pools (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tmeta changed from 4.00 MiB (1 extents) to <2.02 GiB (516 extents).
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 1.00 GiB (256 extents) to 2.01 TiB (528154 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.

Comment 12 Corey Marthaler 2021-01-18 23:57:49 UTC
Fix verified in the latest rpms.

kernel-4.18.0-274.el8    BUILT: Thu Jan 14 01:49:32 CST 2021
lvm2-2.03.11-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021
lvm2-libs-2.03.11-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021
device-mapper-1.02.175-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021
device-mapper-libs-1.02.175-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021
device-mapper-event-1.02.175-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021
device-mapper-event-libs-1.02.175-1.el8    BUILT: Fri Jan  8 05:21:07 CST 2021



[root@hayes-02 ~]# vgcreate   thinpool_4_5830 /dev/sdl1 /dev/sdn1 /dev/sdm1 /dev/sdo1 /dev/sdp1 /dev/sdj1 /dev/sde1 /dev/sdf1
  WARNING: Devices have inconsistent physical block sizes (4096 and 512).
  WARNING: Devices have inconsistent physical block sizes (4096 and 512).
  WARNING: Devices have inconsistent physical block sizes (4096 and 512).
  Volume group "thinpool_4_5830" successfully created

[root@hayes-02 ~]# vgs
  VG              #PV #LV #SN Attr   VSize  VFree 
  thinpool_4_5830   8   0   0 wz--n- <7.64t <7.64t
[root@hayes-02 ~]# lvcreate --activate y --thinpool thinpool_4_58300 -L 1G thinpool_4_5830
  Thin pool volume with chunk size 64.00 KiB can address at most 15.81 TiB of data.
  Logical volume "thinpool_4_58300" created.

[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt1
  Logical volume "virt1" created.
[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt2
  Logical volume "virt2" created.

[root@hayes-02 ~]#  lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool             Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                                                 /dev/sdl1(0)
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   1.00g                         0.00   11.13                            thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   1.00g                                                                 /dev/sdl1(1)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                                                 /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00

[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt3
  WARNING: Sum of all thin volume sizes (1.46 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt3" created.

[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt4
  WARNING: Sum of all thin volume sizes (1.95 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt4" created.

[root@hayes-02 ~]# lvcreate --activate y --virtualsize 500M -T thinpool_4_5830/thinpool_4_58300 -n virt5
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pool thinpool_4_5830/thinpool_4_58300 (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "virt5" created.

[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool             Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------   4.00m                                                                 /dev/sdl1(0)
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   1.00g                         0.00   11.43                            thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   1.00g                                                                 /dev/sdl1(1)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----   4.00m                                                                 /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00

[root@hayes-02 ~]# lvextend -l 528154 /dev/thinpool_4_5830/thinpool_4_58300
  Rounding size to boundary between physical extents: <2.02 GiB.
  WARNING: Sum of all thin volume sizes (2.44 GiB) exceeds the size of thin pools (1.00 GiB).
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tmeta changed from 4.00 MiB (1 extents) to <2.02 GiB (516 extents).
  Size of logical volume thinpool_4_5830/thinpool_4_58300_tdata changed from 1.00 GiB (256 extents) to 2.01 TiB (528154 extents).
  Logical volume thinpool_4_5830/thinpool_4_58300_tdata successfully resized.

Jan 18 17:33:58 hayes-02 dmeventd[2765]: No longer monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.
Jan 18 17:33:58 hayes-02 kernel: device-mapper: thin: 253:2: growing the metadata device from 1024 to 528384 blocks
Jan 18 17:33:58 hayes-02 lvm[2765]: Monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.
Jan 18 17:33:58 hayes-02 dmeventd[2765]: No longer monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.
Jan 18 17:33:58 hayes-02 kernel: device-mapper: thin: Data device (dm-1) discard unsupported: Disabling discard passdown.
Jan 18 17:33:58 hayes-02 kernel: device-mapper: thin: 253:2: growing the data device from 16384 to 33801856 blocks
Jan 18 17:33:58 hayes-02 lvm[2765]: Monitoring thin pool thinpool_4_5830-thinpool_4_58300-tpool.

[root@hayes-02 ~]# lvs -a -o +devices
  LV                       VG              Attr       LSize   Pool             Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices
  [lvol0_pmspare]          thinpool_4_5830 ewi-------  <2.02g                                                                 /dev/sdl1(0)
  [lvol0_pmspare]          thinpool_4_5830 ewi-------  <2.02g                                                                 /dev/sdl1(257)
  thinpool_4_58300         thinpool_4_5830 twi-aotz--   2.01t                         0.00   1.18                             thinpool_4_58300_tdata(0)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   2.01t                                                                 /dev/sdl1(1)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   2.01t                                                                 /dev/sdl1(772)
  [thinpool_4_58300_tdata] thinpool_4_5830 Twi-ao----   2.01t                                                                 /dev/sdj1(0)
  [thinpool_4_58300_tmeta] thinpool_4_5830 ewi-ao----  <2.02g                                                                 /dev/sdf1(0)
  virt1                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt2                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt3                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt4                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00
  virt5                    thinpool_4_5830 Vwi-a-tz-- 500.00m thinpool_4_58300        0.00

Comment 14 errata-xmlrpc 2021-05-18 15:01: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 (lvm2 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1659


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