[UBUNTU] Avoid creation of mixed-blocksize PV on LVM volume groups
Bug #1842436 reported by
bugproxy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Canonical Foundations Team | ||
lvm2 (Ubuntu) |
Fix Released
|
Undecided
|
Julian Andres Klode |
Bug Description
Default block-size of a file-system seems to be dependent on the volume-size.
Big volume (at least ext4) does have 4k blk-size, even the underlying device with a smaller physical blk-size.
The patch, avoiding define mixed-sized volume groups is now upstream
in the master branch of LVM2
https:/
Using this patch within the distribution is for sanity reasons.
Related branches
~paelzer/ubuntu/+source/lvm2:fix-1657646-thin-provisioning-tools-MIR-1828887-complete
Merged
into
ubuntu/+source/lvm2:ubuntu/eoan-devel
at
revision 4d20b23c9af7252aec97b7b4509b1f35e607be52
- 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)
tags: | added: architecture-s39064 bugnameltc-181228 severity-high targetmilestone-inin--- |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → linux (Ubuntu) |
affects: | linux (Ubuntu) → lvm2 (Ubuntu) |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
importance: | Undecided → High |
Changed in lvm2 (Ubuntu): | |
assignee: | Skipper Bug Screeners (skipper-screen-team) → Julian Andres Klode (juliank) |
tags: | added: id-5d6e87bc40caa37d15c1d145 |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
description: | updated |
Changed in ubuntu-z-systems: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Setup with mixed PVs (on dasds forced with dasdfmt):
ubuntu@ eoan-disktest: ~$ sudo pvdisplay Qalj-415c- 01i7-0Zxb- gXTW-oUd7BW
"/dev/vdc1" is a new physical volume of "<6.88 GiB"
--- NEW Physical volume ---
PV Name /dev/vdc1
VG Name
PV Size <6.88 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID GqEvSA-
"/dev/vdd1" is a new physical volume of "<6.88 GiB" JfSi-59ZS- RCzr-nAdC- 9SUf-U9EeOu
--- NEW Physical volume ---
PV Name /dev/vdd1
VG Name
PV Size <6.88 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID iMkCz2-
"/dev/vde1" is a new physical volume of "3.51 GiB" lALQ-Om05- a57f-e0Qu- pE4W-6Rmqyn
--- NEW Physical volume ---
PV Name /dev/vde1
VG Name
PV Size 3.51 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID vuWlZW-
"/dev/vdf1" is a new physical volume of "3.51 GiB" yXA3-MHPr- b3ON-A6Ua- d5GZ-QOHUae
--- NEW Physical volume ---
PV Name /dev/vdf1
VG Name
PV Size 3.51 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID OkVIqF-
ubuntu@ eoan-disktest: ~$ sudo blockdev --getss /dev/vdc1 /dev/vdd1 /dev/vde1 /dev/vdf1
4096
4096
512
512
out of these creating mixed size VG and LV: grp1/log_ vol1 F233-2RYv- rjy4-iGW6- Fmo0-f0NNU0
$ sudo vgcreate vol_grp1 /dev/vdc1 /dev/vdd1 /dev/vde1 /dev/vdf1
$ sudo lvcreate -l 18 -n log_vol1 vol_grp1
$ sudo lvdisplay
--- Logical volume ---
LV Path /dev/vol_
LV Name log_vol1
VG Name vol_grp1
LV UUID SNbOFb-
LV Write Access read/write
LV Creation host, time eoan-disktest, 2019-09-09 14:51:41 +0000
LV Status available
# open 0
LV Size 72.00 MiB
Current LE 18
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
Updating to the test build with the requested fix (after lvremove/vgremove).
Now the same create gives me block_sizes.
$ sudo vgcreate vol_grp1 /dev/vdc1 /dev/vdd1 /dev/vde1 /dev/vdf1
Devices have inconsistent logical block sizes (4096 and 512).
See lvm.conf allow_mixed_
$ echo $?
5
I can throw this line into lvm.conf devices section:
allow_ mixed_block_ sizes = 1
to make it work again.
I personally miss an entry to the man page or the default .conf file.
I might need to take a look if that was added in another commit, but functionally it looks good already. But if anyone wants the PPA would be already testable.