I am running Trune nas v25.20 and all of the exports of my disks with 4096 sectors will not work when i attach them in another system (TrueNAS or Windows based QEMU), the disks appear corrupt.
Any that have 512 sectors work. I have not extensively checked the disk contents but the VMs boot an appear healthy.
Not all disks images will accept 4096 sectors. The following should so only these should be considered. Exporting has been restricted in newer versions (NAS-143506)
RAW
QWCOW2
QED (I think)
VHDX (does accept 4096 but the export for this is definitely broken, fixed in V26 on github)
On my 26.0.0-BETA.3 I created an Ubuntu server, used 4096 sectors, exported the disk image and then used that image as a Raw file and that worked. On this VM I did use AHCI from the beginning, but on my VMs only my live server I used Virtio
Anyone got any similar experiences?
I am trying to track down if this is a bug that is on v25 and now fixed on v26 or if I am doing something wrong.
Aren’t you just testing QEMU capabilities on import and export? TrueNAS is basically Debian. Have you tried comparing or checking the QEMU versions. Are you able to import and export on those other systems?
I found the bug and it has been confirmed by the AI.
Disk sector size sets both physical_block_size and logical_block_size , but in TN v26-beta-3 only the physical_block_size is set causing logical_block_size to default to 512 sectors.
So if you have any VMs using 4096 sectors, do not upgrade until this is fixed.
@patrickkeane There is no details on what was or was not done, but after interrogating the AI it is implying that there was a fix applied to 26.0.0-RC.1, 27.0.0-BETA.1 but the changes might be internal so I will never see them.
I dont need the explicit fixes, just that the bug was found and has been addressed or that I am bonkers
I mentioned this to your colleague (full disclosure ) , maybe in the JIRA small notes on closing what the out come of a bug report would be nice. Just along the lines of, bug found, bug fixed or no bug found, closed.
The Fix Versions field on the bug tracker in right hand column is a reliable way to know if there is a PR for the issue, and which versions will have a fix applied.
But then the status of the jira ticket is/was a bit missleading, when i looked this morning, german time, the status was, as shoulders wrote, “closed without changes”, now the status is “done”…