[20.04] Missing thin-provisioning-tools prevents VG with thin pool LV from being (de)activated, but not its creation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
The Ubuntu-power-systems project |
Fix Released
|
Medium
|
Canonical Server | ||
lvm2 (Debian) |
New
|
Unknown
|
|||
lvm2 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Creating a thin pool LV is allowed even when thin-provisioni
I think the lvconvert tool, used to combine the two "thin LVs" into a thin pool LV, should refuse to run if thin-provisioni
Steps to reproduce:
root@15-89:~# vgcreate vg /dev/vdb1
Volume group "vg" successfully created
root@15-89:~# vgs
VG #PV #LV #SN Attr VSize VFree
vg 1 0 0 wz--n- 40.00g 40.00g
root@15-89:~# lvcreate -n pool0 -l 90%VG vg
Logical volume "pool0" created.
root@15-89:~# lvcreate -n pool0meta -l 5%VG vg
Logical volume "pool0meta" created.
root@15-89:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
pool0 vg -wi-a----- 36.00g
pool0meta vg -wi-a----- 2.00g
root@15-89:~# ll /dev/mapper/
total 0
drwxr-xr-x 2 root root 100 Jun 21 14:15 ./
drwxr-xr-x 20 root root 3820 Jun 21 14:15 ../
crw------- 1 root root 10, 236 Jun 21 13:15 control
lrwxrwxrwx 1 root root 7 Jun 21 14:14 vg-pool0 -> ../dm-0
lrwxrwxrwx 1 root root 7 Jun 21 14:15 vg-pool0meta -> ../dm-1
root@15-89:~# lvconvert --type thin-pool --poolmetadata vg/pool0meta vg/pool0
WARNING: Converting logical volume vg/pool0 and vg/pool0meta to pool's data and metadata volumes.
THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)
Do you really want to convert vg/pool0 and vg/pool0meta? [y/n]: y
Converted vg/pool0 to thin pool.
root@15-89:~# ll /dev/mapper/
total 0
drwxr-xr-x 2 root root 120 Jun 21 14:15 ./
drwxr-xr-x 20 root root 3840 Jun 21 14:15 ../
crw------- 1 root root 10, 236 Jun 21 13:15 control
lrwxrwxrwx 1 root root 7 Jun 21 14:15 vg-pool0 -> ../dm-2
lrwxrwxrwx 1 root root 7 Jun 21 14:15 vg-pool0_tdata -> ../dm-1
lrwxrwxrwx 1 root root 7 Jun 21 14:15 vg-pool0_tmeta -> ../dm-0
root@15-89:~# lvs -a
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%S
ync Convert
[lvol0_pmspare] vg ewi------- 2.00g
pool0 vg twi-a-tz-- 36.00g 0.00 0.01
[pool0_tdata] vg Twi-ao---- 36.00g
[pool0_tmeta] vg ewi-ao---- 2.00g
If you now reboot the system, all that is gone:
root@15-89:~# ll /dev/mapper/
total 0
drwxr-xr-x 2 root root 60 Jun 21 14:28 ./
drwxr-xr-x 19 root root 3760 Jun 21 14:28 ../
crw------- 1 root root 10, 236 Jun 21 14:28 control
The same happens if you deactivate the VG (which the reboot undoubtedly triggers). It fails because of a missing /usr/sbin/
root@15-89:~# vgchange -a n
/usr/
WARNING: Integrity check of metadata for pool vg/pool0 failed.
0 logical volume(s) in volume group "vg" now active
root@15-89:~# ll /dev/mapper/
total 0
drwxr-xr-x 2 root root 60 Jun 21 14:29 ./
drwxr-xr-x 19 root root 3760 Jun 21 14:29 ../
crw------- 1 root root 10, 236 Jun 21 14:28 control
Related branches
- Dimitri John Ledkov (community): Approve
- Canonical Server packageset reviewers: Pending requested
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 392 lines (+338/-2)6 files modifieddebian/changelog (+12/-0)
debian/control (+3/-2)
debian/patches/lp-1842436-make-generate-example-config.patch (+37/-0)
debian/patches/lp-1842436-restrict-PVs-with-mixed-block-size.patch (+215/-0)
debian/patches/lp-1842436-tests-allow-mixed-block-sizes.patch (+68/-0)
debian/patches/series (+3/-0)
Changed in docker (Ubuntu): | |
assignee: | Taco Screen team (taco-screen-team) → Jon Grimm (jgrimm) |
importance: | Undecided → High |
tags: |
added: targetmilestone-inin16042 removed: targetmilestone-inin--- |
Changed in docker (Ubuntu): | |
assignee: | Jon Grimm (jgrimm) → nobody |
affects: | docker (Ubuntu) → docker.io (Ubuntu) |
summary: |
- Missing thin-provisioning-tools prevent VG from being activated + Missing thin-provisioning-tools prevent VG from being (de)activated |
description: | updated |
affects: | docker.io (Ubuntu) → lvm2 (Ubuntu) |
summary: |
- Missing thin-provisioning-tools prevent VG from being (de)activated + Missing thin-provisioning-tools prevents VG from being (de)activated |
summary: |
- Missing thin-provisioning-tools prevents VG from being (de)activated + Missing thin-provisioning-tools prevents VG with thin pool LV from being + (de)activated, but not its creation |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in lvm2 (Debian): | |
status: | Unknown → New |
tags: | removed: bugnameltc-150003 severity-high |
tags: | added: bugnameltc-150003 severity-high |
Changed in ubuntu-power-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: id-5ccc50675baa0c05bc322dce |
tags: |
added: targetmilestone-inin2004 removed: targetmilestone-inin--- |
summary: |
- [20.04]Missing thin-provisioning-tools prevents VG with thin pool LV + [20.04] Missing thin-provisioning-tools prevents VG with thin pool LV from being (de)activated, but not its creation |
Changed in lvm2 (Ubuntu): | |
assignee: | Canonical Foundations Team (canonical-foundations) → nobody |
Changed in ubuntu-power-systems: | |
assignee: | Canonical Foundations Team (canonical-foundations) → Canonical Server Team (canonical-server) |
Changed in ubuntu-power-systems: | |
status: | Triaged → Fix Released |
Default Comment by Bridge