/srv/irclogs.ubuntu.com/2016/06/23/#ubuntu-s390x.txt

xnoxcpaelzer, hey. in addition to the IPL bug, the installer on FBA devices tries to use (a) msdos partition table (b) create logical partition #5 which fails.09:46
xnoxon FBA devices, what partition table should be used?09:46
cpaelzerxnox: hi10:07
cpaelzerxnox: I only saw it uses fdasd and reported that -so you are saying "afterwards" it is using msdos parts which fails as well10:07
cpaelzerhmm10:07
cpaelzerxnox: let me check the docs what partition table format should be used10:07
xnoxcpaelzer, i tried autopartitioning, and it clearly went to use msdos because the label is not "dasd"10:08
xnoxdasdfmt complaints "this is not eckd" device and10:08
cpaelzerxnox: yeah this type can't be formatted by Linux at all10:08
xnoxand fdasd also complaints.10:08
cpaelzerxnox: that is what I meant with "we should put something in docs" in the bug10:08
cpaelzerxnox: yeah it is not fdasd, it is what a scsi disk would be10:09
cpaelzerxnox: fdisk ?10:09
cpaelzerwhat does it use?10:09
xnoxfdisk can do anything under the moon =)10:09
xnox"It understands GPT, MBR, Sun, SGI and BSD partition tables."10:09
xnoxi'll try gpt, if possible, but i think that blows up too =)10:09
cpaelzerxnox: still searching the table I've seen last week ...10:09
cpaelzerxnox: http://public.dhe.ibm.com/software/dw/linux390/docu/l4n4dd29.pdf page 15910:11
cpaelzerxnox: lets start there10:11
cpaelzerFBA disks are column #310:12
cpaelzerand as they don't work with dasdfmt they won't have CDL/LDL disk layout10:12
cpaelzerinstead only CMS disk layout is supported10:12
cpaelzerand only one partition ...10:12
cpaelzerthey don't name the/a tool to partition10:12
cpaelzermaybe it doesn't even have one - I mean there is a "max partition = 1"10:13
cpaelzerxnox: ^^10:13
cpaelzerI asked jfh to put a FBA disk as secondary device to his VMs so we could try with the power of a full linux instead of install env10:13
cpaelzerjfh: is that ready somewhere ?10:13
xnoxcpaelzer, yes10:13
xnoxi have that10:13
cpaelzerxnox: great10:13
xnoxlet me try to create two primary partitions10:14
cpaelzerI'd be bold and say maybe it is never partitioned at all - but please try the multitude of options you'd have with fdisk or so10:14
xnoxcpaelzer, this starting to make sense.10:15
cpaelzerhca: I never worked that much with FBA - could you comment/confirm on the partitioning no FBA a bit?10:15
cpaelzerhca: who needs that FBA cruft (well sadly some people like it)10:15
xnoxso in debian, for a long time it had short-circuited "automatic partioning" cause at the time of debian port only FBA was common, and if it can only have one partition.... partman autoparitioning into 5 partitions makes no sense.10:15
cpaelzerxnox: ack10:16
cpaelzerxnox: and dasd CDL format can only have three, not10:16
cpaelzer510:16
cpaelzerwhich is most common today10:16
xnoxsure, but we use fdasd there which is sensible.10:16
cpaelzerxnox: as long as you are not using fdasd trying to do >3 :-)10:17
cpaelzerxnox: I'll have to go to lunch now - but yes for FBA you'll likely have to revive the old short-circuit10:17
sthcpaelzer let me clarify a few things about FBA devices10:39
sthcpaelzer they do not have to and even can not be formatted using dasdfmt10:40
sthcpaelzer per default there is a single partition implicit partition, meaning the partition is created by the DASD driver and has no information written to the disk10:40
sthcpaelzer within z/VM you can use CMS FORMAT to generate a CMS partition10:40
sthcpaelzer as of today IBM does not support the usage of fdisk for FBA devices10:40
sthcpaelzer I tested it to a certain degree and it works with msdos style partition tables and up to 3 partitions10:41
sthcpaelzer as far as I remember there is a conflict with GPT and zipl on FBA devices, there might be a risk of data corruption because of overlapping areas on the disk10:42
cpaelzersth: hi Stefan10:42
jfh@cpaezler and @xnox: sorry for joining this conversation so late ...10:42
jfhafair there is no special partition table for FBA, and defaults back to msdos10:43
cpaelzersth: thanks a lot, that confirmed all I found so far in a much more condensed way - great10:43
cpaelzerjfh: see above the explanation of sth about partitions10:44
jfhand I think fdisk does automatically use msdos if no table is there ...10:44
jfhoh - okay ...10:44
cpaelzerjfh: and all sth reports matches what I found in the device drivers handbook10:44
cpaelzeralso he owns the driver so there very unlikely is a better source of information :-)10:44
jfhI see, but didn't know that fdisk is (still) not officially supported ... due to the fact that is used by lot's of folks on FBA devices ... and is even described in that way in the virt cookbooks ... anyhow ...10:47
sthcpaelzer: no problem, let me know if you need more information10:48
xnoxsth, what i'm taking out of this discussion is that (a) parted is buggy, and tries to create extended/logical partitions (b) i should fix our installer to not do that on FBA and CKD devices10:50
xnox(c) there is still the IPL bug off FBA devices =(10:50
sthxnox, a b c yes and I am working on c10:51
xnoxsth, during 16.04 development we mostly used uncompressed kernel images, and switched to compressed images very late. I wonder if using scripts from kernel source tree to uncompress the kernel image would help to mitigate the IPL bug, or be able to investigate it easier.10:56
jfh@sth: Hmm, I'm wondering if EDEV FBA can really be an officially supported scenario in this case ?!10:56
cpaelzerjfh: it can, just not with partitioning10:57
cpaelzersth: the implicit partition by the dsasd-fba driver is the supported solution right?10:57
sthxnox it might help to mitigate but as the bugs hits on special kernel sizes/offsets it might also not10:58
jfhthat's btw the suggested step from the virt. cookbook "parted -s /dev/dasde mklabel msdos mkpart primary 0% 100%"  (dasde being an FBA device)11:00
cpaelzersth: not that I'd vote to pad the kernel, but is the pattern of bad size/offset already known ?11:00
xnoxcpaelzer, well at the moment we have a bug with ECKD drives too - if one forces to use msdos partition table, it will caboom with automatic partitioning recipy.11:01
cpaelzerouch11:01
xnoxso this bug is worth fixing11:01
sthjfh as of today there is a bug in the loader for FBA devices and i think the install image needs to be updated with a fixed zipl to get this fixed, I do not know if you would like to restrict this scenario officially11:01
xnoxsth, we have new media published on 21st of July for 16.04.1 release. It would be nice to have a fix for this before then (july 14th the latest)11:03
jfh@sth: not necessarily, if not needed ... ;-)11:03
sthcpaelzer we create chunks of the kernel image thats adresses are written to the bootmap file, if one of those chunks consists exactly of 128 blocks it will break the loader11:03
jfh@xnox: agreed11:03
xnoxsth, about restricting.... in general there is plenty of ways of shooting one in the foot. And obvious ways of shooting oneself in the foot should not be the default =) like it currently is with clicking "continue" throughout the installer on an fba device.11:04
xnox(with partitioning & IPL imploding)11:04
jfh@xnox, @sth: is case we don't have a proper solution until 16.04.1 we should at least add a comment to the release notes, right ? But let's see ...11:06
cpaelzersth: thanks for the info, are these chunks the offset list created due to filesystem fragmentation - shouldn't be too much on a newly installed system11:06
sthjfh regarding the usage of parted/fdisk on FBA, at least I am not aware of an official support statement, I do not know if the cookbook can be seen as such a statement11:07
sthjfh as far as I have tested the described usage of parted should work11:08
sthcpaelzer I am not 100% sure about the list generation but I think no11:10
sthi have a fix for the loader in test11:10
sthshould be included in our bugzilla next week, I think11:11
jfh@sth: that usually worked for me as well and for lot's of other folks (even for customers in prod) - so I assumed that it is officially supported - so "support due to long-term and traditional usage" ;-)11:12
sthjfh ;)11:13
xnoxhttps://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/159549511:17
ubottuLaunchpad bug 1595495 in partman-base (Ubuntu) "DASD drives can only hold 3 partitions" [Undecided,New]11:17
xnoxuploaded a fix to yakkety to short-circuit extended partitions usage on dasd drives.11:34
xnoxwill retest, and sru into xenial.11:35
=== fbader_ is now known as fbader

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!