LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Kloxo Community Support » Clustering (Master and Slaves) » Converted to slave, master not showing accounts?
Converted to slave, master not showing accounts? [message #76321] Mon, 09 August 2010 02:23 Go to next message
trystaltech is currently offline trystaltech  Australia
Messages: 6
Registered: August 2010
Location: Melbourne, Australia
Member

Hi everyone, I've had a good search through the forum but can't find anything that helps me...

I've just run /script/make-slave on a master server, as I wanted to link it up to another master server.
There were a couple of permission errors:
This will take a long time... Please wait...
Executing UpdateCleanup. This will take a long time. Please be patient
cp: cannot create regular file `/home/kloxo/httpd/webmail/roundcube/config/db.inc.php': Permission denied
chown: changing ownership of `/home/kloxo/httpd/webmail/horde/config/conf.php': Operation not permitted
chown: changing ownership of `/home/kloxo/httpd/webmail/roundcube/config/db.inc.php': Operation not permitted
Stopping kloxo: Waiting for the process to die.....
Stopped kloxo

Starting kloxo: 11
Started kloxo

Anyway, that server is now showing 'Slave server', and I've successfully added it to the new Master server list.

Now the problem is that the server has added OK, but the accounts from the old server don't seem to be appearing in the list of accounts. How can I import those old accounts across?

Not sure if it's relevant, but in the server list, the new server has a grey icon instead of green, and says 'Not used for (my server)'
edit: found the permission errors, included

[Updated on: Mon, 09 August 2010 02:25]

Report message to a moderator

Re: Converted to slave, master not showing accounts? [message #76393 is a reply to message #76321] Thu, 12 August 2010 00:43 Go to previous messageGo to next message
trystaltech is currently offline trystaltech  Australia
Messages: 6
Registered: August 2010
Location: Melbourne, Australia
Member

ummm .... any ideas? I really need to get the old accounts listed - they are still there, running the website, but I can't manage them using the new master. I'm afraid that if I just try and add them as a new account, it will overwrite everything already there for that account, which I certainly don't want to do.
Re: Converted to slave, master not showing accounts? [message #76411 is a reply to message #76393] Thu, 12 August 2010 17:02 Go to previous messageGo to next message
Walter  Brazil
Messages: 866
Registered: February 2009
Location: Florianopolis / BR
Senior Master
Forum Moderator
LxCenter Project Manager

Starting from the bottom:

Quote:
Not sure if it's relevant, but in the server list, the new server has a grey icon instead of green, and says 'Not used for (my server)'
edit: found the permission errors, included


The new slave server says "not used" because you haven't defined roles for it yet (web, mail, dns, etc).

The errors you see ("Permission denied" and "Operation not permitted") are OK. It's due the last .2086 update that changed those files attribute to immutable. You can safely ignore those.

Quote:
Now the problem is that the server has added OK, but the accounts from the old server don't seem to be appearing in the list of accounts. How can I import those old accounts across?


I might be wrong, but the correct procedure would be to backup this master and only then convert to slave and restore the backup at the new master. You did a backup, didn't you? Wink

If not, "/script/backup --class=client --name=admin". The backup file should be placed at /home/kloxo/client/admin/__backup/.

Again, I might be very wrong as I have no access to testing servers at the moment and so I cannot replicate this. I'm talking off the top of my head.
Re: Converted to slave, master not showing accounts? [message #76417 is a reply to message #76411] Thu, 12 August 2010 20:45 Go to previous messageGo to next message
trystaltech is currently offline trystaltech  Australia
Messages: 6
Registered: August 2010
Location: Melbourne, Australia
Member

waltern wrote on Fri, 13 August 2010 07:02
The new slave server says "not used" because you haven't defined roles for it yet (web, mail, dns, etc).

OK, I go to Servers > Server (slave) > Server Roles.
The 4 roles are listed, and it says 'none_free,all_have_been_assigned'. It also says this on the Server (master).
Doesn't this mean they are assigned? I have not changed any options here.

waltern wrote on Fri, 13 August 2010 07:02
I might be wrong, but the correct procedure would be to backup this master and only then convert to slave and restore the backup at the new master. You did a backup, didn't you? Wink

Of course I took a backup Wink My backup is of the whole admin.
So, if I restore the backup to the master:
- will this delete the existing accounts on the Master server, or will it add to them (assuming none have the same client name)?
- how will Kloxo know, or how do I set it, to restore to the slave server?

Thanks for your help - as you can probably guess, I am new to Kloxo and distributed hosting Smile
Re: Converted to slave, master not showing accounts? [message #76449 is a reply to message #76417] Tue, 17 August 2010 02:34 Go to previous messageGo to next message
trystaltech is currently offline trystaltech  Australia
Messages: 6
Registered: August 2010
Location: Melbourne, Australia
Member

Anyone got any thoughts/answers to my questions above? Confused
Re: Converted to slave, master not showing accounts? [message #76479 is a reply to message #76411] Sat, 21 August 2010 00:26 Go to previous messageGo to next message
trystaltech is currently offline trystaltech  Australia
Messages: 6
Registered: August 2010
Location: Melbourne, Australia
Member

waltern wrote on Fri, 13 August 2010 07:02
The new slave server says "not used" because you haven't defined roles for it yet (web, mail, dns, etc).

OK, I found in another forum thread that the 'Not Used' also means you haven't got any clients on it (which I did, but Kloxo didn't know about it). So that's fine.


Didn't find the answers to my questions about the backups, but went through the 'kloxo' MySQL database on the new slave server and copied the relevant client bits over to the 'kloxo' database on the master server.
Needed to change all of the 'localhost' references to 'exampleslaveserver.com' before importing the SQL though.

Seemed to work, I can see the customer from the slave server now, and all of the options appear to be correct.
Re: Converted to slave, master not showing accounts? [message #86097 is a reply to message #76479] Thu, 30 June 2011 03:26 Go to previous message
kenny3snider is currently offline kenny3snider  United States
Messages: 2
Registered: June 2011
Location: 72 America St, Waterbury,...
Member

Thanks for the information.

Previous Topic:Slave to Master , How ?
Next Topic:Slave make Backup
Goto Forum:
  


Current Time: Wed Jun 19 00:28:31 EDT 2013

Total time taken to generate the page: 0.06467 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software