Thursday, 2024-08-29

opendevreviewtzing proposed openstack/diskimage-builder master: Upgrade openEuler to 22.03 LTS  https://review.opendev.org/c/openstack/diskimage-builder/+/92746606:41
opendevreviewtzing proposed openstack/diskimage-builder master: Upgrade openEuler to 24.03 LTS  https://review.opendev.org/c/openstack/diskimage-builder/+/92746608:35
TheJuliaSo, we found a problem with GPT partitioning and dib, or to be more precise with hardware with 4k block devices which only allow use of 4k block devices23:33
clarkbTheJulia: meaning dib would need to partition with 4k blocks ?23:49
clarkbit does already partition aligned to 1MiB by default which should be compatibile with 4k blocks23:50
clarkbis the issue the partitions or the fs block size? I'm guessing it is actually the filesystem within the partitions as we're 1MiB aligned already23:52
TheJulianot alignment23:52
TheJuliait boils down to how GPT works actually23:52
TheJuliaon a 512 byte block virtual size system, gpt starts in the second block and ends in like block 3523:53
TheJuliain a machine with a 4k block size, gpt starts in the second block, and ends in block ?8?23:53
TheJuliathat *first* block for 512 starts at byte 512, where as on the 4k device, it starts at byte 409723:54
clarkboh I see23:54
TheJuliameaning the 512 block device is incompatible with the 4k disk storage system23:54
clarkband then you probably also need xfs/ext4 etc to be 4096 block sizes but that appears to be default for xfs at least23:54
TheJuliawell23:54
TheJuliaThey might be smart enough to figure that part out23:54
TheJuliagenerally mkfs.ext4 definitely is23:54
TheJuliaat least based on testing23:55
TheJuliaThe issue is partitioning also needs to be sector size aware as well23:55
clarkbya ext4 appears to use a heuristic but the manpage says it will usually be 409623:55
clarkbxfs seems to hardcode 4096 as the default23:55
TheJuliathat is good then23:55
clarkbso in theory if we can change the layout of the gpt partition when necessary the problem should be addressed23:56
TheJuliaanyway, I've got a patch, I'm going to work on and push up shortly. Steve is likely going to work on something like a "make this 4k"23:56
TheJuliakind of, yeah, but it has to be done upfront23:56
TheJuliaAnyway, I need to make some coffee or something and push a patch up shortly23:56
clarkbright you have to know if you're making an image for 512 or 4096 block sizes23:57
clarkbTheJulia: will a 512 byte block system figure out if the gpt partition is at byte 4097 intead?23:58
TheJuliaso that is where it gets *more* fun23:59
TheJulialinux magically makes IO interactions for the user 51223:59
TheJuliaunless your working on a device which has it locked to 4096, like a loopback23:59

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!