Find the answer to your Linux question:
Results 1 to 6 of 6
..i have a username "hacluster" with a UID of "600" and GID of "users"..the problem is the moment i try to run my heartbeat program..i always got this error message: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Mandaluyong
    Posts
    8

    ..attention all experience seniors try to solve this ERROR..


    ..i have a username "hacluster" with a UID of "600" and GID of "users"..the problem is the moment i try to run my heartbeat program..i always got this error message:

    "Bad Permissions On Keyfile [/usr/local/etc/ha.d/authkeys], 600 recommended"

    ..here is the configuration of my authkeys..

    auth 1
    1 sha1 kenn

    ..any help will be appreciated..

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Peterborough, UK
    Posts
    379
    I'd guess:
    Code:
    su -
    <root pass>
    chmod 600 <file>
    However, best to check what the permissions on the file are before you do that ("ls -a", I think)...
    \"I am, after all,\" said Pooh, \"a bear of very little brain.\"
    MY PC: Athlon XP64 3000+ on a Asus K8V-X mobo w/1GB of non-descript RAM. AGP - GeForce 2 MX400. PCI - Creative Live! 5.1 soundcard. 140 GB and 120 GB SATA WD drives.

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,934
    Yep, Odd_Bloke has the right solution.

    Your heartbeat program refuses to run if the keys look like they've been tampered with, setting the privileges to read and write for the owner only (chmod 600) means the keys cannot be accidentlly or maliciously modified by another process.

    I get a similar error when I've been modifying my .ssh/config file in cygwin and not changed the permissions back before trying to ssh into anywhere.
    Linux user #126863 - see http://linuxcounter.net/

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    Mandaluyong
    Posts
    8

    ..attention all experience seniors try to solve this ERROR..

    ..thanks guyz..it helps me a lot..
    ..but here's another..
    ..what node should run the heartbeat is it the slave or the master??

    ..i run the heartbeat on the master and it has no ERROR now..
    ..is it good enough??

    ..what should i do to know that when my master is down who run MYSQL will give it's resources to the slave to run MYSQL??

    ..Need your help again guyz..
    ..Please help me..
    ..This is URGENT..
    ..Your help will be appreciated..

  6. #5
    Linux User
    Join Date
    Aug 2005
    Location
    Peterborough, UK
    Posts
    379
    What is this Heartbeat you speak of?
    \"I am, after all,\" said Pooh, \"a bear of very little brain.\"
    MY PC: Athlon XP64 3000+ on a Asus K8V-X mobo w/1GB of non-descript RAM. AGP - GeForce 2 MX400. PCI - Creative Live! 5.1 soundcard. 140 GB and 120 GB SATA WD drives.

  7. #6
    Just Joined!
    Join Date
    Aug 2005
    Location
    Mandaluyong
    Posts
    8

    ..attention all experience seniors try to solve this ERROR..

    ..oh i'm sorry i did not post about this heartbeat..
    ..well i get this program from www.linux-ha.com..
    ..this explains how the slave acquired all the resources that are running from master when it fails..but unfortunately i'm not doing it right 'coz i'm getting more and more error everytime i run this program..

    ..what i'm begging for you is that can you guyz please try to look at this site www.linux-ha.com about configuration of (ha.cf and haresource)..
    ..coz i'm not sure if i have configured these files correctly..

    ..here is my configuration on haresource file..

    Configuring the haresources file..

    The haresources file is one of the more important files to configure when using Heartbeat.

    The general form of a line in the haresources file is simple:

    <<preferred-node resourcename ...>>

    ..i have change this line into..

    master myrouterIP

    ..this is the same on both node(master and slave)..


    The list of resources on a line is referred to as a ResourceGroup.

    The preferred-node is the node that this ResourceGroup would prefer to be run on. Continuations of lines can be made with '\' characters at the end of the line.

    Heartbeat resources are acquired in a left-to-right order, and released in a right-to-left order.

    Note that it is absolutely mandatory for the haresources files to be identical on both machines.

    This preferred-node is the nominal owner of the resources. That is, this is the machine who will own them if both machines are available and you have selected autofailback on. A fairly common error is to think that you have to tell each machine to own the same set of resources on both machines. By doing this, you have directed heartbeat to make each machine owner of the same set of resources, and you wind up with both machines trying to run the same resources at the same time. If you do this, BadThingsWillHappen.

    Note: Make sure that the first resource in each resource group is unique because the first resource will be used as resource group name.

    ..here is my configuration on ha.cf file..

    logfacility daemon # Log to syslog as facility "daemon"
    node paul silas # List our cluster members
    keepalive 1 # Send one heartbeat each second
    deadtime 10 # Declare nodes dead after 10 seconds
    bcast eth0 eth1 # Broadcast heartbeats on eth0 and eth1 interfaces
    ping 1.2.3.254 # Ping our router to monitor ethernet connectivity
    auto_failback yes # Try and keep resources on their "preferred" hosts
    respawn hacluster /usr/lib/heartbeat/ipfail # Failover on network failures

    ..please guyz try to configure these files according to your understanding..
    ..Help me please..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •