[prev in list] [next in list] [prev in thread] [next in thread]
List: sisuite-users
Subject: Re: [sisuite-users] Inconsistent units = Shrinking partition sizes
From: "Brian Elliott Finley" <brian () thefinleys ! com>
Date: 2010-07-05 15:01:42
Message-ID: 1545348141-1278342101-cardhu_decombobulator_blackberry.rim.net-238432940- () bda323 ! bisx ! prod ! on ! blackberry
[Download RAW message or body]
Thanks, Tyler.
I'll look into making this change in the next major release.
Cheers,
Brian
Brian Elliott Finley
Mobile: 630.447.9108
-----Original Message-----
From: Tyler Sutherland <tsutherland@iders.ca>
Date: Mon, 05 Jul 2010 08:45:30
To: <sisuite-users@lists.sourceforge.net>
Reply-To: sisuite-users@lists.sourceforge.net
Subject: [sisuite-users] Inconsistent units = Shrinking partition sizes
Hi,
I'm using the SystemImager 4.0.2 stable release on an HP ProLiant DL380
G5 server with CentOS 5.4. It's a 32 bit OS on an i686 architecture.
I've noticed an issue where disk partitions get 5% smaller each time I
do a system restore because of an incompatibility in the units that are
used during the image and during the restore.
I dug into the code a little bit and found that the partition sizes are
recorded as MB = 2^20 Bytes = 1,048,576 bytes during the image using a
command like "sfdisk -l -uM /dev/mydiskname". Then those sizes are
passed to "parted" during the restore when creating the partitions.
The issue is that "parted" units are in MB = 1,000,000 bytes. So the
result is that all partitions except the last one on the disk shrink
by 5% and the final partition is assigned the remaining extra space.
My solution is to comment out lines 957, 958 and 959 of
"/usr/sbin/si_prepareclient". ie: To comment out these lines:
if($arch eq "i386") {
$preferred_tool = 'sfdisk';
}
This forces SystemImager to use "parted" when reading disk sizes during
imaging on the x86 architecture. I can see a difference in the
partition sizes listed in "/etc/systemimager/autoinstallscript.conf"
before and after making the change listed above. So, there seems to be
a difference in the partition sizes when they are read using parted and
when they're read using sfdisk.
Has anyone else seen this issue? Is there a recommended workaround?
Thanks,
Tyler
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
sisuite-users mailing list
sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic