Changeset 2882 in MondoRescue


Ignore:
Timestamp:
Oct 7, 2011, 4:16:17 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Add compatibility with the latest SSSTK + PSP content for HP ProLiant + branding homogeneous now. We only take conrep out of the SSSTK pending a package availability. Using hpacuscripting now. Review of parameters called following test made.
Location:
branches/2.2.9
Files:
1 deleted
6 edited
2 moved

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/README.ProLiant

    r2881 r2882  
    11$Id$
    22
    3 If you're making a backup with mondoarchive on a Proliant system that you want to be able to restore using the Virtual Media function of Proliants, then you have to ensure that the required drivers will be available at restore time.
     3-------------------------------------------------------------------------------------
     4
     5If you have a ProLiant system you first need to get the Smart Start Scripting Toolkit, and the hponcfg and hpacucli packages. Due to licenses issues, mindi cannot provide those tools itself. You need to get them from http://www.hp.com/servers/sstoolkit and http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/
     6
     7Mindi expects to find those tools under /usr/sbin as described in the deplist.d/ProLiant.conf configuration file. Here are the steps to set it up correctly:
     8
     9Older URL:
     10wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v40154/ss-scripting-toolkit-linux-1.70.tar.gz
     11wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v43548/ss-scripting-toolkit-linux-1.81.tar.gz
     12wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v44247/ss-scripting-toolkit-linux-1.90.tar.gz
     13
     14cd /tmp
     15wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1221080004/v63551/ss-scripting-toolkit-linux-8.70.tar.gz
     16mkdir ssstk
     17cd ssstk
     18tar xvfz ../ss-scripting-toolkit-linux-8.70.tar.gz
     19cp -a utilities/conrep /usr/sbin
     20cp -a utilities/conrep.xml /usr/share/conrep/conrep.xml
     21
     22# For versions <= 1.90
     23cp -a utilities/cpqacuxe/cpqacuxe /usr/local/bin
     24cp -a utilities/cpqacuxe/bld /usr/local/bin
     25mv /usr/local/bin/bld/*.so /usr/local/lib
     26echo /usr/local/lib >> /etc/ld.so.conf
     27ldconfig
     28
     29
     30wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hpacucli-8.70-8.0.noarch.rpm
     31rpm -Uvh hpacucli-8.70-8.0.noarch.rpm
     32(will install hpacuscripting under /usr/sbin)
     33wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hponcfg-3.1.1-0.noarch.rpm
     34rpm -Uvh hponcfg-3.1.1-0.noarch.rpm
     35(will install hponcfg under /usr/sbin)
     36
     37You're now ready to check your configuration by running:
     38mindi-bkphw /var/cache/mindi /etc/mindi
     39[First parameter is the directory where files will be generated,
     40 Second parameter is the configuration directory of the file deplist.d/ProLiant.conf is located]
     41
     42-------------------------------------------------------------------------------------
     43If you're making a backup with mondoarchive on a ProLiant system that you want to be able to restore using the Virtual Media function of ProLiants, then you have to ensure that the required drivers will be available at restore time.
    444In order to ensure that, you may want to do on 2.2.x (x < 5) versions:
    545- Edit your /usr/sbin/mindi script
  • branches/2.2.9/mindi/README.bkphw

    r2695 r2882  
    55Mindi has a script able to store the Hardware configuration and those parameters may be restored before launching mondorestore during the boot phase computed by mindi, in order to re-setup the machine as the original one.
    66
    7 For the moment, only HP Proliant systems are supported. If you have tools to allow support for other type of machines, feel free to contribute patches to that script.
     7For the moment, only HP ProLiant systems are supported. If you have tools to allow support for other type of machines, feel free to contribute patches to that script. For details on how to use ProLiant tools, please look at the README.ProLiant file
    88
    9 If you have a Proliant system you first need to get the Smart Start Scripting Toolkit. Due to licenses issues, mindi cannot provide those tools itself. You need to get them from http://www.hp.com/servers/sstoolkit
    10 
    11 Mindi expects to find those tools under /usr/local/bin as described in the deplist.d/proliant.conf configuration file. Here are the steps to set it up correctly:
    12 
    13 Older URL:
    14 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v40154/ss-scripting-toolkit-linux-1.70.tar.gz
    15 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v43548/ss-scripting-toolkit-linux-1.81.tar.gz
    16 
    17 cd /tmp
    18 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v44247/ss-scripting-toolkit-linux-1.90.tar.gz
    19 mkdir ssstk
    20 cd ssstk
    21 tar xvfz ../ss-scripting-toolkit-linux-1.90.tar.gz
    22 cp -a utilities/hponcfg /usr/local/bin
    23 cp -a utilities/conrep /usr/local/bin
    24 cp -a utilities/conrep.xml /usr/local/bin
    25 # For versions <= 1.90
    26 cp -a utilities/cpqacuxe/cpqacuxe /usr/local/bin
    27 cp -a utilities/cpqacuxe/bld /usr/local/bin
    28 mv /usr/local/bin/bld/*.so /usr/local/lib
    29 # For recent versions
    30 cp -a utilities/hpacucli /usr/local/bin
    31 echo /usr/local/lib >> /etc/ld.so.conf
    32 ldconfig
    33 
    34 You're now ready to check your configuration by running:
    35 mindi-bkphw /var/cache/mindi /etc/mindi
    36 [First parameter is the directory where files will be generated,
    37  Second parameter is the directory of the file proliant.files is located]
    38 
    39 For these tools to work you may have to install additional packages such as hpasm and hprsm from the HP Web site, as well as some libstdc++ compatibility packages (compat-libstdc++-33 and compat-libstdc++-296 on RHEL 5 e.g.)
    40 
    41 In order to have a working hponcfg binary you also need to install the hprsm/hpasm packages from HP Web site. Refer to http://welcome.hp.com/country/us/en/support.html?pageDisplay=drivers
    42 
     92011-10-07 Move ProLiant section to a specific file
    43102007-05-30 Initial file
  • branches/2.2.9/mindi/README.bootparam

    r2723 r2882  
    4040
    4141nohw
    42     Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (Proliant only)
     42    Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (ProLiant only for now)
    4343
    4444nolvm
  • branches/2.2.9/mindi/deplist.d/ProLiant.conf

    r2881 r2882  
    44# Proliant extended support if available
    55# Look at http://www.hp.com/servers/sstoolkit
     6# the xml file needs to go under /usr/share/conrep
     7/usr/sbin/conrep
     8
     9# Look at http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/
     10/usr/sbin/hpacuscripting
     11/usr/sbin/hponcfg
     12
     13# You may add your FW update here with a ful path - They need to be in executable mode
     14# /usr/local/bin/CP012345.scexe
    615#
    7 /usr/local/bin/conrep
    8 /usr/local/bin/cpqacuxe
    9 /usr/local/bin/hponcfg
    10 /usr/local/bin/hpacucli
     16# Older version which should be put after
     17#
     18#/usr/local/bin/conrep
     19#/usr/local/bin/hponcfg
     20#/usr/local/bin/hpacucli
     21#/usr/local/bin/cpqacuxe
     22#/opt/compaq/cpqacuxe/bld/.acuxebin
     23#/usr/local/bin/bld/.acuxebin
  • branches/2.2.9/mindi/install.sh

    r2458 r2882  
    7676install -m 755 analyze-my-lvm $locallib/mindi
    7777install -m 644 msg-txt dev.tgz $locallib/mindi
    78 install -m 644 deplist.txt udev.files proliant.files mindi.conf $conf
     78install -m 644 deplist.txt udev.files mindi.conf $conf
    7979for f in deplist.d/*.conf; do
    8080    install -m 644 $f $conf/deplist.d
  • branches/2.2.9/mindi/mindi

    r2880 r2882  
    25532553    fi
    25542554
    2555     # Management of potential HW info (Proliant only at the moment)
     2555    # Management of potential HW info (ProLiant only at the moment)
    25562556    rm -rf $MINDI_CACHE/bkphw
    25572557    mindi-bkphw $MINDI_CACHE $MINDI_CONF | tee -a $LOGFILE
  • branches/2.2.9/mindi/mindi-bkphw

    r2865 r2882  
    1111# Handling Configuration files
    1212my $tool = "";
    13 my $tooldir = "";
    1413my $ret = 0;
    1514my $productname = undef;
     
    3635if ($productname =~ /proliant/i) {
    3736    print "Detected a $productname. Nice. Continue to support my job :-)\n";
    38     print "Activating Proliant support for mindi\n";
    39     open(PROLIANT,"$confdir/proliant.files") || die "Unable to open $confdir/proliant.files";
     37    print "Activating ProLiant support for mindi\n";
     38    print "You can install the SmartStart Scripting toolkit tool $tool\nto benefit from mindi's enhanced ProLiant support\n";
     39    print "Get it from http://www.hp.com/servers/sstoolkit\n";
     40    print "And use the SDR to get all other HP ProLiant packages\n";
     41    print "Get it from http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/\n";
     42    open(PROLIANT,"$confdir/deplist.d/ProLiant.conf") || die "Unable to open $confdir/deplist.d/ProLiant.conf";
     43    # generate a list of what need to be put on the backup media
    4044    open(TOOLS,"> $bkpdir/../tools.files") || die "Unable to open $bkpdir/../tools.files";
     45    # generate a script that will be launched at rstore time to perform the HW setup
    4146    open(SCRIPT,"> $bkpdir/../mindi-rsthw") || die "Unable to open $bkpdir/../mindi-rsthw";
    4247    print SCRIPT  << 'EOF';
    4348#!/bin/bash
    4449#
     50# Script generated by mindi
     51#
    4552# This script will restore potentially your HW configuration
    46 # on your system before partioning occurs
     53# on your system before partioning occurs.
     54#
    4755# You may want to reboot after that step if you think that
    4856# resetting BIOS parameters to the value restored
    49 # may have an impact on you restoration process
     57# may have an impact on your restoration process or if
     58# you want to benefit from any firmware update that could have happened.
    5059#
    51 # put dynamic libraries at an accessible place
    52 for l in /usr/local/lib/*; do
    53     ln -sf $l /usr/lib
    54 done
    5560EOF
    5661    while($tool = <PROLIANT>) {
     62        my $hasfound = 0;
    5763        next if ($tool =~ /^#/);
    5864        chomp($tool);
    59         $tooldir = dirname($tool);
     65        # skip non-executable/exising binaries
    6066        if (! (-x $tool)) {
    61             print "You could install the SmartStart Scripting toolkit tool $tool\nto benefit from mindi's enhanced hardware support\n";
    62             print "Get it from http://www.hp.com/servers/sstoolkit\n";
    6367            next;
    6468        } else {
    65             print "Found $tool, activating enhanced HP Proliant support in mindi\n";
     69            print "Found $tool, activating enhanced HP ProLiant support in mindi\n";
    6670            print TOOLS "$tool\n";
    6771        }
    6872        if ($tool =~ /\/conrep$/) {
    69             $ret = system("cd $tooldir ; $tool -s -f$bkpdir/conrep.dat");
    70             print SCRIPT "(cd $tooldir ; $tool -l -f$locbkpdir/conrep.dat)\n";
    71             print TOOLS "$tool.xml\n";
     73            if (! -f "/usr/share/conrep/conrep.xml") {
     74            } else {
     75                $ret = system("$tool -s -x /usr/share/conrep/conrep.xml -f$bkpdir/conrep.dat");
     76                print SCRIPT "($tool -l -f$locbkpdir/conrep.dat)\n";
     77                print TOOLS "$tool.xml\n";
     78            }
    7279        }
    73         if ($tool =~ /\/.acuxebin$/) {
     80        if ($tool =~ /\/hpacuscripting$/) {
     81            $hasfound = 1;
    7482            my $dir=basename($tool);
    75             $ret = system("export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -c $bkpdir/cpqacuxe.dat");
    76             print SCRIPT "export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -i $locbkpdir/cpqacuxe.dat\n";
    77             print TOOLS "$tooldir/bld\n";
    78         }
    79         if ($tool =~ /\/hpacucli$/) {
    80             my $dir=basename($tool);
    81             $ret = system("export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -c $bkpdir/hpacucli.dat");
    82             print SCRIPT "export ACUXE_BIN_INSTALLATION_DIR=$dir ; export IM_CFGFILE_PATH=$dir ; export ACUXE_LOCK_FILES_DIR=$dir/locks ; $tool -i $locbkpdir/hpacucli.dat\n";
    83             print TOOLS "$tooldir/bld\n";
     83            # Just backup internal info for a DR
     84            $ret = system("$tool -c $bkpdir/hpacuscripting.dat -internal");
     85            # We could want to reset it before.
     86            print SCRIPT "# $tool -reset -i $locbkpdir/hpacusripting.dat\n";
     87            print SCRIPT "$tool -i $locbkpdir/hpacusripting.dat\n";
    8488        }
    8589        if ($tool =~ /\/hponcfg$/) {
    86             $ret = system("$tool -w $bkpdir/hponcfg.dat");
    87             print SCRIPT "$tool -r $locbkpdir/hponcfg.dat\n";
     90            $ret = system("$tool -a -w $bkpdir/hponcfg.dat");
     91            print SCRIPT "$tool -f $locbkpdir/hponcfg.dat\n";
    8892        }
    8993        if ($tool =~ /\.scexe$/) {
    90             print "Found $tool, that firmware will be applied at restore time on your HP Proliant\n";
    91             print SCRIPT "./$tool\n";
     94            print "Found $tool, that firmware will be applied at restore time on your HP ProLiant\n";
     95            print SCRIPT "./$tool -s\n";
     96        }
     97        # Kept for compatibility with older version of tools
     98        if (($tool =~ /\/hpacucli$/) && ($hasfound == 0)) {
     99            my $dir=basename($tool);
     100            $ret = system("$tool -c $bkpdir/hpacucli.dat");
     101            print SCRIPT "$tool -i $locbkpdir/hpacucli.dat\n";
    92102        }
    93103        if ($ret != 0) {
  • branches/2.2.9/mondo/src/mondorestore/mondorestore.c

    r2878 r2882  
    133133
    134134/**************************************************************************
    135  * COMPAQ PROLIANT Stuff:  needs some special help                        *
     135 * COMPAQ ProLiant Stuff:  needs some special help                        *
    136136**************************************************************************/
    137137
    138138/**
    139  * The message to display if we detect that the user is using a Compaq Proliant.
     139 * The message to display if we detect that the user is using a Compaq ProLiant.
    140140 */
    141141#define COMPAQ_PROLIANTS_SUCK "Partition and format your disk using Compaq's disaster recovery CD. After you've done that, please reboot with your Mondo media in Interactive Mode."
     
    231231 * @ingroup restoreUtilityGroup
    232232 */
    233 void offer_to_abort_because_Compaq_Proliants_suck(void)
     233void offer_to_abort_because_Compaq_ProLiants_suck(void)
    234234{
    235235    popup_and_OK(COMPAQ_PROLIANTS_SUCK);
     
    513513                if (partition_table_contains_Compaq_diagnostic_partition
    514514                    (mountlist)) {
    515                     offer_to_abort_because_Compaq_Proliants_suck();
     515                    offer_to_abort_because_Compaq_ProLiants_suck();
    516516                    done = TRUE;
    517517                } else {
     
    817817        if (partition_table_contains_Compaq_diagnostic_partition
    818818            (mountlist)) {
    819             offer_to_abort_because_Compaq_Proliants_suck();
     819            offer_to_abort_because_Compaq_ProLiants_suck();
    820820        } else {
    821821            twenty_seconds_til_yikes();
Note: See TracChangeset for help on using the changeset viewer.