Monday, November 1, 2010

Install HP Systems Manager on Xen Server 5.5

Installing HP Systems Management Homepage and the Disk Diagnostics / Configuration Plug ins on a Citrix Xen server 5.5 – Bronson Magnan

  1. Need to temporarily switch to the CentOS Base Repo, and away from the Citrix Repo
  2. cd /etc/yum.repos.d/
  3. vi CentOS-Base.repo
  4. Change “enabled=0” to “enabled=1” this turns on this repo
  5. Change “gpgcheck=1” to “gpgcheck=0” this turns on signature checking for the repo, the key site that is listed in the repo does not exit anymore.
  6. vi Citrix.repo
  7. Change “enabled=1” to “enabled=0”
  8. yum install compat-libstdc++-296.i386
  9. Turn the CentOS repo off and the Citrix repo back on by reversing the changes in step 1 to 7.
  10. Download the following from the HP system management download page to /usr/src 
  11. cpqacuxe-8.35-7.0.noarch.rpm – the array config utility
  12. hpacucli-8.35-7.0.noarch.rpm – the array config utility CLI
  13. hpadu-8.26-1.noarch.rpm – the array diagnostics utility
  14. hpsmh-6.1.0-103.i386.rpm – the systems manager homepage
  15. Trick the script into thinking that this is RHEL instead of CentOS.
  16. cp /etc/redhat-release /etc/xen-release – Making a backup copy.
  17. Vi /etc/redhat-release and change the line: "XenServer release xxxxxxxxx (xenenterprise)" To: "Red Hat Enterprise Linux AS release 4 (Nahant Update 1)"
  18. Save the changes and close the file
  19. rpm –ihv hpsmh-6.1.0-103.i386.rpm – install the system manager homepage.
  20. rpm –ihv hpadu-8.26-1.noarch.rpm – install the array diagnostics web app.
  21. rpm –ihv cpqacuxe-8.35-7.0.noarch.rpm – install the array configuration web app.
  22. rpm –ihv hpacucli-8.35-7.0.noarch.rpm – install the array configuration CLI.
  23. Reverse the changes done in step 15.
  24. mv /etc/xen-release /etc/redhat-release
  25. Edit the firewall ruleset and restart the firewall service.
  26. vi /etc/sysconfig/iptables
  27. Insert the following line before the deny all statement “-A RH-Firewall-1-INPUT –m state --state NEW –m tcp –p tcp --dport 2381 –j ACCEPT”
  28. Save and close the file
  29. service iptables restart
  30. Patch the diagnostics utility to work on Xen 5.5
  31. cp /usr/sbin/hpadu /usr/sbin/hpadu.bkp
  32. chmod 700 /usr/sbin/hpadu
  33. Now edit hpadu, locate the string "LD_ASSUME". I have to modify the complete section as follows (comment out every line by overwriting the first char)
  34. # 1. Don't set LD_ASSUME_KERNEL on SLES 10, RHEL5, or Debian 2.6
  35. #f
  36. #hen
  37. #xport LD_ASSUME_KERNEL=2.4.1
  38. #i
  39. Start the management services.
  40. service hpsmhd restart
  41. hpadu –start
  42. cpqacuxe –R
  43. You can view now from https://ipaddress:2381 – use the root credentials.

1 comment:

  1. I love you so much right now. This just turned a really LONG weekend into a quick in and out trip. THANK YOU!

    ReplyDelete