LVMs with mixed block sizes break subiquity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Triaged
|
Medium
|
Canonical Foundations Team | ||
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I was trying to create the following setup.
2* DASD (4K block size by default) and 2*FCP (512b block size) into a single LVM.
That crashed subiquity badly and I have selected "submit to Canonical" but fail to get any feedback where that data is. I have since then rebooted, but if you could help to combine this report and the data that would be great.
I later on tried to combine such an LVM manually and found a possible root cause:
sudo vgextend ubuntu-vg /dev/dasdf1 /dev/mapper/
Devices have inconsistent logical block sizes (4096 and 512).
So it seems subiquity/curtin need to better consider/adapt block sizes (re-format dasd devices for example) to make them match each other to be able to create a single LVM across them.
tags: | added: s390x |
tags: | added: installer |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: fr-856 |
As confirmation to prove that it can work.
After re-formatting the dasd blksize to match the 512 of the fcp disks as following I was able to "unite" them in one LVM.
$ sudo dasdfmt /dev/disk/ by-path/ ccw-0.0. 254e by-path/ ccw-0.0. 254e in the following way:
[sudo] password for ubuntu:
Please enter the blocksize of the formatting [4096]: 512
Drive Geometry: 60102 Cylinders * 15 Heads = 901530 Tracks
Device Type: Fully Provisioned
I am going to format the device /dev/disk/
Device number of device : 0x254e
Labelling device : yes
Disk label : VOL1
Disk identifier : 0X254E
Extent start (trk no) : 0
Extent end (trk no) : 901529
Compatible Disk Layout : yes
Blocksize : 512
Mode : Full
...
$ sudo fdasd /dev/disk/ by-path/ ccw-0.0. 254e
...
$ lsdasd | grep 512
0.0.154e active dasdc 94:8 ECKD 512 21569MB 44174970
0.0.254e active dasdf 94:20 ECKD 512 21569MB 44174970
$ sudo pvcreate /dev/disk/ by-path/ ccw-0.0. 254e-part1 by-path/ ccw-0.0. 154e-part1 by-path/ ccw-0.0. 254e-part1 /dev/disk/ by-path/ ccw-0.0. 154e-part1 vg/ubuntu- lv /dev/disk/ by-path/ ccw-0.0. 254e-part1 /dev/disk/ by-path/ ccw-0.0. 154e-part1
$ sudo pvcreate /dev/disk/
$ sudo vgextend ubuntu-vg /dev/disk/
Volume group "ubuntu-vg" successfully extended
$ sudo lvextend /dev/ubuntu-
Size of logical volume ubuntu-vg/ubuntu-lv changed from 126.99 GiB (32510 extents) to <169.12 GiB (43294 extents).
Logical volume ubuntu-vg/ubuntu-lv successfully resized.