$Id$

MondoRescue provides enhanced HP ProLiant support.

HP ProLiant provides the possibility to be configured from a HW perspective at BIOS, Smart Arry (Raid) and iLO (management board) level from a Linux system.

The information is stored in the EEPROM of each HW component (BIOS, SA and iLO), retrieved through the below mentioned HP tools, and stored on the disk with XML files. These files are available at restore time, to be used by the same tools, also available, to reconfigure the HW in a similar way to what it was at backup time.                                                                                                                                        
                                                                                                                                                           
Only if you add FirmWare components under /usr/local/bin (CPxxx.scexe files) then these files will also be launched at restore time to force a specific FW version to be installed. As long as FirmWare files are not stored under /usr/local/bin, they won't be applied.                                                                                                                                                   
At restore time, MondoRescue will ask a question (if not in unattended mode) in order to know if you want to restore the HW *configuration* (not HW FirmWare) content. It will then re-apply what was stored in the XML files to configure the platform exactly as it was at backup time, from a HW confiuration perspective.

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

If you have a ProLiant system you first need to get the hp-scripting-tools, hponcfg and hpacucli packages. Due to licenses issues, mindi cannot provide those tools itself. You need to get them from http://downloads.linux.hp.com/SDR

Example for a RHEL6 OS:

wget http://downloads.linux.hp.com/SDR/downloads/bootstrap.sh
sh ./bootstrap.sh SPP
sh ./bootstrap.sh Extras
yum install -y hpacucli hponcfg hp-scripting-tools

You're now ready to check your configuration by running:
mindi-bkphw /var/cache/mindi /etc/mindi
[First parameter is the directory where files will be generated,
 Second parameter is the configuration directory of the file deplist.d/ProLiant.conf is located]

-------------------------------------------------------------------------------------
Older method:

If you have a ProLiant system you first need to get the hp-scripting-tools, hponcfg and hpacucli packages. Due to licenses issues, mindi cannot provide those tools itself. You need to get them from http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/

Example for a RHEL6 OS:

wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hpacucli-8.70-8.0.noarch.rpm
yum install -y (or worst case rpm -Uvh) hpacucli-8.70-8.0.noarch.rpm
(will install hpacuscripting under /usr/sbin)
wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/x86_64/8.72/hponcfg-3.1.1-0.noarch.rpm
yum install -y (or worst case rpm -Uvh) hponcfg-3.1.1-0.noarch.rpm
(will install hponcfg under /usr/sbin)
wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/RedHat/6Server/i386/8.72/hp-scripting-tools-8.70-52.rhel6.i386.rpm
yum install -y (or worst case rpm -Uvh) hp-scripting-tools-8.70-52.rhel6.i386.rpm
(will install hp-conrep or hp-rcu under /sbin)

You're now ready to check your configuration by running:
mindi-bkphw /var/cache/mindi /etc/mindi
[First parameter is the directory where files will be generated,
 Second parameter is the configuration directory of the file deplist.d/ProLiant.conf is located]

-------------------------------------------------------------------------------------
Some of these tools are also provided as part of the Smart Start Scripting Toolkit. You can get it from http://www.hp.com/servers/sstoolkit and use the following:
cd /tmp
wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1221080004/v63551/ss-scripting-toolkit-linux-8.70.tar.gz
mkdir ssstk
cd ssstk
tar xvfz ../ss-scripting-toolkit-linux-8.70.tar.gz
cp -a utilities/conrep /usr/sbin
cp -a utilities/conrep.xml /usr/share/conrep/conrep.xml
cp -a utilities/hponcfg /usr/sbin
cp -a utilities/hpacucli/hpacuscripting /usr/sbin
cp -a utilities/hpacucli/.hpacuscripting /usr/sbin

# For versions <= 1.90
cp -a utilities/cpqacuxe/cpqacuxe /usr/local/bin
cp -a utilities/cpqacuxe/bld /usr/local/bin
mv /usr/local/bin/bld/*.so /usr/local/lib
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig

-------------------------------------------------------------------------------------
Older URL:
wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v40154/ss-scripting-toolkit-linux-1.70.tar.gz
wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v43548/ss-scripting-toolkit-linux-1.81.tar.gz
wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p308169895/v44247/ss-scripting-toolkit-linux-1.90.tar.gz
-------------------------------------------------------------------------------------
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. 
In order to ensure that, you may want to do on 2.2.x (x < 5) versions:
- Edit your /usr/sbin/mindi script
- Look for declaration of the variable FORCE_MODS.
- Change it to FORCE_MODS="usb-storage sr_mod"

Those drivers will then be available at restore time, and your virtual media thus detected and supported.
As the CD-ROM emulated is a USB one, it will be a slower restore than using a real CD, or the network, but can be an easy way to load the mindi boot image e.g. and launch the rest of the restore through the network.

With latest versions of mindi, those modules are already included and you don't have to do anything to have it work.
