yast / yast-storage-ng

Rewrite of https://github.com/yast/yast-storage
http://yast.github.io/
GNU General Public License v2.0
14 stars 20 forks source link

Y2Partitioner: Allow 4 KiB Min Chunk Size for RAID0 / RAID10 [master] #1304

Closed shundhammer closed 2 years ago

shundhammer commented 2 years ago

Target Branch

This is the merge to master / Factory of https://github.com/yast/yast-storage-ng/pull/1303.

Bugzilla

https://bugzilla.suse.com/show_bug.cgi?id=1200018

Trello

https://trello.com/c/YN8fSMy3

Problem

A customer wishes to use 4 KiB (page size) chunks for creating a RAID0 on NVME, but the YaST partitioner does not offer that selection; it starts with 64 KiB.

yast-raid-chunk-size

Cause

Back when we introduced that feature, we decided on a minimum chunk size of 64 KiB unless the default chunk size for that RAID type would suggest something smaller. For RAID0, there was no different default, so the minimum was 64 KiB.

There was no strict technical limitation behind this minimum, only our belief back at the time (in 2017) that smaller values would not be useful.

Fix

Use a more elaborate minimum, depending on RAID type:

yast-raid-chunk-size-4k

Now the minimum chunk size for RAID0 is 4 KiB, but the default is still 64 KiB which might is probably better for performance in most scenarios.

Related PR

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.0006%) to 97.822% when pulling 43dcf4b5a79125792bd5976ee7e8adc42a05db20 on huha-raid0-4k-master into 84a7e114d5af52c0149b271b481f9eb0b6cdf409 on master.

yast-bot commented 2 years ago

:heavy_check_mark: Public Jenkins job #440 successfully finished :heavy_check_mark: Created OBS submit request #980096

yast-bot commented 2 years ago

:x: Internal Jenkins job #225 failed

yast-bot commented 2 years ago

:x: Internal Jenkins job #226 failed

yast-bot commented 2 years ago

:heavy_check_mark: Internal Jenkins job #227 successfully finished :heavy_check_mark: Created IBS submit request #276746