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  |
|
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   |
|
|
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   |
|
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? 
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   |
|
waltern wrote on Fri, 13 August 2010 07:02The 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:02I 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? 
Of course I took a backup 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 
|
|
| |
| Re: Converted to slave, master not showing accounts? [message #76479 is a reply to message #76411] |
Sat, 21 August 2010 00:26   |
|
waltern wrote on Fri, 13 August 2010 07:02The 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.
|
|
| |
Goto Forum:
Current Time: Tue May 21 05:05:02 EDT 2013
Total time taken to generate the page: 0.01143 seconds
|