LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-28-2008, 03:15 AM   #1
rbestubbe
LQ Newbie
 
Registered: May 2008
Posts: 5

Rep: Reputation: 0
heartbeat-stonith on RHAS4.6 won't install: dependencies errors


Hello all,

I'm fairly new with Linux and I'm trying to setup a HA-cluster with 2 RHAS4 machines but cannot setup the Heartbeat software.
I tried 2 version of heartbeat, both fail to install heartbeat-stonith due to depedencies errors.
I have absolutely no clue how to solve the problem.

Can I use the heartbeat solution anyway or do I need the RedHat Cluster Manager Suite for my HA ?

any help is appriciated
regards,

René
Rotterdam, Netherlands

These are the errors I get
rpm -ihv heartbeat-stonith-2.1.3-1.i586.rpm
warning: /usr/src/redhat/RPMS/i586/heartbeat-stonith-2.1.3-1.i586.rpm: V3 DSA signature: NOKEY, key ID 4dab7996
error: Failed dependencies:
libcrypto.so.0.9.8 is needed by heartbeat-stonith-2.1.3-1.i586
libnetsnmp.so.15 is needed by heartbeat-stonith-2.1.3-1.i586
libopenhpi.so.2 is needed by heartbeat-stonith-2.1.3-1.i586


rpm -ivh heartbeat-stonith-2.0.2-1.i386.rpm
error: Failed dependencies:
libcurl.so.2 is needed by heartbeat-stonith-2.0.2-1.i386
 
Old 05-31-2008, 05:09 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rbestubbe View Post
I'm trying to setup a HA-cluster with 2 RHAS4 machines but cannot setup the Heartbeat software. I tried 2 version of heartbeat, both fail to install heartbeat-stonith due to depedencies errors. I have absolutely no clue how to solve the problem.
Usually you would let your package manager resolve dependencies. If your up2date, yum, autoupdate or apt don't resolve it you'll have to chase for dependencies yourself. Or (re)build from tarball or .src.rpm if packages are not available.


Quote:
Originally Posted by rbestubbe View Post
warning: /usr/src/redhat/RPMS/i586/heartbeat-stonith-2.1.3-1.i586.rpm: V3 DSA signature: NOKEY, key ID 4dab7996
If the "/usr/src/redhat/RPMS/i586" location here meant you built this RPM yourself, next time please remember to build packages logged in in any local unprivileged user account. Way safer.


Quote:
Originally Posted by rbestubbe View Post
libcrypto.so.0.9.8 is needed by heartbeat-stonith-2.1.3-1.i586
libnetsnmp.so.15 is needed by heartbeat-stonith-2.1.3-1.i586
libopenhpi.so.2 is needed by heartbeat-stonith-2.1.3-1.i586
libcurl.so.2 is needed by heartbeat-stonith-2.0.2-1.i386
You'll want the RPMs for openssl, net-snmp-libs and openhpi. And curl if you *really* want to install the lower version heartbeat-stonith-2.0.2-1, but I can't see why anyone would want that.
 
Old 06-02-2008, 02:57 AM   #3
rbestubbe
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
@unSpawn : thanks for the tips, appreciated.

I found the solution at http://www.ultramonkey.org/download/...t/2.0.2/rhel3/

Had to adjust te script a little, (adjustment in bold) and the installation works like a charme.
Now configuring.....
====================================================================
echo "Beginning Heartbeat installation"
echo "--------------------------------"
echo ""
echo "Uninstalling any old versions of heartbeat"
rpm -e heartbeat-debuginfo
rpm -e heartbeat
rpm -e heartbeat-stonith
rpm -e heartbeat-pils

echo "Rebuilding the required libnet RPM for your OS from the source RPM"
rpmbuild --quiet --rebuild libnet-1.1.2.1-1.rh.el.um.1.src.rpm

echo "Installing the required libnet rpm"
rpm -Uhv /usr/src/redhat/RPMS/i386/libnet-1.1.2.1-1*.rpm
echo "...................................................Done"
echo ""

echo "Installing the required glib-devel rpm"
up2date -iv glib-devel
echo "...................................................Done"
echo ""


echo "Rebuilding the Heartbeat RPMS for your OS from the source RPM"
rpmbuild --quiet --rebuild heartbeat-2.0.2-1.src.rpm
echo "...................................................Done"
echo ""

echo "Installing the Heartbeat RPMS"
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-pils-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-stonith-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-2.0.2-1.i386.rpm
rpm -Uhv /usr/src/redhat/RPMS/i386/heartbeat-debuginfo-2.0.2-1.i386.rpm
echo "...................................................Done"
echo ""

echo "Copying the original Heartbeat sample config files into place"
cp /usr/share/doc/heartbeat-2.0.2/haresources /etc/ha.d/haresources.sample
cp /usr/share/doc/heartbeat-2.0.2/ha.cf /etc/ha.d/ha.cf.sample
cp /usr/share/doc/heartbeat-2.0.2/authkeys /etc/ha.d/authkeys.sample
echo "...................................................Done"
echo ""

echo "You must now create the /etc/ha.d/ha.cf, /etc/ha.d/haresources, and"
echo "/etc/ha.d/authkeys files using the sample files provided to setup a"
echo "2 node HA cluster or build a properly formatted "
echo "/var/lib/heartbeat/crm/cib.xml configuration file to setup a multinode"
echo "cluster using CRM."

chkconfig --level 2345 heartbeat on

echo "Installation of Heartbeat v2.0.2 is complete."
 
Old 06-02-2008, 05:09 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for posting the fix, good to see you got it working.

Be sure to let the people at www.ultramonkey.org know too or else maybe add it to the CentOS Wiki?


Quote:
Originally Posted by rbestubbe View Post
rpm -Uhv /usr/src/redhat/RPMS/i386/libnet-1.1.2.1-1*.rpm
Uh. There's no need for root account privileges here.
Building packages as any local unprivileged user would be way better.
Can't emphasise that enough.
 
Old 06-03-2008, 02:15 AM   #5
rbestubbe
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
Thanks for posting the fix, good to see you got it working.

Be sure to let the people at www.ultramonkey.org know too or else maybe add it to the CentOS Wiki?



Uh. There's no need for root account privileges here.
Building packages as any local unprivileged user would be way better.
Can't emphasise that enough.
Thanks, posted the fix so others know what to do..or am I the only one not getting this

CentOS? I thought this was a Redhat thingy?

Ehh...ok, but it's not my script, am just happy I got things working root and a ssh-user are the only accounts on the system, there are no other users. Is there a security issue building rpm's?
Up2date runs only as root, haven't figured out sudo yet
I'm pretty new at this Linux stuff, got to learn as I go, just wish I could figure out man-pages

Last edited by rbestubbe; 06-03-2008 at 02:18 AM.
 
Old 06-03-2008, 09:02 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rbestubbe View Post
CentOS? I thought this was a Redhat thingy?
Heh, sorry bout confusing you with derivatives :-]


Quote:
Originally Posted by rbestubbe View Post
Ehh...ok, but it's not my script, am just happy I got things working root and a ssh-user are the only accounts on the system, there are no other users. Is there a security issue building rpm's?
At the basis it's the "least privilege" thing, you just don't need root account access to build packages. Secondly, yes, theoretically, if the .spec file does things you don not want it to (and who audits .spec files, right). Third, yes, in practice, if the %install script installs stuff in your system.
Setting up an account for building packages is easy, no exotic requirements at all: any unprivileged user ID over 500 with a shell should do. OK, there are some common sense things like not having compilers on and not building packages on production machines if you can help it...


Quote:
Originally Posted by rbestubbe View Post
Up2date runs only as root, haven't figured out sudo yet
It needs to install packages and only root can do that.


Quote:
Originally Posted by rbestubbe View Post
I'm pretty new at this Linux stuff, got to learn as I go, just wish I could figure out man-pages
Well, at least you've found another resource to help you. As long as you ask specific questions you should recieve specific answers. A lot of things have been asked, so search LQ might yield answers to common questions. And no question is "stupid": not asking, that's stupid.
 
Old 06-04-2008, 02:43 AM   #7
rbestubbe
LQ Newbie
 
Registered: May 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the support.
I'll be back
 
  


Reply

Tags
as, dependencies, heartbeat, redhat, stonith



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot install Heartbeat - RPM hell! Micro420 Linux - Software 8 07-23-2007 03:45 AM
magically/accidentally turned rhas4 into centos murray_linux Red Hat 3 03-16-2007 03:02 AM
Where to get a STONITH device? Micro420 Linux - Hardware 1 01-22-2007 04:31 PM
how to limit pagecache in RHAS4 (2.6.9) shintaro Red Hat 3 04-13-2006 10:05 AM
RPM Dependencies Errors louisb Linux - Software 3 02-28-2004 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration