Upgrading Ubuntu from 12.04 to 14.04
Amos Shapira
amos.shapira at gmail.com
Fri May 16 14:08:18 IDT 2014
Beyond the original specific question - upgrades like this should be tested
using a Vagrant box, preferably also using an automatic provisioning tool
like Puppet (my personal preference) or Chef (obligatory mention) and
automatic testing using things like Cucumber, Spec, ServerSpec or perhaps
other testing frameworks.
That way you can write the tests to verify your current setup and repeat
the verification after the update.
Also - once you have automatic provisioning and testing in place, you
should consider treating the servers as immutable, i.e. once they are setup
they are not upgraded in-place but rebuilt whenever such a large change is
required. This way you are sure that what you run is exactly what you
tested in your Vagrant environment and what will be re-installed in case of
a disaster.
On 15 May 2014 23:27, Efraim Flashner <efraim.flashner at gmail.com> wrote:
> I don't believe it is possible for a user to create a partition. Of
> course that is more of a brain-fart on my part, because it's not so
> useful to your situation. Gparted should be able to resize unmounted
> ext3/4 partitions, and from there you can create a new partition, copy
> your /home directory there and edit /etc/fstab to point to the new
> partition.
>
> I found these release notes:
> https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes, but it looks rather
> short, and doesn't mention django. Fortunately django has its own release
> notes here: https://docs.djangoproject.com/en/1.6/releases/ which should
> help with the upgrade.
>
> Sorry I couldn't be more helpful, I've never used django.
>
> -Efraim
>
>
> On Thu, 15 May 2014 16:00:00 +0300
> Uri Even-Chen <uri at speedy.net> wrote:
>
> > Thank you, it's a good idea. At work my home directory is not in a
> > separate partition so it's not kept if I reinstall Ubuntu. Do you
> > know how I can create a partition and move it to a separate partition?
> >
> > Uri Even-Chen
> > Mobile Phone: +972-50-9007559
> > E-mail: uri at speedy.net
> > Speedy Net: http://www.speedy.net/
> > Speedy Composer: http://www.speedycomposer.com/
> >
> >
> >
> > On Thu, May 15, 2014 at 3:46 PM, Ori Idan <ori at helicontech.co.il>
> > wrote:
> >
> > >
> > > On Thu, May 15, 2014 at 3:20 PM, Uri Even-Chen <uri at speedy.net>
> > > wrote:
> > >
> > >> Hi people,
> > >>
> > >> I work at my job with Ubuntu 12.04 and we run Django 1.4.12
> > >> locally with Python 2.7.3 and PostgreSQL. We want to upgrade
> > >> Django from 1.4 to 1.6 and I also thought it would be a good idea
> > >> to upgrade Python to 2.7.6 and maybe even 3, so I tried to upgrade
> > >> Ubuntu to 14.04. But after I completed the upgrade, Django didn't
> > >> work and I couldn't even run migrations (with South). I had to
> > >> reinstall Ubuntu 12.04 and I lost all the files I had in my home
> > >> directory (because I chose not to keep Ubuntu 14.04) except some
> > >> files that I backed up. My questions are:
> > >>
> > >> 1. What do we need to do in order for Django to work with Ubuntu
> > >> 14.04? 2. Why isn't it possible to reinstall Ubuntu 12.04 after
> > >> upgrading to 14.04 and still keep all the files in my home
> > >> directory, while not keeping all the other files (the operating
> > >> system files)?
> > >>
> > > Why do you think it is not possible? I do it all the time.
> > > I keep my home directory in a separate partition so when I upgrade
> > > (or downgrade) the OS the home directory stays the same.
> > >
> > > --
> > > Ori Idan
> > >
> > >
>
>
>
> --
> Efraim Flashner
> efraim.flashner at gmail.com 4096R/CA3D8351 created: 2013-10-08
> GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
--
[image: View my profile on LinkedIn]
<http://www.linkedin.com/in/gliderflyer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140516/2db845f7/attachment.html>
More information about the Linux-il
mailing list