The Mental Militia Forums

Please login or register.

Login with username, password and session length
Pages: [1]   Go Down

Author Topic: Upgrade Time  (Read 87 times)

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6852
    • End the War on Freedom
Upgrade Time
« on: June 25, 2020, 09:27:15 am »

I use the bi-annual Ubuntu Long-Term Support (LTS) for my web hosts, but I stay at least a year old for new sites, and at least two years old for old ones. I consider rock-solid stability to be more important than new features. An Ubuntu release comes out in April, and is numbered with the year before the decimal point and the month (April = 4) after the decimal point. Even years are LTS releases. Odd years are not. So the most recent LTS was Ubuntu 20.04. An LTS is supported for 5 years, meaning that in April of 2021, the 16.04 release will stop being supported. This web server is currently running on Ubuntu 16.04, so it's time to upgrade to 18.04.

Upgrades usually work fine, but not always, and they take a while, so I'm going to do it as follows:

1. Bring the machine down, and create a snapshot. This usually takes 10 minutes or so.
2. Bring the machine back up.
3. Create a new droplet (virtual machine) from the snapshot.
4. Install the phpzip extension, which Cindy needs for one of Elias's web sites.
5. Upgrade to Ubuntu 18.04
6. Disable the web server on the live site.
7. Back up databases and uploads.
8. Restore the databases and uploads into the new droplet.
9. Change the DNS to point to the new droplet.

After things appear to be working for a few days, I'll delete the old droplet. It will cost a few dollars to have multiple droplets for a few days, but the warm fuzzy feeling will be worth it (to me).

I will probably do steps 1 and 2 on Friday night, and hope to finish step 9 by the end of the weekend.
« Last Edit: June 25, 2020, 09:28:53 am by Bill St. Clair »
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6852
    • End the War on Freedom
Re: Upgrade Time
« Reply #1 on: June 26, 2020, 06:12:19 pm »

I've created the snapshot. Will let you know when I switch over to the upgraded system. Likely not until Sunday sometime.
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6852
    • End the War on Freedom
Re: Upgrade Time
« Reply #2 on: June 27, 2020, 06:10:21 am »

If you're reading this, the upgraded Digital Ocean droplet is live!
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair

Bill St. Clair

  • Techie
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 6852
    • End the War on Freedom
Re: Upgrade Time
« Reply #3 on: June 27, 2020, 06:25:41 am »

The upgrade basically just worked, though I was informed by upgrading billstclair.com to NOT delete unused packages, since that caused that machine to come up with no network enabled (well, I'm not sure it caused it, but when I did the process again WITHOUT deleting unused packages, it worked).

As a bonus, the old machine had 1 gig of RAM and 30 gigs of hard drive. The new one has 2 gigs of RAM and 50 gigs of hard drive, for the same $10/month price.
Logged
"The state can only survive as long as a majority is programmed to believe that theft isn't wrong if it's called taxation or asset forfeiture or eminent domain, that assault and kidnapping isn't wrong if it's called arrest, that mass murder isn't wrong if it's called war." -- Bill St. Clair

"Separation of Earth and state!" -- Bill St. Clair
Pages: [1]   Go Up