Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 2nd September 2009, 14:36
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

At the moment I'm quite confusing...
First of all the documentation for Distributed Replicated Storage said that I've to create a file names: /etc/glusterfs/glusterfs-server.vol on the server side and one names: /etc/glusterfs/glusterfs-client.vol on the client side.
But if I'm doing like that, Gluster is not working.
He miss the file: /etc/glusterfs/glusterfs.vol that is exatly the file that the howtoguide(http://www.howtoforge.com/high-avail...torage-servers) edit.
So I'm going through this howto and I install without problem Gluster (I'm using Centos 5 minimal).

to be honest, now the major problem is understand in which way I've to edit that files.
I think that the 2 servers must have server and client side both, but I'm not so sure.
And even if I'm right, I'm not so sure of how to modify this configuration files.

Suggestions?
Really thanks

Michele
Reply With Quote
Sponsored Links
  #12  
Old 3rd September 2009, 13:18
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok a fast upgrade.
At the moment I've realized a client-server configuration and it's working fine (I'm trying just editing some files, no ISPConfig yet).
Basically server1 is the server and server2 is the client and when are both up, I've a syncronized folder (/var/vmail). So if one of them write something, the other is syncronized.
But if server1 crash, on the server2 the folder /var/vmail is dismounted and there are no files anymore. Server2 have to wait server1 to be operative again.
This is the GlusterFS configuration that I have used:
Code:
# SERVER FILE
volume posix
        type storage/posix
        option directory /var/vmail
end-volume

volume locks
        type features/locks
        subvolumes posix
end-volume

volume brick
        type performance/io-threads
        option thread-count 8
        subvolumes locks
end-volume

volume server
        type protocol/server
        option transport-type tcp
        option auth.addr.brick.allow *
        subvolumes brick
end-volume
Code:
# CLIENT FILE
volume remote1
        type protocol/client
        option transport-type tcp
        option remote-host ***.***.***.***
        option remote-subvolume brick
end-volume
So I'm thinking now to just invert server1 and server2, so that I will have both directions:
  • server1=server
    server2=client

    server1=client
    server2=server

Do you think it's a good idea?
Suggestions?

thanks

Michele
Reply With Quote
  #13  
Old 7th September 2009, 17:48
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Ok I think I've got it!

I've replicated the mysql database and the folder /var/vmail and seems to work fine.

Now I'll test a bit... let's see what's happen...
Reply With Quote
  #14  
Old 8th September 2009, 14:48
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

An update of the tests (hoping that somebody give me some suggestions...)

When the 2 servers are online, they work just fine:

-I can create email and domains from both without problem.
-I check the webmail with roundcube in both.

If the primary server is down, I have a problem with Glusterfs: I can't mount /var/vmail.
That is really strange, because I tried the Glusterfs configuration sharing a /tmp/test directory and it was working even with the main server was down!
To configure Glusterfs, I've used this how-to: http://www.howtoforge.com/high-avail...erfs-on-ubuntu

Somebody could tell me what is wrong?
Thanks
Michele

PS: I'm trying to test this configuration now with a real server and a vmware server, because the other server that I've at home is unaccessible...thanks virgin!!!

Last edited by voltron81; 8th September 2009 at 19:07.
Reply With Quote
  #15  
Old 13th September 2009, 14:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Quote:
If the primary server is down, I have a problem with Glusterfs: I can't mount /var/vmail.
But does glusterfs work if the share is already mounted and you turn off the primary server then?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #16  
Old 14th September 2009, 11:49
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

I've added glusterfs client in fstab and glusterfsd server in /rc2.d, so they start when you switch on the 2 servers.

It's working fine, but if, after that the 2 servers are working for a bit, you shutdow the primary server, the second server is not more able to enter in /var/vmail.

Before installed ISPconfig, I was trying the glusterfs configuration sharing another folder and just writing some files from both servers, and it was working just fine. Even if one of the 2 servers was down, was not a problem for the other one at all.
So I could imagine that there is a problem with permissions or something like that.

What do you think about that?
Thanks
Michele
Reply With Quote
  #17  
Old 14th September 2009, 12:15
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

Well now I'm at the point that ISPConfig doesn't write nothing to /var/vmail.
This are the permissions for that folder:
drwxr-xr-x 11 vmail root 4096 Sep 14 10:09 vmail

Anyway, now that ISPConfig is not able to write into /var/vmail (I create a new email, and I can't find the folder releated with that email), glusterfs is working fine... primary server is down, and I still can enter in /var/vmail.

Which are the right permissions for that folder?
Thanks
MiK

Last edited by voltron81; 14th September 2009 at 12:29.
Reply With Quote
  #18  
Old 15th September 2009, 11:16
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
Default

No suggestions?
Reply With Quote
  #19  
Old 15th September 2009, 11:31
giftsnake giftsnake is offline
Senior Member
 
Join Date: Jan 2009
Posts: 108
Thanks: 15
Thanked 9 Times in 8 Posts
Default

permissions on my box:

Code:
# ls -la /var | grep vmail
drwxr-xr-x  5 vmail vmail 4.0K 2009-09-13 05:58 vmail
Reply With Quote
  #20  
Old 15th September 2009, 14:38
voltron81 voltron81 is offline
Senior Member
 
Join Date: Sep 2009
Posts: 292
Thanks: 1
Thanked 4 Times in 3 Posts
 
Default

So the only difference is the "group name", that in your configuration is vmail and in mine is root.
I don't think I can change if with the command:

chown -R root:root /var/vmail

because it's not a normal folder, but a mount folder.

I think I have to write this permission at the time that i mount that folder (in my case into fstab).
What do you think?

Anyway at the moment this is my situation:
When SERVER1 and SERVER2 are up, the mail services are working; the /var/vmail folder is consistent and ISPConfig and Postfix are able to write in that folder. The mysql replication work just fine.
When SERVER1 crash (i switch off it) happens that:
  • now /var/vmail is accessible from SERVER2, I can see that there are all the files of the emails. But when I try to check an email from Roundcube of SERVER2, I can enter into the email but it's look like there are no email stored.
  • If I try to send an email it's sent, but roundcube webpage is blocked in "sending message" mode. I can see that in "sent folder" there is no trace of this sent. The same happens even when SERVER1 is on. I guess it's because Postfix can't have a permission to write in /var/vmail
  • If I send an email to one mail managed by the mailserver and I try to check the email from Roundcube, I can't find it. But if I switch on now the SERVER1 and check that email from Roundcube webpage of SERVER1, I can see all the emails, even the one that was received when SERVER1 was off. Even with SERVER1 on, from Roundcube webpage from SERVER2, I can't find any email

So any suggestions?
Thanks
Michele

Last edited by voltron81; 15th September 2009 at 14:40.
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
How to use an external mailserver within ISPConfig? Hans General 8 3rd September 2009 20:37
Master master Mysql replication with ignore table wxman HOWTO-Related Questions 2 5th May 2009 23:25
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 15:31
Mailserver Migration To ISPConfig Server asyadiqin Installation/Configuration 1 9th January 2007 11:33
Security Issue in Mailserver after ISPConfig installation bogdinator Installation/Configuration 8 31st October 2006 13:00


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


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