Skip to content

russki/hpraid-chroot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

hpraid-chroot

HP Array hpacucli chroot to use in kickstarts

Why

hpacucli is a CLI tool that allows you to configure HP Arrays.

Unfortunately it cannot be used in kickstarts as it requires bunch of libraries and binaries that are not available in %pre part of kickstart

This is a self-contained Centos 6 x86_64 hpacucli so you can use it your %pre of kickstarts to configure arrays

How to use it in your %pre script

Get prebuilt hpraid.tar.gz

Upload hpraid-chroot-master/hpraid.tar.gz somewhere on your interwebz

In your kickstart:

  • cd /tmp;
  • wget -O hpraid.tar.gz http://YOURWEBSITE/hpraid.tar.gz;
  • tar xzf hpraid.tar.gz;
  • mount -t proc proc hpraid/proc;
  • mount -t sysfs sysfs hpraid/sys;
  • mount --bind /dev hpraid/dev;
  • CLI='chroot hpraid /usr/sbin/hpacucli'
  • $CLI "controller slot=0 show"

Build a newer version on your own Centos 6 x86_64 box

Get new rpm

Go to http://h18000.www1.hp.com/products/servers/proliantstorage/software-management/acumatrix/

Get HP Array Configuration Utility CLI for Linux, 64bit RPM

Run the script to generate the new hpraid.tar.gz

  • wget ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p1257348637/v77370/hpacucli-9.30-15.0.x86_64.rpm
  • ./mk_chroot_hpacucli hpacucli-9.30-15.0.x86_64.rpm

Upload this new hpraid.tar.gz to wherever you want to use it later in your kickstart

Changelog

12/14/12 hpraid.tar.gz is built with hpacucli-9.30-15.0.x86_64.rpm

About

HP Array hpacucli chroot to use in kickstarts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages