Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #51  
Old 2nd September 2006, 16:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by djalex
var/log/ha-log (test02)
==============
heartbeat[3724]: 2006/08/30_10:40:58 ERROR: Invalid user id name [hacluster]
heartbeat[3724]: 2006/08/30_10:40:58 ERROR: Bad uid list [hacluster]
I think this is the first problem you should try to fix. Does the user hacluster exist in /etc/passwd?

On a side note: I'd disable SELinux for now because it can cause huge problems...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #52  
Old 2nd September 2006, 17:56
djalex djalex is offline
Member
 
Join Date: Aug 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Thanks for your reply. I will check the file /etc/passwd
If I find the user hacluster, should I delete the corresponding entry ? Please confirm.

Also, in order to disable SELinux - should I make the following entry ?
SELINUX=disabled in /etc/selinux/config
Please confirm if both steps are correct.

Regards,
Alex
Reply With Quote
  #53  
Old 3rd September 2006, 23:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by djalex
Hi Falko,

Thanks for your reply. I will check the file /etc/passwd
If I find the user hacluster, should I delete the corresponding entry ? Please confirm.
The problem is that the user seems to be missing, so please don't delete it if you find it.

Quote:
Originally Posted by djalex
Also, in order to disable SELinux - should I make the following entry ?
SELINUX=disabled in /etc/selinux/config
Yes, and afterwards you must reboot the system.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #54  
Old 5th September 2006, 20:03
djalex djalex is offline
Member
 
Join Date: Aug 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I made the following entry in /etc/selinux/config for test01 and test02
SELINUX=disabled

After the change was made, I rebooted both linux servers.

However, its still crashing. Please advice.

Regards,
Alex

(P.S: There are no entries for hacluster in /etc/passwd on both test01 and test02)
Reply With Quote
  #55  
Old 6th September 2006, 19:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by djalex
(P.S: There are no entries for hacluster in /etc/passwd on both test01 and test02)
Then create that user and the appropriate group first:
Code:
groupadd hacluster
useradd -g hacluster -d /home/hacluster -m hacluster
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #56  
Old 7th September 2006, 18:46
djalex djalex is offline
Member
 
Join Date: Aug 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I typed the following commands on the Linux terminal for both servers, namely test01 and test02.
groupadd hacluster
useradd -g hacluster -d /home/hacluster -m hacluster


On test01, the following entry was found in /etc/passwd
hacluster:x:501:502::/home/hacluster:/bin/bash

On test02, the following entry was found in /etc/passwd
hacluster:x:500:501::/home/hacluster:/bin/bash

I rebooted both test01 and test02. After reboot, I confirmed that the entries were still available in /etc/passwd for both servers. However the crash still occurs.

Regards,
Alex
Reply With Quote
  #57  
Old 25th September 2006, 17:35
djalex djalex is offline
Member
 
Join Date: Aug 2006
Posts: 49
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I managed to get the setup working now. The systems have been renamed as follows:

Primary server - PRI_SRVR
Secondary server - SEC_SRVR
Windows client - WIN_CLNT
Samba service - SMB_SRVC

First, I entered the following commands on both primary and secondary linux servers.

groupadd hacluster
useradd -g hacluster -d /home/hacluster -m hacluster
groupadd haclient
useradd -g haclient -d /home/haclient -m haclient


I edited the configuration files as follows:

hosts [present in /etc/hosts and C:/Windows/system32/drivers/etc/hosts]
====
192.168.50.151 PRI_SRVR
192.168.50.152 SEC_SRVR
192.168.50.153 WIN_CLNT
192.168.50.195 SMB_SRVC

drbd.conf [present in /etc]
=======
resource r0
{
protocol C;

startup
{
degr-wfc-timeout 120; # 2 minutes
}
disk
{
on-io-error detach;
}
net
{
}
syncer
{
rate 10M;
group 1;
al-extents 257;
}
on PRI_SRVR
{
device /dev/drbd0;
disk /dev/hda5;
address 192.168.50.151:7789;
meta-disk internal;
}
on SEC_SRVR
{
device /dev/drbd0;
disk /dev/hda5;
address 192.168.50.153:7789;
meta-disk internal;
}
}

ha.cf [/etc/ha.d]
====
Logfacility local0
logfile /var/log/ha-log
debug 1
bcast eth0
deadtime 10
auto_failback off
node PRI_SRVR SEC_SRVR

haresources [/etc/ha.d]
=========
PRI_SRVR IPaddr::192.168.50.195

authkeys [/etc/ha.d]
=======
auth 3
3 md5 goose

smb.conf [/etc/samba]
=======
[global]
workgroup = workgroup
admin users = root
share modes = yes
browseable = yes
username map = /etc/samba/smbusers
password server = None
guest ok = yes
guest account = haclient
interfaces = 192.168.50.195

[files]
path = /mnt/files
writeable = yes

smbusers [/etc/samba]
=======
root = root
haclient = user01

I started up DRBD, heartbeat and SAMBA on both primary and secondary servers. On the windows system, I clicked on Start - Run – typed the address \\192.168.50.195. I then logged in with the user account user01. After authentication, I was able to see the Samba share files on the Linux server - even had the ability to modify and save information in the files.
Then I shut down the primary server. SEC_SRVR stood in for the primary hosting the SAMBA service IP address 192.168.50.195. I then logged in to the SAMBA share with the service IP address and login user user01. I was able to see that the file was still available along with the information saved, prior to the crash. Due to time restrictions, I have to end the experimental study at this juncture. But this can be used as a model for future research and investigation. Falko, I would like to thank you for the efforts you took to troubleshoot the problem. Although the solution was not easily attainable, you tried your best. Thank you for taking the interest in my experimental study; it is greatly appreciated.

Best regards,
Alex
Reply With Quote
  #58  
Old 26th September 2006, 17:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Thumbs up

I'm glad it's working!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #59  
Old 25th May 2007, 19:38
avi123 avi123 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default High Available Samba with ADS

I am trying to create a high available samba service with active directory support. What changes would I have to make to achive this? I've configured samba to work with ADS on both machines. Both machines show up on the windows 2003 server as clients, and I am able to setup a share folder that only authorized users can use. Is this possible?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
High Availability (Load Balancing) behind a firewall geek.de.nz Server Operation 7 4th January 2011 13:58
High Availabilty with heartbeat and ldirectord tate_harmann Server Operation 16 25th March 2009 16:32
High Availability NFS Server Help - DRBD technick HOWTO-Related Questions 2 3rd November 2008 19:48
High Availability questions sharms HOWTO-Related Questions 3 15th May 2006 16:13
High Availability and clustering with ISPconfig jeanjacquesjeanjacques General 1 22nd November 2005 12:22


All times are GMT +2. The time now is 17:28.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.