Bug 726856
Summary: | Better warning instead of 'Warning: The resulting partition is not properly aligned for best performance.' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David Kovalsky <dkovalsk> |
Component: | parted | Assignee: | Brian Lane <bcl> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | amcnabb, bcl, hdegoede, oliver.henshaw |
Target Milestone: | --- | Keywords: | FutureFeature, Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | parted-3.2-19.fc25 | Doc Type: | Enhancement |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-05-26 22:00:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Kovalsky
2011-07-30 00:17:46 UTC
A change like this would need to go into the upstream parted first. I agree, the message really is noise most of the time and needs to be more explicit. Have any reports about this been sent upstream yet? And incidentally, I can't seem to find any documentation about what the proper alignment rules are. I have this on my list of stuff to look at eventually. Think this is related, though it might be a separate bug: When using the default optimal alignment, parted seems to align to minimal boundaries but checks against optimal boundaries. (But you can still get optimal alignment if you know that optimal alignment means starting at 1M, which is nice but renders 'a optimal' slightly futile.) $ dd if=/dev/zero of=fs.img bs=1M count=10 ... $ parted -s fs.img mklabel msdos $ parted -s fs.img mkpart primary 0M 10M Warning: The resulting partition is not properly aligned for best performance. $ parted -s fs.img print Model: (file) Disk /path/to/fs.img: 10.5MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 512B 10.5MB 10.5MB primary $ parted -s fs.img rm 1 $ parted -s fs.img mkpart primary 1M 10M $ parted -s fs.img print Model: (file) Disk /path/to/fs.img: 10.5MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 10.5MB 9437kB primary $ parted -s fs.img rm 1 $ parted -s -a min fs.img mkpart primary 0M 10M $ parted -s fs.img print Model: (file) Disk /path/to/fs.img: 10.5MB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 512B 10.5MB 10.5MB primary Also this issue is slightly hidden because parted rounds to the nearest unit: $ parted -s fs.img mkpart p 1.1M 10M $ parted -s fs.img unit kb print ... 1 1049kB 10486kB 9437kB primary $ parted -s fs.img mkpart p 1.9M 10M $ parted -s fs.img unit kb print ... 1 2097kB 10486kB 8389kB primary $ parted -s fs.img mkpart p 1100k 10M Warning: The resulting partition is not properly aligned for best performance. $ parted -s fs.img unit kb print ... 1 1100kB 10486kB 9386kB primary $ parted -s fs.img mkpart p 1900k 10M Warning: The resulting partition is not properly aligned for best performance. $ parted -s fs.img unit kb print ... 1 1900kB 10486kB 8586kB primary Finally got around to looking at this. Proposed patch: https://github.com/bcl/parted/pull/2 The error would now look something like: Warning: The resulting partition is not properly aligned for best performance: 20483s % 2048s != 0s parted-3.2-19.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-25836bb5b0 parted-3.2-19.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-25836bb5b0 parted-3.2-19.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |