I don't use parted myself, so I don't know if this is the output expected by
si_prepareclient. Can someone else comment?

You could also try installing sfdisk, which SI seems to prefer when
gathering disk information (at least on x86). Just try running
si_prepareclient again after installing sfdisk and see if the error has
disappeared.

Anyway for the partition configuration you have sent, I believe that storing
the partition sizes in percent may not be the best choice. There is
(probably) no reason to scale the boot partition below or beyond the 107MB
assigned on your golden client, correct?
In this case it would be better to use the other method I described and
manually edit the autoinstallscript.conf to change the size of the second
partition to the special value "*". This way the boot partition will always
have 107MB and the second partition will get the remaining space on the
disk.

Hope I could help,
Thomas Krause

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
[EMAIL PROTECTED]
Gesendet: Sonntag, 3. August 2008 19:46
An: [email protected]
Betreff: Re: [sisuite-users] dynamic disk


Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 367GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End    Size   Type     File system  Flags
  1      32.3kB  107MB  107MB  primary  ext3         boot
  2      107MB   367GB  367GB  primary               lvm

Thank You
-jeremy

On Sun, 3 Aug 2008, Thomas Krause wrote:

> Hallo Jeremy,
>
> this looks like a bug in SI. Possibly a bug in parsing the output from
> parted. Could you post the output of manually running "parted -s --
> /dev/cciss/c0d0 print"?
>
> Thanks,
> Thomas Krause
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Im Auftrag von
> [EMAIL PROTECTED]
> Gesendet: Sonntag, 3. August 2008 02:04
> An: [email protected]
> Betreff: Re: [sisuite-users] dynamic disk
>
>
> I noticed the --unit % flag and this is what I get against an HP system:
>
> si_prepareclient --server 10.10.10.10 -unit % Using "parted" to gather
> information about disk:
>     /dev/cciss/c0d0
>
> Illegal division by zero at
> /usr/lib/systemimager/perl/SystemImager/Common.pm line 1040.
>
> Is this a bug?
>
> -jeremy
>
> On Sat, 2 Aug 2008, Thomas Krause wrote:
>
>> Hello Jeremy,
>>
>> --autodetect-disks is only for identifying the correct device name at
>> installation time. The most common use is if you have some computers
>> that have scsi or sata drivers with sd* device names and others with
>> regular ide/pata drivers and hd* device names.
>>
>> If you want systemimager to use all the disk space available when
>> creating partitions, you have to specify a single partition that
>> should get all the remaining disk space or save the partition sizes in
>> percent values instead of fixed megabytes. For the former I believe
>> you have to manually edit the autoinstallscript.conf and set the
>> partition size to the special value of "*". For the latter you can
>> pass the "--unit %" parameter to si_prepareclient.
>>
>> See also "man autoinstallscript.conf".
>>
>> Good luck,
>> Thomas Krause
>>
>> -----Ursprüngliche Nachricht-----
>> Von: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Im Auftrag von
>> [EMAIL PROTECTED]
>> Gesendet: Samstag, 2. August 2008 21:29
>> An: [email protected]
>> Betreff: [sisuite-users] dynamic disk
>>
>>
>> I've been using systemimager for a long time now.  I'm currently in an
>> environment that has a lot of different types of machines with many
>> different disk configurations.  I'd like to apply the same image to
>> these different disk configs without having to have a different image
>> for each class.
>>
>> I've tried using
>>
>>        -autodetect-disks
>>               Try to detect available disks on the client instead of
>> using devices from autoinstallscript.conf.
>>
>> which sounds logical, but so far it hasn't worked.  It continues as if
>> disk sizes are fixed.  I just upgraded to 4.0.2.
>>
>> Is this possible with systemimager?  What am I missing?
>>
>> Thanks
>> -jeremy
>>
>> ----------------------------------------------------------------------
>> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge Build the coolest Linux based applications with Moblin SDK &
>> win great prizes Grand prize is a trip for two to an Open Source event
>> anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> sisuite-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sisuite-users
>>
>>
>> ----------------------------------------------------------------------
>> --- This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge Build the coolest Linux based applications with Moblin SDK &
>> win great prizes Grand prize is a trip for two to an Open Source event
>> anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> sisuite-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/sisuite-users
>>
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
> Build the coolest Linux based applications with Moblin SDK & win great
prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> sisuite-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisuite-users
>
>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to