Try having the script output pwd first so you know where it's looking.

In addition, verify your binary can run inside the nbfs / genesis image manually before trying to automate it.



On 3/3/2014 1:42 PM, Stagneth, Andre wrote:

Hello,

Why the script do not execute the binary?

Content of tar:

tar tvf run.tgz

-rwxr-xr-x root/root 2469692 2014-03-03 20:28 cli

-rwxr-xr-x root/root        21 2014-03-03 20:35 runme.sh

Content of the script:

cat runme.sh

ls -lsa cli

./cli --h

Output in rcons:

run.tgz 100% |*****************************| 661 KB --:--:-- ETA

cli

runme.sh

2424 -rwxr-xr-x    1 root     root      2469692 Mar  3 12:28 cli

./runme.sh: line 2: ./cli: not found

Used version of xCat:

lsxcatd -v

Version 2.7 (svn r11882, built Fri Mar 16 06:32:39 EDT 2012)

Thanks in advance

André

*From:*Russell Jones [mailto:[email protected]]
*Sent:* Freitag, 28. Februar 2014 20:13
*To:* [email protected]
*Subject:* Re: [xcat-user] setup RAID controller before installing OS

We do exactly this using runimage's first. We just chain it so that the nodes configure their controller and partitions how we need it, reboot, then either install / download the OS

On 28.02.2014 10:45, Jonathan Mills wrote:

    I've briefly looked into this.

    You can't do it within a kickstart's %pre section because the

    environment doesn't have enough libraries loaded to allow MegaCli to run.

    You can do it within a kickstart's %post section, which means you can

    create raid volumes for secondary drives, and format those.  But you

    still have to have something like a /dev/sda to begin with.

    Obviously, it's also easy to do this with an xCAT postbootscript, and

    add the script to the postscripts table or the osimage table.  That's

    what I currently do to create all my secondary drives.

    If you want to use MegaCli to create all of the raid disks though, I

    imagine you'd need to boot off the Genesis kernel first.  Perhaps as

    part of the node discovery process.

    On 02/28/2014 11:35 AM, Stagneth, Andre wrote:

        Hello, Is there a possibility to integrate a RAID
        configuration of LSI Controller before installation the OS
        (SLES11). MegaCli64 cfgclr force a0 MegaCli64 -cfgforeign
        -clear -a0 MegaCli64 -CfgLdAdd
        -r1[$ENC:1,$ENC:2,$ENC:3,$ENC:4] WB RA Cached CachedBadBBU
        -Cache -a0 (where $ENC is set to the enclosure number -- use
        "./MegaCli64 --pdlist --a0" to find it) MegaCli64
        -CfgCacheCadeAdd -r0 -Physdrv[$ENC:0] WT a0 MegaCli64
        -LDSetProp NORA --L1 -a0 Thanks in advance, André

--
    Jonathan Mills

    Systems Administrator

    Renaissance Computing Institute

    UNC-Chapel Hill

    
------------------------------------------------------------------------------

    Flow-based real-time traffic analytics software. Cisco certified tool.

    Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer

    Customize your own dashboards, set traffic alerts and generate reports.

    Network behavioral analysis & security monitoring. All-in-one tool.

    http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk

    _______________________________________________

    xCAT-user mailing list

    [email protected]  <mailto:[email protected]>

    https://lists.sourceforge.net/lists/listinfo/xcat-user



------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk


_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to