[Bug 657360] New: partitioner error code -1012, failed to set partition ID
https://bugzilla.novell.com/show_bug.cgi?id=657360 https://bugzilla.novell.com/show_bug.cgi?id=657360#c0 Summary: partitioner error code -1012, failed to set partition ID Classification: openSUSE Product: openSUSE 11.4 Version: Milestone 4 of 6 Platform: x86 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation AssignedTo: aschnell@novell.com ReportedBy: mvidner@novell.com QAContact: jsrain@novell.com Found By: Development Blocker: --- I am installing M4 from the Live KDE image off an USB stick (/dev/sdb), having chosen Installation at boot time. The target machine is an EeePC with 3 primary partitions and 50GB of unpartitioned space. The installer proposes to create sda4 as an extended partition with sda5 and sda6 as / and /home. Fine. When the installation starts, it creates sda4 and then tries to set sda4 to type F which results in an error pop-up citing error code -1012. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c2
--- Comment #2 from Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c3
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c4
Petr Uzel
I cannot see a reason why informing the kernel should fail. A few seconds earlier setting lvm and raid off works fine. Maybe the usual suspect udev?
Yes, that would be my guess: udev or whatever called by udev. In parted-2.3, there is already the logic "inform the kernel; if (!success) sleep and retry". The maximum sleep is one second [*]. I really have no idea (nobody seems to have) how to make informing the kernel about PT changes 100% reliable without rebooting. Two ideas how to make it at least more reliable than it is now: 1/ increase the max sleep time [*] to - let's say - 2 seconds to give udev (or whatever it is) more time to scan the disk (which is as far as I understand triggered by the uevent that is generated when the partition is added) and close it. 2/ as far as I remember, we have usually seen these "can not inform the kernel.." messages after setting some partition flag. Furthermore, as far as I can see, the kernel does not care about the partition flags, so I think I could patch parted not to inform the kernel about any changes after 'set flag state' command. Arvin, does this make sense? Or do you have any better idea? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c6
Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c7
--- Comment #7 from Petr Uzel
And your ideas from comment #4 look fine to us.
So I'll implement them. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c8
--- Comment #8 from Arvin Schnell
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c9
--- Comment #9 from Petr Uzel
Hm, parted should do a udevadm settle after informing the kernel.
Ack. We had this call-udevadm patch in parted before, but I removed it after parted upstream introduced the improved 'wait and retry' logic. I'll add it back. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c10
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=657360
https://bugzilla.novell.com/show_bug.cgi?id=657360#c11
Martin Vidner
participants (1)
-
bugzilla_noreply@novell.com