SLES10 - AY partitioning problems in IBM OpenPower (pSeries)
Hello everyone! I'm trying to install SLES10 in an IBM OpenPower machine, and I'm having some weird problems when AY starts to format the partitions. The issue takes place when it tries to set up the swap partition ID to 0x82. Sometimes AY just breaks and I get back to the shell, sometimes it shows an error message: -1012 "could not set /dev/sda7 id to 82". Taking a look at the y2log file, it's possible to see that the error -1012 shows up when AY calls parted to set the partition ID. Before actually setting the ID, it calls parted a couple of times to set lvm, boot and raid to off. When it calls parted to set raid off on the swap partition, parted returns -127, and AY returns -1012. On the other hand, when parted seems to work, AY gets stuck right after calling parted to set the swap partition ID to 0x82, as you can see on the snippet below from the y2log file: 2006-11-23 00:19:20,107 INFO libstorage(22350) - SystemCmd.cc(execute):160 SystemCmd Executing:"/usr/sbin/parted -s /dev/sda unit cyl print" 2006-11-23 00:19:20,654 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 1 "Disk geometry for /dev/sda: 0cyl - 1044cyl" 2006-11-23 00:19:20,654 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 2 "BIOS cylinder,head,sector geometry: 1044,255,63. Each cylinder is 8225kB." 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 3 "Disk label type: msdos" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 4 "Number Start End Size Type File system Flags" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 5 "1 0cyl 0cyl 0cyl primary ext2 type=41, prep" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 6 "2 1cyl 1043cyl 1043cyl extended lba, type=0f" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 7 "5 1cyl 17cyl 16cyl logical ext3 type=83" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 8 "6 18cyl 912cyl 894cyl logical type=83" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(addLine):625 Adding Line 9 "7 913cyl 1043cyl 130cyl logical type=82" 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(getUntilEOF):591 pid:23611 added lines:9 stderr:0 2006-11-23 00:19:20,656 INFO libstorage(22350) - SystemCmd.cc(doExecute):305 system() Returns:0 2006-11-23 00:19:20,668 INFO libstorage(22350) - Disk.cc(doCreate):2075 zeroNew:0 used_as_pv:0 2006-11-23 00:19:20,669 INFO libstorage(22350) - Disk.cc(doSetType):1771 doSetType container sda name sda7 2006-11-23 00:19:20,713 INFO libstorage(22350) - Storage.cc(showInfoCb):4133 INSTALL INFO:Setting type of partition /dev/sda7 to 82 2006-11-23 00:19:20,889 INFO libstorage(22350) - SystemCmd.cc(execute):160 SystemCmd Executing:"/usr/sbin/parted -s /dev/sda set 7 lvm off" 2006-11-23 00:19:21,397 INFO libstorage(22350) - SystemCmd.cc(doExecute):305 system() Returns:0 2006-11-23 00:19:21,405 INFO libstorage(22350) - SystemCmd.cc(execute):160 SystemCmd Executing:"/usr/sbin/parted -s /dev/sda set 7 raid off" 2006-11-23 00:19:30,993 INFO libstorage(22350) - SystemCmd.cc(doExecute):305 system() Returns:0 2006-11-23 00:19:31,476 INFO libstorage(22350) - SystemCmd.cc(execute):160 SystemCmd Executing:"/usr/sbin/parted -s /dev/sda set 7 boot off" 2006-11-23 00:19:32,270 INFO libstorage(22350) - SystemCmd.cc(doExecute):305 system() Returns:0 2006-11-23 00:19:32,453 INFO libstorage(22350) - SystemCmd.cc(execute):160 SystemCmd Executing:"/usr/sbin/parted -s /dev/sda set 7 type 130" 2006-11-23 00:20:01 <1> IBM(22350) [zypp::SourceManager] SourceManager.cc(~SourceManager):139 Deleted SourceManager Singleton. 2006-11-23 00:20:03 <1> IBM(24121) [zypp::SourceManager] SourceManager.cc(~SourceManager):139 Deleted SourceManager Singleton. 2006-11-23 00:20:05 <0> IBM(22350) [zypp] PathInfo.cc(_Log_Result):295 recursive_rmdir /var/tmp/zypp.KwZ7Lv 2006-11-23 00:20:05 <0> IBM(22350) [zypp] TmpPath.cc(~Impl):78 TmpPath cleaned up /var/tmp/zypp.KwZ7Lv{d 0700 0/0} 2006-11-23 00:20:05 <1> IBM(22350) [Y2Perl] YPerl.cc(destroy):163 Shutting down embedded Perl interpreter. 2006-11-23 00:20:05 <1> IBM(24121) [Y2Perl] YPerl.cc(destroy):163 Shutting down embedded Perl interpreter. It seems that on this case, parted never returns when setting the partition id? I have other machines here, where I could successfully install SLES10 using the same profile I am trying to use at the OpenPower: IBM p5 ( pSeries ) IBM JS-20 The OpenPower and the p5 are configured with LPARs containing the same amount of memory and 2 virtual scsi disks. Other thing to consider: I am able to use a similar SLES9 profile (with the same partitioning scheme) and successfully partition my disks in the OpenPower (using SLES9 of course). Let me know if you need to take a look at the profile. Perhaps it's not necessary since I am successfully using the same one at other machines and it works just fine. I really appreciate your help, looking forward to hearing from you. Best Regards, -- Lucas Franco IBM Linux Technology Center Mobile: +55 19 9607 4828 lucasgf@br.ibm.com
* Lucas Franco <lucasgf@br.ibm.com> [Nov 23. 2006 12:57]:
Hello everyone!
I'm trying to install SLES10 in an IBM OpenPower machine, and I'm having some weird problems when AY starts to format the partitions. The issue takes place when it tries to set up the swap partition ID to 0x82. Sometimes AY just breaks and I get back to the shell, sometimes it shows an error message: -1012 "could not set /dev/sda7 id to 82".
Errors like this are often udev related. Remember that device files are generated dynamically in SLES10, so after creating a new partition 'udev' needs some time to recognize this and provide a matching /dev entry. Please make a bugreport to further analyze this. Klaus
Hi,
Errors like this are often udev related. Remember that device files are generated dynamically in SLES10, so after creating a new partition 'udev' needs some time to recognize this and provide a matching /dev entry.
Does the same apply when AY just breaks without any error messages? I mean, on the other email I pasted a piece of the y2log file, where we can see parted being called to set raid off to the swap partition, and then AY just shuts down.. ? Thanks again! -- Lucas Franco IBM Linux Technology Center Mobile: +55 19 9607 4828 lucasgf@br.ibm.com
* Lucas Franco <lucasgf@br.ibm.com> [Nov 23. 2006 14:41]:
Hi,
Errors like this are often udev related. Remember that device files are generated dynamically in SLES10, so after creating a new partition 'udev' needs some time to recognize this and provide a matching /dev entry.
Does the same apply when AY just breaks without any error messages? I mean, on the other email I pasted a piece of the y2log file, where we can see parted being called to set raid off to the swap partition, and then AY just shuts down.. ?
No, thats a different bug. The case reported was parted failing to access a (newly created) partition. Klaus
participants (2)
-
Klaus Kaempf
-
Lucas Franco