UBC Physics & Astronomy
zeta.phas.ubc.ca
142.103.236.69 - 192.168.1.69 (server)
Local system engineers: Dave Peterson 604-297-2410(o), 604-551-5116(c) or Duncan Furniss
F1 - Setup     Alt-F1 - Sysboot
To start IBM Director Server manually, run /opt/ibm/director/bin/twgstart
ServeRAID Adapter Quick Reference
UPS STATUS      RAID STATUS - login and run /usr/RaidMan/RaidMan.sh    Currently three drives in Raid 5 plus one hot spare.
BIOS SETUP     Quantum Superloader 3     StorageTek L20

Current Setup:
2 x 2.4 GHz   /   RAID 5 array on CH1 using 3 disks (1,2,3) with one hot spare(0)  /    BIOS v1.08
ServeRAID 5i Ultra320 SCSI, Firmware=v6.10.24, BIOS=v6.10.24, Driver=v6.10.52
Logical Drive 1 -> RAID 5 140012 MB
System serial numberKPMH959
Machine type8670   (model is 31X)
System memory6000MB
Processors, processor slots2, 2
Date and time10/04/2003, 12:01:16
System BIOS version1.08
ROM diagnostics build level15
Integrated System Management ProcessorRevision 14

DISASTER RECOVERY
  1. Install a new server, load RHEL 6 - currently running RHEL AS 6
  2. Install updates using up2date.
  3. Copy over backup files from alpha:/home/backups/zeta (these files are rsync'd daily). Checklist follows:
    • /etc/[aliases, crontab, exports, hosts, hosts.allow, named.conf, php.ini]
    • /etc/cron.daily/[dirdump.cron, rsync-backup]
    • /etc/cron.d/* /etc/httpd/* /etc/mail/*
    • /mail/mailman/*
    • /opt/sysadmin/*
    • /root/.bashrc
    • /usr/share/ssl/*
    • /var/named/* /var/spool/cron/*
  4. Check certificates - should be in place from backup.  If needed, re-created or install as per below.
  5. Check web server installation - https.
  6. Install bacula.
  7. Check hosts.allow file.
  8. Install APCUPSD (it is in /usr/local/src which is backed up

Backuppc

Watch Backuppc Progress
From the Backuppc server you can check witch files backuppc is using at the moment with:

watch "lsof -n -u backuppc | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | awk '{print $9}'"
you can also check the running log with:

/usr/share/backuppc/bin/BackupPC_zcat/var/lib/backuppc/pc/desktop2/XferLOG.z
On the client side you can use:

watch "lsof -n | grep rsync | egrep ' (REG|DIR) ' | egrep -v '( (mem|txt|cwd|rtd) |/LOG)' | awk '{print $9}'"

QuantumSL3
mtx -f /dev/sg2 status
mtx -f /dev/sg2 load 2 0
mt -f /dev/nst0 rewind
mt -f /dev/nst0 weof
mtx -f /dev/sg2 unload 2 0
StorageTekL20
mtx -f /dev/sg8 status
mtx -f /dev/sg8 load 2 0
mt -f /dev/st1 rewind
mt -f /dev/st1 weof
mt -f /dev/st1 rewoffl
mtx -f /dev/sg8 unload 2 0 

root@zeta$ lsscsi -g
[0:0:0:0]    cd/dvd  TEAC     CD-224E          2.9B  /dev/sr0   /dev/sg0
[2:0:4:0]    tape    HP       Ultrium 4-SCSI   B35Z  /dev/st0   /dev/sg1
[2:0:4:1]    mediumx QUANTUM  UHDL             0061  /dev/sch0  /dev/sg2
[4:0:0:0]    disk    APPLE    Xserve RAID      1.50  /dev/sda   /dev/sg3
[5:0:0:0]    disk    IBM      SERVERAID        1.00  /dev/sdb   /dev/sg4
[5:0:1:0]    disk    IBM      SERVERAID        1.00  /dev/sdc   /dev/sg5
[5:0:15:0]   process IBM      SERVERAID        1.00  -         /dev/sg6
[5:1:8:0]    process IBM      32P0032a S320  1 1     -         /dev/sg7
[5:2:2:0]    mediumx STK      L20              0215  /dev/sch1  /dev/sg8
[5:2:5:0]    tape    HP       Ultrium 2-SCSI   F3A0  /dev/st1   /dev/sg9

Misc Tape Info / Commands

/dev/sg1 = HP Ultrium 4-SCSI = /dev/st0
/dev/sg2 = Quantum SL3
/dev/sg8 = StorageTek L20
/dev/sg9 = HP Ultrium 2-SCSI = /dev/st1

loaderinfo -f /dev/sgX

mtx -f /dev/sgX [ status | inquiry | inventory ] 

tapeinfo -f /dev/sgX

scsitape -f /dev/sgX rewind

mtx -f /dev/sgX [un]load 1 0   (slot drive)

12-10-15 - zeta hung

Update 12-10-20: This appeared to be due to a faulty ethernet card. Fortunately there was a spare in the machine so I just enabled and used it.

From log files... (need to uncomment in html)

12-10-17 - dm

[root@zeta]# lvdisplay|awk  '/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}'
dm-2 LogVol00
dm-0 lv_root
dm-3 lv_home
dm-1 lv_swap

11-06-03 - cbm - colour bandwidth monitor
Installed cbm, http://www.ubuntugeek.com/bandwidth-monitoring-tools-for-linux.html
(http://www.isotton.com/software/unix/cbm/)
Compile error:
statistics.hpp:10: error: field ‘timestamp’ has incomplete type
Had to make small change to source file to get it to compile:
--- cbm-0.1/src/statistics.hpp.old	2007-12-10 00:38:19.000000000 +0000
+++ cbm-0.1/src/statistics.hpp	2007-12-10 00:39:12.000000000 +0000
@@ -3,6 +3,7 @@
 
 #include <list>
 #include <string>
+#include <sys/time.h>
 
 namespace statistics {

11-02-04 - RHEL6 Install
wget --no-check-certificate --user=rap --ask-password https://www.phas.ubc.ca/sysadmin/Computers/00_Servers/rhel/satellite_setup.pl
chmod +x satellite_setup.pl 
./satellite_setup.pl 
yum update
reboot
yum update
Went to web interface for RHN Satellite system and enabled the following channels:
# RHEL Server Optional (v. 6 for 32-bit x86)
# RHEL Server Supplementary (v. 6 for 32-bit x86)
# RHN Tools for RHEL (v. 6 for 32-bit x86)
yum search bacula
yum install bacula-console bacula-console-bat bacula-director-common bacula-director-mysql bacula-docs bacula-storage-common bacula-storage-mysql bacula-traymonitor
rpm -Uvh http://mirror.csclub.uwaterloo.ca/fedora/epel/6/i386/epel-release-6-5.noarch.rpm
yum install php-mbstring phpMyAdmin



11-02-01 - httpd failed to start
Got the following error messages:
[Tue Feb 01 14:59:31 2011] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Tue Feb 01 14:59:31 2011] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Tue Feb 01 14:59:31 2011] [notice] child pid 10100 exit signal Segmentation fault (11)
Solution:
root@zeta$ cd /etc/httpd/alias
root@zeta$ chgrp apache ./*
root@zeta$ chmod g+r ./*
root@zeta$ ll
total 128
-rw-r----- 1 root apache 65536 Aug 19  2009 cert8.db
-rw-r----- 1 root apache  4395 Aug 19  2009 install.log
-rw-r----- 1 root apache 16384 Aug 19  2009 key3.db
lrwxrwxrwx 1 root root      31 Jan 14 11:36 libnssckbi.so -> ../../..//usr/lib/libnssckbi.so
-rw-r----- 1 root apache 16384 Aug 19  2009 secmod.db
root@zeta$ service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

10-08-03 - IBM Director
service FOGImageReplicator stop
service FOGMulticastManager stop
service FOGScheduler stop

root@zeta:/images]$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mcrypt.so' - /usr/lib/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.1 (cli) (built: Nov 20 2009 17:51:14) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies

yum repolist
yum clean all
yum update php\*
yum install php-mcrypt

php-mcrypt-5.1.6-5.el5.i386 from epel has depsolving problems
  --> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-5.el5.i386 (epel)

yum --enablerepo=remi install php-mcrypt
...
Installed:
  php-mcrypt.i386 0:5.3.3-1.el5.remi                                                                       

Dependency Updated:
  php.i386 0:5.3.3-1.el5.remi                           php-cli.i386 0:5.3.3-1.el5.remi
  php-common.i386 0:5.3.3-1.el5.remi                    php-devel.i386 0:5.3.3-1.el5.remi
  php-gd.i386 0:5.3.3-1.el5.remi                        php-ldap.i386 0:5.3.3-1.el5.remi
  php-mbstring.i386 0:5.3.3-1.el5.remi                  php-mysql.i386 0:5.3.3-1.el5.remi
  php-odbc.i386 0:5.3.3-1.el5.remi                      php-pdo.i386 0:5.3.3-1.el5.remi

Complete!

10-06-02 - installed IBM Director
Used /tmp/dir5.20.3_server_linux.tar which does an rpm install.
10-05-10 - bacula-5.0.2 Build/Install
rpmbuild --rebuild --define "build_rhel5 1" --define "build_mysql=1" bacula-5.0.2-1.src.rpm
...
Wrote: /usr/src/redhat/RPMS/i386/bacula-mysql-5.0.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-client-5.0.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-updatedb-5.0.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-libs-5.0.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-debuginfo-5.0.2-1.i386.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/bacula-mysql-5.0.2-1.i386.rpm /usr/src/redhat/RPMS/i386/bacula-updatedb-5.0.2-1.i386.rpm /usr/src/redhat/RPMS/i386/bacula-libs-5.0.2-1.i386.rpm

10-03-29 - bacula Build/Install
rpmbuild --rebuild --define "build_rhel5 1" --define "build_mysql5 1" bacula-3.0.3-1.src.rpm
...
Wrote: /usr/src/redhat/RPMS/i386/bacula-mysql-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-mtx-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-client-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-updatedb-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-gconsole-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-debuginfo-3.0.3-1.i386.rpm

10-02-12 - CUPs Build/Install
root@zeta:/usr/local/src]$ rpmbuild -ta cups-1.4.2-source.tar.gz
Wrote: /usr/src/redhat/SRPMS/cups-1.4.2-1.src.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-1.4.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-devel-1.4.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-libs-1.4.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-lpd-1.4.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-php-1.4.2-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/cups-debuginfo-1.4.2-1.i386.rpm

root@zeta:/usr/local/src]$ cd /usr/src/redhat/RPMS/i386/
root@zeta:/usr/src/redhat/RPMS/i386]$ rpm -Uvh cups*rpm
Preparing...                ########################################### [100%]
   1:cups-libs              ########################################### [ 17%]
   2:cups                   ########################################### [ 33%]
cups: stopped scheduler.
cups: started scheduler.
   3:cups-debuginfo         ########################################### [ 50%]
   4:cups-devel             ########################################### [ 67%]
   5:cups-lpd               ########################################### [ 83%]
   6:cups-php               ########################################### [100%]

09-12-08
[root@zeta src]# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
[root@zeta src]# rpm -Uvh epel-release-5*.rpm                                           
[root@zeta src]# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
[root@zeta src]# rpm -Uvh remi-release-5*.rpm
[root@zeta src]# yum --enablerepo=remi update php                             
[root@zeta src]# yum list | grep -i mysql
[root@zeta src]# yum remove MySQL-python libdbi-dbd-mysql mod_auth_mysql mysql mysql-connector-odbc mysql-devel mysql-server perl-DBD-MySQL php-mysql                                                                                       
[root@zeta src]# yum --enablerepo=remi update php
[root@zeta src]# yum --enablerepo=remi install mysql
[root@zeta src]# yum --enablerepo=remi install mysql-server
[root@zeta src]# yum --enablerepo=remi install mysql-devel
[root@zeta src]# yum --enablerepo=remi install phpmyadmin
[root@zeta src]#

09-12-07
bacula install
[root@zeta src]# yum install pango-devel atk-devel gtk2-devel libgnomeui-devel ORBit2-devel libart_lgpl-devel libbonobo-devel libbonoboui-devel GConf2-devel freetype-devel mysql-devel
[root@zeta src]# rpmbuild --rebuild --define "build_rhel5 1" --define "build_mysql5 1" --define "build_x86_64 1" bacula-3.0.3-1.src.rpm
...
Wrote: /usr/src/redhat/RPMS/i386/bacula-mysql-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-mtx-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-client-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-updatedb-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-gconsole-3.0.3-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bacula-debuginfo-3.0.3-1.i386.rpm
Starting mysqld:
[root@zeta src]# service mysqld start
Initializing MySQL database:  Installing MySQL system tables...
091207 16:17:33 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
091207 16:17:33 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK
Filling help tables...
091207 16:17:34 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
091207 16:17:34 [Warning] option 'max_join_size': unsigned value 18446744073709551615 adjusted to 4294967295
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h zeta.phas.ubc.ca password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
                                                           [  OK  ]
Starting MySQL:                                            [  OK  ]

[root@zeta ~]# /usr/bin/mysql_secure_installation

09-08-12
history
root@zeta:/etc/network# history
    1  sudo apt-get update
    2  sudo chroot /opt/ltsp/i386/
    4  pwd
    5  cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt
    6  sudo chroot /opt/ltsp/i386/
    7  exit
   15  ls /opt/ltsp/i386/usr/share/ldm/rc.d
   17  view /opt/ltsp/i386/usr/share/doc/ldm/examples/*
   19  vi /etc/X11/default-display-manager 
   23  cd /etc/ltsp/
   26  vi dhcpd.conf 
   31  sudo ltsp-update-sshkeys
   32  sudo ltsp-update-image
   35  ssh hyper
   48  cd /var/lib/tftpboot/
   51  cd ltsp/
   53  cd i386/
   57  updatedb
   58  locate lts.conf
   60  view config-2.6.24-23-generic 
   61  cd /opt/ltsp
   70  apt-get install sabayon
   72  apt-get install pessulus
  148  chroot /opt/ltsp/i386/
  149  find / -gid 1001
  150  sudo find / -gid 1001
  153  sudo find / -gid 1001 | xargs chgrp -h sabayon-admin
  156  ltsp-update-kernels
  157  ltsp-update-image
  162  sudo apt-get install gtkdialog
  163  sudo apt-get install gnome-watchdog
  167  wget http://logicalnetworking.net/other/gnome-watchdog_0.9.2_i386.deb
  168  sudo dpkg -i gnome-watchdog_0.9.2_i386.deb
  181  cat  /etc/lsb-release 
  190  sudo apt-get install gcc build-essential 
  207  ./configure
  208  apt-get install tcl-ssl
  209  apt-get install tcl-tls
  210  apt-get install tclcrypt tcl-dev
  213  apt-get install libpam
  214  apt-cache list
  216  apt-cache show 
  218  apt-cache pkgnames | grep -i pam
  219  apt-get install libpam-dev
  220  apt-get install libpam0g-dev
  265  cat /etc/lsb-release 
  267  apt-get upgrade

09-07-16
installed RHEL 5.3, RAID1- 2disks, RAID5 - 3 disks, one HS
Error: Failed to execute dbus-launch to autolaunch D-Bus session
Soln: yum groupinstall "X Window System" "GNOME Desktop Environment"

09-08-05
ubuntu/ltsp setup (temp)
Had to use 8.10 disk because 9.04 (jaunty) would not boot. On bootup menu, pressed F4 and selected ltsp install

Had error when trying to login:

This workstation is not authorized to connect to the server.
Solved by doing the following:
root@zeta:/etc/ltsp# sudo ltsp-update-sshkeys
root@zeta:/etc/ltsp# sudo ltsp-update-image

09-xx-xx
 



NOTE
It is important to update the drivers first and then do the BIOS and FIRMWARE or you may not be able to boot your system since the new BIOS/FIRMWARE may not know about the older drivers.  To do the update, you just need to create the 2 Update Xpress CDs from the IBM website and then boot from them.

10-03-31 - tkjuke install
tkjuke install
yum install tk-devel
yum install perl-Tk
yum install perl-Proc-ProcessTable
root@zeta:/usr/local/src/tkjuke-2.2.1]$ perl Makefile.PL
...
perl                = /usr/bin/perl
prefix              = /usr/local
changer             = /dev/sg5
eepos_open          = 1
eepos_shut          = 2
eject_before_unload = rewind
juke                = /usr/local/tkjuke/2.2.1/juke
loaderinfo          = /usr/sbin/loaderinfo
mt                  = /bin/mt
mtx                 = /usr/sbin/mtx
nrtape              = /dev/nst0
tape                = /dev/st0
version             = 2.2.1
wait-tape-ready     = /usr/local/tkjuke/2.2.1/wait-tape-ready

Writing juke.config.
Performing string substitutions ... done.
Creating a sample tkjuke.config file (please hand edit).

root@zeta:/usr/local/src/tkjuke-2.2.1]$ make
cp Jukebox.pm blib/lib/Jukebox.pm
root@zeta:/usr/local/src/tkjuke-2.2.1]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/juke....ok
All tests successful.
Files=1, Tests=1,  0 wallclock secs ( 0.02 cusr +  0.01 csys =  0.03 CPU)
root@zeta:/usr/local/src/tkjuke-2.2.1]$ make install
mkdir /usr/local/tkjuke  2> /dev/null
cp -Rp blib/2.2.1 /usr/local/tkjuke/

At this point, edit tkjuke.config and make entries for your jukeboxes using the example entries as a guide 
- tkjuke will auto-connect to the listed machines. If you have not setup either host-based or key 
authentication the you'll need to enter the root passwords in the window from which tkjuke was started.
***** NOTE
The program "wait-tape-ready" defines a system command that ensures media is ready after it has been 
loaded into a DTE. The basic idea is to status the drive until it is ready.

IFF you experience tape-not-ready errors, or long delays after a "juke load" or "juke next" command, 
you must inspect this code and make appropriate changes. The code comments in "wait-tape-ready" tell 
you what to do. Please, send any changes to sol0@lehigh.edu. 

tkjuke didn't work at this point to had to do:

cd /usr/local/src
wget http://search.cpan.org/CPAN/authors/id/L/LU/LUSOL/Tk-ExecuteCommand-1.6.tar.gz
wget http://search.cpan.org/CPAN/authors/id/L/LU/LUSOL/Tk-CollapsableFrame-1.2.tar.gz
tar zxf Tk-ExecuteCommand-1.6.tar.gz
cd Tk-ExecuteCommand-1.6
perl Makefile.PL
make
make test
make install
cd ..
tar zxf Tk-CollapsableFrame-1.2.tar.gz
cd Tk-CollapsableFrame-1.2
perl Makefile.PL
make
make test
make install

BIOS SETUP and Boot Info:
LSI Logic Corp MPT IM BIOS
MPTBIOS-IM-5.03.07
IBM Build:
HBA
ID
LUN
Vendor
Product
0
7
0
LSI
LSI 1030 [  402] 1000E00
0
8
0
IBM
32P0032a S320 1 1
1
7
0
LSI
LSI 1030 [  402] 1000E00
BIOS Version 1.08

System Summary (from ServerGuide):
       Item                                        Details
---------------------------------------------------------------------
System serial number                               KPMH959
Machine type                                       8670
System memory                                      2550MB
Processors, processor slots                        2, 2
Date and time                                      10/04/2003, 12:01:16
System BIOS version                                1.08
ROM diagnostics build level                        15
Integrated System Management Processor             Revision 14               
ServeRAID-5i Adapter                               Firmware 5.11.05
                                                   1 Logical Drive
System Partition                                   Created




For more assistance contact Ron Parachoniak, rap@phas.ubc.ca ( Sysadmin )

webmaster@phas.ubc.ca [Dept. Home Page] last updated: Aug 5th, 2009