[Bug 216953] New: parted error when resizing partition during installation
https://bugzilla.novell.com/show_bug.cgi?id=216953 Summary: parted error when resizing partition during installation Product: openSUSE 10.2 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mmarek@novell.com QAContact: jsrain@novell.com I had a disk layout that looks like that (fdisk -l): Disk /dev/sda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track, 24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 131 1052226 82 Linux swap / Solaris /dev/sda2 * 132 2742 20972857+ 83 Linux /dev/sda3 2743 14077 91048387+ 83 Linux /dev/sda4 14078 24321 82284930 5 Extended /dev/sda5 14078 14825 6008278+ 83 Linux /dev/sda6 16322 17069 6008278+ 83 Linux /dev/sda7 17070 17817 6008278+ 83 Linux /dev/sda8 17818 24321 52243348+ 83 Linux Note the gap between sda5 and sda6. During installation, I choose to resize the sda5 partition _and_ reformat it. Unfortunately, resizing the partition using parted failed (I'll attach the logs). I wonder however, why yast needs to call parted to resize a partition that's going to be formated right away. Wouldn't fdisk suffice? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #1 from mmarek@novell.com 2006-11-01 06:46 MST ------- Created an attachment (id=103301) --> (https://bugzilla.novell.com/attachment.cgi?id=103301&action=view) y2logs the parted error starts at line 10499 of the y2log file -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #2 from mmarek@novell.com 2006-11-01 06:48 MST ------- Created an attachment (id=103302) --> (https://bugzilla.novell.com/attachment.cgi?id=103302&action=view) yast2-000.png Overview of the partitioning proposal -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #3 from mmarek@novell.com 2006-11-01 06:49 MST ------- Created an attachment (id=103303) --> (https://bugzilla.novell.com/attachment.cgi?id=103303&action=view) yast2-002.png detailed partitioning proposal -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #4 from mmarek@novell.com 2006-11-01 06:50 MST ------- Created an attachment (id=103304) --> (https://bugzilla.novell.com/attachment.cgi?id=103304&action=view) yast2-003.png I deleted the new sda9 and sda10 partitions and resized sda5 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #5 from mmarek@novell.com 2006-11-01 06:53 MST ------- Created an attachment (id=103305) --> (https://bugzilla.novell.com/attachment.cgi?id=103305&action=view) yast2-005.png Overview of my changes (last screenshot). I wasn't able to shoot the "formating /dev/sda5" progress bar, but it printed the old size of 5.7 GB. I didn't get any report about the parted error. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |fehr@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |locilka@novell.com ------- Comment #8 from locilka@novell.com 2006-11-08 05:35 MST ------- y2log says: 2006-11-01 08:20:43 <1> 10.20.1.116(3437) [libstorage] Disk.cc(checkSystemError):505 cmd:YAST_IS_RUNNING=1 /usr/sbin/parted -s /dev/sda unit s resize 5 226147068 262196927 2006-11-01 08:20:43 <1> 10.20.1.116(3437) [libstorage] Disk.cc(checkSystemError):506 out:Error: Unable to satisfy all constraints on the partition. You found a bug in GNU Parted! Here's what you have to do: Don't panic! The bug has most likely not affected any of your data. Help us to fix this bug by doing the following: Check whether the bug has already been fixed by checking the last version of GNU Parted that you can find at: http://ftp.gnu.org/gnu/parted/ Please check this version prior to bug reporting. If this has not been fixed yet or if you don't know how to check, please visit the GNU Parted website: http://www.gnu.org/software/parted for further information. Your report should contain the version of this release (1.7.1) along with the error message below, the output of parted DEVICE unit co print unit s print and additional information about your setup you consider important. Assertion (metadata_length > 0) at dos.c:2032 in function add_logical_part_metadata() failed. 2006-11-01 08:20:43 <3> 10.20.1.116(3437) [libstorage] Disk.cc(checkSystemError):523 retcode:1 So isn't that rather a parted bug? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #9 from locilka@novell.com 2006-11-08 05:48 MST ------- Anyway: 1.) _Question_: I wonder however, why yast needs to call parted to resize a partition that's going to be formated right away. Wouldn't fdisk suffice? _Answer_: No, this is INVALID, if you want to create a new formatted partition, remove the old one and create the new one (and mark it to be formatted). 2.) I saw in y2log that you have selected to "resize" the partition, that's why it tried to resize it. Don't expect a very high artificial inteligence in it (do not take it personally, Thomas, please). This would not be a bugfix but an enhancement (we are in Beta2). 3.) Actually, the valid bugreport is that parted has failed to fulfill your needs. Unfortunately, package _parted_ is maintained also by Thomas Fehr, who is, according to comment #7, on vacation. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 sh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Major |Normal ------- Comment #10 from sh@novell.com 2006-11-08 08:17 MST ------- This is a very exotic case, and there should be a simple enough workaround: Delete the partition and recreate it with the new size. -> NORMAL -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 sh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |fehr@novell.com -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 fehr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #11 from fehr@novell.com 2006-11-08 08:54 MST ------- Ad comment #9, 1) we use parted for partitioning since years since fdisk does not support gpt. 2) "resize" is the only command that parted has for resizing a partition. Removing and recreating in this special case is not really the same since it potentially renumbers unrelated logical partitions. As Stefan already said for this special case you could just remove and recreate the partition (and live with renumbering of other logical partitions). Currently I am not sure if the real bug is within parted or libstorage. I currently suspect parted since on a first glance the command line in y2log seems to be correct. I had similar cases with parted being too picky about partitioing when using sector mode in the past. Will have a closer look after my vacation. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #12 from mmarek@novell.com 2006-11-08 12:28 MST ------- (In reply to comment #11)
Ad comment #9, 1) we use parted for partitioning since years since fdisk does not support gpt.
OK, I understand it now.
As Stefan already said for this special case you could just remove and recreate the partition (and live with renumbering of other logical partitions).
Yes, I agree that this is not a major bug (no data loss and there is an easy workaround).
Will have a closer look after my vacation.
Enjoy your vacation ;-) I'll keep the partition table intact so that I can do some tests on it if needed. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 ------- Comment #13 from fehr@novell.com 2006-11-08 15:03 MST ------- If possible, keeping the partition table untouched would be most helpful. Unfortunately (not for me ;-) I will be on vacation until 4th of December. If you need to repartition the disk for any reason before I am back, please attach the content of the following command before repartitioning the disk: parted /dev/sda unit co print unit s print This should display exact cylinder and sector wise partitioning information and should be helpful to recreate your scenario on another disk. Nevertheless the problem could also lie in invalid metadata written to your disk by a potential buggy partitioning tool (older parted, fdisk, sfdisk, whatever) which would make reproduction on another disk difficult or impossible. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216953 fehr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #14 from fehr@novell.com 2006-12-04 08:52 MST ------- Problem found and fixed in STABLE and SLES10 SP1 -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com