Bug 882963
| Summary: | anaconda crashes with gpt_read() assertion failure despite explicit "clearpart" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Philip Rowlands <bugzilla> | ||||
| Component: | parted | Assignee: | Brian Lane <bcl> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.9 | CC: | fkrska | ||||
| Target Milestone: | rc | ||||||
| Target Release: | 5.10 | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-06-01 00:18:33 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Philip Rowlands
2012-12-03 13:57:18 UTC
Created attachment 656646 [details]
Compressed GPT which causes the crash
The attached file is the result of running
dd bs=512 count=2000 if=/dev/cciss/c0d0 of=/tmp/bad-gpt
on the affected server.
The problem can be reproduced using the latest RHEL 5 parted binary from package parted-1.8.1-29.el5:
$ parted bad-gpt print
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. I am not sure why clearpart was previously suggested. parted is used to scan the disks before we ever think about making changes to them and this bug is likely related to the various label probing issues that have been fixed in newer versions. The right way to make sure the disk can be used is to zero out the start of the disk with: dd if=/dev/zero of=/dev/whatever bs=1M count=10 Note that this will result in data loss if there is anything you care about on the disk. "If zerombr is specified any invalid partition tables found on disks are initialized. This destroys all of the contents of disks with invalid partition tables." It's strange that the option which explicitly deals with invalid partition tables can only handle certain types of invalid partition table, i.e. those which libparted can read, and won't crash on. Perhaps zerombr should get first shot at the disk(s)? That isn't possible, the disks need to be examined before we touch them. |