Thanks!

On 4/23/2014 4:14 AM, Xiao Peng Wang wrote:

Sorry, I just realized the fix was just checked into master branch. We are discussing that how to handle this missed checkin for 2.8 branch.

And the correct usage should be : osimage=<imagename>:--noupdateinitrd"

How to get the fix:

    git checkout master
    git show 712ac48e82cfd287a963514548e4b3912e55b6af
    ./xCAT-server/lib/xcat/plugins/destiny.pm

    commit 712ac48e82cfd287a963514548e4b3912e55b6af
    Author: yinqing <yinq...@cn.ibm.com>
    Date:   Mon Nov 11 17:24:10 2013 +0800

        merge 2.8.2-pcm code change from qing

    diff --git a/xCAT-server/lib/xcat/plugins/destiny.pm
    b/xCAT-server/lib/xcat/plugins/destiny.pm
    index a298189..a4936eb 100644
    --- a/xCAT-server/lib/xcat/plugins/destiny.pm
    +++ b/xCAT-server/lib/xcat/plugins/destiny.pm
    @@ -576,13 +576,18 @@ sub nextdestiny {
         my %requ;
         $requ{node}=[$node];
     $requ{arg}=[$ref->{currstate}];
    +    if($ref->{currstate} =~ /noupdateinitrd$/)
    +    {
    +        my @items = split /[:]/,$ref->{currstate};
    +        $requ{arg}= \@items;
    +    }
         setdestiny(\%requ, $flag+1);
       }

       if ($callnodeset) {
    $subreq->({command=>['nodeset'],
                    node=> \@nodes,
    - arg=>['enact']});
    + arg=>['enact', '--noupdateinitrd']});
       }

}


Thanks
Best Regards
----------------------------------------------------------------------
Wang Xiaopeng (???)
IBM China System Technology Laboratory
Tel: 86-10-82453455
Email: w...@cn.ibm.com
Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193

Inactive hide details for Russell Jones ---2014/04/22 03:38:06---Unfortunately this does not work. The destiny.pm file seems toRussell Jones ---2014/04/22 03:38:06---Unfortunately this does not work. The destiny.pm file seems to only have an option for ":reboot4dep

From: Russell Jones <russell-l...@jonesmail.me>
To: xcat-user@lists.sourceforge.net,
Date: 2014/04/22 03:38
Subject: Re: [xcat-user] xCAT diskfull image and custom initrd drivers
------------------------------------------------------------------------



Unfortunately this does not work. The destiny.pm file seems to only have an option for ":reboot4deploy".

Please advise, thanks!



On 4/20/2014 9:59 PM, Xiao Peng Wang wrote:


    Try this format: osimage=<imagename>:noupdateinitrd"


    Thanks
    Best Regards
    ----------------------------------------------------------------------
    Wang Xiaopeng (???)
    IBM China System Technology Laboratory
    Tel: 86-10-82453455
    Email: _...@cn.ibm.com_ <mailto:w...@cn.ibm.com>
    Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West
    Road, Haidian District Beijing P.R.China 100193

    Inactive hide details for Russell Jones ---2014/04/17
    23:10:16---Doing this with xCAT 2.8.3 results in the following
    error on tRussell Jones ---2014/04/17 23:10:16---Doing this with
    xCAT 2.8.3 results in the following error on the node's  console:

    From: Russell Jones _<russell-l...@jonesmail.me>_
    <mailto:russell-l...@jonesmail.me>
    To: _xcat-user@lists.sourceforge.net_
    <mailto:xcat-user@lists.sourceforge.net>,
    Date: 2014/04/17 23:10
    Subject: Re: [xcat-user] xCAT diskfull image and custom initrd
    drivers
    ------------------------------------------------------------------------



    Doing this with xCAT 2.8.3 results in the following error on the
    node's console:

    "Unrecognized directive <error> "


    Please advise.
    Thanks!

    On 4/17/2014 12:25 AM, Xiao Peng Wang wrote:

        Did you try to add the '--noupdateinitrd' as a parameter like
        'osimage=xxx --noupdateinitrd' in chain table? It should work.


        Thanks
        Best Regards
        ----------------------------------------------------------------------
        Wang Xiaopeng (???)
        IBM China System Technology Laboratory
        Tel: 86-10-82453455
        Email: _...@cn.ibm.com_ <mailto:w...@cn.ibm.com>
        Address: 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West
        Road, Haidian District Beijing P.R.China 100193

        Inactive hide details for Russell Jones ---2014/04/17
        00:22:27---Hi all, Every time a cluster is redeployed with a
        diskfull osiRussell Jones ---2014/04/17 00:22:27---Hi all,
        Every time a cluster is redeployed with a diskfull osimage, it
        takes a

        From: Russell Jones _<russell-l...@jonesmail.me>_
        <mailto:russell-l...@jonesmail.me>
        To: xCAT Users Mailing list
        _<xcat-user@lists.sourceforge.net>_
        <mailto:xcat-user@lists.sourceforge.net>,
        Date: 2014/04/17 00:22
        Subject: [xcat-user] xCAT diskfull image and custom initrd drivers
        ------------------------------------------------------------------------



        Hi all,

        Every time a cluster is redeployed with a diskfull osimage, it
        takes a very, very long time due to it rebuilding the initrd
        for every single node to include our custom drivers. Example:

        [root@master ~]# ps aux | grep cpio
        root     22435  0.0  0.0  11296  1288 ?        S    11:07 0:00
        sh -c cd /tmp/ddtmpmH2w9vo/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmpmH2w9vo/initrd_img/modules/modules.cgz 2>&1
        root     22437  0.0  0.0   8420   712 ?        S    11:07 0:00
        cpio -o -H crc
        root     23258  0.0  0.0  11296  1288 ?        S    11:13 0:00
        sh -c cd /tmp/ddtmp8zxIDN9/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmp8zxIDN9/initrd_img/modules/modules.cgz 2>&1
        root     23260  0.0  0.0   8420   716 ?        D    11:13 0:00
        cpio -o -H crc
        root     23282  0.0  0.0  11296  1284 ?        S    11:14 0:00
        sh -c cd /tmp/ddtmpf3rzSJ8/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmpf3rzSJ8/initrd_img/modules/modules.cgz 2>&1
        root     23285  0.0  0.0   8420   716 ?        S    11:14 0:00
        cpio -o -H crc
        root     23396  0.0  0.0  11296  1284 ?        S    11:15 0:00
        sh -c cd /tmp/ddtmpwWNUmJC/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmpwWNUmJC/initrd_img/modules/modules.cgz 2>&1
        root     23398  0.1  0.0   8420   712 ?        S    11:15 0:00
        cpio -o -H crc
        root     23424  0.0  0.0  11296  1288 ?        S    11:15 0:00
        sh -c cd /tmp/ddtmpxPdAop2/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmpxPdAop2/initrd_img/modules/modules.cgz 2>&1
        root     23426  0.0  0.0   8420   716 ?        S    11:15 0:00
        cpio -o -H crc
        root     23600  0.0  0.0  11296  1288 ?        S    11:17 0:00
        sh -c cd /tmp/ddtmpx1_N0Oq/modules; find . -print | cpio -o -H
        crc | gzip -9 >
        /tmp/ddtmpx1_N0Oq/initrd_img/modules/modules.cgz 2>&1
        root     23602  0.2  0.0   8420   712 ?        D    11:17 0:00
        cpio -o -H crc



        I know there is a flag for nodeset to tell it to not rebuild
        the initrd, but this doesn't help with an osimage install that
        is done via chain. Is there a way to tell xCAT to just build
        the initrd once, and not rebuild it over and over again for
        each individual compute node when it encounters the osimage
        install via the chain table?

        Thanks!
        
------------------------------------------------------------------------------
        Learn Graph Databases - Download FREE O'Reilly Book
        "Graph Databases" is the definitive new guide to graph
        databases and their
        applications. Written by three acclaimed leaders in the field,
        this first edition is now available. Download your free book
        today!_
        
__http://p.sf.net/sfu/NeoTech________________________________________________
        xCAT-user mailing list_
        __xCAT-user@lists.sourceforge.net_
        <mailto:xCAT-user@lists.sourceforge.net>_
        __https://lists.sourceforge.net/lists/listinfo/xcat-user_



        
------------------------------------------------------------------------------
        Learn Graph Databases - Download FREE O'Reilly Book
        "Graph Databases" is the definitive new guide to graph
        databases and their
        applications. Written by three acclaimed leaders in the field,
        this first edition is now available. Download your free book
        today!_
        __http://p.sf.net/sfu/NeoTech_


        _______________________________________________
        xCAT-user mailing list_
        __xCAT-user@lists.sourceforge.net_
        <mailto:xCAT-user@lists.sourceforge.net>_
        __https://lists.sourceforge.net/lists/listinfo/xcat-user_ 
------------------------------------------------------------------------------
    Learn Graph Databases - Download FREE O'Reilly Book
    "Graph Databases" is the definitive new guide to graph databases
    and their
    applications. Written by three acclaimed leaders in the field,
    this first edition is now available. Download your free book today!_
    
__http://p.sf.net/sfu/NeoTech________________________________________________
    xCAT-user mailing list_
    __xCAT-user@lists.sourceforge.net_
    <mailto:xCAT-user@lists.sourceforge.net>_
    __https://lists.sourceforge.net/lists/listinfo/xcat-user_



    
------------------------------------------------------------------------------
    Start Your Social Network Today - Download eXo Platform
    Build your Enterprise Intranet with eXo Platform Software
    Java Based Open Source Intranet - Social, Extensible, Cloud Ready
    Get Started Now And Turn Your Intranet Into A Collaboration Platform
    _http://p.sf.net/sfu/ExoPlatform_


    _______________________________________________
    xCAT-user mailing list
    _xCAT-user@lists.sourceforge.net_
    <mailto:xCAT-user@lists.sourceforge.net>
    _https://lists.sourceforge.net/lists/listinfo/xcat-user_

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform


_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to