====== Dist-upgrading_hardy_to_lucid ====== As much as I tried, "do-release-upgrade" did not want to upgrade for me to Lucid LTS. apt-get install update-manager-core vi /etc/update-manager/release-upgrades Prompt=lts root@caro:~# do-release-upgrade Checking for a new ubuntu release No new release found #I tried every switch, -d etc. Still didn't work I reverted to manually editing /etc/apt/sources.list, changing hardy to lucid and going apt-get dist-upgrade. ---- ====== RAID Issues ====== After reboot, I was dropped into initramfs. Going cat /proc/mdstat showed that the raid devices were not assembled. initramfs(shell) mdadm --assemble --scan CTRL+D mdadm --examine --scan >> mdadm.conf dpkg-reconfigure mdadm (generates new boot image) A quick reboot and it worked ok. ====== libpam-ldap ====== These servers which were been upgraded from hardy to lucid auth'd off ldap. For some reason libpam-ldap was removed during the dist-upgrade. On the first server, I didn't spot this, and couldn't login, even as root. I had to reboot and to into single user mode and fix. apt-get install libpam-ldap /etc/init.d/nscd restart finger steviewdr ====== Ldap ====== There were a lot of changes to LDAP in Lucid which I didn't realise and there was no smooth upgrade prompts for ldap. ( http://blogger.ziesemer.com/2010/05/openldap-ubuntu-linux.html ) The following errors were received: Dec 10 16:45:18 gir slapd[[21914]]: @(#) $OpenLDAP: slapd 2.4.21 (Nov 14 2011 20:31:31) $#012#011buildd@allspice:/build/buildd/openldap-2.4.21/debian/build/servers/slapd Dec 10 16:45:18 gir slapd[[21914]]: syncrepl rid=146 searchbase="dc=skynet,dc=ie": no retry defined, using default Dec 10 16:45:18 gir slapd[[21914]]: olcSyncrepl: value #0: invalid URL Dec 10 16:45:18 gir slapd[[21914]]: config error processing olcDatabase={1}bdb,cn=config: invalid URL Dec 10 16:45:18 gir slapd[[21914]]: slapd stopped. Dec 10 16:45:18 gir slapd[[21914]]: connections_destroy: nothing to destroy. In lucid there is a config directory slapd.conf root@server:/etc/ldap/slapd.conf# ls -l total 8 drwxr-x--- 3 root root 4096 2011-12-10 17:06 cn=config -rw-r----- 1 root root 407 2011-12-10 17:06 cn=config.ldif I also had to mv /var/lib/ldap to /var/lib/ldap.old and rerun apt-get upgrade. The main quick solution to getting slapd starting, was to specify the old slapd.conf file in /etc/default/slapd Solution (can't find reference url): vi /etc/default/slapd SLAPD_CONF="/etc/ldap/slapd.conf.old" ====== Dovecot ====== There were a few changes to dovecot. Starting dovecot, said the following was not valid: mail_extra_groups = mail This has changed to mail_privileged_group = mail vi /etc/dovecot/dovecot.conf #mail_extra_groups = mail mail_privileged_group = mail There were also a few changes in dovecot-ldap.conf user_global_uid = dovecot and user_global_gid = mail, don't seem to be allowed anymore in dovecot on lucid. Googling said that these changed to user_uid and group_gid, however these didn't work either. So in the end I commented out #user_global_uid = dovecot and #user_global_gid = mail in dovecot-ldap.conf