Table of Contents
Upgrade TODO List
Original System Changes
Partition Layout
Original hard drive partitioning scheme.
david@archon:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/hda1 7.5G 6.4G 1.1G 86% / /dev/hda3 28G 26G 2.4G 92% /var /dev/hda5 56G 51G 5.2G 91% /home /dev/hda6 56G 24G 32G 43% /nofadz /dev/sda1 466G 397G 69G 86% /mnt/vault df: `/mnt/mirror/vault': Permission denied 10.0.0.2:/usr/local/home 209G 166G 33G 84% /mnt/nfs/sage/local/home 10.0.0.2:/mnt/raid/space 1.8T 1.8T 6.5G 100% /mnt/nfs/sage/space 10.0.0.3:/linuxhome 592G 271G 321G 46% /mnt/nfs/vault/linuxhome
NOTE: So vault and mirror, mirror each other daily.
Early Steps
- Installed the Slackware 13.0 x64 DVD on the drive using the same partition scheme as before (making var twice as bit)
- Disabled sendmail so we won't get clobbered.
- Installed slap-get
- –update and –upgrade
- kernel was: Linux archon 2.6.29.6 #2 SMP Mon Aug 17 11:58:18 CDT 2009 x86_64 AMD Opteron™ Processor 240 AuthenticAMD GNU/Linux
- lilo
- reboot
- kernel is: Linux archon 2.6.29.6 #3 SMP Mon Dec 7 15:01:06 CST 2009 x86_64 AMD Opteron™ Processor 240 AuthenticAMD GNU/Linux
Hard Drive Mirror
- Mounted the old drive in /mnt/old/ with /home, /nofadz, /root, and /var
- rsync'd each directory to their new homes.
- The /root and /var were put in /var/local
- /usr/local/archon is a symlink to /var/local
Configuration
Backups
Cron Jobs
Daemons
Apache
- Changed ServerAdmin directive
- Enabled the following line at the bottom of httpd.conf:
# Virtual hosts Include /etc/httpd/extra/archon-httpd-vhosts.conf
Moving Websites
- Copying everything to the new httpd directory.
rsync -vaP /usr/local/archon/var/www/htdocs/hosted/ /var/www/htdocs/hosted/ rsync -vaP /usr/local/archon/var/www/htdocs/locals/ /var/www/htdocs/locals/ rsync -vaP /usr/local/archon/var/www/htdocs/secure/ /var/www/htdocs/secure/
- Add our common log file definition so we don't have to comment that out of all the virtual host definitions.
Gallery Software
- http://coppermine-gallery.net/ Coppermine Gallery looks to be a good software set for putting up images.
dokuwiki
latest upgrade
— David Lloyd Rabine 2012/12/06 17:30
All of this done as root:
- move the directory to your unzip path
cd /home/david/public_html mv wiki dokuwiki-2012-10-13 tar -zxvf dokuwiki-2012-10-13.tgz
- rm the install.php
rm dokuwiki-2012-10-13/install.php
- set permissions properly
chgrp -R apache dokuwiki-2012-10-13/conf/ chmod -R g+w dokuwiki-2012-10-13/conf/ chgrp -R apache dokuwiki-2012-10-13/data/ chmod -R g+w dokuwiki-2012-10-13/data/
- move the wiki back
mv dokuwiki-2012-10-13 wiki
- clear the cache
touch wiki/conf/local.php
upgrade
- Make a backup of the current wiki
mkdir ~/public_html/wikibackups/20110612 rsync -vaP ~/public_html/wiki/ ~/public_html/wikibackups/20110612/
- Download the latest version
cd ~/down/dokuwiki/
- Uncompress the latest version right on top of the current one
cd ~/public_html/wiki tar -xzvf ~/down/dokuwiki/dokuwiki-xxxx-xx-xx.tgz --strip-components=1
- Remove the “install” page
rm ~/public_html/wiki/install.php
- Touch the local configuration (which invalidates your cache)
touch ~/public_html/wiki/conf/local.php
- Remove files as directed. I have my permissions set wrong so had to sudo this to make it happen. Paste the list of files, and use the shell commands provided to remove the extra files.
mysql
- Should have exported the entire data base first. I'll boot it on another machine and do it to a memory stick.
Sendmail
I always wanted to set up authentication so I can SEND via sendmail from my local account. Here is the link on how to do that:
Hardware
Hard Drive
Nope, the new drive is a PATA (Old standard IDE drive) because I already used my SATA slots for other drives in this Opteron original machine. It is really time for a new machine, but not yet…
- Primary (/dev/hda) hard drive is a Best Buy from Baltimore:
- WDC WD3200AAJB-00J3A0, ATA DISK drive
New primary drive is a Western Digital 640GB (with 32MB cache) SATA-2
Software
32bit Compatibility Libraries
In order for the Never Winter Server (and any other 32 bit software) to run on this new machine, I had to follow the steps in this article: http://alien.slackbook.org/dokuwiki/doku.php?id=slackware:multilib
Following the instructions, I went ahead and did the following:
- Download the multilib libraries:
wget --mirror http://connie.slackware.com/~alien/multilib/13.0/
- Install these packages:
upgradepkg --reinstall --install-new *.t?z
- Downloaded the ISO of 32bit Slackware 13.0 and mounted the image as a looped image:
mount -o loop /home/david/temp-dvd/slackware-13.0-install-dvd.iso /mnt/tmp
- Create the compatbility libraries using the massconvert32.sh script: (I did this in /home/compat32)
massconvert32.sh -i /mnt/tmp/slackware/
- Install these new libraries:
installpkg *-compat32/*.t?z