- Timestamp:
- Oct 7, 2011, 4:16:17 PM (14 years ago)
- 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 1 1 $Id$ 2 2 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 5 If 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 7 Mindi 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 9 Older URL: 10 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v40154/ss-scripting-toolkit-linux-1.70.tar.gz 11 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v43548/ss-scripting-toolkit-linux-1.81.tar.gz 12 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v44247/ss-scripting-toolkit-linux-1.90.tar.gz 13 14 cd /tmp 15 wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1221080004/v63551/ss-scripting-toolkit-linux-8.70.tar.gz 16 mkdir ssstk 17 cd ssstk 18 tar xvfz ../ss-scripting-toolkit-linux-8.70.tar.gz 19 cp -a utilities/conrep /usr/sbin 20 cp -a utilities/conrep.xml /usr/share/conrep/conrep.xml 21 22 # For versions <= 1.90 23 cp -a utilities/cpqacuxe/cpqacuxe /usr/local/bin 24 cp -a utilities/cpqacuxe/bld /usr/local/bin 25 mv /usr/local/bin/bld/*.so /usr/local/lib 26 echo /usr/local/lib >> /etc/ld.so.conf 27 ldconfig 28 29 30 wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hpacucli-8.70-8.0.noarch.rpm 31 rpm -Uvh hpacucli-8.70-8.0.noarch.rpm 32 (will install hpacuscripting under /usr/sbin) 33 wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hponcfg-3.1.1-0.noarch.rpm 34 rpm -Uvh hponcfg-3.1.1-0.noarch.rpm 35 (will install hponcfg under /usr/sbin) 36 37 You're now ready to check your configuration by running: 38 mindi-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 ------------------------------------------------------------------------------------- 43 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. 4 44 In order to ensure that, you may want to do on 2.2.x (x < 5) versions: 5 45 - Edit your /usr/sbin/mindi script -
branches/2.2.9/mindi/README.bkphw
r2695 r2882 5 5 Mindi 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. 6 6 7 For the moment, only HP Pro liant systems are supported. If you have tools to allow support for other type of machines, feel free to contribute patches to that script.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. For details on how to use ProLiant tools, please look at the README.ProLiant file 8 8 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 9 2011-10-07 Move ProLiant section to a specific file 43 10 2007-05-30 Initial file -
branches/2.2.9/mindi/README.bootparam
r2723 r2882 40 40 41 41 nohw 42 Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (Pro liant only)42 Do not call the mindi-rsthw script which try to restore also your BIOSes configuration (ProLiant only for now) 43 43 44 44 nolvm -
branches/2.2.9/mindi/deplist.d/ProLiant.conf
r2881 r2882 4 4 # Proliant extended support if available 5 5 # 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 6 15 # 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 76 76 install -m 755 analyze-my-lvm $locallib/mindi 77 77 install -m 644 msg-txt dev.tgz $locallib/mindi 78 install -m 644 deplist.txt udev.files proliant.filesmindi.conf $conf78 install -m 644 deplist.txt udev.files mindi.conf $conf 79 79 for f in deplist.d/*.conf; do 80 80 install -m 644 $f $conf/deplist.d -
branches/2.2.9/mindi/mindi
r2880 r2882 2553 2553 fi 2554 2554 2555 # Management of potential HW info (Pro liant only at the moment)2555 # Management of potential HW info (ProLiant only at the moment) 2556 2556 rm -rf $MINDI_CACHE/bkphw 2557 2557 mindi-bkphw $MINDI_CACHE $MINDI_CONF | tee -a $LOGFILE -
branches/2.2.9/mindi/mindi-bkphw
r2865 r2882 11 11 # Handling Configuration files 12 12 my $tool = ""; 13 my $tooldir = "";14 13 my $ret = 0; 15 14 my $productname = undef; … … 36 35 if ($productname =~ /proliant/i) { 37 36 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 40 44 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 41 46 open(SCRIPT,"> $bkpdir/../mindi-rsthw") || die "Unable to open $bkpdir/../mindi-rsthw"; 42 47 print SCRIPT << 'EOF'; 43 48 #!/bin/bash 44 49 # 50 # Script generated by mindi 51 # 45 52 # This script will restore potentially your HW configuration 46 # on your system before partioning occurs 53 # on your system before partioning occurs. 54 # 47 55 # You may want to reboot after that step if you think that 48 56 # 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. 50 59 # 51 # put dynamic libraries at an accessible place52 for l in /usr/local/lib/*; do53 ln -sf $l /usr/lib54 done55 60 EOF 56 61 while($tool = <PROLIANT>) { 62 my $hasfound = 0; 57 63 next if ($tool =~ /^#/); 58 64 chomp($tool); 59 $tooldir = dirname($tool);65 # skip non-executable/exising binaries 60 66 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";63 67 next; 64 68 } else { 65 print "Found $tool, activating enhanced HP Pro liant support in mindi\n";69 print "Found $tool, activating enhanced HP ProLiant support in mindi\n"; 66 70 print TOOLS "$tool\n"; 67 71 } 68 72 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 } 72 79 } 73 if ($tool =~ /\/.acuxebin$/) { 80 if ($tool =~ /\/hpacuscripting$/) { 81 $hasfound = 1; 74 82 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"; 84 88 } 85 89 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"; 88 92 } 89 93 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"; 92 102 } 93 103 if ($ret != 0) { -
branches/2.2.9/mondo/src/mondorestore/mondorestore.c
r2878 r2882 133 133 134 134 /************************************************************************** 135 * COMPAQ P ROLIANTStuff: needs some special help *135 * COMPAQ ProLiant Stuff: needs some special help * 136 136 **************************************************************************/ 137 137 138 138 /** 139 * The message to display if we detect that the user is using a Compaq Pro liant.139 * The message to display if we detect that the user is using a Compaq ProLiant. 140 140 */ 141 141 #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." … … 231 231 * @ingroup restoreUtilityGroup 232 232 */ 233 void offer_to_abort_because_Compaq_Pro liants_suck(void)233 void offer_to_abort_because_Compaq_ProLiants_suck(void) 234 234 { 235 235 popup_and_OK(COMPAQ_PROLIANTS_SUCK); … … 513 513 if (partition_table_contains_Compaq_diagnostic_partition 514 514 (mountlist)) { 515 offer_to_abort_because_Compaq_Pro liants_suck();515 offer_to_abort_because_Compaq_ProLiants_suck(); 516 516 done = TRUE; 517 517 } else { … … 817 817 if (partition_table_contains_Compaq_diagnostic_partition 818 818 (mountlist)) { 819 offer_to_abort_because_Compaq_Pro liants_suck();819 offer_to_abort_because_Compaq_ProLiants_suck(); 820 820 } else { 821 821 twenty_seconds_til_yikes();
Note:
See TracChangeset
for help on using the changeset viewer.