LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-29-2012, 08:01 AM   #1
spongetron
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 61

Rep: Reputation: Disabled
Question Update Slackware in production evironment


I was wondering how you guys handle updates of your slackware boxes in production environments. Do you have any best practice hints? What are your experiences? Thanks in advance for your answers.

EDIT: Does someone use an automated process? If so how do you do it?

Last edited by spongetron; 02-29-2012 at 12:36 PM.
 
Old 02-29-2012, 08:28 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i used -Current in most of my systems, except for servers in which i prefer to use -Stable
In both systems, i always read the changelog before upgrading, so i know what changes are being made
 
1 members found this post helpful.
Old 02-29-2012, 02:11 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member response

Hi,

Do during off-load hours or maintenance down time.
 
1 members found this post helpful.
Old 02-29-2012, 03:49 PM   #4
sjampoo
Member
 
Registered: Jan 2009
Location: Oosterbeek, The Netherlands
Distribution: Desk and Lap: Slackware13.1 64
Posts: 203
Blog Entries: 4

Rep: Reputation: 27
Hi,

I keep the 'production servers' in the stable branch. I only use the "slackpkg update / slean-system / install-new / update-all" sequence for security updates. It's not an automated process since I regularly check the stable change log anyway. I do tend to upgrade on less mission critical systems before upgrading servers this way.

Have been running 12.2, 13.1 and 13.37 (all stable) in production environments ( if you can call them that ), and I didn't feel the need to upgrade between versions without having to cope with some inevitable downtime due to hardware changes/upgrades. (e.a. older hardware is still running smoothly with 12.2 installed)

Some 13.37 servers I have got running are upgrades though,. from 13.0 and on, So it's not that a server needs a clean install at 'upgrade'.
 
Old 02-29-2012, 05:04 PM   #5
metageek
Member
 
Registered: Jun 2007
Location: Farmington, CT
Distribution: Slackware64
Posts: 204

Rep: Reputation: 44
I keep my servers upgraded by regularly checking the patches folder on the Slackware distribution (13.37) and apply them with upgradepkg. Not just servers, actually all my machines...
 
Old 03-03-2012, 01:50 AM   #6
roberto967
Member
 
Registered: Apr 2011
Location: Cagliari, Italy
Distribution: Slackware64-15.0 multilib
Posts: 116

Rep: Reputation: 35
According to Pat's reccomendations, the upgrade should be done in "init 1". This is is not possible when you want to upgrade from remote.
So I'm wondering which packages strictly require "init 1", and if someone of is used to upgrade the entire system from remote with "init 3" mode.
 
Old 03-03-2012, 05:06 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
From the UPGRADE.TXT file
Quote:
0. Put your machine in single-user mode:
telinit 1

Note that this is _not_ strictly required, and there have been reports
of success remotely upgrading machines that are still in multiuser
mode. However, more things can do wrong in multiuser, so especially
if you're considering a remote upgrade in multiuser mode, you might
want to clone the machine locally so that you can do a test run to
uncover any problem areas and come up with workarounds for them.
I can report being successful doing remote upgrades over a SSH link to machines in run level 3. You need to be very careful with handling new configuration files and local configuration. Get it wrong on the networking and you will lose access on reboot, requiring local access to recover. (Experience can be a hard teacher!) This is my preferred method for doing upgrades of my few production servers. It can be done out of hours when things are quiescent, minimising impact on users.

If you have a networked machine, switching to run level 1 can actually be a hindrance. Your screen can be filled with networking messages.

Last edited by allend; 03-03-2012 at 05:08 AM.
 
1 members found this post helpful.
Old 03-03-2012, 05:09 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
I've never had any problems from updating in runlevel 3 on Slackware. You may however want to manually stop any servers/daemons that are running while you do the updates just to be safe (things like mysql database servers being prime examples)

Ironically, doing the right thing can also sometimes get you into trouble. I once had an AIX system fail to boot after applying a new maintenance level update and I later found out that it was due to a bug in one of the package that was only triggered when the package was updated from single user mode. Had to restore from tape on that occasion.


If your only concern is remote access, or a headless machines then: runlevel 2 is unused, and there's no reason why you couldn't customise it to be runlevel 1+network+sshd and use that, but if you don't have many server processes running then just manually stopping things may be easier than creating your own runlevel.
 
1 members found this post helpful.
Old 03-03-2012, 07:55 AM   #9
sjampoo
Member
 
Registered: Jan 2009
Location: Oosterbeek, The Netherlands
Distribution: Desk and Lap: Slackware13.1 64
Posts: 203
Blog Entries: 4

Rep: Reputation: 27
Updating ( a running 13.37 with new security patches ) is something different that upgrading (from e.a. 13.1 to 13.37)> Upgrading I prefer to do 'the safe way' (runlevel 1)... updating I dare to do 'the unsafer way' (remote in standard runlevel). I know to little of Linux to know what might break and how to fix it.
 
Old 03-03-2012, 11:20 AM   #10
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I too keep all my machines at stable. I check the changelog at Slackware weekly and download any new patches. I apply patches in single-user mode (init 1) so that any patch does not interfere with something that might be running (which should not happen but "just in case," a.k.a. "CYA," comes into play here). After applying patches I init 6 to get a clean start. Been doing it this way since the mid-80's though System 3, System V, Solaris and now Slackware -- never had a problem.

Downside? Well, you can't go into single-user remotely so you can't do a hot patch from home, gotta be on the console. And, if you do a hot patch, well, who knows (I have, never got burned, but... CYA).

Hope this helps some.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Copying OpenBSD Kernel from a non production to production machine lcxpics *BSD 3 05-05-2011 02:58 AM
Linux Clients in Managed Mac OS Server evironment VictorBush Linux - Networking 2 11-16-2009 01:06 PM
Slackware security update/package update Michael_aust Slackware 6 10-04-2006 08:19 PM
Development Evironment Question gordingin Programming 1 09-29-2004 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration