PDA

View Full Version : bind and mysql don't start at server move


luchs3
4th June 2008, 11:30
Hi,

I try to move my ISPconfig installation to an new server.
The old server runs on ubuntu 7.10.
The new one is a 8.04 xen guest.

I followed the instructions and nearly erverthing works fine.
Accept bind and mysql.
They don't start.

bind bives me: rndc: connect failed: 127.0.0.1#953: connection refused

mysql simply doesn't start

till
5th June 2008, 12:44
Which messages do you get in the syslog when you try to start bind and mysql?

luchs3
7th June 2008, 22:15
I found the source of the problem.

The new passwd- file has different UIDs for mysql and bind.
new server install file which will be replaced by the old server file:
...
bind:x:107:109::/var/cache/bind:/bin/false
mysql:x:108:110:MySQL Server,,,:/var/lib/mysql:/bin/false
postfix:x:109:112::/var/spool/postfix:/bin/false
...

running (old) server file
...
bind:x:105:110::/var/cache/bind:/bin/false
mysql:x:106:111:MySQL Server,,,:/var/lib/mysql:/bin/false
postfix:x:107:113::/var/spool/postfix:/bin/false
...

When I change the 105 on the new server to 107 does it work.
But as you can see, ahs the postfix already the 107 so postfix doesn't start.

The weared thing is, that postfix starts with the different UID but mysql and bind don't.

till
8th June 2008, 13:00
Ok, this explains the problems. You can not simply coipy over the password and shadow file from the old server to the new one, this wil break the installation.

Do you have a backup of the original passwd and shadow files from the new server? If yes, restore them. Then copy only the usernames created by ISPConfig from the old passd and shadow file to the new files.

luchs3
9th June 2008, 17:47
worked really great,

Thanks

My last Problem is the system clock.
The dom0 time ist set correctly.
When I start the guest, he gives me an hwclock error.
But my bigger problem is, that he uses UTC and not my local time.
I tried tzselect but it didn't change anything.

falko
10th June 2008, 15:13
Does networking work in the guests?

You can try to modify /etc/init.d/hwclock.sh and /etc/init.d/hwclockfirst.sh as shown on http://www.howtoforge.com/debian_sarge_xen_3.0.3_p3 .