Update page 'UpgradeTo14.04'
parent
6ce0a9738e
commit
4593441382
1 changed files with 77 additions and 0 deletions
77
UpgradeTo14.04.md
Normal file
77
UpgradeTo14.04.md
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
## Upgrade to Ubuntu 14.04
|
||||||
|
|
||||||
|
notes on upgrading unbuntu from 12.04 to 14.04 for pan.do/ra
|
||||||
|
|
||||||
|
do-release-upgrade -p
|
||||||
|
Questions:
|
||||||
|
|
||||||
|
- ssh disable root password: yes
|
||||||
|
- postgress-common install maintainer
|
||||||
|
- nginx keep local
|
||||||
|
|
||||||
|
restart
|
||||||
|
|
||||||
|
[[#LXC|if you run pan.do/ra in LXC see below]]
|
||||||
|
|
||||||
|
Post Upgrade:
|
||||||
|
|
||||||
|
Stop all pan.do/ra processes (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl stop
|
||||||
|
|
||||||
|
Enable pan.do/ra PPA again (run as root):
|
||||||
|
|
||||||
|
sed -i "s/^# deb/deb/g" /etc/apt/sources.list.d/j-pandora-precise.list
|
||||||
|
apt-get update
|
||||||
|
apt-get upgrade
|
||||||
|
|
||||||
|
Install ffmpeg (run as root)
|
||||||
|
|
||||||
|
apt-get install ffmpeg
|
||||||
|
|
||||||
|
New version of Postgres requires database migration (run as root):
|
||||||
|
|
||||||
|
apt-get install postgresql-9.3 postgresql-contrib-9.3
|
||||||
|
|
||||||
|
pg_dropcluster 9.3 main --stop
|
||||||
|
pg_upgradecluster 9.1 main
|
||||||
|
pg_dropcluster 9.1 main
|
||||||
|
|
||||||
|
apt-get remove postgresql-9.1 postgresql-contrib-9.1
|
||||||
|
|
||||||
|
Upgrade virtualenv (run this as "pandora" user):
|
||||||
|
|
||||||
|
cd /srv/pandora
|
||||||
|
rm -r lib/python2.7/site-packages/pip-* bin/pip*
|
||||||
|
virtualenv --system-site-packages .
|
||||||
|
|
||||||
|
Start pan.do/ra again (run as root):
|
||||||
|
|
||||||
|
/srv/pandora/ctl start
|
||||||
|
|
||||||
|
|
||||||
|
## LXC
|
||||||
|
|
||||||
|
Container configuration needs to be changed for the containers to start up again.
|
||||||
|
in /var/lib/lxc/NAME/
|
||||||
|
|
||||||
|
- Remove proc/sys mount point from fstab, leaving an empty file.
|
||||||
|
- Remove most options from config, leave name/rootfs and network config:
|
||||||
|
|
||||||
|
# Common configuration
|
||||||
|
|
||||||
|
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
|
||||||
|
|
||||||
|
# Container specific configuration
|
||||||
|
lxc.rootfs = /var/lib/lxc/pandora/rootfs
|
||||||
|
lxc.mount = /var/lib/lxc/pandora/fstab
|
||||||
|
lxc.utsname = pandora
|
||||||
|
lxc.arch = amd64
|
||||||
|
|
||||||
|
# Network configuration
|
||||||
|
lxc.network.type = veth
|
||||||
|
lxc.network.flags = up
|
||||||
|
lxc.network.link = lxcbr0
|
||||||
|
lxc.network.hwaddr = XX:...
|
||||||
|
|
||||||
|
lxc.start.auto = 1
|
Loading…
Add table
Reference in a new issue