Bernard Li wrote:

Hi Allen:
I'm not talking about the autoinstall script itself, I'm talking about the configuration file which is used to generate the master script. I'm not sure if you have it, but if you do, it will exist in: /var/lib/systemimager/images/<image>/etc/systemimager/autoinstallscript.conf on the image server.

It looks like this:

<config>
 <disk dev="/dev/sdb" label_type="msdos" unit_of_measurement="MB">
   <!--
     This disk's output was brought to you by the partition tool "parted",
     and by the numbers 4 and 5 and the letter Q.
   -->
<part num="1" size="979.772" p_type="primary" p_name="-" flags="boot" /> <part num="2" size="67421.227" p_type="primary" p_name="-" flags="-" />
   <part  num="3"  size="*"  p_type="primary"  p_name="-"  flags="-" />
 </disk>

<fsinfo line="10" comment="# This file is edited by fstab-sync - see 'man fstab-sync' for details" /> <fsinfo line="20" real_dev="/dev/sdb2" mount_dev="LABEL=/" mp="/" fs="ext3" options="defaults" dump="1" pass="1" /> <fsinfo line="30" real_dev="none" mp="/dev/pts" fs="devpts" options="gid=5,mode=620" dump="0" pass="0" /> <fsinfo line="40" real_dev="none" mp="/dev/shm" fs="tmpfs" options="defaults" dump="0" pass="0" /> <fsinfo line="50" real_dev="none" mp="/proc" fs="proc" options="defaults" dump="0" pass="0" /> <fsinfo line="60" real_dev="none" mp="/sys" fs="sysfs" options="defaults" dump="0" pass="0" /> <fsinfo line="70" mount_dev="LABEL=SWAP-sda3" mp="swap" fs="swap" options="defaults" dump="0" pass="0" format="no" />
 <boel devstyle="static"/>
</config>

So, yes it does have /dev/sdb in it.

Perhaps you can try to disable the Disk Independence functionality. If you are PXE-booting, edit /tftpboot/pxelinux.cfg/default and add "DISKORDER=" (without the quotes) to the APPEND line.

I am using an autoinstall CD to install the images. In the environment we are running we don't have the ability to use anything more involved then this.

Is there some way when generating the image to tell the prepareclient or getimage to add a line like this to the generated configuration?

Thanks for you help.

-Allen

Let's see if it'll just default to /dev/sdb instead.
Cheers, Bernard

------------------------------------------------------------------------
*From:* [EMAIL PROTECTED] on behalf of Allen Bierbaum
*Sent:* Tue 04/04/2006 21:05
*To:* [email protected]
*Subject:* Re: [Sisuite-users] Ignore some partitions on destination (clone) machine

Bernard Li wrote:

> After you ran si_prepareclient, what does the image's
> /etc/systemimager/autoinstallscript.conf look like?  Does it say
> /dev/sdb or /dev/sda?
>
It had any entry of:
DISK0=/dev/sdb

But that only triggers if the DISKORDER code above it doesn't find a
disk to map it to.  From the looks of the code there and also down below
in the file where it remaps references to /dev/sdb --> /dev/sda in
/etc/fstabs and others, it looks like the way I described it working is
the way the code is designed to work.

> Cheers,
> > Bernard > > P.S. Which version of SystemImager are you using?

3.6.3 compiled into rpms from source (svn checkout).  Sorry I didn't
provide this in the original e-mail.

-Allen

>
> ------------------------------------------------------------------------
> *From:* [EMAIL PROTECTED] on behalf of Allen
> Bierbaum
> *Sent:* Tue 04/04/2006 20:04
> *To:* [email protected]
> *Subject:* [Sisuite-users] Ignore some partitions on destination
> (clone) machine
>
> Is it possible to create an image that when installed skips over some
> drives on the cloned machine?
>
> More detail...
>
> I have been using systemimager successfully with cluster's of machines
> where I can overwrite all data on all drives of the cluster nodes.  But
> recently I needed to work with a cluster that has data that needs to
> remain in place on one of the drives on the nodes.  This is because the
> cluster will be dual booting with WinXP on one drive and Linux on the
> other. (yes, I know I am asking for trouble but I really need to do it).
>
> My setup is:
>    - /dev/sda - WinXP (must not be overwritten)
>    - /dev/sdb - Linux
>
> I want to use systemimager to manage the Linux drive for all the nodes
> and ignore WinXP.
>
> At first I saw the new option (to me anyway) of --exclude that can be
> passed to si_prepareclient.  It seemed appropriate since the docs say
> "Do not gather partition information for DISK(s).  The result of using
> this option, is that DISK(s) will not be partitioned during the
> auto-install process.".  Unfortunately what this really means is ignore
> the drives when making the image and then map the drives from the golden
> client to the clones based on disk order.  For example, when I used
> --exclude /dev/sda on my system it did ignore the drive, but then when
> setting up the clone the contents (partitions, data, etc) from the
> golden client's /dev/sdb got installed onto the clones /dev/sda.
> Unfortunately I lost a windows drive learning this, but that is part of
> the fun of doing this type of thing right. :)
>
> So I am looking for other ideas.  One idea I have yet to try is to
> reorder the drives in all the systems so sda is the Linux drive and sdb
> is the WinXP drive.  Then I could probably use --exclude /dev/sdb to
> ignore the windows drive like I tried above but then when it maps the
> drives for installation it will still get the correct drive.
>
> For right now I am just manually editing the autoinstall scripts.  Not a
> great solution but it may work for a while.
>
> If anyone has another idea please let me know.
>
> Thanks,
> Allen
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
> _______________________________________________
> Sisuite-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sisuite-users
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to