Hi,

When creating new set of rpms for centos-6.3, I just found a problem when 
imaging clients in the initrd image.
In fact, it looks like I'm hitting a bug very similar to:
https://bugzilla.redhat.com/show_bug.cgi?id=441244

This can be overrided by replacing line 578 in Server.pm:
$startMB{$m} = q($END_OF_LAST_LOGICAL);
by
$startMB{$m} = q#$(echo "scale=3; ($END_OF_LAST_LOGICAL + 1)" | bc)#;

But this is a ugly patch as you loose 1 block on the disk.

Now I think that the latest parted (v3.1) may fix this issue.
anyway, fixed or not, I4ve successfully bult a new set of rpms with v3.1.
Here is the small patch the build v3.1 instead of v2.3 (attached).


Also attached, the ugly patch (which IMHO, shouldn't be pushed as IMHO, parted 
v3.1 fixes it).

If someone with write access to the SVN think it's worth pushing the 
parted-v3.1 patch, please do so.

I'll test ASAP and report.

Cheers,

PS: With this RPMS I was able to fully deploy a beta OSCAR cluster on 
centos-6.3 (hardware: tyan motherboards with 7 M2090 GPUs and HP DL165 G7

PPS: I'm using post install scripts to replace missing components of 
systeconfigurator (network config, grub install, initramfs update)
--
   Olivier LAHAYE
   CEA DRT/LIST/DCSI/DIR
Index: initrd_source/make.d/parted.rul
===================================================================
--- initrd_source/make.d/parted.rul	(révision 4568)
+++ initrd_source/make.d/parted.rul	(copie de travail)
@@ -6,8 +6,10 @@
 #   - go to 1.6.19
 #   2010.06.13  Brian Elliott Filney
 #   - go to 2.3
+#   2012.11.06  Olivier Lahaye
+#   - go to 3.1 (need to avoid redhat bug 441244)
 
-PARTED_VERSION := 2.3
+PARTED_VERSION := 3.1
 PARTED_TARBALL := parted-$(PARTED_VERSION).tar.xz
 #PARTED_URL := http://ftp.gnu.org/gnu/parted/$(PARTED_TARBALL)
 PARTED_URL := http://download.systemimager.org/pub/parted/$(PARTED_TARBALL)
Index: lib/SystemImager/Server.pm
===================================================================
--- lib/SystemImager/Server.pm	(révision 4568)
+++ lib/SystemImager/Server.pm	(copie de travail)
@@ -578,7 +578,12 @@
                 $startMB{$m} = q($END_OF_LAST_PRIMARY);
             
             } elsif ("$p_type{$m}" eq "logical") {
-                $startMB{$m} = q($END_OF_LAST_LOGICAL);
+                # $startMB{$m} = q($END_OF_LAST_LOGICAL);
+                # Fix parted extended partition table kernel reload error: -OL-
+                # "Warning: The kernel was unable to re-read the partition table..."
+                # Maybe related to bug https://bugzilla.redhat.com/show_bug.cgi?id=441244
+                # => TEMPORARY FIX until parted get fixed.
+                $startMB{$m} = q#$(echo "scale=3; ($END_OF_LAST_LOGICAL + 1)" | bc)#;
             }
 
             if (("$unit_of_measurement" eq "mb") 
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to